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

Method scanIdentifier

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

Source from the content-addressed store, hash-verified

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