Commit Graph

28 Commits

Author SHA1 Message Date
Makhnev Petr
049ce7ddc6
PHP 8 (#1)
PHP 8 Update

- nullsafe operator (?->)
- Remove (real) cast
- Named arguments
- Remove (unset) cast
- Remove {} access
- match expression
- Union types in type hints and static typehint
- Block catch without variable
- Trailing comma in parameter lists
- throw can be used as an expression
- Concatenation precedence
- Declaring properties in the constructor
- Attributes
- Names in the namespace are treated as a single token
- Trailing comma in closure use list
- Check that ::class on object works
- Deferencable changes and arbitrary expressions in new/instanceof
2021-07-30 20:53:27 +03:00
Vadym Slizov
cb4b4e69c4
refactoring: fix naming 2020-12-28 23:01:02 +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
a593760569
refactoring: remove ExprReference node 2020-12-26 22:38:35 +02:00
Vadym Slizov
03c7979ccd
refactoring: remove StmtTraitAdaptationList node 2020-12-20 23:04:23 +02:00
Vadym Slizov
45ded326d0
[refactoring] remove ParserSeparatedList from visitor 2020-12-11 17:17:13 +02:00
Vadym Slizov
20a42da7c9
[refactoring] remove general Node struct 2020-12-08 00:04:12 +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
47b974a3a4
[refactoring] update ast structure of "array" and "list" nodes 2020-11-30 23:42:56 +02:00
Vadym Slizov
e78f0dc650 [refactoring] update ast structure of "Declare" and "ConstList" nodes 2020-09-14 19:25:38 +03:00
Vadym Slizov
69bc0af2be [refactoring] update ast structure of "Foreach" node 2020-09-14 18:36:55 +03:00
Vadym Slizov
f6cb2bff4d [refactoring] update ast structure of "Switch", "Case", "Default" nodes; remove "CaseList" node 2020-09-06 12:49:08 +03:00
Vadym Slizov
0e73cd8852 [refactoring] update ast structure of "For" node 2020-09-04 11:37:17 +03:00
Vadym Slizov
3b85f5e82b [refactoring] update ast structure of "While" node 2020-09-04 10:33:47 +03:00
Vadym Slizov
6976388a82 [refactoring] update ast structure of "If", "ElseIf", "Else" nodes 2020-09-03 22:18:06 +03:00
Vadym Slizov
767187ff85 [refactoring] update ast structure for "Use" and "GroupUse" nodes 2020-08-22 17:00:22 +03:00
Vadym Slizov
fd5d891037 [refactoring] add Parser nodes for use 2020-08-09 00:56:21 +02:00
Vadym Slizov
feebb017c4 [refactoring] update use ast structure 2020-08-03 21:22:53 +02:00
Vadym Slizov
ce18c23597 [refactoring] parameters: new node structure 2020-07-05 22:47:46 +03:00
Vadym Slizov
6a84d58ee6 refactor php7 2020-05-13 00:16:36 +03:00
Vadym Slizov
60f171bfa1 refactor token structure 2020-05-10 08:47:13 +03:00
Vadym Slizov
10e2a3f3f7 New AST structure 2020-05-10 08:17:24 +03:00