Browse Source

Fix #1976: ProxyCallReplacer should honor selected language version/selected options

pull/1984/head
Siegfried Pammer 5 years ago
parent
commit
91e9573449
  1. 2
      ICSharpCode.Decompiler/IL/Transforms/ProxyCallReplacer.cs

2
ICSharpCode.Decompiler/IL/Transforms/ProxyCallReplacer.cs

@ -26,6 +26,8 @@ namespace ICSharpCode.Decompiler.IL.Transforms
{ {
public void Run(ILFunction function, ILTransformContext context) public void Run(ILFunction function, ILTransformContext context)
{ {
if (!context.Settings.AsyncAwait)
return;
foreach (var inst in function.Descendants.OfType<CallInstruction>()) { foreach (var inst in function.Descendants.OfType<CallInstruction>()) {
Run(inst, context); Run(inst, context);
} }

Loading…
Cancel
Save