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

Method scanRegexFlags

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

Source from the content-addressed store, hash-verified

732 }
733
734 private scanRegexFlags(start: number): Token | null {
735 if (!chars.isAsciiLetter(this.peek)) {
736 return null;
737 }
738
739 while (chars.isAsciiLetter(this.peek)) {
740 this.advance();
741 }
742
743 return newRegExpFlagsToken(start, this.index, this.input.substring(start, this.index));
744 }
745}
746
747function isIdentifierStart(code: number): boolean {

Callers 1

scanRegexMethod · 0.95

Calls 2

advanceMethod · 0.95
newRegExpFlagsTokenFunction · 0.85

Tested by

no test coverage detected