示例#1
0
 public void VisitBlock(CilAstBlock block)
 {
     foreach (var statement in block.Statements)
     {
         statement.AcceptVisitor(this);
     }
 }
示例#2
0
        public virtual bool VisitBlock(CilAstBlock block)
        {
            bool changed = false;

            foreach (var statement in block.Statements)
            {
                changed |= statement.AcceptVisitor(this);
            }
            return(changed);
        }
示例#3
0
        public IList <CilInstruction> VisitBlock(CilAstBlock block)
        {
            var result = new List <CilInstruction>();

            result.Add(block.BlockHeader);
            foreach (var statement in block.Statements)
            {
                result.AddRange(statement.AcceptVisitor(this));
            }
            return(result);
        }
示例#4
0
 public string VisitBlock(CilAstBlock block) => "block";