Lines Matching refs:programName
217 public virtual void Rollback(string programName, int instructionIndex) {
219 if (programs.TryGetValue(programName, out @is) && @is != null) {
224 programs[programName] = sublist;
233 public virtual void DeleteProgram(string programName) {
234 Rollback(programName, MIN_TOKEN_INDEX);
245 public virtual void InsertAfter(string programName, IToken t, object text) {
246 InsertAfter(programName, t.TokenIndex, text);
249 public virtual void InsertAfter(string programName, int index, object text) {
251 InsertBefore(programName, index + 1, text);
252 //addToSortedRewriteList(programName, new InsertAfterOp(index,text));
263 public virtual void InsertBefore(string programName, IToken t, object text) {
264 InsertBefore(programName, t.TokenIndex, text);
267 public virtual void InsertBefore(string programName, int index, object text) {
268 //addToSortedRewriteList(programName, new InsertBeforeOp(index,text));
270 IList<RewriteOperation> rewrites = GetProgram(programName);
291 public virtual void Replace(string programName, int from, int to, object text) {
296 IList<RewriteOperation> rewrites = GetProgram(programName);
301 public virtual void Replace(string programName, IToken from, IToken to, object text) {
302 Replace(programName,
324 public virtual void Delete(string programName, int from, int to) {
325 Replace(programName, from, to, null);
328 public virtual void Delete(string programName, IToken from, IToken to) {
329 Replace(programName, from, to, null);
336 protected virtual int GetLastRewriteTokenIndex(string programName) {
338 if (lastRewriteTokenIndexes.TryGetValue(programName, out value))
344 protected virtual void SetLastRewriteTokenIndex(string programName, int i) {
345 lastRewriteTokenIndexes[programName] = i;
381 public virtual string ToString(string programName) {
383 return ToString(programName, MIN_TOKEN_INDEX, Count - 1);
390 public virtual string ToString(string programName, int start, int end) {
392 if (!programs.TryGetValue(programName, out rewrites))