Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Nov 20, 2023
2 parents e52431d + 2269ba5 commit 240708f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 350 deletions.
252 changes: 0 additions & 252 deletions src/CommandLine/Commands/FindSymbolsCommand.cs

This file was deleted.

6 changes: 0 additions & 6 deletions src/CommandLine/Commands/GenerateDocCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,11 @@ DocumentationWriter CreateDocumentationWriter(DocumentationContext context)
}
}

SourceReferenceProvider sourceReferenceProvider = null;
#if DEBUG
if (Options.SourceReferences.Any())
sourceReferenceProvider = SourceReferenceProvider.Load(Options.SourceReferences);
#endif
var context = new DocumentationContext(
documentationModel,
GetUrlProvider(),
documentationOptions,
c => CreateDocumentationWriter(c),
sourceReferenceProvider: sourceReferenceProvider,
commonNamespaces: commonNamespaces);

var generator = new DocumentationGenerator(context);
Expand Down
6 changes: 1 addition & 5 deletions src/CommandLine/Commands/ListSymbolsCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,14 +145,10 @@ public override async Task<CommandResult> ExecuteAsync(ProjectOrSolution project
}
else if (string.Equals(extension, ".html", StringComparison.OrdinalIgnoreCase))
{
SourceReferenceProvider sourceReferenceProvider = (!string.IsNullOrEmpty(Options.SourceReferences))
? SourceReferenceProvider.Load(Options.SourceReferences)
: null;

var xmlWriterSettings = new XmlWriterSettings() { OmitXmlDeclaration = true, Indent = true, IndentChars = "" };

using (XmlWriter xmlWriter = XmlWriter.Create(path, xmlWriterSettings))
using (SymbolDefinitionWriter writer = new SymbolDefinitionHtmlWriter(xmlWriter, SymbolFilterOptions, format, documentationProvider, hierarchyRoot, sourceReferenceProvider))
using (SymbolDefinitionWriter writer = new SymbolDefinitionHtmlWriter(xmlWriter, SymbolFilterOptions, format, documentationProvider, hierarchyRoot))
{
writer.WriteDocument(assemblies, cancellationToken);
}
Expand Down
4 changes: 0 additions & 4 deletions src/CommandLine/Options/GenerateDocCommandLineOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,4 @@ public class GenerateDocCommandLineOptions : AbstractGenerateDocCommandLineOptio
HelpText = "Defines culture that should be used when searching for xml documentation files.",
MetaValue = "<CULTURE_ID>")]
public string PreferredCulture { get; set; }
#if DEBUG
[Option(longName: "source-references")]
public IEnumerable<string> SourceReferences { get; set; }
#endif
}
13 changes: 0 additions & 13 deletions src/CommandLine/Options/ListSymbolsCommandLineOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,23 +91,10 @@ public class ListSymbolsCommandLineOptions : MSBuildCommandLineOptions
MetaValue = "<ASSEMBLY_FILE>")]
public IEnumerable<string> ExternalAssemblies { get; set; }

#if DEBUG
[Option(longName: "source-references")]
public string SourceReferences { get; set; }
#endif

[Option(
longName: OptionNames.Visibility,
Default = new string[] { nameof(Roslynator.Visibility.Public) },
HelpText = "Defines one or more visibility of a type or a member. Allowed values are public, internal or private.",
MetaValue = "<VISIBILITY>")]
public IEnumerable<string> Visibility { get; set; }

//[Option(longName: "include-ienumerable",
// HelpText = "Indicates whether interface System.Collections.IEnumerable should be included in a documentation if a type also implements interface System.Collections.Generic.IEnumerable<T>.")]
//public bool IncludeIEnumerable { get; set; }

//[Option(longName: "no-precedence-for-system",
// HelpText = "Indicates whether symbols contained in 'System' namespace should be ordered as any other symbols and not before other symbols.")]
//public bool NoPrecedenceForSystem { get; set; }
}
Loading

0 comments on commit 240708f

Please sign in to comment.