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

Method maybeDeclare

packages/compiler/src/render3/view/t2_binder.ts:477–482  ·  view source on GitHub ↗
(thing: TemplateEntity)

Source from the content-addressed store, hash-verified

475 }
476
477 private maybeDeclare(thing: TemplateEntity) {
478 // Declare something with a name, as long as that name isn't taken.
479 if (!this.namedEntities.has(thing.name)) {
480 this.namedEntities.set(thing.name, thing);
481 }
482 }
483
484 /**
485 * Look up a variable within this `Scope`.

Callers 3

visitVariableMethod · 0.95
visitReferenceMethod · 0.95
visitLetDeclarationMethod · 0.95

Calls 2

hasMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected