Browse Source

Fix #843 - Cannot click to navigate to TypeForwardedTo types

pull/847/head
Siegfried Pammer 8 years ago
parent
commit
949790d126
  1. 8
      ILSpy/Languages/CSharpLanguage.cs

8
ILSpy/Languages/CSharpLanguage.cs

@ -314,13 +314,13 @@ namespace ICSharpCode.ILSpy @@ -314,13 +314,13 @@ namespace ICSharpCode.ILSpy
using (options.FullDecompilation ? null : LoadedAssembly.DisableAssemblyLoad()) {
CSharpDecompiler decompiler = new CSharpDecompiler(assembly.ModuleDefinition, options.DecompilerSettings);
decompiler.CancellationToken = options.CancellationToken;
SyntaxTree st;
if (options.FullDecompilation) {
SyntaxTree st = decompiler.DecompileWholeModuleAsSingleFile();
output.WriteLine(st.ToString());
st = decompiler.DecompileWholeModuleAsSingleFile();
} else {
SyntaxTree st = decompiler.DecompileModuleAndAssemblyAttributes();
output.WriteLine(st.ToString());
st = decompiler.DecompileModuleAndAssemblyAttributes();
}
WriteCode(output, options.DecompilerSettings, st, decompiler.TypeSystem);
}
}
}

Loading…
Cancel
Save