コード例 #1
0
 public NamedConstructorNode(Basic.SourceLocation location, string name, IEnumerable <DeclarationTypeArgumentNode> typeArguments, IEnumerable <NamedConstructorArgumentNode> arguments, ExpressionNode numericValue, ExpressionNode whereExpression, IEnumerable <DeclarationAnnotationNode> annotations) : base(location)
 {
     Name            = name;
     TypeArguments   = typeArguments?.ToList().AsReadOnly();
     Arguments       = arguments?.ToList().AsReadOnly();
     NumericValue    = numericValue;
     WhereExpression = whereExpression;
     Annotations     = annotations?.ToList().AsReadOnly();
 }
コード例 #2
0
 public DataDeclarationNode(Basic.SourceLocation location,
                            DeclarationAccessibility accessibility,
                            IEnumerable <DeclarationAnnotationNode> annotations,
                            string name, IEnumerable <DeclarationTypeArgumentNode> typeArguments,
                            DeclarationBodyNode body) : base(location, accessibility, annotations)
 {
     Name          = name;
     TypeArguments = typeArguments?.ToList().AsReadOnly();
     Body          = body;
 }
コード例 #3
0
 public NamedConstructorArgumentNode(Basic.SourceLocation location, TypeExpressionNode type, string name, bool isLet, bool isUnstable, RefKind @ref, IEnumerable <ExpressionNode> indexes, ExpressionNode defaultValue) : base(location)
 {
     Type         = type;
     Name         = name;
     IsLet        = isLet;
     IsUnstable   = isUnstable;
     this.Ref     = @ref;
     Indexes      = indexes?.ToList().AsReadOnly();
     DefaultValue = defaultValue;
 }
コード例 #4
0
 public StructFieldDeclarationNode(Basic.SourceLocation location, string name, TypeExpressionNode type, bool isLet, bool isUnstable, RefKind @ref, IEnumerable <ExpressionNode> indexes, ExpressionNode defaultValue, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations) : base(location)
 {
     Name          = name;
     Type          = type;
     IsLet         = isLet;
     IsUnstable    = isUnstable;
     this.Ref      = @ref;
     Indexes       = indexes?.ToList().AsReadOnly();
     DefaultValue  = defaultValue;
     Accessibility = accessibility;
     Annotations   = annotations?.ToList().AsReadOnly();
 }
コード例 #5
0
 public TypeBodyNode(Basic.SourceLocation location, TypeExpressionNode type) : base(location)
 {
     Type = type;
 }
コード例 #6
0
 public DeclarationBodyNode(Basic.SourceLocation location) : base(location)
 {
 }
コード例 #7
0
 public ExpressionBodyNode(Basic.SourceLocation location, ExpressionNode expression) : base(location)
 {
     Expression = expression;
 }
コード例 #8
0
 public NewDeclarationBodyNode(Basic.SourceLocation location, IEnumerable <DeclarationTypeArgumentNode> arguments, TypeExpressionNode target) : base(location)
 {
     Arguments = arguments?.ToList().AsReadOnly();
     Target    = target;
 }
コード例 #9
0
 public DeclarationTypeArgumentNode(Basic.SourceLocation location, string name, KindExpressionNode kind) : base(location)
 {
     Name = name;
     Kind = kind;
 }
コード例 #10
0
 public EnumDeclarationBodyNode(Basic.SourceLocation location, IEnumerable <NamedConstructorNode> constructors) : base(location)
 {
     Constructors = constructors?.ToList().AsReadOnly();
 }
コード例 #11
0
 public StructDeclarationBodyNode(Basic.SourceLocation location, IEnumerable <StructFieldDeclarationNode> fields, bool isUnion) : base(location)
 {
     Fields  = fields?.ToList().AsReadOnly();
     IsUnion = isUnion;
 }
コード例 #12
0
 public DeclarationListBodyNode(Basic.SourceLocation location, IEnumerable <DeclarationNode> declarations) : base(location)
 {
     Declarations = declarations?.ToList().AsReadOnly();
 }
コード例 #13
0
 public StatementListBodyNode(Basic.SourceLocation location, IEnumerable <StatementNode> statements) : base(location)
 {
     Statements = statements?.ToList().AsReadOnly();
 }
コード例 #14
0
 public DeclarationAnnotationNode(Basic.SourceLocation location, DeclarationAnnotationName name, IReadOnlyList <DeclarationAnnotationParameterNode> arguments) : base(location)
 {
     Name      = name;
     Arguments = arguments;
 }
コード例 #15
0
 public DeclarationAnnotationParameterNode(Basic.SourceLocation location, ExpressionNode expression, TypeExpressionNode type) : base(location)
 {
     Expression = expression;
     Type       = type;
 }
コード例 #16
0
 public ExtensionDeclarationNode(Basic.SourceLocation location, IEnumerable <DeclarationTypeArgumentNode> typeArguments, TypeExpressionNode target, DeclarationBodyNode body) : base(location)
 {
     TypeArguments = typeArguments?.ToList().AsReadOnly();
     Target        = target;
     Body          = body;
 }