Exemple #1
0
 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;
 }
Exemple #2
0
 public TupleExpressionNode(SourceLocation location, IEnumerable <TupleElementNode> elements, TupleKind kind) : base(location)
 {
     Elements = elements?.ToList().AsReadOnly();
     Kind     = kind;
 }