Exemplo n.º 1
0
 public Switch(Expression e, ExplicitBlock block, Location l)
     : base(block)
 {
     Expr       = e;
     this.block = block;
     loc        = l;
 }
Exemplo n.º 2
0
        public void AddThisReferenceFromChildrenBlock(ExplicitBlock block)
        {
            if (this_references == null)
            {
                this_references = new List <ExplicitBlock>();
            }

            if (!this_references.Contains(block))
            {
                this_references.Add(block);
            }
        }
Exemplo n.º 3
0
        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;
        }
Exemplo n.º 4
0
 public void RemoveThisReferenceFromChildrenBlock(ExplicitBlock block)
 {
     this_references.Remove(block);
 }