Exemple #1
0
        string Render(InterfaceType interfaceType)
        {
            Symbols.MapTypeToPackage("myInterfaceFqn", interfaceType.Assembly);
            Symbols.MapNamespace(interfaceType.QualifiedNamespace, "MyNamespace");
            Symbols.MapTypeName("myInterfaceFqn", "MyInterface", kind: JsonModel.Spec.TypeKind.Interface);

            InterfaceGenerator generator = new InterfaceGenerator(interfaceType.Assembly, interfaceType, Symbols, Namespaces);

            SyntaxTree syntaxTree = generator.CreateSyntaxTree();

            return(syntaxTree.ToString());
        }