public override void VisitEmptyStatement(IEmptyStatement stmt, IList <IStatement> body) { if (stmt == _marker.HandlingNode) { body.Add(EmptyCompletionExpression); } }
private void ProcessEmptyStatement(IEmptyStatement pStatement) { if (mCurrentBlock.Terminated) { mCurrentBlock = CreateBlock(CreateLabel()); } }
public override void VisitEmptyStatement(IEmptyStatement emptyStatement) { Value = new Statement() { EmptyStatement = new EmptyStatementFactory(emptyStatement).Value }; }
public override void VisitEmptyStatement(IEmptyStatement operation) { LogString(nameof(IEmptyStatement)); LogCommonPropertiesAndNewLine(operation); base.VisitEmptyStatement(operation); }
public override void Visit(IEmptyStatement emptyStatement) { if (Process(emptyStatement)) { visitor.Visit(emptyStatement); } base.Visit(emptyStatement); }
private static void FindPattern(List <IStatement> statements) { int n = statements.Count; for (int i = n - 1; 0 <= i; i--) { IEmptyStatement emptyStatement = statements[i] as IEmptyStatement; if (emptyStatement == null) { continue; } if (IteratorHelper.EnumerableIsNotEmpty(emptyStatement.Locations)) { continue; } statements.RemoveAt(i); } return; }
public void Visit(IEmptyStatement emptyStatement) { Contract.Requires(emptyStatement != null); throw new NotImplementedException(); }
public void Visit(IEmptyStatement emptyStatement) { this.traverser.Traverse(emptyStatement); }
/// <summary> /// Traverses the empty statement. /// </summary> public void Traverse(IEmptyStatement emptyStatement) { Contract.Requires(emptyStatement != null); if (this.preorderVisitor != null) this.preorderVisitor.Visit(emptyStatement); if (this.StopTraversal) return; this.TraverseChildren(emptyStatement); if (this.StopTraversal) return; if (this.postorderVisitor != null) this.postorderVisitor.Visit(emptyStatement); }
//^ ensures this.path.Count == old(this.path.Count); /// <summary> /// Traverses the given empty statement. /// </summary> /// <param name="emptyStatement"></param> public virtual void Visit(IEmptyStatement emptyStatement) { if (this.stopTraversal) return; //^ int oldCount = this.path.Count; this.path.Push(emptyStatement); //^ assume this.path.Count == oldCount+1; //True because all of the virtual methods of this class promise not to decrease this.path.Count. this.path.Pop(); }
public override void VisitEmptyStatement([NotNull] IEmptyStatement operation) { IncrementStatementCount(operation); base.VisitEmptyStatement(operation); }
public virtual void onASTElement(IEmptyStatement emptyStatement) { }
/// <summary> /// Visits the specified empty statement. /// </summary> /// <param name="emptyStatement">The empty statement.</param> public override void Visit(IEmptyStatement emptyStatement) { EmptyStatement mutableEmptyStatement = emptyStatement as EmptyStatement; if (alwaysMakeACopy || mutableEmptyStatement == null) mutableEmptyStatement = new EmptyStatement(emptyStatement); this.resultStatement = this.myCodeMutator.Visit(mutableEmptyStatement); }
public override void VisitEmptyStatement(IEmptyStatement operation) { base.VisitEmptyStatement(operation); }
/// <summary> /// Rewrites the given empty statement. /// </summary> /// <param name="emptyStatement"></param> public virtual IStatement Rewrite(IEmptyStatement emptyStatement) { return emptyStatement; }
/// <summary> /// Rewrites the given empty statement. /// </summary> /// <param name="emptyStatement"></param> public virtual IStatement Rewrite(IEmptyStatement emptyStatement) { var mutableEmptyStatement = emptyStatement as EmptyStatement; if (mutableEmptyStatement == null) return emptyStatement; this.RewriteChildren(mutableEmptyStatement); return mutableEmptyStatement; }
public override void Visit(IEmptyStatement emptyStatement) { allElements.Add(new InvokInfo(Traverser, "IEmptyStatement", emptyStatement)); }
/// <summary> /// Generates IL for the specified empty statement. /// </summary> /// <param name="emptyStatement">The empty statement.</param> public override void TraverseChildren(IEmptyStatement emptyStatement) { if (!this.minizeCodeSize || IteratorHelper.EnumerableIsNotEmpty(emptyStatement.Locations)) { this.EmitSequencePoint(emptyStatement.Locations); this.generator.Emit(OperationCode.Nop); } this.lastStatementWasUnconditionalTransfer = false; }
public void Visit(IEmptyStatement emptyStatement) { this.result = this.rewriter.Rewrite((EmptyStatement)emptyStatement); }
public override void VisitEmptyStatement(IEmptyStatement emptyStatement) { Steps.Add(new WriteSemicolon()); }
public override void Visit(IEmptyStatement emptyStatement) { if(Process(emptyStatement)){visitor.Visit(emptyStatement);} base.Visit(emptyStatement); }
public override void TraverseChildren(IEmptyStatement emptyStatement) { MethodEnter(emptyStatement); base.TraverseChildren(emptyStatement); MethodExit(); }
public override IOperation VisitEmptyStatement(IEmptyStatement operation, object argument) { return(new EmptyStatement(((Operation)operation).SemanticModel, operation.Syntax, operation.Type, operation.ConstantValue, operation.IsImplicit)); }
public void Visit(IEmptyStatement emptyStatement) { this.result = this.copier.Copy(emptyStatement); }
/// <summary> /// Returns a deep copy of the given empty statement. /// </summary> /// <param name="emptyStatement"></param> public EmptyStatement Copy(IEmptyStatement emptyStatement) { Contract.Requires(emptyStatement != null); Contract.Ensures(Contract.Result<EmptyStatement>() != null); var mutableCopy = this.shallowCopier.Copy(emptyStatement); return mutableCopy; }
/// <summary> /// Returns a shallow copy of the given empty statement. /// </summary> /// <param name="emptyStatement"></param> public EmptyStatement Copy(IEmptyStatement emptyStatement) { Contract.Requires(emptyStatement != null); Contract.Ensures(Contract.Result<EmptyStatement>() != null); var mutable = emptyStatement as EmptyStatement; if (mutable != null) return mutable.Clone(); return new EmptyStatement(emptyStatement); }
public virtual void VisitEmptyStatement(IEmptyStatement operation) { DefaultVisit(operation); }
public static IEmptyStatement Update(this IEmptyStatement self, Enum @flavor) => self;
/// <summary> /// Performs some computation with the given empty statement. /// </summary> /// <param name="emptyStatement"></param> public virtual void Visit(IEmptyStatement emptyStatement) { }
/// <summary> /// Traverses the children of the empty statement. /// </summary> public virtual void TraverseChildren(IEmptyStatement emptyStatement) { Contract.Requires(emptyStatement != null); this.TraverseChildren((IStatement)emptyStatement); }
/// <summary> /// /// </summary> /// <param name="emptyStatement"></param> public EmptyStatement(IEmptyStatement emptyStatement) : base(emptyStatement) { this.isSentinel = emptyStatement.IsSentinel; }
/// <summary> /// Performs some computation with the given empty statement. /// </summary> /// <param name="emptyStatement"></param> public virtual void Visit(IEmptyStatement emptyStatement) { this.Visit((IStatement)emptyStatement); }
public virtual void VisitEmptyStatement(IEmptyStatement emptyStatement) { Visit(emptyStatement); }
public void Visit(IEmptyStatement emptyStatement) { throw new NotImplementedException(); }
private void ProcessEmptyStatement(IEmptyStatement pStatement) { if (mCurrentBlock.Terminated) mCurrentBlock = CreateBlock(CreateLabel()); }
/// <inheritdoc /> public override IOperation VisitEmptyStatement(IEmptyStatement operation, object argument) { return(base.VisitEmptyStatement(operation, argument)); }
public override void TraverseChildren(IEmptyStatement emptyStatement) { base.TraverseChildren(emptyStatement); }
/// <summary> /// Visits the specified empty statement. /// </summary> /// <param name="emptyStatement">The empty statement.</param> public override void Visit(IEmptyStatement emptyStatement) { EmptyStatement mutableEmptyStatement = new EmptyStatement(emptyStatement); this.resultStatement = this.myCodeCopier.DeepCopy(mutableEmptyStatement); }
/// <summary> /// Returns a deep copy of the given empty statement. /// </summary> /// <param name="emptyStatement"></param> public EmptyStatement Copy(IEmptyStatement emptyStatement) { var mutableCopy = this.shallowCopier.Copy(emptyStatement); return mutableCopy; }
/// <summary> /// Returns a shallow copy of the given empty statement. /// </summary> /// <param name="emptyStatement"></param> public EmptyStatement Copy(IEmptyStatement emptyStatement) { return new EmptyStatement(emptyStatement); }
/// <inheritdoc /> public override Expression VisitEmptyStatement(IEmptyStatement operation, LocalBinder argument) { return(Expression.Empty()); }
/// <summary> /// Visits the specified empty statement. /// </summary> /// <param name="emptyStatement">The empty statement.</param> public override void Visit(IEmptyStatement emptyStatement) { EmptyStatement mutableEmptyStatement = emptyStatement as EmptyStatement; if (mutableEmptyStatement == null) { this.resultStatement = emptyStatement; return; } this.resultStatement = this.myCodeMutator.Visit(mutableEmptyStatement); }