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

Method parseAction

packages/compiler/src/expression_parser/parser.ts:108–129  ·  view source on GitHub ↗
(
    input: string,
    parseSourceSpan: ParseSourceSpan,
    absoluteOffset: number,
  )

Source from the content-addressed store, hash-verified

106 ) {}
107
108 parseAction(
109 input: string,
110 parseSourceSpan: ParseSourceSpan,
111 absoluteOffset: number,
112 ): ASTWithSource {
113 const errors: ParseError[] = [];
114 this._checkNoInterpolation(errors, input, parseSourceSpan);
115 const {stripped: sourceToLex} = this._stripComments(input);
116 const tokens = this._lexer.tokenize(sourceToLex);
117 const ast = new _ParseAST(
118 input,
119 parseSourceSpan,
120 absoluteOffset,
121 tokens,
122 ParseFlags.Action,
123 errors,
124 0,
125 this._supportsDirectPipeReferences,
126 ).parseChain();
127
128 return new ASTWithSource(ast, input, getLocation(parseSourceSpan), absoluteOffset, errors);
129 }
130
131 parseBinding(
132 input: string,

Callers 3

parseActionFunction · 0.80
parseActionFunction · 0.80
_parseActionMethod · 0.80

Calls 5

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

Tested by

no test coverage detected