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; } }
public CiClass(CiCallType callType, string name, params CiMethod[] methods) { this.CallType = callType; this.Name = name; this.Methods = methods; AddRange(methods); }
public CiMethod(CiCallType callType, CiType type, string name, params CiVar[] parameters) { this.CallType = callType; this.Type = type; this.Name = name; this.Parameters.AddRange(parameters); }
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 }; }