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

            foreach (var statement in block.Statements)
            {
                changed |= statement.AcceptVisitor(this);
            }
            return(changed);
        }
Exemplo n.º 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);
        }
Exemplo n.º 4
0
 public string VisitBlock(CilAstBlock block) => "block";