コード例 #1
0
 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;
 }
コード例 #2
0
 public void setTokenBoundaries(Object t, Token startToken, Token stopToken) {
   adaptor.setTokenBoundaries(t, startToken, stopToken);
   if (t != null && startToken != null && stopToken != null) {
     dbg.setTokenBoundaries(t, startToken.getTokenIndex(), stopToken.getTokenIndex());
   }
 }