Skip to content

Commit a293f3f

Browse files
committed
use static methods
1 parent 60e939d commit a293f3f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/CustomCode-Analyzer/Analyzer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ Location GetMemberLocation()
544544
/// <summary>
545545
/// Analyzes interface declarations.
546546
/// </summary>
547-
private void AnalyzeInterface(
547+
private static void AnalyzeInterface(
548548
SymbolAnalysisContext context,
549549
INamedTypeSymbol typeSymbol,
550550
ConcurrentDictionary<string, (InterfaceDeclarationSyntax Syntax, INamedTypeSymbol Symbol)> osInterfaces)
@@ -744,7 +744,7 @@ private void AnalyzeMethod(SymbolAnalysisContext context, IMethodSymbol methodSy
744744
/// <summary>
745745
/// Analyzes class declarations.
746746
/// </summary>
747-
private void AnalyzeClass(SymbolAnalysisContext context, INamedTypeSymbol typeSymbol)
747+
private static void AnalyzeClass(SymbolAnalysisContext context, INamedTypeSymbol typeSymbol)
748748
{
749749
// Check each interface implemented by this class to see if it has [OSInterface]
750750
foreach (var implementedInterface in typeSymbol.Interfaces)
@@ -892,7 +892,7 @@ private void AnalyzeCompilationEnd(
892892
/// Retrieves all <see cref="INamedTypeSymbol"/>s in the current compilation
893893
/// that match the given predicate. Traverses through all namespaces in a DFS manner.
894894
/// </summary>
895-
private IEnumerable<INamedTypeSymbol> GetAllTypesInCompilation(
895+
private static IEnumerable<INamedTypeSymbol> GetAllTypesInCompilation(
896896
Compilation compilation,
897897
Func<INamedTypeSymbol, bool> predicate)
898898
{

0 commit comments

Comments
 (0)