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

Method scanIdentifier

packages/compiler/src/expression_parser/lexer.ts:443–451  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

441 }
442
443 private scanIdentifier(): Token {
444 const start: number = this.index;
445 this.advance();
446 while (isIdentifierPart(this.peek)) this.advance();
447 const str: string = this.input.substring(start, this.index);
448 return KEYWORDS.indexOf(str) > -1
449 ? newKeywordToken(start, this.index, str)
450 : newIdentifierToken(start, this.index, str);
451 }
452
453 /** Scans an ECMAScript private identifier. */
454 private scanPrivateIdentifier(): Token {

Callers 1

scanTokenMethod · 0.95

Calls 5

advanceMethod · 0.95
isIdentifierPartFunction · 0.85
newKeywordTokenFunction · 0.85
newIdentifierTokenFunction · 0.85
indexOfMethod · 0.80

Tested by

no test coverage detected