Skip to content

Commit

Permalink
Remove command generate-source-references (#1184)
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt authored Aug 24, 2023
1 parent 8952a0e commit 0a54575
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 244 deletions.
148 changes: 0 additions & 148 deletions src/CommandLine/Commands/GenerateSourceReferencesCommand.cs

This file was deleted.

This file was deleted.

31 changes: 0 additions & 31 deletions src/CommandLine/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ private static int Main(string[] args)
typeof(SpellcheckCommandLineOptions),
#if DEBUG
typeof(FindSymbolsCommandLineOptions),
typeof(GenerateSourceReferencesCommandLineOptions),
typeof(ListVisualStudioCommandLineOptions),
typeof(ListReferencesCommandLineOptions),
typeof(SlnListCommandLineOptions),
Expand Down Expand Up @@ -202,8 +201,6 @@ private static int Main(string[] args)
#if DEBUG
case FindSymbolsCommandLineOptions findSymbolsCommandLineOptions:
return FindSymbolsAsync(findSymbolsCommandLineOptions).Result;
case GenerateSourceReferencesCommandLineOptions generateSourceReferencesCommandLineOptions:
return GenerateSourceReferencesAsync(generateSourceReferencesCommandLineOptions).Result;
case ListReferencesCommandLineOptions listReferencesCommandLineOptions:
return ListReferencesAsync(listReferencesCommandLineOptions).Result;
case SlnListCommandLineOptions slnListCommandLineOptions:
Expand Down Expand Up @@ -847,34 +844,6 @@ private static async Task<int> GenerateDocRootAsync(GenerateDocRootCommandLineOp
return GetExitCode(status);
}

#if DEBUG
private static async Task<int> GenerateSourceReferencesAsync(GenerateSourceReferencesCommandLineOptions options)
{
if (!TryParseOptionValueAsEnum(options.Depth, OptionNames.Depth, out DocumentationDepth depth, DocumentationOptions.DefaultValues.Depth))
return ExitCodes.Error;

if (!TryParseOptionValueAsEnum(options.Visibility, OptionNames.Visibility, out Visibility visibility))
return ExitCodes.Error;

if (!options.TryGetProjectFilter(out ProjectFilter projectFilter))
return ExitCodes.Error;

if (!TryParsePaths(options.Path, out ImmutableArray<string> paths))
return ExitCodes.Error;

var command = new GenerateSourceReferencesCommand(
options,
depth,
visibility,
projectFilter,
FileSystemFilter.CreateOrDefault(options.Include, options.Exclude));

CommandStatus status = await command.ExecuteAsync(paths, options.MSBuildPath, options.Properties);

return GetExitCode(status);
}
#endif

private static int Migrate(MigrateCommandLineOptions options)
{
if (!string.Equals(options.Identifier, "roslynator.analyzers", StringComparison.Ordinal))
Expand Down

0 comments on commit 0a54575

Please sign in to comment.