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

Method visitExpansionCase

packages/compiler/src/i18n/extractor_merger.ts:146–159  ·  view source on GitHub ↗
(icuCase: html.ExpansionCase, context: any)

Source from the content-addressed store, hash-verified

144 }
145
146 visitExpansionCase(icuCase: html.ExpansionCase, context: any): any {
147 // Parse cases for translatable html attributes
148 const expression = html.visitAll(this, icuCase.expression, context);
149
150 if (this._mode === _VisitorMode.Merge) {
151 return new html.ExpansionCase(
152 icuCase.value,
153 expression,
154 icuCase.sourceSpan,
155 icuCase.valueSourceSpan,
156 icuCase.expSourceSpan,
157 );
158 }
159 }
160
161 visitExpansion(icu: html.Expansion, context: any): html.Expansion {
162 this._mayBeAddBlockChildren(icu);

Callers

nothing calls this directly

Calls 1

visitAllMethod · 0.45

Tested by

no test coverage detected