Repository navigation
feat: Support for parsing scopes - #142
Merged
Merged
Conversation
loewenheim
marked this pull request as ready for review
November 25, 2026 14:10
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 4 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 58b51a9. Configure here.
This reverts commit 82c3ab3. This fix has been moved to its own PR.
Dav1dde
reviewed
Nov 25, 2026
Dav1dde
approved these changes
Nov 25, 2026
kdy1
added a commit
to swc-project/swc-sourcemap
that referenced
this pull request
Nov 27, 2026
## Summary Merge upstream `getsentry/rust-sourcemap` `master` (head `499ada5`) into the fork. The merge uses a merge commit. Merged upstream commits: - `f80828d` feat: Support for parsing scopes (getsentry#142) - `499ada5` fix: Also fix VLQ bug during encoding (getsentry#144) ## Conflict resolution - `src/types/mod.rs`: The fork's `Cow` and `BytesStr` changes stay. The upstream `BTreeMap` import and `scopes` field are added. The upstream removal of `#[allow(clippy::ptr_arg)]` on `create_ranges` is applied. - `src/types/scope.rs`: `OriginalScope::get_name` and `OriginalScope::get_kind` now return `Option<&BytesStr>`. This matches the fork's `SourceMap::get_name` API. ## Validation Local checks on the merge commit: `cargo build --all-targets` and `cargo test --all-features` pass. `cargo fmt --check` passes after formatting. `cargo clippy` is not installed for the local toolchain, so it did not run. CI has not run yet.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This implements part of https://tc39.es/ecma426/branch/proposal-scopes/. It only handles parsing scopes and returning them for sourcemaps, but doesn't handle:
Also, I don't have any real tests yet because I don't have a sourcemap with scope information available.
ref: #140. ref: RUSTSM-18.