icsharpcode/ILSpy

Implement Roslyn formatting options in the decompiler

Open

#1,088 创建于 2018年3月11日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C# (3,645 fork)batch import
C#DecompilerHelp WantedNew FeatureOutput

仓库指标

Star
 (25,162 star)
PR 合并指标
 (平均合并 15天 22小时) (30 天内合并 61 个 PR)

描述

As we are now part of Roslyn, it would be nice to support all the formatting options that Roslyn exposes (plus new ones dotnet/roslyn#25303).

  1. Copy Roslyn's CSharpFormattingOptions into ICSharpCode.Decompiler.CSharp.Output replacing all options with plain bool/enum properties, so we use the same names as Roslyn does for the options, but don't have a dependency on Roslyn.
  2. Implement the options in CSharpOutputVisitor.
  3. Extend the Roslyn integration to pass the current options to the decompiler.

贡献者指南