Skip to content

Commit

Permalink
Update kind to be an abitrary string in the names field
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Jun 25, 2024
1 parent 47b859a commit f3f1d11
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions proposals/scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ interface SourceMap {
interface OriginalScope {
start: OriginalPosition;
end: OriginalPosition;
kind: ScopeKind;
kind: string;
/** Class/module/function name. Can be used for stack traces or naming scopes in a debugger's scope view */
name?: string;
/** Symbols defined in this scope */
Expand Down Expand Up @@ -194,12 +194,8 @@ Note: Each DATA represents one VLQ number.
* Note: this is the point in the original code where the scope starts. `line` is relative to the `line` of the preceding "start/end original scope" item.
* DATA column in the original code
* Note: Column is always absolute.
* DATA kind
* DATA kind offset into `names` field
* Note: This is type of the scope.
* 0x1 toplevel
* 0x2 function
* 0x3 class
* 0x4 block
* DATA field flags
* Note: binary flags that specify if a field is used for this scope.
* Note: Unknown flags would skip the whole scope.
Expand Down

0 comments on commit f3f1d11

Please sign in to comment.