public UnionCase(string name, IUnboundDecl valueType, int index) { if (valueType == null) { throw new ArgumentNullException("valueType"); } Name = name; ValueType = new Decl(valueType); Index = index; }
public FuncType(Position position, IBoundDecl parameter, IBoundDecl returnType) { if (parameter == null) { throw new ArgumentNullException("parameter"); } if (returnType == null) { throw new ArgumentNullException("returnType"); } Position = position; Parameter = new Decl(parameter); Return = new Decl(returnType); }
public Field(string name, IBoundDecl type, byte index) : this(name, index) { Type = new Decl(type); }