Commit Graph
100 Commits
Author SHA1 Message Date
Vadym Slizov 367eff9de6 rename package cfg to conf 2021-02-13 23:54:34 +02:00
Vadym Slizov 9d12f1d162 fix formatting 2021-02-13 23:51:08 +02:00
Vadym Slizov 29477c9552 [#122] compile php5 parser 2021-02-13 23:50:10 +02:00
Vadym Slizov c8b7fc0786 [#122] compile php5 parser 2021-02-13 23:48:44 +02:00
Vadym SlizovandGitHub c3287f4721 Merge pull request #125 from z7zmey/issue-98
[#98] fix panic when heredoc is not closed
2021-02-13 23:10:27 +02:00
Vadym Slizov e1686cb83c [#98] fix panic when heredoc is not closed 2021-02-13 23:09:41 +02:00
Vadym SlizovandGitHub 15e7237b45 Merge pull request #124 from z7zmey/issue-120
[#120] move dog.go from root folder
2021-02-13 22:18:29 +02:00
Vadym Slizov cb29615397 [#120] update readme 2021-02-13 22:16:54 +02:00
Vadym Slizov d9bd1df2a2 [#120] move dog.go from root folder 2021-02-13 22:06:52 +02:00
Vadym SlizovandGitHub 15562c740e Merge pull request #123 from i582/pmakhnev/fix_parsing_new_expr
internal: fixed parsing of expression new
2021-02-13 21:42:58 +02:00
Vadym SlizovandGitHub 4d6130d98d Merge pull request #117 from z7zmey/refactoring
Refactoring
2020-12-29 21:31:14 +02:00
Vadym Slizov 5fd7577b66 Merge branch 'master' into refactoring 2020-12-29 21:28:40 +02:00
Vadym Slizov e3b133f3de refactoring: update api 2020-12-29 21:23:22 +02:00
Vadym Slizov cb4b4e69c4 refactoring: fix naming 2020-12-28 23:01:02 +02:00
Vadym Slizov 0701b3552e refactoring: fix scanning double dollar in template string 2020-12-28 21:43:55 +02:00
Vadym Slizov 07f49a4d21 refactoring: move internal nodes 2020-12-28 21:31:24 +02:00
Vadym Slizov bd479007be refactoring: update traverser 2020-12-28 21:13:08 +02:00
Vadym Slizov c0465f9605 refactoring: remove "StmtTraitMethodRef" node 2020-12-28 10:47:09 +02:00
Vadym Slizov c29e8ec0e0 refactoring: update ast structure of "Class", "Interface" and "Trait" nodes 2020-12-28 10:10:24 +02:00
Vadym Slizov 2990f0cc2d refactoring: create "ScalarEncapsedStringBrackets" node 2020-12-28 00:53:48 +02:00
Vadym Slizov 38141ce97f refactoring: create "ScalarEncapsedStringVar" node 2020-12-28 00:38:39 +02:00
Vadym Slizov e4321b5e90 refactoring: create "ExprBrackets" node 2020-12-28 00:02:14 +02:00
Vadym Slizov ad884c99df refactoring: update ast structure of "StaticCall" node 2020-12-27 23:19:49 +02:00
Vadym Slizov 0f2341bfa9 refactoring: update ast structure of "MethodCall" and "PropertyFetch" nodes 2020-12-27 23:04:09 +02:00
Vadym Slizov 2c09138600 refactoring: update ast structure of "Variable" node 2020-12-27 21:55:36 +02:00
Vadym Slizov 69919594fd refactoring: short int cast 2020-12-26 22:48:02 +02:00
Vadym Slizov 115d481a57 refactoring: update ast structure of "IncludeOnce" node 2020-12-26 22:44:14 +02:00
Vadym Slizov 616fd4448e refactoring: rename DieTkn to ExitTkn 2020-12-26 22:41:25 +02:00
Vadym Slizov a593760569 refactoring: remove ExprReference node 2020-12-26 22:38:35 +02:00
Vadym Slizov 0f5f5e7dc7 refactoring: update ast structure of "ArrayItem" node 2020-12-26 20:13:50 +02:00
Vadym Slizov 8bf1fa822d refactoring: update ast structure of "Foreach" node 2020-12-26 19:38:45 +02:00
Vadym Slizov b85bae2ec1 refactoring: update ast structure of "Closure" and "ClosureUse" nodes 2020-12-26 18:20:10 +02:00
Vadym Slizov 03c7979ccd refactoring: remove StmtTraitAdaptationList node 2020-12-20 23:04:23 +02:00
Vadym Slizov 74b0949255 refactoring: test variable formatter 2020-12-20 22:11:16 +02:00
Vadym Slizov eda7ae1c87 refactoring: update scanner tests 2020-12-20 14:39:37 +02:00
Vadym Slizov 286dd50319 refactoring: update position builder tests 2020-12-20 14:34:09 +02:00
Vadym Slizov 90aca88c2f refactoring: update php5 tests 2020-12-20 14:26:26 +02:00
Vadym Slizov fd984fea8f refactoring: update php7 tests 2020-12-20 11:38:13 +02:00
Vadym Slizov 7b8b1ce7b9 refactoring: update formatter 2020-12-20 01:28:47 +02:00
Vadym Slizov 6941f0f51b [refactoring] rename dumper 2020-12-12 12:09:39 +02:00
Vadym Slizov c32f5bd29b [refactoring] remove Alt flags 2020-12-11 17:34:29 +02:00
Vadym Slizov 5291529a37 [refactoring] fix typo 2020-12-11 17:29:22 +02:00
Vadym Slizov 45ded326d0 [refactoring] remove ParserSeparatedList from visitor 2020-12-11 17:17:13 +02:00
Vadym Slizov 632146f98e [refactoring] update dumper 2020-12-11 13:28:16 +02:00
Vadym Slizov 60433615a9 [refactoring] fix namespaceResolver tests 2020-12-11 10:05:02 +02:00
Vadym Slizov 497e7f82ee [refactoring] update printer 2020-12-11 09:54:26 +02:00
Vadym Slizov f3a605aba1 [refactoring] update position builder 2020-12-08 02:08:59 +02:00
Vadym Slizov 8064d940f0 [refactoring] update Token structure 2020-12-08 01:54:05 +02:00
Vadym Slizov 20a42da7c9 [refactoring] remove general Node struct 2020-12-08 00:04:12 +02:00
Vadym Slizov f6f86bf99b refactoring: fix panic when missed arguments list 2020-12-04 22:38:46 +02:00
Vadym Slizov dfe8982121 refactoring: fix panic when missed arguments list 2020-12-04 22:37:06 +02:00
Vadym Slizov 997f7bc6e4 refactoring: fix panic when empty return type 2020-12-04 22:13:12 +02:00
Vadym Slizov 40b944a272 [refactoring] update ast structure of "ClassConstList", "Constant", "Use", "GroupUse", "UseDeclaration", "Closure", "Name", "FullyQualified", "Relative" and "NamePart" nodes 2020-12-04 14:38:47 +02:00
Vadym Slizov 94897d8c66 [refactoring] remove *FreeFloating* functions 2020-12-04 13:10:12 +02:00
Vadym Slizov af968a7c3b [refactoring] update "ParserBrackets" nodes 2020-12-04 12:58:56 +02:00
Vadym Slizov ea3c5298e2 [refactoring] update ast structure of "For", "TraitUseAlias" and "TraitUsePrecedence" nodes 2020-12-04 12:49:13 +02:00
Vadym Slizov 132db0e06b [refactoring] update ast structure of "ClassMethod", "Function", "ArrowFunction" and "Closure" nodes 2020-12-04 12:22:06 +02:00
Vadym Slizov f3203c0b5f [refactoring] update ast structure of "Parameter", "Class", "FunctionCall", "MethodCall", "New" and "StaticCall" nodes 2020-12-04 11:36:12 +02:00
Vadym Slizov df1626b7dc [refactoring] update ast structure of "Root" and "Class" nodes 2020-12-04 11:02:38 +02:00
Vadym Slizov d19b3f609e [refactoring] update ast structure of "Assign" and "Binary" nodes 2020-12-04 10:40:48 +02:00
Vadym Slizov 5a6418e853 [refactoring] update ast structure of "Yield", "YieldFrom" and "Cast" nodes 2020-12-04 09:42:45 +02:00
Vadym Slizov 01d695c416 [refactoring] update ast structure of "ArrayDimFetch", "UnaryMinus", "ExprUnaryPlus" and "Variable" nodes 2020-12-04 00:13:28 +02:00
Vadym Slizov 13436b88a7 [refactoring] update ast structure of "ShellExec", "StaticCall", "StaticPropertyFetch" and "Ternary" nodes 2020-12-03 22:41:08 +02:00
Vadym Slizov 592c9b9aff [refactoring] update ast structure of "Print", "Reference", "Require" and "RequireOnce" nodes 2020-12-03 22:20:50 +02:00
Vadym Slizov 45e959056b [refactoring] update ast structure of "PostDec", "PostInc", "PreDec", "PreInc" and "New" nodes 2020-12-03 22:04:59 +02:00
Vadym Slizov b1e9f5e167 [refactoring] update ast structure of "ExprMethodCall" and "ExprPropertyFetch" nodes 2020-12-03 21:42:16 +02:00
Vadym Slizov b5ef30eb36 [refactoring] update ast structure of "InstanceOf" and "Isset" nodes 2020-12-01 12:16:46 +02:00
Vadym Slizov 9b122de8bf [refactoring] update ast structure of "Eval", "Exit", "FunctionCall", "Include" and "IncludeOnce" nodes 2020-12-01 11:58:09 +02:00
Vadym Slizov 2d240e9475 [refactoring] update ast structure of "ClosureUse", "ConstFetch", "Empty" and "ErrorSuppress" nodes 2020-12-01 11:12:56 +02:00
Vadym Slizov b90400d993 [refactoring] update ast structure of "BitwiseNot", "BooleanNot", "ClassConstFetch" and "Clone" nodes 2020-12-01 09:51:47 +02:00
Vadym Slizov 4b8d431767 [refactoring] update ast structure of "ArrayDimFetch" and "ArrayItem" nodes 2020-12-01 00:43:03 +02:00
Vadym Slizov 47b974a3a4 [refactoring] update ast structure of "array" and "list" nodes 2020-11-30 23:42:56 +02:00
Vadym Slizov 43f6fab862 [refactoring] update ast structure of "StmtPropertyList", "StmtTraitAdaptationList", "StmtTraitMethodRef" and "StmtTraitUseAlias" nodes 2020-11-29 21:51:46 +02:00
Vadym Slizov 5bd63d90ba [refactoring] update ast structure of "StmtExpression", "StmtInterface" and "StmtProperty" nodes 2020-11-22 18:54:13 +02:00
Vadym Slizov 2d6ae3a9a2 [refactoring] update ast structure of "ClassMethod", "Function", "ArrowFunction" and "Closure" nodes 2020-11-22 14:26:24 +02:00
Vadym Slizov 4c54c56af5 [refactoring] update ast structure of "ClassExtends", "ClassImplements", "InterfaceExtends", "StmtTraitUse" and "StmtTraitUsePrecedence" nodes 2020-11-22 13:02:36 +02:00
Vadym Slizov fe2e097d8f [refactoring] update ast structure of "Class" and "Trait" nodes 2020-11-22 02:03:39 +02:00
Vadym Slizov 3bda40e8ce [refactoring] update ast structure of "MagicConstant" and "String" nodes 2020-11-20 23:53:58 +02:00
Vadym Slizov e6a23dfa3a [refactoring] update ast structure of "Encapsed", "EncapsedStringPart" and "Heredoc" nodes 2020-11-20 23:36:45 +02:00
Vadym Slizov e3ad9747f4 [refactoring] update ast structure of "Lnumber" and "Dnumber" nodes 2020-11-20 23:08:30 +02:00
Vadym Slizov 7e2965f53b [refactoring] update ast structure of "Argument" and "ArgumentList" nodes 2020-11-20 22:57:27 +02:00
Vadym Slizov 73d819eb6c [refactoring] update ast structure of parameter "Parameter" node 2020-11-20 22:25:37 +02:00
Vadym Slizov ddb9f3b985 [refactoring] update ast structure of parameter "Variadic" and "Reference" nodes 2020-11-20 22:17:13 +02:00
Vadym Slizov 43ace92875 [refactoring] update ast structure of "Nullable" 2020-11-20 22:07:58 +02:00
Vadym Slizov bf3ae74d56 [refactoring] update ast structure of "Identifier" 2020-11-20 22:02:36 +02:00
Vadym SlizovandGitHub 0cd26d7f4b Merge pull request #116 from quasilyte/quasilyte/fix/pretty_printer_array_item_unpack
printer: handle array item unpack in pretty printer
2020-09-03 22:21:20 +03:00
Vadym SlizovandGitHub cbf185c8f4 Merge pull request #115 from z7zmey/feature-110
[#105] fix counting newlines in strings
2020-07-26 19:15:21 +02:00
Vadym SlizovandGitHub 17d7cec2fa Merge pull request #114 from z7zmey/feature-110
[#110] fix json dumper
2020-07-26 16:11:08 +02:00
Vadym SlizovandGitHub db09dd443f Merge pull request #109 from azhai/hotfix/override-root-stmts
Do not override Stmts in printNodeRoot()
2020-07-26 14:57:08 +02:00
Vadym SlizovandGitHub 234d258436 Merge pull request #113 from z7zmey/feature-111
[#111] cover by a unit test a property type name resolving
2020-07-26 14:43:40 +02:00
Vadym SlizovandGitHub 70e5fa4db5 Merge pull request #112 from tylerchr/nsr-typed-properties
#111 NamespaceResolver: Resolve PHP 7.4 class property types
2020-07-26 14:39:12 +02:00
Vadym SlizovandGitHub ee48d84609 Merge pull request #108 from z7zmey/issue-107
Fix infinite loop for "$foo$"
2020-06-14 23:43:52 +03:00
Vadym SlizovandGitHub 5b5e414359 Merge pull request #103 from z7zmey/dev
merge dev to master
2020-03-09 13:36:33 +02:00
z7zmey e27faddfa5 change //line comments to fix debug information 2020-01-08 09:47:23 +02:00
Vadym SlizovandGitHub 7ad2a2c24f Merge pull request #102 from z7zmey/issue-101
fix constant string fail "{\"
2020-01-08 09:35:32 +02:00
z7zmey 003ee67a86 [#101] fix constant string "{\"" 2020-01-08 09:31:40 +02:00
Vadym SlizovandGitHub 2bf270c61b Merge pull request #100 from z7zmey/issue-82
Merge issue-82 to dev
2019-12-30 00:31:45 +02:00
z7zmey 31052588b1 [#82] add support of shebang 2019-12-30 00:20:20 +02:00
z7zmey 4a518d9e5d [#82] %left ... T_COALESCE_EQUAL 2019-12-29 23:14:25 +02:00
z7zmey d552681a7d [#82] array item unpack 2019-12-29 22:42:52 +02:00