public FunctionArgumentNode(SourceLocation location, TypeExpressionNode argument, bool isLet, bool isUnstable, RefKind @ref) : base(location) { Argument = argument; IsLet = isLet; IsUnstable = isUnstable; Ref = @ref; }
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 LambdaResultNode(SourceLocation location, bool isLet, bool isUnstable, RefKind @ref, TypeExpressionNode type) : base(location) { IsLet = isLet; IsUnstable = isUnstable; Ref = @ref; Type = type; }
public LambdaArgumentNode(SourceLocation location, string name, bool isLet, bool isUnstable, RefKind @ref, TypeExpressionNode type) : base(location) { Name = name; IsLet = isLet; IsUnstable = isUnstable; Ref = @ref; Type = type; }
public SimplePatternNode(SourceLocation location, bool isLet, bool isUnstable, RefKind @ref, string name, TypeExpressionNode typeAnnotation) : base(location) { IsLet = isLet; IsUnstable = isUnstable; Ref = @ref; Name = name; TypeAnnotation = typeAnnotation; }
public FunctionDeclarationArgumentNode(SourceLocation location, string name, TypeExpressionNode type, bool isLet, bool isUnstable, RefKind @ref, ExpressionNode defaultValue) : base(location) { Name = name; Type = type; IsLet = isLet; IsUnstable = isUnstable; this.Ref = @ref; DefaultValue = defaultValue; }
public NewExpressionNode(SourceLocation location, NewBehavior behavior, bool isConstNew, bool isVolatileNew, TypeExpressionNode type, IEnumerable <ExpressionNode> initArguments, ExpressionNode arraySizeArgument) : base(location) { Behavior = behavior; IsConstNew = isConstNew; IsVolatileNew = isVolatileNew; Type = type; InitArguments = initArguments?.ToList().AsReadOnly(); ArraySizeArgument = arraySizeArgument; }
public StructPatternNode(SourceLocation location, IEnumerable <StructPatternElementNode> innerPatterns, string name, bool isLet, bool isUnstable, RefKind @ref, TypeExpressionNode typeAnnotation, TailPosition?tailPosition) : base(location) { InnerPatterns = innerPatterns?.ToList().AsReadOnly(); Name = name; IsLet = isLet; IsUnstable = isUnstable; Ref = @ref; TypeAnnotation = typeAnnotation; TailPosition = tailPosition; }
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 TuplePatternNode(SourceLocation location, TupleKind tupleKind, string name, bool isLet, bool isUnstable, bool isPointer, RefKind @ref, IEnumerable <TupleElementPatternNode> innerPatterns, TypeExpressionNode typeAnnotation, TailPosition?tailPosition) : base(location) { TupleKind = tupleKind; Name = name; IsLet = isLet; IsUnstable = isUnstable; IsPointer = isPointer; Ref = @ref; InnerPatterns = innerPatterns?.ToList().AsReadOnly(); TypeAnnotation = typeAnnotation; TailPosition = tailPosition; }
public ConstructorPatternNode(SourceLocation location, bool isLet, bool isUnstable, RefKind @ref, string moduleName, string constructorName, IEnumerable <string> typePatterns, IEnumerable <PatternNode> valuePatterns, TypeExpressionNode typeAnnotation, string name, TailPosition?tailPosition) : base(location) { IsLet = isLet; IsUnstable = isUnstable; Ref = @ref; ModuleName = moduleName; ConstructorName = constructorName; TypePatterns = typePatterns?.ToList().AsReadOnly(); ValuePatterns = valuePatterns?.ToList().AsReadOnly(); TypeAnnotation = typeAnnotation; Name = name; TailPosition = tailPosition; }
public DotTypeExpressionNode Create(TypeExpressionNode left, TypeExpressionNode right) { if (left == null) { throw new ArgumentNullException(nameof(left)); } if (right == null) { throw new ArgumentNullException(nameof(right)); } return(new DotTypeExpressionNode() { Left = left, Right = right }); }
public DeclarationAnnotationParameterNode(Basic.SourceLocation location, ExpressionNode expression, TypeExpressionNode type) : base(location) { Expression = expression; Type = type; }
public IsOperatorExpressionNode(SourceLocation location, ExpressionNode left, TypeExpressionNode type) : base(location) { Left = left; Type = type; }
public MapTypeExpressionNode(SourceLocation location, TypeExpressionNode key, TypeExpressionNode value) : base(location) { Key = key; Value = value; }
public IntrinsicTypeFunctionExpressionNode(SourceLocation location, TypeExpressionNode type, IntrinsicTypeFunction function) : base(location) { Type = type; Function = function; }
public ClassKindExpressionNode(SourceLocation location, TypeExpressionNode @class) : base(location) { Class = @class; }
public NewDeclarationBodyNode(Basic.SourceLocation location, IEnumerable <DeclarationTypeArgumentNode> arguments, TypeExpressionNode target) : base(location) { Arguments = arguments?.ToList().AsReadOnly(); Target = target; }
public TypeBodyNode(Basic.SourceLocation location, TypeExpressionNode type) : base(location) { Type = type; }
public ExtensionDeclarationNode(Basic.SourceLocation location, IEnumerable <DeclarationTypeArgumentNode> typeArguments, TypeExpressionNode target, DeclarationBodyNode body) : base(location) { TypeArguments = typeArguments?.ToList().AsReadOnly(); Target = target; Body = body; }
public ListTypeExpressionNode(SourceLocation location, TypeExpressionNode element) : base(location) { Element = element; }
public PointerTypeExpressionNode(SourceLocation location, TypeExpressionNode pointee, bool isConst, bool isVolatile) : base(location) { Pointee = pointee; IsConst = isConst; IsVolatile = isVolatile; }
public PolyTypeExpressionNode(SourceLocation location, TypeExpressionNode constructor, IReadOnlyList <TypeExpressionNode> arguments) : base(location) { Constructor = constructor; Arguments = arguments; }
public AnnotatedTypeExpressionNode(SourceLocation location, TypeExpressionNode annotated, KindExpressionNode kind) : base(location) { Annotated = annotated; Kind = kind; }
public BinaryTypeExpressionNode(SourceLocation location, ExpressionNode left, TypeExpressionNode type, TypeExpressionOperator @operator) : base(location) { Left = left; Type = type; Operator = @operator; }
public TupleTypeAgumentNode(SourceLocation location, TypeExpressionNode type) : base(location) { Type = type; }