package org.spoofax.jsglr2.parseforest;

import org.spoofax.jsglr.client.imploder.IToken;
import org.spoofax.jsglr2.parser.Position;

public abstract class AbstractParseForest {

    private final Position startPosition, endPosition;

    public IToken token, firstToken, lastToken;

    protected AbstractParseForest(Position startPosition, Position endPosition) {
        this.startPosition = startPosition;
        this.endPosition = endPosition;

        this.token = null;
        this.firstToken = null;
        this.lastToken = null;
    }

    public Position getStartPosition() {
        return startPosition;
    }

    public Position getEndPosition() {
        return endPosition;
    }

    public abstract String descriptor();

}

@@ -38,57 +38,8 @@
 t;%0A%0A
-import org.spoofax.jsglr.client.imploder.IToken;%0A
 impo
@@ -77,16 +77,16 @@
 sition;%0A
+
 %0Apublic 
@@ -183,57 +183,8 @@
 n;%0A%0A
-    public IToken token, firstToken, lastToken;%0A%0A
     
@@ -301,24 +301,24 @@
 rtPosition;%0A
+
         this
@@ -348,99 +348,8 @@
 ion;
-%0A%0A        this.token = null;%0A        this.firstToken = null;%0A        this.lastToken = null;
 %0A   

Remove tokens from parse forest