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

Method scanRegexFlags

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

Source from the content-addressed store, hash-verified

747 }
748
749 private scanRegexFlags(start: number): Token | null {
750 if (!chars.isAsciiLetter(this.peek)) {
751 return null;
752 }
753
754 while (chars.isAsciiLetter(this.peek)) {
755 this.advance();
756 }
757
758 return newRegExpFlagsToken(start, this.index, this.input.substring(start, this.index));
759 }
760}
761
762function isIdentifierStart(code: number): boolean {

Callers 1

scanRegexMethod · 0.95

Calls 2

advanceMethod · 0.95
newRegExpFlagsTokenFunction · 0.85

Tested by

no test coverage detected