Ejemplo n.º 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();
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 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();
 }
Ejemplo n.º 5
0
 public TypeBodyNode(Basic.SourceLocation location, TypeExpressionNode type) : base(location)
 {
     Type = type;
 }
Ejemplo n.º 6
0
 public DeclarationBodyNode(Basic.SourceLocation location) : base(location)
 {
 }
Ejemplo n.º 7
0
 public ExpressionBodyNode(Basic.SourceLocation location, ExpressionNode expression) : base(location)
 {
     Expression = expression;
 }
Ejemplo n.º 8
0
 public NewDeclarationBodyNode(Basic.SourceLocation location, IEnumerable <DeclarationTypeArgumentNode> arguments, TypeExpressionNode target) : base(location)
 {
     Arguments = arguments?.ToList().AsReadOnly();
     Target    = target;
 }
Ejemplo n.º 9
0
 public DeclarationTypeArgumentNode(Basic.SourceLocation location, string name, KindExpressionNode kind) : base(location)
 {
     Name = name;
     Kind = kind;
 }
Ejemplo n.º 10
0
 public EnumDeclarationBodyNode(Basic.SourceLocation location, IEnumerable <NamedConstructorNode> constructors) : base(location)
 {
     Constructors = constructors?.ToList().AsReadOnly();
 }
Ejemplo n.º 11
0
 public StructDeclarationBodyNode(Basic.SourceLocation location, IEnumerable <StructFieldDeclarationNode> fields, bool isUnion) : base(location)
 {
     Fields  = fields?.ToList().AsReadOnly();
     IsUnion = isUnion;
 }
Ejemplo n.º 12
0
 public DeclarationListBodyNode(Basic.SourceLocation location, IEnumerable <DeclarationNode> declarations) : base(location)
 {
     Declarations = declarations?.ToList().AsReadOnly();
 }
Ejemplo n.º 13
0
 public StatementListBodyNode(Basic.SourceLocation location, IEnumerable <StatementNode> statements) : base(location)
 {
     Statements = statements?.ToList().AsReadOnly();
 }
Ejemplo n.º 14
0
 public DeclarationAnnotationNode(Basic.SourceLocation location, DeclarationAnnotationName name, IReadOnlyList <DeclarationAnnotationParameterNode> arguments) : base(location)
 {
     Name      = name;
     Arguments = arguments;
 }
Ejemplo n.º 15
0
 public DeclarationAnnotationParameterNode(Basic.SourceLocation location, ExpressionNode expression, TypeExpressionNode type) : base(location)
 {
     Expression = expression;
     Type       = type;
 }
Ejemplo n.º 16
0
 public ExtensionDeclarationNode(Basic.SourceLocation location, IEnumerable <DeclarationTypeArgumentNode> typeArguments, TypeExpressionNode target, DeclarationBodyNode body) : base(location)
 {
     TypeArguments = typeArguments?.ToList().AsReadOnly();
     Target        = target;
     Body          = body;
 }