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

Method scanPlusOrMinus

packages/compiler/src/expression_parser/lexer.ts:634–648  ·  view source on GitHub ↗
(start: number, code: number)

Source from the content-addressed store, hash-verified

632 }
633
634 private scanPlusOrMinus(start: number, code: number): Token {
635 const char = String.fromCharCode(code);
636 this.advance();
637 let operator = char;
638
639 if (this.peek === code) {
640 operator += char;
641 this.advance();
642 } else if (this.peek === chars.$EQ) {
643 operator += '=';
644 this.advance();
645 }
646
647 return newOperatorToken(start, this.index, operator);
648 }
649
650 private scanStar(start: number): Token {
651 this.advance();

Callers 1

scanTokenMethod · 0.95

Calls 2

advanceMethod · 0.95
newOperatorTokenFunction · 0.85

Tested by

no test coverage detected