• Home
  • Raw
  • Download

Lines Matching refs:rewrites

270             IList<RewriteOperation> rewrites = GetProgram(programName);  in InsertBefore()
271 op.instructionIndex = rewrites.Count; in InsertBefore()
272 rewrites.Add(op); in InsertBefore()
296 IList<RewriteOperation> rewrites = GetProgram(programName); in Replace()
297 op.instructionIndex = rewrites.Count; in Replace()
298 rewrites.Add(op); in Replace()
391 IList<RewriteOperation> rewrites; in ToString()
392 if (!programs.TryGetValue(programName, out rewrites)) in ToString()
393 rewrites = null; in ToString()
401 if (rewrites == null || rewrites.Count == 0) { in ToString()
407 … IDictionary<int, RewriteOperation> indexToOp = ReduceToSingleOperationPerIndex(rewrites); in ToString()
490 …ctionary<int, RewriteOperation> ReduceToSingleOperationPerIndex(IList<RewriteOperation> rewrites) { in ReduceToSingleOperationPerIndex() argument
494 for (int i = 0; i < rewrites.Count; i++) { in ReduceToSingleOperationPerIndex()
495 RewriteOperation op = rewrites[i]; in ReduceToSingleOperationPerIndex()
500 ReplaceOp rop = (ReplaceOp)rewrites[i]; in ReduceToSingleOperationPerIndex()
502 var inserts = GetKindOfOps(rewrites, typeof(InsertBeforeOp), i); in ReduceToSingleOperationPerIndex()
507 rewrites[iop.instructionIndex] = null; in ReduceToSingleOperationPerIndex()
511 var prevReplaces = GetKindOfOps(rewrites, typeof(ReplaceOp), i); in ReduceToSingleOperationPerIndex()
516 rewrites[prevRop.instructionIndex] = null; in ReduceToSingleOperationPerIndex()
532 for (int i = 0; i < rewrites.Count; i++) { in ReduceToSingleOperationPerIndex()
533 RewriteOperation op = (RewriteOperation)rewrites[i]; in ReduceToSingleOperationPerIndex()
538 InsertBeforeOp iop = (InsertBeforeOp)rewrites[i]; in ReduceToSingleOperationPerIndex()
540 var prevInserts = GetKindOfOps(rewrites, typeof(InsertBeforeOp), i); in ReduceToSingleOperationPerIndex()
548 rewrites[prevIop.instructionIndex] = null; in ReduceToSingleOperationPerIndex()
552 var prevReplaces = GetKindOfOps(rewrites, typeof(ReplaceOp), i); in ReduceToSingleOperationPerIndex()
557 rewrites[i] = null; // delete current insert in ReduceToSingleOperationPerIndex()
568 for (int i = 0; i < rewrites.Count; i++) { in ReduceToSingleOperationPerIndex()
569 RewriteOperation op = (RewriteOperation)rewrites[i]; in ReduceToSingleOperationPerIndex()
586 …protected virtual IList<RewriteOperation> GetKindOfOps(IList<RewriteOperation> rewrites, Type kind… in GetKindOfOps() argument
587 return GetKindOfOps(rewrites, kind, rewrites.Count); in GetKindOfOps()
591 …protected virtual IList<RewriteOperation> GetKindOfOps(IList<RewriteOperation> rewrites, Type kind… in GetKindOfOps() argument
593 for (int i = 0; i < before && i < rewrites.Count; i++) { in GetKindOfOps()
594 RewriteOperation op = rewrites[i]; in GetKindOfOps()