public void BeginClass() { exe.BeginClass(io.GetClassname(), TypeAttributes.Public); if (io.getGenList()) { io.Out(".assembly '" + io.GetClassname() + "'\r\n"); io.Out("{\r\n"); io.Out("\t.ver 0:0:0:0\r\n"); io.Out("}\r\n\r\n"); io.Out(".class " + io.GetClassname() + "{\r\n"); } }
private string genFieldRef(Var e) { if (e == null) { return(null); } StringBuilder sb = new StringBuilder(Io.MAXSTR); if (e.getSign() == Tok.T_UNSIGNED) { sb.Append("unsigned "); } sb.Append(ilSType(e.getTypeId())); sb.Append(" "); sb.Append("Class" + io.GetClassname()); sb.Append("."); sb.Append(e.getName()); return(sb.ToString()); }
public Emit(Io o, Lib l) { io = o; lib = l; exe = new Exe(io.GetClassname(), io, l); }