Skip to content

Commit e8e8fd4

Browse files
committed
Remove unnecessary analyzer extensions
1 parent 9859cc0 commit e8e8fd4

1 file changed

Lines changed: 0 additions & 28 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/AnalyzerExtensions.cs

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,6 @@ private static Tuple<WeakReference<Compilation>, ConcurrentDictionary<SyntaxTree
3030
private static Tuple<WeakReference<Compilation>, StrongBox<StyleCopSettings>> settingsCache
3131
= Tuple.Create(new WeakReference<Compilation>(null), default(StrongBox<StyleCopSettings>));
3232

33-
/// <summary>
34-
/// Register an action to be executed at completion of parsing of a code document. A syntax tree action reports
35-
/// diagnostics about the <see cref="SyntaxTree"/> of a document.
36-
/// </summary>
37-
/// <remarks>This method honors exclusions.</remarks>
38-
/// <param name="context">The analysis context.</param>
39-
/// <param name="action">Action to be executed at completion of parsing of a document.</param>
40-
public static void RegisterSyntaxTreeActionHonorExclusions(this CompilationStartAnalysisContext context, Action<SyntaxTreeAnalysisContext> action)
41-
{
42-
Compilation compilation = context.Compilation;
43-
ConcurrentDictionary<SyntaxTree, bool> cache = GetOrCreateGeneratedDocumentCache(compilation);
44-
45-
context.RegisterSyntaxTreeAction(
46-
c =>
47-
{
48-
if (c.IsGeneratedDocument(cache))
49-
{
50-
return;
51-
}
52-
53-
// Honor the containing document item's ExcludeFromStylecop=True
54-
// MSBuild metadata, if analyzers have access to it.
55-
//// TODO: code here
56-
57-
action(c);
58-
});
59-
}
60-
6133
/// <summary>
6234
/// Register an action to be executed at completion of parsing of a code document. A syntax tree action reports
6335
/// diagnostics about the <see cref="SyntaxTree"/> of a document.

0 commit comments

Comments
 (0)