Lines Matching refs:op

131 			var op:RewriteOperation = new InsertBeforeOp(index,text);
133 op.instructionIndex = rewrites.length;
134 rewrites.push(op);
145 var op:RewriteOperation = new ReplaceOp(fromIndex, toIndex, text);
147 op.instructionIndex = rewrites.length;
148 rewrites.push(op);
240 var op:RewriteOperation = RewriteOperation(indexToOp[i]);
243 if ( op==null ) {
249 i = op.execute(state); // execute operation and skip
259 for each (op in indexToOp) {
260 if (op == null) continue;
261 if ( op.index >= tokens.length-1 ) state.buf += op.text;
286 * I.i.u = insert u before op @ index i
289 * First we need to examine replaces. For any replace op:
291 * 1. wipe out any insertions before op within that range.
292 * 2. Drop any replace op before that is contained completely within
303 * Don't actually delete; make op null in list. Easier to walk list.
304 * Later we can throw as we add to index -> op map.
318 var op:RewriteOperation = RewriteOperation(rewrites[i]);
319 if ( op==null ) continue;
320 if ( !(op is ReplaceOp) ) continue;
327 rewrites[iop.instructionIndex] = null; // delete insert as it's a no-op.
335 rewrites[prevRop.instructionIndex] = null; // delete replace as it's a no-op.
344 throw new Error("replace op boundaries of "+rop+
352 op = RewriteOperation(rewrites[i]);
353 if ( op==null ) continue;
354 if ( !(op is InsertBeforeOp) ) continue;
377 throw new Error("insert op "+iop+
385 op = RewriteOperation(rewrites[i]);
386 if ( op==null ) continue; // ignore deleted ops
387 if ( m[op.index] != undefined ) {
388 throw new Error("should only be one op per index");
390 m[op.index] = op;
392 //System.out.println("index to op: "+m);
411 var op:RewriteOperation = RewriteOperation(rewrites[i]);
412 if ( op==null ) continue; // ignore deleted
413 if ( getQualifiedClassName(op) == getQualifiedClassName(kind) ) ops.push(op);