icsharpcode/ILSpy

Implement Roslyn formatting options in the decompiler

Open

#1,088 opened on Mar 11, 2018

View on GitHub
 (2 comments) (0 reactions) (0 assignees)C# (3,645 forks)batch import
C#DecompilerHelp WantedNew FeatureOutput

Repository metrics

Stars
 (25,162 stars)
PR merge metrics
 (Avg merge 15d 22h) (61 merged PRs in 30d)

Description

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.

Contributor guide