Esempio n. 1
0
        public LabelStmt(Text.Span span, VariableNameRef /*!*/ name)
            : base(span)
        {
            Debug.Assert(!string.IsNullOrEmpty(name.Name.Value));

            _name = name;
        }
Esempio n. 2
0
 /// <summary>
 /// Constant construtor
 /// </summary>
 /// <param name="span">Declaration span.</param>
 /// <param name="name">Constant name.</param>
 /// <param name="namePos">Position of the name.</param>
 /// <param name="initializer">Initial value of the ocnstant.</param>
 public ConstantDecl(Text.Span span, string /*!*/ name, Text.Span namePos, Expression /*!*/ initializer)
     : base(span)
 {
     System.Diagnostics.Debug.Assert(initializer != null);
     this.name        = new VariableNameRef(namePos, name);
     this.initializer = initializer;
 }
Esempio n. 3
0
        public ClassConstUse(Text.Span span, TypeRef /*!*/ typeRef, VariableNameRef /*!*/ name)
            : base(span)
        {
            Debug.Assert(typeRef != null);
            Debug.Assert(!string.IsNullOrEmpty(name.Name.Value));

            this.targetType = typeRef;
            this.name       = name;
        }
Esempio n. 4
0
 public FormalParam(Text.Span span, string /*!*/ name, Text.Span nameSpan, TypeRef typeHint, Flags flags,
                    Expression initValue)
     : base(span)
 {
     _name      = new VariableNameRef(nameSpan, name);
     _typeHint  = typeHint;
     _flags     = flags;
     _initValue = initValue;
 }
Esempio n. 5
0
 public FormalParam(Text.Span span, string /*!*/ name, Text.Span nameSpan, TypeRef typeHint, Flags flags,
                    Expression initValue, List <CustomAttribute> attributes)
     : base(span)
 {
     _name      = new VariableNameRef(nameSpan, name);
     _typeHint  = typeHint;
     _flags     = flags;
     _initValue = initValue;
     if (attributes != null && attributes.Count != 0)
     {
         this.Attributes = new CustomAttributes(attributes);
     }
 }
Esempio n. 6
0
 public GotoStmt(Text.Span span, VariableNameRef /*!*/ labelName)
     : base(span)
 {
     Debug.Assert(!string.IsNullOrEmpty(labelName.Name.Value));
     _labelName = labelName;
 }
Esempio n. 7
0
 public ConstantDecl(Text.Span span, string /*!*/ name, Text.Span namePos, Expression /*!*/ initializer)
     : base(span)
 {
     this.name        = new VariableNameRef(namePos, name);
     this.initializer = initializer;
 }
Esempio n. 8
0
 public DirectStFldUse(Span span, TypeRef typeRef, VariableName propertyName, Span propertyNamePosition)
     : base(span, typeRef)
 {
     this.propertyName = new VariableNameRef(propertyNamePosition, propertyName);
 }