You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.setScopeKind("Function") // Same as passing 'kind' to 'addScope'.
47
-
.setScopeName("foo") // Same as passing 'name' to 'addScope'.
46
+
.startScope(0, 0, { kind:"Global" })
47
+
.startScope(5, 10)
48
+
.setScopeKind("Function") // Same as passing 'kind' to 'startScope'.
49
+
.setScopeName("foo") // Same as passing 'name' to 'startScope'.
48
50
.endScope(10, 5)
49
51
.endScope(11, 1)
50
-
.addRange(0, 0, { scope:0 })
51
-
.addRange(0, 10)
52
-
.setRangeScopeDefinition(1) // Same as passing 'scope' to 'addRange'.
52
+
.startRange(0, 0, { scope:0 })
53
+
.startRange(0, 10)
54
+
.setRangeScopeDefinition(1) // Same as passing 'scope' to 'startRange'.
53
55
.endRange(0, 15)
54
56
.endRange(1, 1)
55
57
.build();
56
58
```
57
59
58
60
There is also a `SafeScopeInfoBuilder` that checks that scopes and ranges are well nested and some other integrity constraints (e.g. definition scopes are known).
61
+
62
+
## Missing features
63
+
64
+
The library is currently missing support for encoding/decoding sub-range bindings. It will be added in the next release.
0 commit comments