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

Method _parseBindingAst

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

Source from the content-addressed store, hash-verified

168 }
169
170 private _parseBindingAst(
171 input: string,
172 parseSourceSpan: ParseSourceSpan,
173 absoluteOffset: number,
174 errors: ParseError[],
175 ): AST {
176 this._checkNoInterpolation(errors, input, parseSourceSpan);
177 const {stripped: sourceToLex} = this._stripComments(input);
178 const tokens = this._lexer.tokenize(sourceToLex);
179 return new _ParseAST(
180 input,
181 parseSourceSpan,
182 absoluteOffset,
183 tokens,
184 ParseFlags.None,
185 errors,
186 0,
187 this._supportsDirectPipeReferences,
188 ).parseChain();
189 }
190
191 /**
192 * 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