Skip to content

Commit

Permalink
make some on instance classes static
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 3, 2024
1 parent 3342549 commit 6af053b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

namespace Docfx.Build.Common;

public class OverwriteDocumentReader
public static class OverwriteDocumentReader
{
public static FileModel Read(FileAndType file)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Docfx.Dotnet/Filters/RoslynFilterData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace Docfx.Dotnet;

internal class RoslynFilterData
internal static class RoslynFilterData
{
public static SymbolFilterData GetSymbolFilterData(ISymbol symbol)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Docfx.Dotnet/ManagedReference/Visitors/SpecIdHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

namespace Docfx.Dotnet;

internal sealed class SpecIdHelper
internal static class SpecIdHelper
{
private static readonly Regex TypeParameterRegex = new(@"\B(?<!`)`\d+", RegexOptions.Compiled);
private static readonly Regex MethodParameterRegex = new(@"\B``\d+", RegexOptions.Compiled);
Expand Down Expand Up @@ -82,7 +82,7 @@ private static string SpecMethodGenericParameter(IReadOnlyList<string> names, st
}

/// <summary>
/// spec extension method's receiver type.
/// spec extension method's receiver type.
/// for below overload: M(this A), M(this A, A), AddReference applies to the first method and AddSpecReference applies to the second method might get same id without prepending receiver type.
/// </summary>
/// <param name="symbol">symbol</param>
Expand Down

0 comments on commit 6af053b

Please sign in to comment.