public override void Visit(IUsingBlock block, UsageContext context)
 {
     foreach (var statement in block.Body)
     {
         statement.Accept(this, context);
     }
 }
Ejemplo n.º 2
0
 public override IStatement Visit(IUsingBlock stmt, int context)
 {
     return(new UsingBlock
     {
         Reference = _ref.Anonymize(stmt.Reference),
         Body = Anonymize(stmt.Body)
     });
 }
Ejemplo n.º 3
0
 public virtual void Visit(IUsingBlock block, TContext context)
 {
     block.Reference.Accept(this, context);
     Visit(block.Body, context);
 }
Ejemplo n.º 4
0
 public int Visit(IUsingBlock block, int context)
 {
     return(1 + Visit(block.Body, 0));
 }
 public override void Visit(IUsingBlock block, RelativeEditLocation loc)
 {
     loc.Size++;
     Visit(block.Body, loc);
 }
Ejemplo n.º 6
0
 public void Visit(IUsingBlock block, SSTPrintingContext c)
 {
     c.Indentation().Keyword("using").Space().Text("(");
     block.Reference.Accept(this, c);
     c.Text(")").StatementBlock(block.Body, this);
 }