Пример #1
0
		public DecompilerProvider(DecompilerSettingsService decompilerSettingsService) {
			Debug.Assert(decompilerSettingsService != null);
			if (decompilerSettingsService == null)
				throw new ArgumentNullException(nameof(decompilerSettingsService));
			this.decompilerSettingsService = decompilerSettingsService;
		}
Пример #2
0
		MyDecompilerCreator(DecompilerSettingsService decompilerSettingsService) {
			this.decompilerSettingsService = decompilerSettingsService;
		}
Пример #3
0
		internal static IEnumerable<ILAstDecompiler> GetDebugDecompilers(DecompilerSettingsService decompilerSettingsService) {
			double orderUI = DecompilerConstants.ILAST_ILSPY_DEBUG_ORDERUI;
			uint id = 0x64A926A5;
			yield return new ILAstDecompiler(decompilerSettingsService.ILAstDecompilerSettings, orderUI++) {
				uniqueNameUI = "ILAst (unoptimized)",
				uniqueGuid = new Guid($"CB470049-6AFB-4BDB-93DC-1BB9{id++:X8}"),
				inlineVariables = false
			};
			string nextName = "ILAst (variable splitting)";
			foreach (ILAstOptimizationStep step in Enum.GetValues(typeof(ILAstOptimizationStep))) {
				yield return new ILAstDecompiler(decompilerSettingsService.ILAstDecompilerSettings, orderUI++) {
					uniqueNameUI = nextName,
					uniqueGuid = new Guid($"CB470049-6AFB-4BDB-93DC-1BB9{id++:X8}"),
					abortBeforeStep = step
				};
				nextName = "ILAst (after " + step + ")";
			}
		}