Skip to content

Commit 86da1af

Browse files
committed
Update documentation for expressions
1 parent 1ffb4dd commit 86da1af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/scopes.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,11 @@ export interface GeneratedRange {
8585
* or an array of `BindingRange`s, e.g. if computing the value requires different expressions
8686
* throughout the range or if the variable is only available in parts of the `GeneratedRange`.
8787
*
88-
* `undefined` denotes that the value of a variable is unavailble in the whole range.
88+
* When a value uses `BindingRange[]`, then the "from" of the first `BindingRange` and the
89+
* "to" of the last `BindingRange` are equal to the GeneratedRange's "start" and "end" position
90+
* respectively.
91+
*
92+
* `undefined` denotes that the value of a variable is unavailable in the whole range.
8993
* This can happen e.g. if the variable was optimized out and can't be recomputed.
9094
*/
9195
values: (string | undefined | BindingRange[])[];

0 commit comments

Comments
 (0)