MCPcopy Index your code
hub / github.com/angular/angular / registerVariable

Method registerVariable

packages/compiler/src/typecheck/ops/scope.ts:269–272  ·  view source on GitHub ↗

Registers a local variable with a scope.

(scope: Scope, variable: Variable, op: TcbOp)

Source from the content-addressed store, hash-verified

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`,

Callers 1

forNodesMethod · 0.80

Calls 2

setMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected