MCPcopy Create free account
hub / github.com/dynjs/dynjs / multiLineComment

Method multiLineComment

src/main/java/org/dynjs/parser/js/Lexer.java:653–672  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

651 }
652
653 protected void multiLineComment() {
654 consume();
655
656 while (true) {
657 int c = consume();
658 if (c < 0) {
659 throw new LexerException("unexpected end-of-file");
660 } else if (c == '\n') {
661 incrementLine();
662 } else if (c == '\r') {
663 if (la() == '\n') {
664 consume();
665 }
666 incrementLine();
667 } else if (c == '*' && la() == '/') {
668 consume();
669 return;
670 }
671 }
672 }
673
674 protected Token numericLiteral() {
675 int c = la();

Callers 1

nextTokenMethod · 0.95

Calls 3

consumeMethod · 0.95
incrementLineMethod · 0.95
laMethod · 0.95

Tested by

no test coverage detected