#34 fix saving class node position
This commit is contained in:
parent
9f0d4b02c2
commit
63cdd2931b
855
php5/php5.go
855
php5/php5.go
File diff suppressed because it is too large
Load Diff
@ -1297,6 +1297,7 @@ unticked_class_declaration_statement:
|
||||
|
||||
// save position
|
||||
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition($2))
|
||||
yylex.(*Parser).positions.AddPosition($$, yylex.(*Parser).positionBuilder.NewNodeTokenPosition($1, $7))
|
||||
|
||||
// save comments
|
||||
yylex.(*Parser).comments.AddFromToken(name, $2, comment.StringToken)
|
||||
|
Loading…
Reference in New Issue
Block a user