MCPcopy Index your code
hub / github.com/aiscript-dev/aiscript / skipCommentRange

Method skipCommentRange

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

Source from the content-addressed store, hash-verified

721 }
722
723 private skipCommentRange(): void {
724 while (true) {
725 if (this.stream.eof) {
726 throw new AiScriptUnexpectedEOFError(this.stream.getPos());
727 }
728 if (this.stream.char === '*') {
729 this.stream.next();
730 if (this.stream.eof) {
731 throw new AiScriptUnexpectedEOFError(this.stream.getPos());
732 }
733 if ((this.stream.char as string) === '/') {
734 this.stream.next();
735 break;
736 }
737 continue;
738 }
739 this.stream.next();
740 }
741 }
742}

Callers 2

readTokenMethod · 0.95
skipEmptyLinesMethod · 0.95

Calls 2

getPosMethod · 0.65
nextMethod · 0.65

Tested by

no test coverage detected