Пример #1
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;
 }
Пример #2
0
        public PtUseFfi(PonyTokenSpan span, PtIdentifier?alias, PtFfiName ffiName, PtTypeArguments typeArguments, PtParameters parameters, bool partial, PtGuard?guard)
            : base(span, alias, guard)
        {
            Debug.Assert(alias == null);
            Debug.Assert(!partial);

            FfiName       = ffiName;
            TypeArguments = typeArguments;
            Parameters    = parameters;
            Partial       = partial;
        }