[refactoring] update ast structure of "Root" and "Class" nodes
This commit is contained in:
1053
internal/php5/php5.go
generated
1053
internal/php5/php5.go
generated
File diff suppressed because it is too large
Load Diff
@@ -267,10 +267,13 @@ import (
|
||||
start:
|
||||
top_statement_list
|
||||
{
|
||||
yylex.(*Parser).rootNode = &ast.Root{ast.Node{}, $1}
|
||||
yylex.(*Parser).rootNode.GetNode().Position = position.NewNodeListPosition($1)
|
||||
|
||||
yylex.(*Parser).setFreeFloating(yylex.(*Parser).rootNode, token.End, yylex.(*Parser).currentToken.SkippedTokens)
|
||||
yylex.(*Parser).rootNode = &ast.Root{
|
||||
Node: ast.Node{
|
||||
Position: position.NewNodeListPosition($1),
|
||||
},
|
||||
Stmts: $1,
|
||||
EndTkn: yylex.(*Parser).currentToken,
|
||||
}
|
||||
}
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user