MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / tryReadIdentifierStart

Method tryReadIdentifierStart

src/parser/scanner.ts:434–448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

432 }
433
434 private tryReadIdentifierStart(): string | undefined {
435 if (this.stream.eof) {
436 return;
437 }
438 if (identifierStart.test(this.stream.char)) {
439 const value = this.stream.char;
440 this.stream.next();
441 return value;
442 }
443 if (this.stream.char === '\\') {
444 this.stream.next();
445 return '\\' + this.readUnicodeEscapeSequence();
446 }
447 return;
448 }
449
450 private tryReadIdentifierPart(): string | undefined {
451 if (this.stream.eof) {

Callers 2

tryReadWordMethod · 0.95
tryReadIdentifierPartMethod · 0.95

Calls 2

nextMethod · 0.65

Tested by

no test coverage detected