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 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 ExtensionDeclarationNode(Basic.SourceLocation location, IEnumerable <DeclarationTypeArgumentNode> typeArguments, TypeExpressionNode target, DeclarationBodyNode body) : base(location) { TypeArguments = typeArguments?.ToList().AsReadOnly(); Target = target; Body = body; }