Skip to content

feat(scopes): Parse ranges - #152

Open
loewenheim wants to merge 5 commits into
masterfrom
sebastian/parse-ranges
Open

loewenheim wants to merge 5 commits into
masterfrom
sebastian/parse-ranges

Conversation

@loewenheim

@loewenheim loewenheim commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

This adds parsing of ranges, as described in https://tc39.es/ecma426/branch/proposal-scopes.

Serializing them is left as future work.

ref: #140. ref: RUSTSM-18.

Comment thread src/decoder/scope.rs Resolved
Comment thread src/decoder/scope.rs Resolved
Comment thread src/decoder/scope.rs Resolved
@loewenheim
loewenheim force-pushed the sebastian/parse-ranges branch from 0637c0f to 75cc9eb Compare December 2, 2026 13:03
Comment thread src/decoder/scope.rs
Comment on lines -178 to +197
let current = match in_progress.pop() {
Some(current) => &mut out.all_scopes[current],
let current = match in_progress.last() {
Some(current) => &mut out.all_scopes[*current],

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated bug I found while implementing ranges.

Comment thread src/types/scope.rs
}
}

impl SourceMap {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block is just moved to later in the file.

@loewenheim loewenheim changed the title Parse ranges feat(scopes): Parse ranges Dec 2, 2026
@loewenheim
loewenheim marked this pull request as ready for review December 2, 2026 13:19
@linear-code

linear-code Bot commented Dec 2, 2026

Copy link
Copy Markdown

RUSTSM-18

@loewenheim
loewenheim requested a review from a team December 2, 2026 13:19

This branch has not been deployed

No deployments
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.

2 participants