Skip to content

feat: Add ElseRange to IfExpression and ContentsRange to RawElement#1402

Open
whalenrp wants to merge 1 commit into
a-h:mainfrom
whalenrp:sourcemap-coverage
Open

feat: Add ElseRange to IfExpression and ContentsRange to RawElement#1402
whalenrp wants to merge 1 commit into
a-h:mainfrom
whalenrp:sourcemap-coverage

Conversation

@whalenrp

Copy link
Copy Markdown
Contributor

This adds two additional ranges, following the pattern of the prior diffs to expand the AST.

ElseRange records the source range of the "} else {" keyword on IfExpression. The field is empty when no else clause is present.

ContentsRange records the range of the text content inside a RawElement, from the first byte after the open tag to the byte immediately before the closing tag.

Both fields follow the Range-field convention started with #586

This adds two additional ranges, following the pattern of the prior
diffs to expand the AST.

**ElseRange** records the source range of the "} else {" keyword on
IfExpression. The field is empty when no else clause is present.

**ContentsRange** records the range of the text content inside a
RawElement, from the first byte after the open tag to
the byte immediately before the closing tag.

Both fields follow the Range-field convention started with a-h#586
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant