1
0
Fork 0
Commit Graph

198 Commits (97937eaadb280cf6f4dd0119da664b7b7c583782)

Author SHA1 Message Date
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 442fc7ea02 Remove remaining 'use PhpParser\' statements and some dead code 2017-05-19 14:26:30 -07:00
roblou 71d71a896c Remove obsolete NodeVisitors 2017-05-19 14:17:21 -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
roblou a9be548cb1 Remove LoggedDefinitionResolver 2017-05-19 11:16:29 -07:00
Rob Lourens b5412621d6 Fix completion tests to handle receiving all items 2017-05-18 21:06:28 -07:00
Rob Lourens 67081c4abe Clean up completions, fix exceptions thrown from running strpos on empty strings 2017-05-18 14:26:34 -07:00
Rob Lourens 1fa29ccae5 Fix exception thrown when getting completions on Definitions with a null type- this is expected 2017-05-18 11:17:09 -07:00
Rob Lourens 91f13795d6 Don't try to filter completions by member name, vscode does it 2017-05-18 11:03:13 -07:00
Rob Lourens 253f9b50a4 Fix completions on -> next to an unrelated token 2017-05-17 23:41:35 -07:00
Rob Lourens 90b40ef449 Fix composer references 2017-05-17 14:57:54 -07:00
Rob Lourens 403e0c5743 Remove diagnostics log disable hack 2017-05-15 15:32:29 -07:00
Rob Lourens addc862404 Add Diagnostic source and severity 2017-05-14 14:17:43 -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
Sara Itani 76c8536e91 first pass at completion provider (work in progress) 2017-04-25 17:09:52 -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
Sara Itani ed6469219a fix trait use and scoped call expressions 2017-04-20 01:33:45 -07:00
Sara Itani 223a2eac6c fix return type resolution issue 2017-04-20 00:58:26 -07:00
Sara Itani 347a5a12ae Update + clarify type resolution logic 2017-04-20 00:20:47 -07:00
Sara Itani bfbad095ee Fix and start cleaning up type resolution issues 2017-04-19 17:52:37 -07:00
Sara Itani f5a93a2e09 refactor definition resolver, fix misc. issues 2017-04-18 22:48:26 -07: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 54f385f9ec Fix misc. issues, add more test cases, update validation test 2017-04-16 15:11:14 -07:00
Sara Itani 4382821b8c Update logger to better handle errors 2017-04-16 15:09:05 -07:00
Sara Itani 6d39d87278 Fix class inheritance issue, fix parenthesized expression type resolution 2017-04-13 11:51:10 -07:00
Sara Itani 26152b1de6 Temporary change to expose index to validation tests 2017-04-13 09:13:03 -07:00
Sara Itani 05bccec84d Ensure duplicate ScopedPropertyAccess expressions don't appear 2017-04-13 09:12:30 -07:00
Sara Itani d6d9712134 clarify logic around scoped and member access expressions 2017-04-12 16:53:03 -07:00
Sara Itani 35ce3af324 fix issue where call expression references weren't being properly indexed 2017-04-12 12:51:24 -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
Sara Itani 57ebd58b6c Update validation tests to verify more definition properties, references 2017-04-11 12:54:20 -07:00
Sara Itani 981b74a6db don't get docblock comment for namespace definition nodes 2017-04-11 12:52:24 -07:00
Sara Itani 219c018ab2 Disclude anonymous class members from definitions 2017-04-10 21:58:08 -07:00
Sara Itani 3d5d46d4e7 don't use generator during iteration 2017-04-10 14:18:19 -07:00
Sara Itani b02c164c2b fix property / constant ancestor check 2017-04-10 13:13:47 -07:00
Sara Itani 21cee77624 include traits and interfaces when retrieving fqn 2017-04-10 12:42:49 -07:00
Sara Itani fa52aef28a revert isClass -> canBeInstantiated
- ensures consistency w/ old parser
2017-04-10 12:29:58 -07:00
Jens Hausdorf de6aed608c Show constructors and destructors with right symbol (#346) 2017-04-09 19:44:28 +02:00
Talv 14a6d65832 Fix missing '()' for function definition (#340) 2017-04-02 00:30:10 +02:00
Sara Itani 7d68e3acc3 Only traverse tree 1x for definitions + references 2017-03-29 10:48:53 -07:00
Sara Itani d62bdeac82 revert earlier change to fix tests 2017-03-29 10:45:38 -07:00
Sara Itani a5fec9452b Fix misc. issues in language server 2017-03-28 14:02:26 -07:00
Sara Itani 42dc2c966d Update validation tests
- assert non-null ASTs
- additional submodules
2017-03-28 13:59:24 -07:00
Sara Itani a69c93b28b Print null docs in language server perf log 2017-03-28 13:55:10 -07: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
Sara Itani 946b5b1cdb Fix exception during diagnostics parsing 2017-03-24 10:31:23 -07:00