public Switch(Expression e, ExplicitBlock block, Location l) : base(block) { Expr = e; this.block = block; loc = l; }
public void AddThisReferenceFromChildrenBlock(ExplicitBlock block) { if (this_references == null) { this_references = new List <ExplicitBlock>(); } if (!this_references.Contains(block)) { this_references.Add(block); } }
public Block(Block parent, Flags flags, Location start, Location end) { if (parent != null) { // the appropriate constructors will fixup these fields ParametersBlock = parent.ParametersBlock; Explicit = parent.Explicit; } this.Parent = parent; this.flags = flags; this.StartLocation = start; this.EndLocation = end; this.loc = start; statements = new List <Statement>(4); this.original = this; }
public void RemoveThisReferenceFromChildrenBlock(ExplicitBlock block) { this_references.Remove(block); }