示例#1
0
 public AstConstraint(AstIdentifier parameter, AstConstraintType type, IReadOnlyList <AstExpression> baseTypes, Source optionalCtor = null)
 {
     Parameter           = parameter;
     Type                = type;
     BaseTypes           = baseTypes;
     OptionalConstructor = optionalCtor;
 }
示例#2
0
 public TokenAttribute(string value, AstClassType classType, AstConstraintType constraintClassType = 0)
 {
     Value               = value;
     ClassType           = classType;
     ConstraintClassType = constraintClassType;
 }