Пример #1
0
        protected override void SaveCompiled()
        {
            var finalOutput = CodeBuilder.RemoveHighlights(output);

            finalOutput = CodeBuilder.RemoveMarkdown(finalOutput);
            InterfaceExtensions.Save(guid, decorated, finalOutput);
        }
Пример #2
0
        private void AfterGeneration()
        {
            @namespace?.AddInterface(@interface);
            var usings = CodeBuilder.Using(@interface.Usings()) + "\n\n";
            var output = (string.IsNullOrEmpty(decorated.@namespace) || string.IsNullOrWhiteSpace(decorated.@namespace)) ? usings + @interface.Generate(0) : usings + @namespace.Generate(0);

            InterfaceExtensions.Save(guid, decorated, output);
        }