1
0
Fork 0
Commit Graph

330 Commits (1d314deff0c7b4b66efebbdb00985363b8c12b60)

Author SHA1 Message Date
Sara Itani 864a7a8621 test multipe frameworks in perf test script 2017-04-10 14:19:55 -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 651e6be08a add definition comparison to validation tests 2017-04-10 12:30:46 -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
Jens Hausdorf 97d1579f37 Update PHPParser dependency (#345) 2017-04-09 18:23:46 +02:00
Sara Itani f50df5cdaf Enforce memory limit in phpunit.xml (#320)
This will help highlight memory regressions, make it easier for newcomers to get started with the codebase w/o editing php.ini defaults (128M), and also keep things consistent between local and travis runs.
2017-04-02 14:08:45 +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 105f9bf813 Include max-recursion comparison in perf test 2017-03-28 14:00:50 -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
Sara Itani c84b91de2b Fix exception during definition resolution 2017-03-24 10:30:34 -07:00
Sara Itani cd4c6d66d9 Add validation test filesize threshold 2017-03-24 10:30:07 -07:00
Sara Itani 7b633f5e07 minor perf improvements 2017-03-21 15:25:49 -07:00
Jens Hausdorf 4d0a0a2a10 show anything from a doc comment block (#315) 2017-03-19 12:15:39 +01:00
Sara Itani 6e7f77be6d add script to help profile 2017-03-15 14:11:49 -07:00
Sara Itani 81ba7df91c fix some crashes, perf issues 2017-03-15 14:10:52 -07:00
Sara Itani 0824e6d9b8 start adding validation tests 2017-03-15 14:10:29 -07:00
Sara Itani 4324530389 Find all references support 2017-03-09 15:57:57 -08:00
Harings Rob 546660f957 Update README.md (#329)
Updating the used by to no longer link to the deprecated repository.
2017-03-08 16:19:56 +01:00
Sara Itani 167b6ac6f2 Update getDocBlock to use context information. All Definition tests pass! 2017-03-06 21:31:13 -08:00
Sara Itani e45648daab fix global constant fallback 2017-03-06 16:12:26 -08:00
Sara Itani afca7ea7e0 fix definitions namespaced function calls 2017-03-06 16:08:06 -08:00
Sara Itani d02253c9f6 fix base class logic 2017-03-06 15:34:43 -08:00
Sara Itani 1ff1b38ec2 fix subscript expression resolution 2017-03-06 14:21:36 -08:00
Sara Itani 4653f100a7 fix variableName symbol info, offsets in tests 2017-03-06 13:59:12 -08:00
Sara Itani d21e7e7008 Fix qualified name resolution 2017-03-06 11:07:05 -08:00
Sara Itani 1316761e5e fix scoped expression definition resolution 2017-03-06 11:01:10 -08:00
Sara Itani c18bec0d50 small fixes, add diagnostic mode 2017-03-05 23:23:33 -08:00
Sara Itani d3f2bebb40 Hover and Go-To definition (in progress) 2017-03-05 20:22:13 -08:00
Sara Itani cdf8fc36e1 add getNodeAtPosition, fix definition collector tests 2017-03-05 16:34:01 -08:00
Sara Itani 15eed55158 Symbol support for Microsoft/tolerant-php-parser 2017-03-04 20:56:01 -08:00
Sara Itani 722898f74d refactor 2017-03-04 18:36:17 -08:00
Sara Itani 2280e7889b extract to tree analyzer interface 2017-03-04 17:44:04 -08:00
Sara Itani 7f8eccb5ae Fix formatting breakage (option 2) (#324)
PHP_CodeSniffer 3.0 RC4 introduces a breaking change that removes PHPCS from the composer autoloader. This fix addresses the issue by locking to v3.0 RC3.
2017-03-02 10:07:47 +01:00
Sara Itani e7b04f7518 extract symbol information 2017-03-01 16:51:52 -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
Sara Itani 027801ebba update parser branch for development 2017-03-01 16:51:41 -08:00
Sara Itani 13241a7be9 initialize tolerant-php-parser 2017-03-01 16:51:16 -08:00
Sara Itani 0de7ba8335 Ensure diagnostics are cleared on file deletion (#319)
* Ensure diagnostics are cleared on file deletion
Previously, error diagnostics would not be cleared when a file was deleted while it was closed. This would result in lingering errors in the problems view that could only be cleared by reloading the language server. This fix addresses the issue by adding support for workspace/didChangeWatchedFiles and automatically clearing diagnostics for deleted files.

* add FileEvent constructor
2017-03-01 11:18:37 +01:00
Matthew Brown 56bd465bf8 DefinitionResolver fixes (#307)
* Fix class references

* Fix return types
2017-02-20 10:28:49 +01:00