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