コード例 #1
0
 public PtLocal(PonyTokenSpan span, PtLocalKind kind, PtIdentifier name, PtType?type)
     : base(span)
 {
     Kind = kind;
     Name = name;
     Type = type;
 }
コード例 #2
0
 public PtMethod(PonyTokenSpan span,
                 PtMethodKind kind,
                 PtAnnotations?annotations,
                 bool bare,
                 PtCap?receiverCap,
                 PtIdentifier name,
                 PtTypeParameters?typeParameters,
                 PtParameters parameters,
                 PtType?returnType,
                 bool partial,
                 PtString?doc,
                 PtExpression?body)
     : base(span)
 {
     Kind           = kind;
     Annotations    = annotations;
     Bare           = bare;
     ReceiverCap    = receiverCap;
     Name           = name;
     TypeParameters = typeParameters;
     Parameters     = parameters;
     ReturnType     = returnType;
     Partial        = partial;
     Doc            = doc;
     Body           = body;
 }
コード例 #3
0
 public PtRegularParameter(PonyTokenSpan span, PtIdentifier name, PtType type, PtExpression?value)
     : base(span)
 {
     Name  = name;
     Type  = type;
     Value = value;
 }
コード例 #4
0
 public PtLambdaCaptureName(PonyTokenSpan span, PtIdentifier name, PtType?type, PtExpression?value)
     : base(span)
 {
     Name  = name;
     Type  = type;
     Value = value;
 }
コード例 #5
0
 public PtTypeParameter(PonyTokenSpan span, PtIdentifier name, PtType?type, PtType?defaultType)
     : base(span)
 {
     Name        = name;
     Type        = type;
     DefaultType = defaultType;
 }
コード例 #6
0
 public PtNominalType(PonyTokenSpan span, PtIdentifier name, PtTypeArguments?typeArguments, PtCap?cap, PtEphemAlias?ea)
     : base(span)
 {
     Name          = name;
     TypeArguments = typeArguments;
     Cap           = cap;
     Ea            = ea;
 }
コード例 #7
0
 public PtField(PonyTokenSpan span, PtFieldKind kind, PtIdentifier name, PtType type, PtExpression?value, PtString?doc)
     : base(span)
 {
     Kind  = kind;
     Name  = name;
     Type  = type;
     Value = value;
 }
コード例 #8
0
 public PtClass(PonyTokenSpan span,
                PtClassKind kind,
                PtAnnotations?annotations,
                bool bare,
                PtCap?cap,
                PtIdentifier name,
                PtTypeParameters?typeParameters,
                PtType?provides,
                PtString?doc,
                PtMembers members)
     : base(span)
 {
     Kind           = kind;
     Annotations    = annotations;
     Bare           = bare;
     Cap            = cap;
     Name           = name;
     TypeParameters = typeParameters;
     Provides       = provides;
     Doc            = doc;
     Members        = members;
 }
コード例 #9
0
 public PtIdsSingle(PonyTokenSpan span, PtIdentifier name)
     : base(span)
 {
 }
コード例 #10
0
 public PtTilde(PonyTokenSpan span, PtIdentifier method)
     : base(span)
 {
     Method = method;
 }
コード例 #11
0
 public PtNamedArgument(PonyTokenSpan span, PtIdentifier name, PtExpression value)
     : base(span)
 {
     Name  = name;
     Value = value;
 }
コード例 #12
0
 public PtRef(PonyTokenSpan span, PtIdentifier name)
     : base(span)
 {
     Name = name;
 }
コード例 #13
0
 public PtDotIdentifier(PonyTokenSpan span, PtIdentifier before, PtIdentifier after)
     : base(span)
 {
     Before = before;
     After  = after;
 }
コード例 #14
0
 public PtDot(PonyTokenSpan span, PtIdentifier member)
     : base(span)
 {
     Member = member;
 }