public override bool Visit(ICommentStatement statement, IStatement context)
 {
     _stack.Push(statement);
     try
     {
         return(base.Visit(statement, context));
     }
     finally
     {
         _stack.Pop();
     }
 }
Exemplo n.º 2
0
        public override bool Equals(object obj)
        {
            if (this == obj)
            {
                return(true);
            }

            ICommentStatement statement = obj as ICommentStatement;

            if (statement == null)
            {
                return(false);
            }
            return(Comment.Equals(statement.Comment));
        }
Exemplo n.º 3
0
 void IStatementVisitor.Visit(ICommentStatement statement)
 {
     this.Translate(statement);
 }
Exemplo n.º 4
0
 TransformationImpact IStatementVisitor <TransformationImpact> .Visit(ICommentStatement statement)
 {
     return(CalculateRefactorImpact(statement));
 }
Exemplo n.º 5
0
 public abstract void TranslateStatement(ICommentStatement commentStatement);
Exemplo n.º 6
0
 public virtual void VisitCommentStatement(ICommentStatement value)
 {
 }
Exemplo n.º 7
0
 public override void TranslateStatement(ICommentStatement commentStatement)
 {
     this.Provider.GenerateCodeFromStatement(commentStatement.GenerateCodeDom(this.Options), base.Target, this.Options.Options);
 }
Exemplo n.º 8
0
 public virtual void VisitCommentStatement(ICommentStatement value)
 {
 }
Exemplo n.º 9
0
 public abstract TransformationImpact CalculateRefactorImpact(ICommentStatement statement);
Exemplo n.º 10
0
 public bool Visit(ICommentStatement statement, TContext context)
 {
     return(false);
 }
Exemplo n.º 11
0
 public abstract void Translate(ICommentStatement statement);
 private void WriteCommentStatement(ICommentStatement statement, IFormatter formatter)
 {
     this.WriteComment(statement.Comment, formatter);
 }
Exemplo n.º 13
0
 public TransformationKind Visit(ICommentStatement statement, ITransformationContext context)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 14
0
 public override void VisitCommentStatement(ICommentStatement value)
 {
     _formatter.WriteLiteral("#" + value.Comment.Text);
 }
Exemplo n.º 15
0
 public abstract IStatement Transform(ICommentStatement statement);
Exemplo n.º 16
0
 public TestLinkerResult Visit(ICommentStatement statement, ICompilationContext context)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 17
0
 public virtual void VisitCommentStatement(ICommentStatement s)
 {
 }
Exemplo n.º 18
0
 public virtual IStatement TransformCommentStatement(ICommentStatement value)
 {
     return value;
 }