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

Method visitExpansionCase

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

visitAllMethod · 0.45

Tested by

no test coverage detected