Skip to content

Commit

Permalink
add source.end to Root nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Aug 15, 2023
1 parent 7d51976 commit 1bcc280
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ class Parser {
this.current.raws.semicolon = this.semicolon
}
this.current.raws.after = (this.current.raws.after || '') + this.spaces
this.root.source.end = this.getPosition(this.tokenizer.position())
}

freeSemicolon(token) {
Expand Down

0 comments on commit 1bcc280

Please sign in to comment.