public Property(PropertyKind kind, IPropertyKeyExpression key, Expression value, Location location = null) : base(SyntaxNodeType.Property, location) { if (!FastEnumValidator <PropertyKind> .IsDefined((int)kind)) { throw new ArgumentOutOfRangeException("kind"); } if (key == null) { throw new ArgumentNullException("key"); } if (value == null) { throw new ArgumentNullException("value"); } Value = value; Key = key; Kind = kind; }
public static Property Property(PropertyKind kind, IPropertyKeyExpression key, Expression value, Location location) { return(new Property(kind, key, value, location)); }