Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
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;
 }
Example #4
0
 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();
 }
Example #5
0
 public ExtensionDeclarationNode(Basic.SourceLocation location, IEnumerable <DeclarationTypeArgumentNode> typeArguments, TypeExpressionNode target, DeclarationBodyNode body) : base(location)
 {
     TypeArguments = typeArguments?.ToList().AsReadOnly();
     Target        = target;
     Body          = body;
 }