public static IUsingBlockStatement Using(this IBlockStatementParent parent, ILocalDeclarationsStatement resourceAcquisition) { var usingStatement = new UsingBlockStatement(parent, resourceAcquisition); parent.Add(usingStatement); return(usingStatement); }
public ILocalDeclarationsStatement GetDeclarationStatement(params ILocalMember[] siblings) { if (this.singletonDeclaration == null) { this.singletonDeclaration = new LocalDeclarationsStatement(this.AsEnumerable().Concat(siblings), this.Parent); } return(this.singletonDeclaration); }
public override bool Visit(ILocalDeclarationsStatement statement, IStatement context) { _stack.Push(statement); try { return(base.Visit(statement, context)); } finally { _stack.Pop(); } }
public abstract IStatement Transform(ILocalDeclarationsStatement statement);
void IStatementVisitor.Visit(ILocalDeclarationsStatement statement) { this.Translate(statement); }
TransformationImpact IStatementVisitor <TransformationImpact> .Visit(ILocalDeclarationsStatement statement) { return(CalculateRefactorImpact(statement)); }
public abstract TransformationImpact CalculateRefactorImpact(ILocalDeclarationsStatement statement);
public bool Visit(ILocalDeclarationsStatement statement, TContext context) { return(false); }
public abstract void Translate(ILocalDeclarationsStatement statement);
public TransformationKind Visit(ILocalDeclarationsStatement statement, ITransformationContext context) { throw new NotImplementedException(); }
public IterationDeclarationBlockStatement(IBlockStatementParent parent, ILocalDeclarationsStatement localDeclaration, IExpression condition, IEnumerable <IStatementExpression> iterations) : base(parent, condition, iterations) { this.LocalDeclaration = localDeclaration; }