MCPcopy Create free account
hub / github.com/aurelia/binding / scanIdentifier

Method scanIdentifier

src/parser.js:381–389  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379 }
380
381 scanIdentifier() {
382 // run to the next non-idPart
383 while (AsciiIdParts.has(this.next())
384 // Note: "while(IdParts[this.next()])" would be enough to make this work. This is just a performance
385 // tweak, similar to the one in nextToken()
386 || (this.ch > 0x7F && IdParts[this.ch])) { } // eslint-disable-line no-empty
387
388 return KeywordLookup[this.val = this.raw] || T$Identifier;
389 }
390
391 scanNumber(isFloat) {
392 if (isFloat) {

Callers 4

nextTokenMethod · 0.95
parser.jsFile · 0.80
aurelia-binding.jsFile · 0.80
aurelia-binding.jsFile · 0.80

Calls 1

nextMethod · 0.95

Tested by

no test coverage detected