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

Method parse

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

buildMethod · 0.95
tokenizeFunction · 0.90

Tested by

no test coverage detected