/external/antlr/tool/src/main/java/org/antlr/tool/ |
D | Strip.java | 103 tokens.delete(a.token.getTokenIndex()); in rewrite() 104 killTrailingNewline(tokens, a.token.getTokenIndex()); in rewrite() 113 tokens.delete(a.token.getTokenIndex(), in rewrite() 114 ret.token.getTokenIndex()); in rewrite() 122 tokens.replace(a.token.getTokenIndex(), "/*"+a.getText()+"*/"); in rewrite() 165 tokens.delete(a.token.getTokenIndex()); // kill "id=" in rewrite() 166 tokens.delete(child.token.getTokenIndex()); in rewrite() 176 tokens.delete(a.token.getTokenIndex()); // kill "id+=" in rewrite() 177 tokens.delete(child.token.getTokenIndex()); in rewrite() 194 tokens.delete(a.token.getTokenIndex(), stop); in rewrite() [all …]
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/tree/ |
D | CommonErrorNode.java | 44 (stop.getTokenIndex() < start.getTokenIndex() && in CommonErrorNode() 73 int i = start.getTokenIndex(); in getText() 74 int j = stop.getTokenIndex(); in getText()
|
D | CommonTree.java | 121 return token.getTokenIndex(); in getTokenStartIndex() 134 return token.getTokenIndex(); in getTokenStopIndex() 151 startIndex = stopIndex = token.getTokenIndex(); in setUnknownTokenBoundaries()
|
D | CommonTreeAdaptor.java | 103 if ( startToken!=null ) start = startToken.getTokenIndex(); in setTokenBoundaries() 104 if ( stopToken!=null ) stop = stopToken.getTokenIndex(); in setTokenBoundaries()
|
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/tree/ |
D | CommonErrorNode.js | 3 (stop.getTokenIndex() < start.getTokenIndex() && 30 var i = this.start.getTokenIndex(); 31 var j = this.stop.getTokenIndex();
|
D | CommonTreeAdaptor.js | 76 if (startToken.getTokenIndex) { 77 start = startToken.getTokenIndex(); 85 if (stop.getTokenIndex) { 86 stop = stopToken.getTokenIndex();
|
D | CommonTree.js | 83 return this.token.getTokenIndex(); 94 return this.token.getTokenIndex();
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/ |
D | CommonToken.java | 76 index = oldToken.getTokenIndex(); in CommonToken() 170 public int getTokenIndex() { in getTokenIndex() method in CommonToken 204 …return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+type+">"+channelStr+","+line+":"+get… in toString()
|
D | ClassicToken.java | 121 public int getTokenIndex() { in getTokenIndex() method in ClassicToken 154 …return "[@"+getTokenIndex()+",'"+txt+"',<"+type+">"+channelStr+","+line+":"+getCharPositionInLine(… in toString()
|
D | TokenRewriteStream.java | 224 insertAfter(programName,t.getTokenIndex(), text); in insertAfter() 241 insertBefore(programName, t.getTokenIndex(), text); in insertBefore() 279 from.getTokenIndex(), in replace() 280 to.getTokenIndex(), in replace()
|
D | BufferedTokenStream.java | 272 return toString(start.getTokenIndex(), stop.getTokenIndex()); in toString()
|
D | Token.java | 81 public int getTokenIndex(); in getTokenIndex() method
|
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/ |
D | CommonToken.js | 16 this.index = oldToken.getTokenIndex(); 108 getTokenIndex: function() { method 138 …return "[@"+this.getTokenIndex()+","+this.start+":"+this.stop+"='"+txt+"',<"+this.type+">"+channel…
|
D | CommonTokenStream.js | 297 start = start.getTokenIndex(); 298 stop = stop.getTokenIndex();
|
/external/antlr/runtime/ObjC/Framework/ |
D | TokenRewriteStream.m | 281 [self insertAfterProgNam:DEFAULT_PROGRAM_NAME Index:[t getTokenIndex] Text:theText]; 306 [self insertBeforeProgName:DEFAULT_PROGRAM_NAME Index:[t getTokenIndex] Text:theText]; 335 …laceProgNam:DEFAULT_PROGRAM_NAME FromIndex:[anIndexT getTokenIndex] ToIndex:[anIndexT getTokenInde… 340 …elf replaceProgNam:DEFAULT_PROGRAM_NAME FromIndex:[from getTokenIndex] ToIndex:[to getTokenIndex] … 345 …[self replaceProgNam:programName FromIndex:[from getTokenIndex] ToIndex:[to getTokenIndex] Text:th… 371 …self delete:DEFAULT_PROGRAM_NAME FromIndex:[anIndexT getTokenIndex] ToIndex:[anIndexT getTokenInde… 376 [self delete:DEFAULT_PROGRAM_NAME FromIndex:[from getTokenIndex] ToIndex:[to getTokenIndex]]; 381 …[self replaceProgNam:programName FromIndex:[from getTokenIndex] ToIndex:[to getTokenIndex] Text:ni…
|
D | CommonErrorNode.m | 64 ([aStopToken getTokenIndex] < [aStartToken getTokenIndex] && 111 int i = [(id<Token>)startToken getTokenIndex]; 112 int j = [(id<Token>)stopToken getTokenIndex];
|
D | DebugTreeAdaptor.m | 95 …istener createNode:[treeAdaptor uniqueIdForTree:newTree] fromTokenAtIndex:[payload getTokenIndex]]; 205 …etTokenBoundariesForTree:[aTree hash] From:[startToken getTokenIndex] To:[stopToken getTokenIndex]…
|
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/debug/ |
D | Profiler.java | 251 int lastTokenIndex = lastRealTokenTouchedInDecision.getTokenIndex(); in exitDecision() 270 lastRealTokenTouchedInDecision.getTokenIndex() < token.getTokenIndex() ) in consumeToken() 276 int thisRefIndex = token.getTokenIndex(); in consumeToken() 303 …if (dump) System.out.println("LT("+i+")="+t+" index "+t.getTokenIndex()+" relative to "+d.decision… in LT() 306 lastRealTokenTouchedInDecision.getTokenIndex() < t.getTokenIndex() ) in LT()
|
D | DebugTreeAdaptor.java | 58 if ( payload.getTokenIndex() < 0 ) { in create() 203 t, startToken.getTokenIndex(), in setTokenBoundaries() 204 stopToken.getTokenIndex()); in setTokenBoundaries()
|
D | RemoteDebugEventSocketListener.java | 129 public int getTokenIndex() { in getTokenIndex() method in RemoteDebugEventSocketListener.ProxyToken 316 if ( t.getTokenIndex() == previousTokenIndex ) { in dispatch() 319 previousTokenIndex = t.getTokenIndex(); in dispatch() 324 if ( t.getTokenIndex() == previousTokenIndex ) { in dispatch() 327 previousTokenIndex = t.getTokenIndex(); in dispatch()
|
/external/antlr/runtime/C/src/ |
D | antlr3commontoken.c | 51 static ANTLR3_MARKER getTokenIndex (pANTLR3_COMMON_TOKEN token); 363 token->getTokenIndex = getTokenIndex; in antlr3SetTokenAPI() 527 static ANTLR3_MARKER getTokenIndex (pANTLR3_COMMON_TOKEN token) in getTokenIndex() function 583 outtext->addi (outtext, (ANTLR3_INT32)token->getTokenIndex(token)); in toString()
|
D | antlr3commontreeadaptor.c | 355 newToken->setTokenIndex (newToken, fromToken->getTokenIndex(fromToken)); in createTokenFromToken() 386 start = startToken->getTokenIndex(startToken); in setTokenBoundaries() 395 stop = stopToken->getTokenIndex(stopToken); in setTokenBoundaries() 415 …tTokenBoundaries(adaptor->debugger, t, startToken->getTokenIndex(startToken), stopToken->getTokenI… in dbgSetTokenBoundaries()
|
/external/antlr/runtime/Python/antlr3/ |
D | tokens.py | 123 def getTokenIndex(self): member in Token 273 def getTokenIndex(self): member in CommonToken 378 def getTokenIndex(self): member in ClassicToken
|
D | debug.py | 221 if payload.getTokenIndex() < 0: 333 t, startToken.getTokenIndex(), 334 stopToken.getTokenIndex()) 802 token.getTokenIndex())) 1083 token.getTokenIndex())) 1121 buf = [str(int(t.getTokenIndex())),
|
/external/antlr/runtime/JavaScript/tests/functional/ |
D | rhino-python.extensions | 135 var hiddenTokens = this.stream.getTokens(this.lastTokenAddedIndex+1,t.getTokenIndex()-1); 139 this.lastTokenAddedIndex = t.getTokenIndex(); 145 var hiddenTokens = this.stream.getTokens(this.lastTokenAddedIndex+1,t.getTokenIndex()-1); 149 this.lastTokenAddedIndex = t.getTokenIndex(); 156 hiddenTokens = this.stream.getTokens(this.lastTokenAddedIndex+1,t.getTokenIndex()-1); 160 this.lastTokenAddedIndex = t.getTokenIndex();
|