Exemplo n.º 1
0
        void DecompileTypeMethods(DecompileTypeMethods info)
        {
            var state = CreateAstBuilder(info.Context, CSharpDecompiler.CreateDecompilerSettings_DecompileTypeMethods(langSettings.Settings, !info.DecompileHidden), currentType: info.Type);

            try {
                state.AstBuilder.GetDecompiledBodyKind = (builder, method) => CSharpDecompiler.GetDecompiledBodyKind(info, builder, method);
                state.AstBuilder.AddType(info.Type);
                RunTransformsAndGenerateCode(ref state, info.Output, info.Context, new DecompileTypeMethodsTransform(info.Methods, !info.DecompileHidden, info.MakeEverythingPublic));
            }
            finally {
                state.Dispose();
            }
        }