Merge pull request #35 from z7zmey/issue-34

#34 fix saving class node position
This commit is contained in:
Vadym Slizov 2018-06-08 11:00:10 +03:00 committed by GitHub
commit d21a0a3dc9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 429 additions and 427 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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)