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

Method expectOperator

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

Source from the content-addressed store, hash-verified

761 }
762
763 private expectOperator(operator: string) {
764 if (this.consumeOptionalOperator(operator)) return;
765 this.error(`Missing expected operator ${operator}`);
766 }
767
768 private prettyPrintToken(tok: Token): string {
769 return tok === EOF ? 'end of input' : `token ${tok}`;

Callers 1

parseArrowFunctionMethod · 0.95

Calls 2

errorMethod · 0.95

Tested by

no test coverage detected