Lines Matching defs:trs
75 var trs = org.antlr.runtime.TokenRewriteStream;
77 org.antlr.lang.augmentObject(trs, {
87 trs.RewriteOperation = function(index, text) {
95 trs.RewriteOperation.prototype = {
108 trs.InsertBeforeOp = function(index, text) {
109 trs.InsertBeforeOp.superclass.constructor.call(this, index, text);
111 org.antlr.lang.extend(trs.InsertBeforeOp, trs.RewriteOperation, {
121 trs.ReplaceOp = function(from, to, text) {
122 trs.ReplaceOp.superclass.constructor.call(this, from, text);
125 org.antlr.lang.extend(trs.ReplaceOp, trs.RewriteOperation, {
134 trs.DeleteOp = function(from, to) {
135 trs.DeleteOp.superclass.constructor.call(this, from, to);
137 org.antlr.lang.extend(trs.DeleteOp, trs.ReplaceOp);
139 org.antlr.lang.extend(trs, org.antlr.runtime.CommonTokenStream, {
142 this.programs[trs.DEFAULT_PROGRAM_NAME] = [];
155 programName = trs.DEFAULT_PROGRAM_NAME;
163 programs[programName] = is.slice(trs.MIN_TOKEN_INDEX, this.instructionIndex);
169 programName = programName || trs.DEFAULT_PROGRAM_NAME;
170 this.rollback(programName, trs.MIN_TOKEN_INDEX);
193 programName = trs.DEFAULT_PROGRAM_NAME;
209 if (op instanceof trs.ReplaceOp) {
217 if (prevOp instanceof trs.ReplaceOp) {
246 programName = trs.DEFAULT_PROGRAM_NAME;
267 programName = trs.DEFAULT_PROGRAM_NAME;
283 new trs.InsertBeforeOp(index,text)
290 programName = trs.DEFAULT_PROGRAM_NAME;
295 programName = trs.DEFAULT_PROGRAM_NAME;
319 new trs.ReplaceOp(first, last, text));
336 programName = programName || trs.DEFAULT_PROGRAM_NAME;
360 start = trs.MIN_TOKEN_INDEX;
367 for (i=start; i>=trs.MIN_TOKEN_INDEX && i<=end && i<this.tokens.length; i++) {
376 programName = trs.DEFAULT_PROGRAM_NAME;
377 start = trs.MIN_TOKEN_INDEX;
381 start = trs.MIN_TOKEN_INDEX;
384 programName = trs.DEFAULT_PROGRAM_NAME;
399 while ( tokenCursor>=trs.MIN_TOKEN_INDEX &&
446 start = trs.MIN_TOKEN_INDEX;
454 for (i=start; i>=trs.MIN_TOKEN_INDEX && i<=end && i<this.tokens.length; i++) {