示例#1
0
        public TypeProxy TypeFunc(TypeArg ret_type, params TypeArg[] arg_types)
        {
            var sig = new FuncSignature(Type(ret_type));

            foreach (var arg_type in arg_types)
            {
                sig.AddArg(Type(arg_type));
            }
            return(Type(sig));
        }
示例#2
0
 public TypeProxy Type(TypeArg tn)
 {
     if (!tn.tp.IsEmpty())
     {
         return(tn.tp);
     }
     else
     {
         return(Type(tn.name));
     }
 }
示例#3
0
 public TypeProxy TypeArr(TypeArg tn)
 {
     return(Type(new GenericArrayTypeSymbol(this, Type(tn))));
 }
示例#4
0
 public TypeProxy TypeRef(TypeArg tn)
 {
     return(Type(new RefType(Type(tn))));
 }