Home
last modified time | relevance | path

Searched refs:getTokenIndex (Results 1 – 25 of 62) sorted by relevance

123

/external/antlr/tool/src/main/java/org/antlr/tool/
DStrip.java103 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/
DCommonErrorNode.java44 (stop.getTokenIndex() < start.getTokenIndex() && in CommonErrorNode()
73 int i = start.getTokenIndex(); in getText()
74 int j = stop.getTokenIndex(); in getText()
DCommonTree.java121 return token.getTokenIndex(); in getTokenStartIndex()
134 return token.getTokenIndex(); in getTokenStopIndex()
151 startIndex = stopIndex = token.getTokenIndex(); in setUnknownTokenBoundaries()
DCommonTreeAdaptor.java103 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/
DCommonErrorNode.js3 (stop.getTokenIndex() < start.getTokenIndex() &&
30 var i = this.start.getTokenIndex();
31 var j = this.stop.getTokenIndex();
DCommonTreeAdaptor.js76 if (startToken.getTokenIndex) {
77 start = startToken.getTokenIndex();
85 if (stop.getTokenIndex) {
86 stop = stopToken.getTokenIndex();
DCommonTree.js83 return this.token.getTokenIndex();
94 return this.token.getTokenIndex();
/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DCommonToken.java76 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()
DClassicToken.java121 public int getTokenIndex() { in getTokenIndex() method in ClassicToken
154 …return "[@"+getTokenIndex()+",'"+txt+"',<"+type+">"+channelStr+","+line+":"+getCharPositionInLine(… in toString()
DTokenRewriteStream.java224 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()
DBufferedTokenStream.java272 return toString(start.getTokenIndex(), stop.getTokenIndex()); in toString()
DToken.java81 public int getTokenIndex(); in getTokenIndex() method
/external/antlr/runtime/JavaScript/src/org/antlr/runtime/
DCommonToken.js16 this.index = oldToken.getTokenIndex();
108 getTokenIndex: function() { method
138 …return "[@"+this.getTokenIndex()+","+this.start+":"+this.stop+"='"+txt+"',<"+this.type+">"+channel…
DCommonTokenStream.js297 start = start.getTokenIndex();
298 stop = stop.getTokenIndex();
/external/antlr/runtime/ObjC/Framework/
DTokenRewriteStream.m281 [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…
DCommonErrorNode.m64 ([aStopToken getTokenIndex] < [aStartToken getTokenIndex] &&
111 int i = [(id<Token>)startToken getTokenIndex];
112 int j = [(id<Token>)stopToken getTokenIndex];
DDebugTreeAdaptor.m95 …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/
DProfiler.java251 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()
DDebugTreeAdaptor.java58 if ( payload.getTokenIndex() < 0 ) { in create()
203 t, startToken.getTokenIndex(), in setTokenBoundaries()
204 stopToken.getTokenIndex()); in setTokenBoundaries()
DRemoteDebugEventSocketListener.java129 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/
Dantlr3commontoken.c51 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()
Dantlr3commontreeadaptor.c355 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/
Dtokens.py123 def getTokenIndex(self): member in Token
273 def getTokenIndex(self): member in CommonToken
378 def getTokenIndex(self): member in ClassicToken
Ddebug.py221 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/
Drhino-python.extensions135 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();

123