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

Method scanStar

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

Source from the content-addressed store, hash-verified

648 }
649
650 private scanStar(start: number): Token {
651 this.advance();
652 // `*`, `**`, `**=` or `*=`
653 let operator = '*';
654
655 if (this.peek === chars.$STAR) {
656 operator += '*';
657 this.advance();
658
659 // @ts-expect-error
660 if (this.peek === chars.$EQ) {
661 operator += '=';
662 this.advance();
663 }
664 } else if (this.peek === chars.$EQ) {
665 operator += '=';
666 this.advance();
667 }
668
669 return newOperatorToken(start, this.index, operator);
670 }
671
672 private isStartOfRegex(): boolean {
673 if (this.tokens.length === 0) {

Callers 1

scanTokenMethod · 0.95

Calls 2

advanceMethod · 0.95
newOperatorTokenFunction · 0.85

Tested by

no test coverage detected