public Object create(Token payload) { if (payload.getTokenIndex() < 0) { // could be token conjured up during error recovery return create(payload.getType(), payload.getText()); } Object node = adaptor.create(payload); dbg.createNode(node, payload); return node; }
public Object create(int tokenType, String text) { Object node = adaptor.create(tokenType, text); dbg.createNode(node); return node; }
public Object create(int tokenType, Token fromToken) { Object node = adaptor.create(tokenType, fromToken); dbg.createNode(node); return node; }