Пример #1
0
        public IndirectTypeRef(Text.Span span, VariableUse /*!*/ classNameVar, List <TypeRef> /*!*/ genericParams)
            : base(span, genericParams)
        {
            Debug.Assert(classNameVar != null && genericParams != null);

            this.classNameVar = classNameVar;
        }
Пример #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;
 }
Пример #3
0
 public ValueAssignEx(Text.Span span, Operations operation, VariableUse /*!*/ lvalue, Expression /*!*/ rvalue)
     : base(span)
 {
     this.lvalue    = lvalue;
     this.rvalue    = rvalue;
     this.operation = operation;
 }
Пример #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;
            }
        }
Пример #5
0
 public RefItem(Expression index, VariableUse refToGet)
     : base(index)
 {
     Debug.Assert(refToGet != null);
     this.refToGet = refToGet;
 }
Пример #6
0
 public ForeachVar(VariableUse variable, bool alias)
 {
     this.expr  = variable;
     this.alias = alias;
 }