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

Method parse

packages/compiler/src/i18n/i18n_html_parser.ts:58–66  ·  view source on GitHub ↗
(source: string, url: string, options: TokenizeOptions = {})

Source from the content-addressed store, hash-verified

56 }
57
58 parse(source: string, url: string, options: TokenizeOptions = {}): ParseTreeResult {
59 const parseResult = this._htmlParser.parse(source, url, {...options});
60
61 if (parseResult.errors.length) {
62 return new ParseTreeResult(parseResult.rootNodes, parseResult.errors);
63 }
64
65 return mergeTranslations(parseResult.rootNodes, this._translationBundle, [], {});
66 }
67}
68
69function createSerializer(format?: string): Serializer {

Callers

nothing calls this directly

Calls 2

mergeTranslationsFunction · 0.90
parseMethod · 0.65

Tested by

no test coverage detected