Rob Lourens
68656d9663
Use === "" instead of strlen check
2017-06-07 17:46:05 -07:00
Rob Lourens
1d314deff0
Make ParserHelper a module of functions, not a static class
2017-06-07 17:26:03 -07:00
Rob Lourens
eda52a893f
Fix error from calling ltrim on null variableName
2017-06-07 17:24:47 -07:00
Rob Lourens
0a15afc130
Cleanup, fix incorrect count() usage
2017-06-07 14:34:18 -07:00
Rob Lourens
01e72430d0
Fix indentation
2017-06-06 16:08:34 -07:00
Rob Lourens
3cb0c03c81
Restore more type annotations
2017-06-06 16:05:47 -07:00
Rob Lourens
f1c0cc5c06
Remove comments, question answered by Felix
2017-06-06 14:41:42 -07:00
Rob Lourens
f16866ae4d
Restore type annotation
2017-06-06 14:40:24 -07:00
Rob Lourens
65363b7390
Add comment on try/catch in DefinitionResolver
2017-06-06 14:39:44 -07:00
Rob Lourens
e0a7b2108e
Fix possible Node/MissingToken mismatch (error reported in Lumen project)
2017-06-06 14:25:27 -07:00
Rob Lourens
d56d1b7fe7
$index can be private again
2017-06-02 17:10:33 -07:00
Rob Lourens
2568a42e12
Fix autofixable formatting errors
2017-05-25 11:39:42 -07:00
Rob Lourens
3dfe505727
Remove "Tolerant" alias
...
- Now unnecessary
- Makes type annotations more readable
2017-05-24 11:26:53 -07:00
Rob Lourens
d7a4034eac
Merge branch 'tolerantMasterMerge' into tolerant
2017-05-22 15:31:42 -07:00
Rob Lourens
b4e77f2e9c
Remove more PhpParser\Node references
2017-05-19 14:40:38 -07:00
roblou
cf9590b9b7
Remove "use PhpParser\Node"
2017-05-19 13:45:23 -07:00
roblou
5e9dfa104b
Remove original DefinitionResolver, remove "Tolerant" on file names
2017-05-19 13:39:16 -07:00
roblou
552d99e95c
Merge remote-tracking branch 'upstream/master' into tolerant
2017-05-19 11:25:26 -07:00
Rob Lourens
31441f4b7e
Remove ParserResourceFactory and DefinitionResolverInterface (leave original DefinitionResolver for now, for more testing)
2017-05-02 11:04:44 -07:00
Stephan Unverwerth
08cf1a3fd7
Allow getting type from define() node ( #363 )
...
* Allow getting type from define() node
- fixes #364
* Add test case for DefinitionResolver
2017-04-24 11:11:40 +02:00
Jens Hausdorf
b1cc7bf6b0
Support constants with define() ( #347 )
2017-04-17 17:03:08 +02:00
Sara Itani
65686c6d4c
Fix namespace name, use variable issues
2017-04-16 16:32:38 -07:00
Sara Itani
39fe9dc7bc
fix issue where vars not being resolved to corresponding parameter definitions, update logging and validation tests
2017-04-11 16:24:35 -07:00
Talv
14a6d65832
Fix missing '()' for function definition ( #340 )
2017-04-02 00:30:10 +02:00
Sara Itani
4ac56d83a4
Update logging
...
- add diagnostics for old parser
- include maxRecursion levels
- include option to run functions multiple times to help profile
2017-03-28 13:53:53 -07:00
Jens Hausdorf
4d0a0a2a10
show anything from a doc comment block ( #315 )
2017-03-19 12:15:39 +01:00
Sara Itani
4324530389
Find all references support
2017-03-09 15:57:57 -08:00
Sara Itani
b1eb43516d
update definition resolver interfaces
2017-03-01 16:51:46 -08:00
Sara Itani
591ecbd7d3
Extract static FQN methods to FqnUtilities
2017-03-01 16:51:45 -08:00
Sara Itani
df315df04b
start refactoring definition resolver
2017-03-01 16:51:43 -08:00
Matthew Brown
56bd465bf8
DefinitionResolver fixes ( #307 )
...
* Fix class references
* Fix return types
2017-02-20 10:28:49 +01:00
Felix Becker
5100d89617
Make resolveExpressionNodeToType() handle null ( #277 )
2017-02-04 12:52:04 +01:00
Ivan Bozhanov
43a91b0d09
Handle hover for $this ( #249 )
2017-01-19 15:47:11 +01:00
Felix Becker
662143abad
Fix wrong function call in DefinitionResolver
2016-12-24 16:35:20 +01:00
Felix Becker
2005518dfe
Support find-all-references for namespaces ( #221 )
2016-12-17 03:46:08 +01:00
Felix Becker
83618fee2e
Avoid multiple references with function calls ( #220 )
2016-12-16 23:42:47 +01:00
Felix Becker
a4a13e6528
Add support for inherited members ( #218 )
...
in completion, definition, references, hover etc
2016-12-16 01:40:17 +01:00
Felix Becker
cc9d5e987b
Fix wrong class name
2016-12-15 18:01:44 +01:00
Felix Becker
b8a113ddd0
Correct reference collection for New_ nodes
...
Closes #202
2016-12-13 02:40:51 +01:00
Felix Becker
a7d77d844e
Add Index classes and stubs ( #214 )
2016-12-13 01:51:02 +01:00
Felix Becker
10fb3c92e0
Completion ( #165 )
...
* Add support for method/property completion
* Move completion fixtures into directory
* Add support for variable suggestions
Refactor logic into CompletionProvider class
* Allow getTypeFromNode() to take Variable nodes
* Use property and constant values
* Fix using @var tag for variables
* Improve completion
* classes
* variables with prefix filtering
* Make FQNs more distinct
* use -> for instance methods/properties
* use ::$ for static properties
* Add tests for static access
* Properly filter completion on empty property
* Fix existing tests
* Add support for static access without prefix
* Fix testFullyQualifiedClass
* Add missing fixtures
* Correct file number in init test
* Only insert backslash if not typed yet
* Completion for keywords and bug fixes
* Correct variable insertion
* Support completion for namespaces
* Use CompletionList
* Always set isIncomplete to true
* Update PHPCodeSniffer
* Remove unused method
* And the call
* Handle case where FQN could not be resolved
2016-11-30 22:23:51 +01:00
Felix Becker
8f6ee8dd02
Handle null return from getClosestNode()
2016-11-19 12:03:43 +01:00
Felix Becker
00bc8537a6
Support compound types when resolving FQNs
2016-11-19 11:45:25 +01:00
Felix Becker
fb84741d55
Add missing property
2016-11-19 06:37:07 +01:00
Felix Becker
c2ae7cd022
FIx crashes when tag doesn't have a type
2016-11-19 06:36:57 +01:00
Felix Becker
33211c68ca
Resolve expressions recursively ( #155 )
...
* Add Definition class
* Add recursive DefinitionResolver
* Cache hover
2016-11-18 15:22:24 +01:00