Home
last modified time | relevance | path

Searched refs:prevRop (Results 1 – 6 of 6) sorted by relevance

/external/antlr/runtime/Java/src/main/java/org/antlr/runtime/
DTokenRewriteStream.java487 ReplaceOp prevRop = prevReplaces.get(j); in reduceToSingleOperationPerIndex() local
488 if ( prevRop.index>=rop.index && prevRop.lastIndex <= rop.lastIndex ) { in reduceToSingleOperationPerIndex()
490 rewrites.set(prevRop.instructionIndex, null); in reduceToSingleOperationPerIndex()
495 prevRop.lastIndex<rop.index || prevRop.index > rop.lastIndex; in reduceToSingleOperationPerIndex()
497 prevRop.index==rop.index && prevRop.lastIndex==rop.lastIndex; in reduceToSingleOperationPerIndex()
500 if ( prevRop.text==null && rop.text==null && !disjoint ) { in reduceToSingleOperationPerIndex()
502 rewrites.set(prevRop.instructionIndex, null); // kill first delete in reduceToSingleOperationPerIndex()
503 rop.index = Math.min(prevRop.index, rop.index); in reduceToSingleOperationPerIndex()
504 rop.lastIndex = Math.max(prevRop.lastIndex, rop.lastIndex); in reduceToSingleOperationPerIndex()
509 " overlap with previous "+prevRop); in reduceToSingleOperationPerIndex()
/external/antlr/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime/
DTokenRewriteStream.cs513 ReplaceOp prevRop = (ReplaceOp)prevReplaces[j]; in ReduceToSingleOperationPerIndex()
514 if (prevRop.index >= rop.index && prevRop.lastIndex <= rop.lastIndex) { in ReduceToSingleOperationPerIndex()
516 rewrites[prevRop.instructionIndex] = null; in ReduceToSingleOperationPerIndex()
521 prevRop.lastIndex < rop.index || prevRop.index > rop.lastIndex; in ReduceToSingleOperationPerIndex()
523 prevRop.index == rop.index && prevRop.lastIndex == rop.lastIndex; in ReduceToSingleOperationPerIndex()
526 " overlap with previous " + prevRop); in ReduceToSingleOperationPerIndex()
/external/antlr/runtime/Python3/antlr3/
Dstreams.py1353 for j, prevRop in self.getKindOfOps(rewrites, ReplaceOp, i):
1354 if (prevRop.index >= rop.index
1355 and prevRop.lastIndex <= rop.lastIndex):
1361 disjoint = (prevRop.lastIndex < rop.index
1362 or prevRop.index > rop.lastIndex)
1363 same = (prevRop.index == rop.index
1364 and prevRop.lastIndex == rop.lastIndex)
1369 if prevRop.text is None and rop.text is None and not disjoint:
1371 rewrites[prevRop.instructionIndex] = None
1373 rop.index = min(prevRop.index, rop.index)
[all …]
/external/antlr/runtime/Python/antlr3/
Dstreams.py1413 for j, prevRop in self.getKindOfOps(rewrites, ReplaceOp, i):
1414 if (prevRop.index >= rop.index
1415 and prevRop.lastIndex <= rop.lastIndex):
1421 disjoint = (prevRop.lastIndex < rop.index
1422 or prevRop.index > rop.lastIndex)
1423 same = (prevRop.index == rop.index
1424 and prevRop.lastIndex == rop.lastIndex)
1429 if prevRop.text is None and rop.text is None and not disjoint:
1431 rewrites[prevRop.instructionIndex] = None
1433 rop.index = min(prevRop.index, rop.index)
[all …]
/external/antlr/runtime/ActionScript/project/src/org/antlr/runtime/
DTokenRewriteStream.as333 var prevRop:ReplaceOp = ReplaceOp(prevReplaces[j]);
334 if ( prevRop.index>=rop.index && prevRop.lastIndex <= rop.lastIndex ) {
335 rewrites[prevRop.instructionIndex] = null; // delete replace as it's a no-op.
340 prevRop.lastIndex<rop.index || prevRop.index > rop.lastIndex;
342 prevRop.index==rop.index && prevRop.lastIndex==rop.lastIndex;
345 " overlap with previous "+prevRop);
/external/antlr/runtime/ObjC/Framework/
DTokenRewriteStream.m581 ANTLRReplaceOp *prevRop = (ANTLRReplaceOp *) [prevReplaces objectAtIndex:j];
582 if ( prevRop.rwIndex>=rop.rwIndex && prevRop.lastIndex <= rop.lastIndex ) {
584 [rewrites setObject:nil atIndex:prevRop.instructionIndex];
588 BOOL disjoint = prevRop.lastIndex<rop.rwIndex || prevRop.rwIndex > rop.lastIndex;
589 BOOL same = prevRop.rwIndex==rop.rwIndex && prevRop.lastIndex==rop.lastIndex;
592 …String stringWithFormat:@"replace op boundaries of %@, overlap with previous %@\n", rop, prevRop]];