Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove command generate-source-references #1184

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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