Exemplo n.º 1
0
        public override Initr ConformType(MemberIterator iter)
        {
            iter.Locate(this.expr.Type);
            Expr expr = TypeCast.MakeCast(this.expr, iter.CurType);

            return(new InitExpr(expr));
        }
Exemplo n.º 2
0
        public override void Iterate(MemberIterator iter, Action <Int32, Expr> action)
        {
            iter.Locate(this.expr.Type);
            Int32 offset = iter.CurOffset;
            Expr  expr   = this.expr;

            action(offset, expr);
        }
Exemplo n.º 3
0
 public override void Iterate(MemberIterator iter, Action <Int32, Expr> action)
 {
     iter.InBrace();
     for (Int32 i = 0; i < this.initrs.Count; ++i)
     {
         this.initrs[i].Iterate(iter, action);
         if (i != this.initrs.Count - 1)
         {
             iter.Next();
         }
     }
     iter.OutBrace();
 }
Exemplo n.º 4
0
        public override Initr ConformType(MemberIterator iter)
        {
            iter.InBrace();
            List <Initr> initrs = new List <Initr>();

            for (Int32 i = 0; i < this.initrs.Count; ++i)
            {
                initrs.Add(this.initrs[i].ConformType(iter));
                if (i != this.initrs.Count - 1)
                {
                    iter.Next();
                }
            }
            iter.OutBrace();
            return(new InitList(initrs));
        }
Exemplo n.º 5
0
 public override void Iterate(MemberIterator iter, Action<Int32, Expr> action) {
     iter.InBrace();
     for (Int32 i = 0; i < this.initrs.Count; ++i) {
         this.initrs[i].Iterate(iter, action);
         if (i != this.initrs.Count - 1) {
             iter.Next();
         }
     }
     iter.OutBrace();
 }
Exemplo n.º 6
0
 public override Initr ConformType(MemberIterator iter) {
     iter.InBrace();
     List<Initr> initrs = new List<Initr>();
     for (Int32 i = 0; i < this.initrs.Count; ++i) {
         initrs.Add(this.initrs[i].ConformType(iter));
         if (i != this.initrs.Count - 1) {
             iter.Next();
         }
     }
     iter.OutBrace();
     return new InitList(initrs);
 }
Exemplo n.º 7
0
 public override void Iterate(MemberIterator iter, Action<Int32, Expr> action) {
     iter.Locate(this.expr.Type);
     Int32 offset = iter.CurOffset;
     Expr expr = this.expr;
     action(offset, expr);
 }
Exemplo n.º 8
0
 public override Initr ConformType(MemberIterator iter) {
     iter.Locate(this.expr.Type);
     Expr expr = TypeCast.MakeCast(this.expr, iter.CurType);
     return new InitExpr(expr);
 }
Exemplo n.º 9
0
 public abstract void Iterate(MemberIterator iter, Action<Int32, Expr> action);
Exemplo n.º 10
0
 public abstract Initr ConformType(MemberIterator iter);
Exemplo n.º 11
0
 public abstract void Iterate(MemberIterator iter, Action <Int32, Expr> action);
Exemplo n.º 12
0
 public abstract Initr ConformType(MemberIterator iter);