コード例 #1
0
ファイル: Ast.cs プロジェクト: rytmis/Escape
 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;
 }
コード例 #2
0
 public static Property Property(PropertyKind kind, IPropertyKeyExpression key, Expression value, Location location)
 {
     return(new Property(kind, key, value, location));
 }