Ejemplo n.º 1
0
        public IndirectTypeRef(Text.Span span, VariableUse /*!*/ classNameVar, List <TypeRef> /*!*/ genericParams)
            : base(span, genericParams)
        {
            Debug.Assert(classNameVar != null && genericParams != null);

            this.classNameVar = classNameVar;
        }
Ejemplo n.º 2
0
 public RefAssignEx(Text.Span span, VariableUse /*!*/ lvalue, Expression /*!*/ rvalue)
     : base(span)
 {
     Debug.Assert(rvalue is VarLikeConstructUse || rvalue is NewEx);
     this.lvalue = lvalue;
     this.rvalue = rvalue;
 }
Ejemplo n.º 3
0
 public ValueAssignEx(Text.Span span, Operations operation, VariableUse /*!*/ lvalue, Expression /*!*/ rvalue)
     : base(span)
 {
     this.lvalue    = lvalue;
     this.rvalue    = rvalue;
     this.operation = operation;
 }
Ejemplo n.º 4
0
        public IncDecEx(Text.Span span, bool inc, bool post, VariableUse /*!*/ variable)
            : base(span)
        {
            this.variable = variable;

            if (inc)
            {
                this.flags |= Flags.incrementation;
            }
            if (post)
            {
                this.flags |= Flags.post;
            }
        }
Ejemplo n.º 5
0
 public RefItem(Expression index, VariableUse refToGet)
     : base(index)
 {
     Debug.Assert(refToGet != null);
     this.refToGet = refToGet;
 }
Ejemplo n.º 6
0
 public ForeachVar(VariableUse variable, bool alias)
 {
     this.expr  = variable;
     this.alias = alias;
 }