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

Method _init

packages/compiler/src/i18n/extractor_merger.ts:276–293  ·  view source on GitHub ↗
(mode: _VisitorMode)

Source from the content-addressed store, hash-verified

274 }
275
276 private _init(mode: _VisitorMode): void {
277 this._mode = mode;
278 this._inI18nBlock = false;
279 this._inI18nNode = false;
280 this._depth = 0;
281 this._inIcu = false;
282 this._msgCountAtSectionStart = undefined;
283 this._errors = [];
284 this._messages = [];
285 this._inImplicitNode = false;
286 this._createI18nMessage = createI18nMessageFactory(
287 // When dropping significant whitespace we need to retain whitespace tokens or
288 // else we won't be able to reuse source spans because empty tokens would be
289 // removed and cause a mismatch.
290 /* retainEmptyTokens */ !this._preserveSignificantWhitespace,
291 /* preserveExpressionWhitespace */ this._preserveSignificantWhitespace,
292 );
293 }
294
295 private _visitElementLike<T extends html.Element | html.Component>(
296 node: T,

Callers 2

extractMethod · 0.95
mergeMethod · 0.95

Calls 1

createI18nMessageFactoryFunction · 0.90

Tested by

no test coverage detected