Merge pull request #35 from z7zmey/issue-34
#34 fix saving class node position
This commit is contained in:
commit
d21a0a3dc9
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
|
// save position
|
||||||
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition($2))
|
yylex.(*Parser).positions.AddPosition(name, yylex.(*Parser).positionBuilder.NewTokenPosition($2))
|
||||||
|
yylex.(*Parser).positions.AddPosition($$, yylex.(*Parser).positionBuilder.NewNodeTokenPosition($1, $7))
|
||||||
|
|
||||||
// save comments
|
// save comments
|
||||||
yylex.(*Parser).comments.AddFromToken(name, $2, comment.StringToken)
|
yylex.(*Parser).comments.AddFromToken(name, $2, comment.StringToken)
|
||||||
|
Loading…
Reference in New Issue
Block a user