Esempio n. 1
0
 public AstDelegate(string comment, IReadOnlyList <AstAttribute> attrs, Modifiers modifiers, string cond,
                    AstExpression retType, AstIdentifier name, IReadOnlyList <AstParameter> parameters, AstGenericSignature optionalGenericSig)
     : base(comment, attrs, modifiers, cond, name, null)
 {
     ReturnType = retType;
     Parameters = parameters;
     OptionalGenericSignature = optionalGenericSig;
 }
Esempio n. 2
0
        public void WriteGenericSignature(AstGenericSignature s)
        {
            if (s == null)
            {
                WriteIdentifiers(null);
                return;
            }

            WriteIdentifiers(s.Parameters);
            WriteConstraints(s.Constraints);
        }
Esempio n. 3
0
 public AstClass(
     string comment,
     IReadOnlyList <AstAttribute> attrs,
     Modifiers modifiers,
     string cond,
     AstClassType type,
     AstIdentifier name,
     IReadOnlyList <AstExpression> bases,
     AstGenericSignature optionalGenericSig,
     IReadOnlyList <AstBlockMember> members,
     IReadOnlyList <AstExpression> swizzlers)
     : base(comment, attrs, modifiers, cond, name, members)
 {
     Type            = type;
     Bases           = bases;
     Swizzlers       = swizzlers;
     OptionalGeneric = optionalGenericSig;
 }