Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
sem: drop BlockStatement>trailingComments
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
  • Loading branch information
bzz committed Feb 25, 2019
1 parent 5c3ac68 commit e34922d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions driver/normalizer/normalizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ var Normalizers = []Mapping{
CommentNode(true, "comm", nil),
)),
MapSemantic("BlockStatement", uast.Block{}, MapObj(
Obj{
"body": Var("stmts"),
"directives": Arr(), // TODO: find an example
Fields{
{Name: "body", Op: Var("stmts")},
{Name: "directives", Op: Arr()}, // TODO: find an example
//FIXME(bzz): save this once we agree how
{Name: "trailingComments", Drop: true, Op: Any()},
},
Obj{
"Statements": Var("stmts"),
Expand Down

0 comments on commit e34922d

Please sign in to comment.