private void WriteMembers(ModuleMember module) { foreach (var member in module.Members) { _code.WriteLine(); JavaScriptMemberWriter.WriteMember(_code, member); } }
public static void WriteClass(CodeTextBuilder code, TypeMember type) { code.WriteLine($"class {type.Name} {{"); code.Indent(1); type.Members.ForEach((member, index) => { if (index > 0) { code.WriteLine(); } JavaScriptMemberWriter.WriteMember(code, member); }); code.Indent(-1); code.WriteLine("}"); }