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

Method parseAction

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

Source from the content-addressed store, hash-verified

103 constructor(private readonly _lexer: Lexer) {}
104
105 parseAction(
106 input: string,
107 parseSourceSpan: ParseSourceSpan,
108 absoluteOffset: number,
109 ): ASTWithSource {
110 const errors: ParseError[] = [];
111 this._checkNoInterpolation(errors, input, parseSourceSpan);
112 const {stripped: sourceToLex} = this._stripComments(input);
113 const tokens = this._lexer.tokenize(sourceToLex);
114 const ast = new _ParseAST(
115 input,
116 parseSourceSpan,
117 absoluteOffset,
118 tokens,
119 ParseFlags.Action,
120 errors,
121 0,
122 ).parseChain();
123
124 return new ASTWithSource(ast, input, getLocation(parseSourceSpan), absoluteOffset, errors);
125 }
126
127 parseBinding(
128 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