Exemple #1
0
 private void WriteMembers(ModuleMember module)
 {
     foreach (var member in module.Members)
     {
         _code.WriteLine();
         JavaScriptMemberWriter.WriteMember(_code, member);
     }
 }
Exemple #2
0
        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("}");
        }