Registers a local variable with a scope.
(scope: Scope, variable: Variable, op: TcbOp)
| 267 | |
| 268 | /** Registers a local variable with a scope. */ |
| 269 | private static registerVariable(scope: Scope, variable: Variable, op: TcbOp): void { |
| 270 | const opIndex = scope.opQueue.push(op) - 1; |
| 271 | scope.varMap.set(variable, opIndex); |
| 272 | } |
| 273 | |
| 274 | /** |
| 275 | * Look up a `ts.Expression` representing the value of some operation in the current `Scope`, |