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

Method scanEquals

packages/compiler/src/expression_parser/lexer.ts:426–442  ·  view source on GitHub ↗
(start: number)

Source from the content-addressed store, hash-verified

424 }
425
426 private scanEquals(start: number): Token {
427 this.advance();
428 let str: string = '=';
429 if (this.peek === chars.$EQ) {
430 this.advance();
431 str += '=';
432 } else if (this.peek === chars.$GT) {
433 this.advance();
434 str += '>';
435 return newOperatorToken(start, this.index, str);
436 }
437 if (this.peek === chars.$EQ) {
438 this.advance();
439 str += '=';
440 }
441 return newOperatorToken(start, this.index, str);
442 }
443
444 private scanIdentifier(): Token {
445 const start: number = this.index;

Callers 1

scanTokenMethod · 0.95

Calls 2

advanceMethod · 0.95
newOperatorTokenFunction · 0.85

Tested by

no test coverage detected