public LabelStmt(Text.Span span, VariableNameRef /*!*/ name) : base(span) { Debug.Assert(!string.IsNullOrEmpty(name.Name.Value)); _name = name; }
/// <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; }
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; }
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; }
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); } }
public GotoStmt(Text.Span span, VariableNameRef /*!*/ labelName) : base(span) { Debug.Assert(!string.IsNullOrEmpty(labelName.Name.Value)); _labelName = labelName; }
public ConstantDecl(Text.Span span, string /*!*/ name, Text.Span namePos, Expression /*!*/ initializer) : base(span) { this.name = new VariableNameRef(namePos, name); this.initializer = initializer; }
public DirectStFldUse(Span span, TypeRef typeRef, VariableName propertyName, Span propertyNamePosition) : base(span, typeRef) { this.propertyName = new VariableNameRef(propertyNamePosition, propertyName); }