Home
last modified time | relevance | path

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

123

/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
DStrip.java100 tokens.delete(a.token.getTokenIndex()); in rewrite()
101 killTrailingNewline(tokens, a.token.getTokenIndex()); in rewrite()
109 tokens.delete(a.token.getTokenIndex(), in rewrite()
110 ret.token.getTokenIndex()); in rewrite()
117 tokens.replace(a.token.getTokenIndex(), "/*"+a.getText()+"*/"); in rewrite()
156 tokens.delete(a.token.getTokenIndex()); // kill "id=" in rewrite()
157 tokens.delete(child.token.getTokenIndex()); in rewrite()
166 tokens.delete(a.token.getTokenIndex()); // kill "id+=" in rewrite()
167 tokens.delete(child.token.getTokenIndex()); in rewrite()
183 tokens.delete(a.token.getTokenIndex(), stop); in rewrite()
[all …]
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/tree/
DCommonErrorNode.java44 (stop.getTokenIndex() < start.getTokenIndex() && in CommonErrorNode()
70 int i = ((Token)start).getTokenIndex(); in getText()
71 int j = ((Token)stop).getTokenIndex(); in getText()
DCommonTree.java114 return token.getTokenIndex(); in getTokenStartIndex()
125 return token.getTokenIndex(); in getTokenStopIndex()
141 startIndex = stopIndex = token.getTokenIndex(); in setUnknownTokenBoundaries()
DCommonTreeAdaptor.java98 if ( startToken!=null ) start = startToken.getTokenIndex(); in setTokenBoundaries()
99 if ( stopToken!=null ) stop = stopToken.getTokenIndex(); in setTokenBoundaries()
/external/antlr/antlr-3.4/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/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/
DCommonToken.java76 index = oldToken.getTokenIndex(); in CommonToken()
159 public int getTokenIndex() { in getTokenIndex() method in CommonToken
189 …return "[@"+getTokenIndex()+","+start+":"+stop+"='"+txt+"',<"+type+">"+channelStr+","+line+":"+get… in toString()
DClassicToken.java110 public int getTokenIndex() { in getTokenIndex() method in ClassicToken
139 …return "[@"+getTokenIndex()+",'"+txt+"',<"+type+">"+channelStr+","+line+":"+getCharPositionInLine(… in toString()
DBufferedTokenStream.java255 return toString(start.getTokenIndex(), stop.getTokenIndex()); in toString()
DToken.java83 public int getTokenIndex(); in getTokenIndex() method
/external/antlr/antlr-3.4/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…
/external/antlr/antlr-3.4/runtime/ObjC/Framework/
DANTLRTokenRewriteStream.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…
DANTLRCommonErrorNode.m64 ([aStopToken getTokenIndex] < [aStartToken getTokenIndex] &&
111 int i = [(id<ANTLRToken>)startToken getTokenIndex];
112 int j = [(id<ANTLRToken>)stopToken getTokenIndex];
/external/antlr/antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/debug/
DProfiler.java247 int lastTokenIndex = lastRealTokenTouchedInDecision.getTokenIndex(); in exitDecision()
265 lastRealTokenTouchedInDecision.getTokenIndex() < token.getTokenIndex() ) in consumeToken()
271 int thisRefIndex = token.getTokenIndex(); in consumeToken()
296 …if (dump) System.out.println("LT("+i+")="+t+" index "+t.getTokenIndex()+" relative to "+d.decision… in LT()
299 lastRealTokenTouchedInDecision.getTokenIndex() < t.getTokenIndex() ) in LT()
DDebugTreeAdaptor.java57 if ( payload.getTokenIndex() < 0 ) { in create()
184 t, startToken.getTokenIndex(), in setTokenBoundaries()
185 stopToken.getTokenIndex()); in setTokenBoundaries()
DRemoteDebugEventSocketListener.java107 public int getTokenIndex() { in getTokenIndex() method in RemoteDebugEventSocketListener.ProxyToken
286 if ( t.getTokenIndex() == previousTokenIndex ) { in dispatch()
289 previousTokenIndex = t.getTokenIndex(); in dispatch()
294 if ( t.getTokenIndex() == previousTokenIndex ) { in dispatch()
297 previousTokenIndex = t.getTokenIndex(); in dispatch()
/external/antlr/antlr-3.4/runtime/C/src/
Dantlr3commontoken.c51 static ANTLR3_MARKER getTokenIndex (pANTLR3_COMMON_TOKEN token);
340 token->getTokenIndex = getTokenIndex; in antlr3SetTokenAPI()
504 static ANTLR3_MARKER getTokenIndex (pANTLR3_COMMON_TOKEN token) in getTokenIndex() function
560 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/antlr-3.4/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/antlr-3.4/runtime/ObjC/ANTLR.framework/Headers/
DANTLRCommonToken.h55 @property (assign, getter=getTokenIndex, setter=setTokenIndex:) NSUInteger index;
96 - (NSUInteger) getTokenIndex;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/Current/Headers/
DANTLRCommonToken.h55 @property (assign, getter=getTokenIndex, setter=setTokenIndex:) NSUInteger index;
96 - (NSUInteger) getTokenIndex;
/external/antlr/antlr-3.4/runtime/ObjC/ANTLR.framework/Versions/A/Headers/
DANTLRCommonToken.h55 @property (assign, getter=getTokenIndex, setter=setTokenIndex:) NSUInteger index;
96 - (NSUInteger) getTokenIndex;
/external/antlr/antlr-3.4/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