public override void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     if (Process(gotoSwitchCaseStatement))
     {
         visitor.Visit(gotoSwitchCaseStatement);
     }
     base.Visit(gotoSwitchCaseStatement);
 }
Пример #2
0
 /// <summary>
 /// Visits the specified goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement">The goto switch case statement.</param>
 public override void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     GotoSwitchCaseStatement mutableGotoSwitchCaseStatement = gotoSwitchCaseStatement as GotoSwitchCaseStatement;
     if (alwaysMakeACopy || mutableGotoSwitchCaseStatement == null) mutableGotoSwitchCaseStatement = new GotoSwitchCaseStatement(gotoSwitchCaseStatement);
     this.resultStatement = this.myCodeMutator.Visit(mutableGotoSwitchCaseStatement);
 }
Пример #3
0
 public virtual void onASTElement(IGotoSwitchCaseStatement gotoSwitchCaseStatement) { }
Пример #4
0
 public override void TraverseChildren(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     base.TraverseChildren(gotoSwitchCaseStatement);
 }
Пример #5
0
 public void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     Contract.Requires(gotoSwitchCaseStatement != null);
       throw new NotImplementedException();
 }
Пример #6
0
 public void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     this.traverser.Traverse(gotoSwitchCaseStatement);
 }
Пример #7
0
 /// <summary>
 /// Traverses the goto switch case statement.
 /// </summary>
 public void Traverse(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     Contract.Requires(gotoSwitchCaseStatement != null);
       if (this.preorderVisitor != null) this.preorderVisitor.Visit(gotoSwitchCaseStatement);
       if (this.StopTraversal) return;
       this.TraverseChildren(gotoSwitchCaseStatement);
       if (this.StopTraversal) return;
       if (this.postorderVisitor != null) this.postorderVisitor.Visit(gotoSwitchCaseStatement);
 }
Пример #8
0
        public override void TraverseChildren(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
{ MethodEnter(gotoSwitchCaseStatement);
            base.TraverseChildren(gotoSwitchCaseStatement);
     MethodExit();   }
Пример #9
0
    /// <summary>
    /// Returns a deep copy of the given goto switch case statement.
    /// </summary>
    /// <param name="gotoSwitchCaseStatement"></param>
    public GotoSwitchCaseStatement Copy(IGotoSwitchCaseStatement gotoSwitchCaseStatement) {
      Contract.Requires(gotoSwitchCaseStatement != null);
      Contract.Ensures(Contract.Result<GotoSwitchCaseStatement>() != null);

      var mutableCopy = this.shallowCopier.Copy(gotoSwitchCaseStatement);
      return mutableCopy;
    }
 /// <summary>
 /// Rewrites the given goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement"></param>
 public virtual IStatement Rewrite(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     return gotoSwitchCaseStatement;
 }
Пример #11
0
 public override void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     allElements.Add(new InvokInfo(Traverser, "IGotoSwitchCaseStatement", gotoSwitchCaseStatement));
 }
Пример #12
0
 /// <summary>
 /// Generates IL for the specified goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement">The goto switch case statement.</param>
 public override void TraverseChildren(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     this.EmitSequencePoint(gotoSwitchCaseStatement.Locations);
       base.TraverseChildren(gotoSwitchCaseStatement);
       this.lastStatementWasUnconditionalTransfer = false;
 }
 public override void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     if(Process(gotoSwitchCaseStatement)){visitor.Visit(gotoSwitchCaseStatement);}
     base.Visit(gotoSwitchCaseStatement);
 }
Пример #14
0
 public void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     this.result = this.rewriter.Rewrite(gotoSwitchCaseStatement);
 }
Пример #15
0
 /// <summary>
 /// Rewrites the given goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement"></param>
 public virtual IStatement Rewrite(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     var mutableGotoSwitchCaseStatement = gotoSwitchCaseStatement as GotoSwitchCaseStatement;
       if (mutableGotoSwitchCaseStatement == null) return gotoSwitchCaseStatement;
       this.RewriteChildren(mutableGotoSwitchCaseStatement);
       return mutableGotoSwitchCaseStatement;
 }
Пример #16
0
 public void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     this.result = this.copier.Copy(gotoSwitchCaseStatement);
 }
Пример #17
0
 public virtual void onASTElement(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
 }
Пример #18
0
    /// <summary>
    /// Returns a shallow copy of the given goto switch case statement.
    /// </summary>
    /// <param name="gotoSwitchCaseStatement"></param>
    public GotoSwitchCaseStatement Copy(IGotoSwitchCaseStatement gotoSwitchCaseStatement) {
      Contract.Requires(gotoSwitchCaseStatement != null);
      Contract.Ensures(Contract.Result<GotoSwitchCaseStatement>() != null);

      return new GotoSwitchCaseStatement(gotoSwitchCaseStatement);
    }
Пример #19
0
 /// <summary>
 /// Performs some computation with the given goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement"></param>
 public virtual void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
 }
 /// <summary>
 /// Performs some computation with the given goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement"></param>
 public virtual void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
 }
Пример #21
0
 /// <summary>
 /// Traverses the children of the goto switch case statement.
 /// </summary>
 public virtual void TraverseChildren(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     Contract.Requires(gotoSwitchCaseStatement != null);
       this.TraverseChildren((IStatement)gotoSwitchCaseStatement);
 }
Пример #22
0
 public override void TraverseChildren(IGotoSwitchCaseStatement gotoSwitchCaseStatement) {
   base.TraverseChildren(gotoSwitchCaseStatement);
 }
Пример #23
0
 /// <summary>
 /// Performs some computation with the given goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement"></param>
 public virtual void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     this.Visit((IStatement)gotoSwitchCaseStatement);
 }
Пример #24
0
 /// <summary>
 /// Visits the specified goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement">The goto switch case statement.</param>
 public override void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     GotoSwitchCaseStatement mutableGotoSwitchCaseStatement = new GotoSwitchCaseStatement(gotoSwitchCaseStatement);
     this.resultStatement = this.myCodeCopier.DeepCopy(mutableGotoSwitchCaseStatement);
 }
Пример #25
0
 public void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     throw new NotImplementedException();
 }
Пример #26
0
 /// <summary>
 /// Returns a deep copy of the given goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement"></param>
 public GotoSwitchCaseStatement Copy(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     var mutableCopy = this.shallowCopier.Copy(gotoSwitchCaseStatement);
       return mutableCopy;
 }
Пример #27
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="gotoSwitchCaseStatement"></param>
 public GotoSwitchCaseStatement(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
   : base(gotoSwitchCaseStatement) {
   this.targetCase = gotoSwitchCaseStatement.TargetCase;
 }
Пример #28
0
 /// <summary>
 /// Returns a shallow copy of the given goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement"></param>
 public GotoSwitchCaseStatement Copy(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     return new GotoSwitchCaseStatement(gotoSwitchCaseStatement);
 }
Пример #29
0
 public override void TraverseChildren(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     MethodEnter(gotoSwitchCaseStatement);
     base.TraverseChildren(gotoSwitchCaseStatement);
     MethodExit();
 }
Пример #30
0
 /// <summary>
 /// Visits the specified goto switch case statement.
 /// </summary>
 /// <param name="gotoSwitchCaseStatement">The goto switch case statement.</param>
 public override void Visit(IGotoSwitchCaseStatement gotoSwitchCaseStatement)
 {
     GotoSwitchCaseStatement mutableGotoSwitchCaseStatement = gotoSwitchCaseStatement as GotoSwitchCaseStatement;
     if (mutableGotoSwitchCaseStatement == null) {
       this.resultStatement = gotoSwitchCaseStatement;
       return;
     }
     this.resultStatement = this.myCodeMutator.Visit(mutableGotoSwitchCaseStatement);
 }