diff options
author | Rob Mensching <rob@firegiant.com> | 2018-10-24 21:06:51 -0700 |
---|---|---|
committer | Rob Mensching <rob@robmensching.com> | 2018-10-24 21:17:34 -0700 |
commit | 822d917960cbd35f506598af4baa6a20ad4b447e (patch) | |
tree | 0d4cf39e25f5fe213bbeac2fb546d2aa86b172db /src/WixToolset.Core/Decompiler.cs | |
parent | 7a2859709034f7f4f048a0757779a6e2fee6df5b (diff) | |
download | wix-822d917960cbd35f506598af4baa6a20ad4b447e.tar.gz wix-822d917960cbd35f506598af4baa6a20ad4b447e.tar.bz2 wix-822d917960cbd35f506598af4baa6a20ad4b447e.zip |
Re-introduce "decompile" to backend
Diffstat (limited to 'src/WixToolset.Core/Decompiler.cs')
-rw-r--r-- | src/WixToolset.Core/Decompiler.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/WixToolset.Core/Decompiler.cs b/src/WixToolset.Core/Decompiler.cs index 45cfbea0..685722a8 100644 --- a/src/WixToolset.Core/Decompiler.cs +++ b/src/WixToolset.Core/Decompiler.cs | |||
@@ -19,7 +19,7 @@ namespace WixToolset.Core | |||
19 | 19 | ||
20 | public IServiceProvider ServiceProvider { get; } | 20 | public IServiceProvider ServiceProvider { get; } |
21 | 21 | ||
22 | public BindResult Decompile(IDecompileContext context) | 22 | public DecompileResult Decompile(IDecompileContext context) |
23 | { | 23 | { |
24 | // Pre-decompile. | 24 | // Pre-decompile. |
25 | // | 25 | // |
@@ -30,22 +30,22 @@ namespace WixToolset.Core | |||
30 | 30 | ||
31 | // Decompile. | 31 | // Decompile. |
32 | // | 32 | // |
33 | var bindResult = this.BackendDecompile(context); | 33 | var result = this.BackendDecompile(context); |
34 | 34 | ||
35 | if (bindResult != null) | 35 | if (result != null) |
36 | { | 36 | { |
37 | // Post-decompile. | 37 | // Post-decompile. |
38 | // | 38 | // |
39 | foreach (var extension in context.Extensions) | 39 | foreach (var extension in context.Extensions) |
40 | { | 40 | { |
41 | extension.PostDecompile(bindResult); | 41 | extension.PostDecompile(result); |
42 | } | 42 | } |
43 | } | 43 | } |
44 | 44 | ||
45 | return bindResult; | 45 | return result; |
46 | } | 46 | } |
47 | 47 | ||
48 | private BindResult BackendDecompile(IDecompileContext context) | 48 | private DecompileResult BackendDecompile(IDecompileContext context) |
49 | { | 49 | { |
50 | var extensionManager = context.ServiceProvider.GetService<IExtensionManager>(); | 50 | var extensionManager = context.ServiceProvider.GetService<IExtensionManager>(); |
51 | 51 | ||