Registers a local variable with a scope.
(scope: Scope, variable: Variable, op: TcbOp)
| 280 | |
| 281 | /** Registers a local variable with a scope. */ |
| 282 | private static registerVariable(scope: Scope, variable: Variable, op: TcbOp): void { |
| 283 | const opIndex = scope.opQueue.push(op) - 1; |
| 284 | scope.varMap.set(variable, opIndex); |
| 285 | } |
| 286 | |
| 287 | /** |
| 288 | * Look up a `ts.Expression` representing the value of some operation in the current `Scope`, |