@@ -0,0 +1,730 @@
+package net.zero918nobita.Xemime.ast;%0A%0Aimport net.zero918nobita.Xemime.parser.Token;%0A%0Apublic class Location %7B%0A    protected String sourceName;%0A    protected XToken token;%0A%0A    public Location(String sourceName, XToken token) %7B%0A        this.sourceName = sourceName;%0A        this.token = token;%0A    %7D%0A%0A    public Location(String sourceName, Token token) %7B%0A        this(sourceName, new XToken(token));%0A    %7D%0A%0A    public String sourceName() %7B%0A        return sourceName;%0A    %7D%0A%0A    public XToken token() %7B%0A        return token;%0A    %7D%0A%0A    public int lineno() %7B%0A        return token.lineno();%0A    %7D%0A%0A    public int column() %7B%0A        return token.column();%0A    %7D%0A%0A    public String line() %7B%0A        return token.includedLine();%0A    %7D%0A%7D%0A

Add Location