public InstanceDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, string name, IEnumerable <DeclarationTypeArgumentNode> typeArguments, TypeExpressionNode @class, DeclarationBodyNode body) : base(location, accessibility, annotations) { Name = name; TypeArguments = typeArguments?.ToList().AsReadOnly(); Class = @class; Body = body; }
public TypeDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, string name, IList <DeclarationTypeArgumentNode> typeArguments, KindExpressionNode result, KindExpressionNode signature, DeclarationBodyNode body) : base(location, accessibility, annotations) { Name = name; TypeArguments = typeArguments; Result = result; Signature = signature; Body = body; }
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 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 FunctionDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, CallingConvention callingConvention, Name name, bool isLet, bool isUnstable, RefKind @ref, IEnumerable <DeclarationTypeArgumentNode> typeArguments, IEnumerable <FunctionDeclarationArgumentNode> arguments, FunctionTypeArgumentNode result, DeclarationBodyNode body, IEnumerable <FunctionDeclarationWhereClauseNode> whereClauses) : base(location, accessibility, annotations) { CallingConvention = callingConvention; Name = name; IsLet = isLet; IsUnstable = isUnstable; this.Ref = @ref; TypeArguments = typeArguments?.ToList().AsReadOnly(); Arguments = arguments?.ToList().AsReadOnly(); Result = result; Body = body; WhereClauses = whereClauses?.ToList().AsReadOnly(); }
public ModuleDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, ModuleName name) : base(location, accessibility, annotations) { Name = name; }
public SpecializationDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, IEnumerable <TypeExpressionNode> specializations) : base(location, accessibility, annotations) { Specializations = specializations?.ToList().AsReadOnly(); }
public ImportDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, ModuleName imported, IEnumerable <ImportDirectiveNode> directives) : base(location, accessibility, annotations) { Imported = imported; Directives = directives?.ToList().AsReadOnly(); }
protected DeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations) : base(location) { this.Accessibility = accessibility; this.Annotations = annotations?.ToList().AsReadOnly(); }
public StatementDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, StatementNode statement) : base(location, accessibility, annotations) { Statement = statement; }