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

Method scanStar

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

Source from the content-addressed store, hash-verified

633 }
634
635 private scanStar(start: number): Token {
636 this.advance();
637 // `*`, `**`, `**=` or `*=`
638 let operator = '*';
639
640 if (this.peek === chars.$STAR) {
641 operator += '*';
642 this.advance();
643
644 // @ts-expect-error
645 if (this.peek === chars.$EQ) {
646 operator += '=';
647 this.advance();
648 }
649 } else if (this.peek === chars.$EQ) {
650 operator += '=';
651 this.advance();
652 }
653
654 return newOperatorToken(start, this.index, operator);
655 }
656
657 private isStartOfRegex(): boolean {
658 if (this.tokens.length === 0) {

Callers 1

scanTokenMethod · 0.95

Calls 2

advanceMethod · 0.95
newOperatorTokenFunction · 0.85

Tested by

no test coverage detected