CreateDecompilerSettings() статический приватный Метод

static private CreateDecompilerSettings ( bool publicOnly, MonoDevelop codePolicy ) : DecompilerSettings
publicOnly bool
codePolicy MonoDevelop
Результат ICSharpCode.Decompiler.DecompilerSettings
Пример #1
0
        public static DecompilerSettings GetDecompilerSettings(TextEditor data, bool publicOnly = false)
        {
            var types      = DesktopService.GetMimeTypeInheritanceChain(data.MimeType);
            var codePolicy = MonoDevelop.Projects.Policies.PolicyService.GetDefaultPolicy <MonoDevelop.CSharp.Formatting.CSharpFormattingPolicy> (types);
            var settings   = DomTypeNodeBuilder.CreateDecompilerSettings(publicOnly, codePolicy);

            return(settings);
        }
        public static List <ReferenceSegment> Decompile(TextEditorData data, ModuleDefinition module, TypeDefinition currentType, Action <AstBuilder> setData)
        {
            var types      = DesktopService.GetMimeTypeInheritanceChain(data.Document.MimeType);
            var codePolicy = MonoDevelop.Projects.Policies.PolicyService.GetDefaultPolicy <MonoDevelop.CSharp.Formatting.CSharpFormattingPolicy> (types);
            var settings   = DomTypeNodeBuilder.CreateDecompilerSettings(false, codePolicy);

            return(Decompile(data, module, currentType, setData, settings));
        }