package org.spoofax.jsglr.client;

public class TokenOffset {

    public static final int NONE = -2;

    private int token;
    private int offset;
    private char tokenChar;

    public TokenOffset() {
        token = NONE;
        offset = -1;
        tokenChar = (char) NONE;
    }

    public TokenOffset(int token, int offset) {
        this.token = token;
        this.offset = offset;
        tokenChar = (char) token;
    }

    public int getToken() {
        return token;
    }

    public void setToken(int token) {
        this.token = token;
        this.tokenChar = (char) token;
    }

    public int getOffset() {
        return offset;
    }

    public void setOffset(int offset) {
        this.offset = offset;

    }

    @Override public String toString() {
        // TODO Auto-generated method stub
        return "token: " + token + "\ntokenchar: " + (char) token + "\noffset: " + offset;
    }



}

@@ -146,36 +146,8 @@
 set;
-%0A    private char tokenChar;
 %0A%0A  
@@ -218,41 +218,8 @@
 -1;%0A
-        tokenChar = (char) NONE;%0A
     
@@ -331,42 +331,8 @@
 et;%0A
-        tokenChar = (char) token;%0A
     
@@ -425,24 +425,24 @@
 nt token) %7B%0A
+
         this
@@ -461,47 +461,8 @@
 en;%0A
-        this.tokenChar = (char) token;%0A
     

Remove unused field TokenOffset.tokenChar