Skip to content

Commit

Permalink
Merge pull request #1872 from romainmenke/add-source.end-to-root-node…
Browse files Browse the repository at this point in the history
…s--compassionate-liger-2778050e21

add `source.end` to `Root` nodes
  • Loading branch information
ai committed Aug 15, 2023
2 parents ec034e4 + 1bcc280 commit b352861
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 b352861

Please sign in to comment.