Merge branch 'master' into refactoring

This commit is contained in:
Vadym Slizov
2020-07-29 22:23:44 +02:00
9 changed files with 5899 additions and 4548 deletions

View File

@@ -1170,8 +1170,7 @@ func TestPhp7ParameterNode(t *testing.T) {
},
},
},
Stmts: []ast.Vertex{
},
Stmts: []ast.Vertex{},
},
&ast.StmtClass{
Node: ast.Node{
@@ -1409,8 +1408,7 @@ func TestPhp7ParameterNode(t *testing.T) {
EndPos: 116,
},
},
Stmts: []ast.Vertex{
},
Stmts: []ast.Vertex{},
},
},
},
@@ -1606,8 +1604,7 @@ func TestPhp7ParameterNode(t *testing.T) {
},
},
},
Stmts: []ast.Vertex{
},
Stmts: []ast.Vertex{},
},
},
&ast.StmtExpression{
@@ -1802,14 +1799,12 @@ func TestPhp7ParameterNode(t *testing.T) {
},
},
},
Stmts: []ast.Vertex{
},
Stmts: []ast.Vertex{},
},
},
},
}
lexer := scanner.NewLexer([]byte(src), "7.4", false, nil)
php7parser := php7.NewParser(lexer, nil)
php7parser.Parse()