void DecompilePartial(DecompilePartialType info) { var state = CreateAstBuilder(info.Context, CSharpDecompiler.CreateDecompilerSettings(langSettings.Settings, info.UseUsingDeclarations), currentType: info.Type); try { state.AstBuilder.AddType(info.Type); RunTransformsAndGenerateCode(ref state, info.Output, info.Context, new DecompilePartialTransform(info.Type, info.Definitions, info.ShowDefinitions, info.AddPartialKeyword, info.InterfacesToRemove)); } finally { state.Dispose(); } }