public void ToTextCode(IdToNameMap nameMap, StringBuilder result, int indent, bool writeMethod, bool writeCode = true) { if (GlobalVariables != null && GlobalVariables.Length != 0) { TextCodeUtils.WriteJoinCode(GlobalVariables, Environment.NewLine, nameMap, result, indent); result.AppendLine(); } TextCodeUtils.WriteJoinCode(Classes, Environment.NewLine, writeMethod ? this : null, nameMap, result, indent, writeCode); if (DllDeclares != null && DllDeclares.Length != 0) { result.AppendLine(); TextCodeUtils.WriteJoinCode(DllDeclares, Environment.NewLine, nameMap, result, indent); } if (Structs != null && Structs.Length != 0) { result.AppendLine(); TextCodeUtils.WriteJoinCode(Structs, Environment.NewLine, nameMap, result, indent); } }
public void ToTextCode(IdToNameMap nameMap, StringBuilder result, int indent = 0) { TextCodeUtils.WriteJoinCode(Constants, Environment.NewLine, nameMap, result, indent); }