Граф коммитов

543 Коммитов

Автор SHA1 Сообщение Дата
Sara Itani cb96da4806 Fix import table issues
- properly travers group usings
- enforce scope boundaries
- temporarily remove name resolution case sensitivity
2017-04-11 12:57:29 -07:00
Sara Itani 961603fa25 fix name resolution issues 2017-04-10 21:59:42 -07:00
Sara Itani da4af533a5 parse reserved word class names 2017-04-10 21:59:20 -07:00
Sara Itani 00c808d6c8 Support all use definition types during name resolution 2017-04-10 19:46:11 -07:00
Sara Itani 5b313d8fc0 Fix diagnostics provider issues 2017-04-10 17:10:59 -07:00
Sara Itani 6e441dc592 Fix merge issues related to Node structure 2017-04-10 17:06:20 -07:00
Sara Itani c01a5fa496 Merge branch 'master' of https://github.com/Microsoft/tolerant-php-parser into lang-server 2017-04-10 16:54:40 -07:00
Sara Itani 3e04ff31b0 enable single node checks diagnostics api 2017-04-10 14:24:04 -07:00
dangoodman 0d49c7da41 getDescendantNodes: pass predicate recursively 2017-03-31 23:40:40 +03:00
Sara Itani a2e8d1591f Fix diagnostics provider issues
- diagnostics production completes too early
- produce array rather than generator for performance reasons
2017-03-24 10:32:51 -07:00
Sara Itani 81dd5bd96a remove recursive call in getDiagnostics 2017-03-21 15:21:50 -07:00
Sara Itani 1f30b8a23d Cut down on function calls in parser 2017-03-21 15:21:07 -07:00
Sara Itani 994a4eec54 improve Node API perf 2017-03-21 14:53:36 -07:00
Sara Itani 3c05046933 Cache diagnostics provider properties 2017-03-21 14:52:49 -07:00
Sara Itani d31844d8dc node api performance 2017-03-15 14:06:42 -07:00
Sara Itani dbec1d1d25 Add CHILD_NAMES constant to corresponding Nodes 2017-03-15 14:03:36 -07:00
Sara Itani d24f735783 minor fixes 2017-03-14 08:51:02 -07:00
Sara Itani e64688067d minor fixes 2017-03-05 23:18:08 -08:00
Sara Itani ec5dd42da2 flatten qualified name 2017-03-05 15:59:19 -08:00
Sara Itani 7d66f9a6f9 api changes 2017-02-21 20:07:06 -08:00
Sara Itani 0bce7ffa56 fix interface invariants 2017-02-19 15:36:20 -08:00
Sara Itani 7d8e294c8a basic definitions 2017-02-19 15:35:51 -08:00
Sara Itani 6ce1e1f978 Merge pull request #112 from Ocramius/fix/composer-package-naming-correction
Fix composer package naming correction, package description, composer validation, phpunit version
2017-02-17 04:52:41 -08:00
Marco Pivetta e8d47239fc
Switching to advertised composer-installed PHPUnit version
Especially relevant since PHPUnit versions change wildly depending on distro.
Let's use a version we all agree upon via `composer.json`
2017-02-17 12:55:30 +01:00
Marco Pivetta 2c230c98a8 Adding composer validation to build matrix 2017-02-17 12:46:15 +01:00
Marco Pivetta 9f935a454d
Added package description as per `composer validate` inspection 2017-02-17 12:44:22 +01:00
Marco Pivetta 70227369fa
Updated package naming as per `composer validate` inspection 2017-02-17 12:43:00 +01:00
Sara Itani e719ac126a Merge pull request #96 from runz0rd/master
Updated parseNamespaceUseDeclaration to group clauses without braces
2017-02-14 23:51:11 -05:00
runz0rd 3824871737 Small changes to Parser and DiagnosticsProvider. Tests enabled 2017-02-15 04:33:09 +01:00
runz0rd 9a7c859895 Removed a stray var_dump 2017-02-14 17:40:59 +01:00
Sara Itani 6e0f9fb8e5 add name resolution [work-in-progress]
- adds name resolutions for all qualified names that are possible to be resolved and compile-time
- adds `getNamespacedName` method to all applicable node types.
- fix miscellaneous doc bugs
- rename ITokenStreamProvider => TokenStreamProviderInterface
- still needs comprehensive tests (lots of edge cases) + cleanup
2017-02-14 02:48:44 -05:00
Sara Itani aa2ed9d0cb Merge pull request #105 from Bilge/patch-2
Added `set -e` comment.
2017-02-14 02:46:45 -05:00
Bilge 1d89137c15 Added `set -e` comment. 2017-02-13 18:46:22 +00:00
Sara Itani 9633608d8f Merge pull request #102 from mousetraps/api
#101 Add parser path setting to syntax visualizer
2017-02-12 23:06:41 -05:00
Sara Itani 537c245481 #101 Add parser path setting to syntax visualizer 2017-02-12 22:27:33 -05:00
runz0rd b3ef1162fe Added a post parse check for invalid brace usage in use declarations 2017-02-13 03:16:38 +01:00
runz0rd 453e48f5d0 Implemented separate parsing of useClauses and useGroupClauses 2017-02-13 03:14:52 +01:00
Sara Itani 5d5770a83d Merge pull request #100 from mousetraps/api
#98 trait select clauses do not properly detect start of fully qualified name elements
2017-02-12 20:03:54 -05:00
Sara Itani 474a2554f6 Move `set -e` to `before_script` 2017-02-12 19:56:46 -05:00
Sara Itani c8b0ed5517 fix newline issues in test cases 2017-02-12 18:14:11 -05:00
Sara Itani 9f502a93a9 Fix issue where travis does not properly fail build when tests fail 2017-02-12 18:12:08 -05:00
Sara Itani f028662fb2 #98 trait select clauses do not properly detect start of fully qualified name elements 2017-02-12 17:48:20 -05:00
runz0rd bc5ea05f21 Updated parseNamespaceUseDeclaration to group clauses without braces 2017-02-11 19:49:14 +01:00
Sara Itani 299f5089e6 Merge pull request #94 from mousetraps/api
#88 Add API for `getDocCommentText`, `getFirst*Node`
2017-02-07 16:16:22 -08:00
Sara Itani 8e4ef4a3d8 add doc comment to getDocCommentText method 2017-02-07 16:10:36 -08:00
Sara Itani f08f707c01 Merge branch 'master' of https://github.com/Microsoft/tolerant-php-parser into api 2017-02-07 15:48:04 -08:00
Sara Itani 7a58ceaeb8 #88 Add API for `getDocCommentText`, `getFirst*Node`
- reuse PhpTokenizer rather than constructing a separate regex because we'll need this sort of context-specific re-tokenizing functionality for incremental parsing anyways.
- functional, but still a work-in-progress, just like the rest of the API :)

Also moved hanspun lexer to experiments folder
2017-02-07 15:46:30 -08:00
Sara Itani 4f155b2518 Merge pull request #93 from mousetraps/api
remove dependence on index while iterating through test cases
2017-02-07 13:40:50 -08:00
Sara Itani 143c44a4d6 remove dependence on index while iterating through test cases 2017-02-07 12:57:41 -08:00
Sara Itani bb9805d4fb Merge pull request #91 from mousetraps/api
add VS Code launch config, recommended extensions
2017-02-06 22:01:15 -08:00