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

Method _parseBindingAst

packages/compiler/src/expression_parser/parser.ts:166–184  ·  view source on GitHub ↗
(
    input: string,
    parseSourceSpan: ParseSourceSpan,
    absoluteOffset: number,
    errors: ParseError[],
  )

Source from the content-addressed store, hash-verified

164 }
165
166 private _parseBindingAst(
167 input: string,
168 parseSourceSpan: ParseSourceSpan,
169 absoluteOffset: number,
170 errors: ParseError[],
171 ): AST {
172 this._checkNoInterpolation(errors, input, parseSourceSpan);
173 const {stripped: sourceToLex} = this._stripComments(input);
174 const tokens = this._lexer.tokenize(sourceToLex);
175 return new _ParseAST(
176 input,
177 parseSourceSpan,
178 absoluteOffset,
179 tokens,
180 ParseFlags.None,
181 errors,
182 0,
183 ).parseChain();
184 }
185
186 /**
187 * Parse microsyntax template expression and return a list of bindings or

Callers 2

parseBindingMethod · 0.95
parseSimpleBindingMethod · 0.95

Calls 4

_checkNoInterpolationMethod · 0.95
_stripCommentsMethod · 0.95
parseChainMethod · 0.80
tokenizeMethod · 0.45

Tested by

no test coverage detected