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

Method visitElement

packages/core/schematics/utils/parse_html.ts:143–152  ·  view source on GitHub ↗
(el: Element)

Source from the content-addressed store, hash-verified

141 count = 0;
142
143 override visitElement(el: Element): void {
144 if (el.attrs.length > 0) {
145 for (const attr of el.attrs) {
146 if (this.hasDirectives(attr.name) || this.hasPipes(attr.value)) {
147 this.count++;
148 }
149 }
150 }
151 super.visitElement(el, null);
152 }
153
154 override visitBlock(ast: Block): void {
155 for (const blockParam of ast.parameters) {

Callers

nothing calls this directly

Calls 3

hasDirectivesMethod · 0.95
hasPipesMethod · 0.95
visitElementMethod · 0.65

Tested by

no test coverage detected