Пример #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;
 }
Пример #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;
 }
Пример #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;
 }
Пример #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();
 }
Пример #5
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();
 }
Пример #6
0
 public ModuleDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, ModuleName name) : base(location, accessibility, annotations)
 {
     Name = name;
 }
Пример #7
0
 public SpecializationDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, IEnumerable <TypeExpressionNode> specializations) : base(location, accessibility, annotations)
 {
     Specializations = specializations?.ToList().AsReadOnly();
 }
Пример #8
0
 public ImportDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, ModuleName imported, IEnumerable <ImportDirectiveNode> directives) : base(location, accessibility, annotations)
 {
     Imported   = imported;
     Directives = directives?.ToList().AsReadOnly();
 }
Пример #9
0
 protected DeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations) : base(location)
 {
     this.Accessibility = accessibility;
     this.Annotations   = annotations?.ToList().AsReadOnly();
 }
Пример #10
0
 public StatementDeclarationNode(SourceLocation location, DeclarationAccessibility accessibility, IEnumerable <DeclarationAnnotationNode> annotations, StatementNode statement) : base(location, accessibility, annotations)
 {
     Statement = statement;
 }