MCPcopy Create free account
hub / github.com/angular/angular / visitVariable

Method visitVariable

packages/compiler/src/indexer/template.ts:103–109  ·  view source on GitHub ↗
(variable: t.Variable)

Source from the content-addressed store, hash-verified

101 super.visitReference(reference);
102 }
103 override visitVariable(variable: t.Variable) {
104 const variableIdentifier = this.targetToIdentifier(variable);
105 if (variableIdentifier !== null) {
106 this.identifiers.add(variableIdentifier);
107 }
108 super.visitVariable(variable);
109 }
110
111 override visitLetDeclaration(decl: t.LetDeclaration): void {
112 const identifier = this.targetToIdentifier(decl);

Callers

nothing calls this directly

Calls 3

targetToIdentifierMethod · 0.95
addMethod · 0.65
visitVariableMethod · 0.65

Tested by

no test coverage detected