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

Method scanEquals

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

Source from the content-addressed store, hash-verified

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

Callers 1

scanTokenMethod · 0.95

Calls 2

advanceMethod · 0.95
newOperatorTokenFunction · 0.85

Tested by

no test coverage detected