Beispiel #1
0
        void Write(CiCallType callType, string sealedString)
        {
            switch (callType)
            {
            case CiCallType.Static:
                Write("static ");
                break;

            case CiCallType.Normal:
                break;

            case CiCallType.Abstract:
                Write("abstract ");
                break;

            case CiCallType.Virtual:
                Write("virtual ");
                break;

            case CiCallType.Override:
                Write("override ");
                break;

            case CiCallType.Sealed:
                Write(sealedString);
                break;
            }
        }
Beispiel #2
0
 public CiClass(CiCallType callType, string name, params CiMethod[] methods)
 {
     this.CallType = callType;
     this.Name     = name;
     this.Methods  = methods;
     AddRange(methods);
 }
Beispiel #3
0
 public CiMethod(CiCallType callType, CiType type, string name, params CiVar[] parameters)
 {
     this.CallType = callType;
     this.Type     = type;
     this.Name     = name;
     this.Parameters.AddRange(parameters);
 }
Beispiel #4
0
 public CiMethod(CiType returnType, string name, params CiParam[] paramz)
 {
     this.Name      = name;
     this.CallType  = CiCallType.Normal;
     this.Signature = new CiDelegate {
         Name = name, ReturnType = returnType, Params = paramz
     };
 }
Beispiel #5
0
 public CiMethod(CiType returnType, string name, params CiParam[] paramz)
 {
     this.Name = name;
     this.CallType = CiCallType.Normal;
     this.Signature = new CiDelegate { Name = name, ReturnType = returnType, Params = paramz };
 }