예제 #1
0
 public static ImmutableHashSet <SymbolKind> GetAnalyzedSymbolKindsOption(
     this AnalyzerOptions options,
     DiagnosticDescriptor rule,
     ISymbol symbol,
     Compilation compilation,
     ImmutableHashSet <SymbolKind> defaultSymbolKinds,
     CancellationToken cancellationToken)
 => options.GetAnalyzedSymbolKindsOption(rule, symbol.Locations[0].SourceTree, compilation, defaultSymbolKinds, cancellationToken);
 public static ImmutableHashSet <SymbolKind> GetAnalyzedSymbolKindsOption(
     this AnalyzerOptions options,
     DiagnosticDescriptor rule,
     ISymbol symbol,
     Compilation compilation,
     ImmutableHashSet <SymbolKind> defaultSymbolKinds,
     CancellationToken cancellationToken)
 => TryGetSyntaxTreeForOption(symbol, out var tree)
     ? options.GetAnalyzedSymbolKindsOption(rule, tree, compilation, defaultSymbolKinds, cancellationToken)
     : defaultSymbolKinds;