/// <summary> /// Adds the get object data method code. /// </summary> /// <param name="code"> /// The code string. /// </param> /// <param name="cls"> /// The class declaration. /// </param> /// <param name="variableName"> /// Name of the variable. /// </param> /// <param name="className"> /// Name of the class. /// </param> private static void AddMembers(StringBuilder code, IClass cls, string variableName, string className) { var superClass = cls.GetSuperClass(); if (superClass == null) { return; } AddMembers(code, superClass, variableName, className); AddProperties(cls, code, variableName, className); AddMethods(cls, code, variableName, className); }