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

Method expectOperator

packages/compiler/src/expression_parser/parser.ts:744–747  ·  view source on GitHub ↗
(operator: string)

Source from the content-addressed store, hash-verified

742 }
743
744 private expectOperator(operator: string) {
745 if (this.consumeOptionalOperator(operator)) return;
746 this.error(`Missing expected operator ${operator}`);
747 }
748
749 private prettyPrintToken(tok: Token): string {
750 return tok === EOF ? 'end of input' : `token ${tok}`;

Callers 1

parseArrowFunctionMethod · 0.95

Calls 2

errorMethod · 0.95

Tested by

no test coverage detected