DecompileFileTabContentFactory(IFileManager fileManager, IFileTreeNodeDecompiler fileTreeNodeDecompiler, ILanguageManager languageManager, IDecompilationCache decompilationCache, IMethodAnnotations methodAnnotations) { this.fileManager = fileManager; this.fileTreeNodeDecompiler = fileTreeNodeDecompiler; this.languageManager = languageManager; this.decompilationCache = decompilationCache; this.methodAnnotations = methodAnnotations; }
MethodBodySettingsCommand(IMethodAnnotations methodAnnotations, IMethodNode methodNode, MethodBodyOptions options) { this.methodAnnotations = methodAnnotations; this.methodNode = methodNode; this.newOptions = options; this.origMethodBody = methodNode.MethodDef.MethodBody; }
SolveAllMethods(IMethodAnnotations methodAnnotations, IModuleDocumentNode moduleNode, List <DeadInstr> deadInstructions, CancellationToken token) { this.methodAnnotations = methodAnnotations; this.moduleNode = moduleNode; this.methods = new List <MethodDef>(); var module = moduleNode.GetModule(); if (module.HasTypes) { foreach (TypeDef type in (IEnumerable <TypeDef>)module.Types) { AddMethods(methods, type); } } this.origMethodBodys = new List <MethodBody>(); foreach (var method in this.methods) { this.origMethodBodys.Add(method.MethodBody); } this.deadInstructions = new DeadInstr[deadInstructions.Count]; deadInstructions.CopyTo(this.deadInstructions); this.isBodyModified = new List <bool>(); this.token = token; }
EditMethodBodyILCommand(IMethodAnnotations methodAnnotations, MethodNode methodNode, MethodBodyOptions options) { this.methodAnnotations = methodAnnotations; this.methodNode = methodNode; newOptions = options; origMethodBody = methodNode.MethodDef.MethodBody; }
public void CopyTo(MethodDef method, IMethodAnnotations methodAnnotations) { method.MethodBody = body; method.ImplAttributes = implAttributes; method.CustomAttributes.Clear(); method.CustomAttributes.AddRange(customAttributes); methodAnnotations.SetBodyModified(method, isBodyModified); }
SolveMethod(IMethodAnnotations methodAnnotations, IMethodNode methodNode, List <DeadInstr> deadInstructions, CancellationToken token) { this.methodAnnotations = methodAnnotations; this.methodNode = methodNode; this.origMethodBody = methodNode.MethodDef.MethodBody; this.deadInstructions = new DeadInstr[deadInstructions.Count]; deadInstructions.CopyTo(this.deadInstructions); this.token = token; }
public SolveBlock(IMethodAnnotations methodAnnotations, IMethodNode methodNode, Context ctx, BoolExpr expr, Block block) { this.methodAnnotations = methodAnnotations; this.methodNode = methodNode; this.origMethodBody = methodNode.MethodDef.MethodBody; this.ctx = ctx; this.expr = expr; this.block = block; }
DecompileDocumentTabContentFactory(IDsDocumentService documentService, IDocumentTreeNodeDecompiler documentTreeNodeDecompiler, IDecompilerService decompilerService, IDecompilationCache decompilationCache, IMethodAnnotations methodAnnotations, IContentTypeRegistryService contentTypeRegistryService, IDocumentViewerContentFactoryProvider documentViewerContentFactoryProvider, IDocumentWriterService documentWriterService) { DocumentService = documentService; DocumentTreeNodeDecompiler = documentTreeNodeDecompiler; DecompilerService = decompilerService; DecompilationCache = decompilationCache; MethodAnnotations = methodAnnotations; ContentTypeRegistryService = contentTypeRegistryService; DocumentViewerContentFactoryProvider = documentViewerContentFactoryProvider; DocumentWriterService = documentWriterService; }
ProxyMethod(IMethodAnnotations methodAnnotations, IMethodNode methodNode, CancellationToken token) { this.methodAnnotations = methodAnnotations; this.methodNode = methodNode; this.token = token; this.methods = new List <MethodDef>(); this.origMethodBodys = new List <MethodBody>(); this.isBodyModified = new List <bool>(); }
DecompileDocumentTabContentFactory(IDsDocumentService documentService, IDocumentTreeNodeDecompiler documentTreeNodeDecompiler, IDecompilerService decompilerService, IDecompilationCache decompilationCache, IMethodAnnotations methodAnnotations, IContentTypeRegistryService contentTypeRegistryService, IDocumentViewerContentFactoryProvider documentViewerContentFactoryProvider) { DocumentService = documentService; DocumentTreeNodeDecompiler = documentTreeNodeDecompiler; DecompilerService = decompilerService; DecompilationCache = decompilationCache; MethodAnnotations = methodAnnotations; ContentTypeRegistryService = contentTypeRegistryService; DocumentViewerContentFactoryProvider = documentViewerContentFactoryProvider; }
SolveMethods(IMethodAnnotations methodAnnotations, ITypeNode typeNode, List <DeadInstr> deadInstructions, CancellationToken token) { this.methodAnnotations = methodAnnotations; this.typeNode = typeNode; this.methods = new List <MethodDef>(); AddMethods(this.methods, typeNode.TypeDef); this.origMethodBodys = new List <MethodBody>(); foreach (var method in this.methods) { this.origMethodBodys.Add(method.MethodBody); } this.deadInstructions = new DeadInstr[deadInstructions.Count]; deadInstructions.CopyTo(this.deadInstructions); this.isBodyModified = new List <bool>(); this.token = token; }
public void CopyTo(MethodDef method, IMethodAnnotations methodAnnotations) { method.MethodBody = body; method.ImplAttributes = implAttributes; methodAnnotations.SetBodyModified(method, isBodyModified); }
public void CopyTo(MethodDef method, IMethodAnnotations methodAnnotations) { method.MethodBody = body; methodDefOptions.CopyTo(method); methodAnnotations.SetBodyModified(method, isBodyModified); }
DecompileFileTabContentFactory(IFileManager fileManager, IFileTreeNodeDecompiler fileTreeNodeDecompiler, ILanguageManager languageManager, IDecompilationCache decompilationCache, IMethodAnnotations methodAnnotations, IContentTypeRegistryService contentTypeRegistryService, [ImportMany] IEnumerable <Lazy <IDocumentViewerCustomDataProvider, IDocumentViewerCustomDataProviderMetadata> > documentViewerCustomDataProviders) { this.FileManager = fileManager; this.FileTreeNodeDecompiler = fileTreeNodeDecompiler; this.LanguageManager = languageManager; this.DecompilationCache = decompilationCache; this.MethodAnnotations = methodAnnotations; this.ContentTypeRegistryService = contentTypeRegistryService; this.DocumentViewerCustomDataProviders = documentViewerCustomDataProviders.OrderBy(a => a.Metadata.Order).ToArray(); }