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

Method parse

packages/compiler/src/ml_parser/parser.ts:75–80  ·  view source on GitHub ↗
(source: string, url: string, options?: TokenizeOptions)

Source from the content-addressed store, hash-verified

73 constructor(public getTagDefinition: (tagName: string) => TagDefinition) {}
74
75 parse(source: string, url: string, options?: TokenizeOptions): ParseTreeResult {
76 const tokenizeResult = tokenize(source, url, this.getTagDefinition, options);
77 const parser = new _TreeBuilder(tokenizeResult.tokens, this.getTagDefinition);
78 parser.build();
79 return new ParseTreeResult(parser.rootNodes, [...tokenizeResult.errors, ...parser.errors]);
80 }
81}
82
83class _TreeBuilder {

Callers

nothing calls this directly

Calls 2

buildMethod · 0.95
tokenizeFunction · 0.90

Tested by

no test coverage detected