MCPcopy Create free account
hub / github.com/chibash/stone / location

Method location

src/stone/ParseException.java:11–16  ·  view source on GitHub ↗
(Token t)

Source from the content-addressed store, hash-verified

9 super("syntax error around " + location(t) + ". " + msg);
10 }
11 private static String location(Token t) {
12 if (t == Token.EOF)
13 return "the last line";
14 else
15 return "\"" + t.getText() + "\" at line " + t.getLineNumber();
16 }
17 public ParseException(IOException e) {
18 super(e);
19 }

Callers 1

ParseExceptionMethod · 0.95

Calls 2

getLineNumberMethod · 0.80
getTextMethod · 0.45

Tested by

no test coverage detected