@@ -92,25 +92,6 @@ public static ConcurrentDictionary<SyntaxTree, bool> GetOrCreateGeneratedDocumen
9292 return headerCache . Item2 ;
9393 }
9494
95- /// <summary>
96- /// Register an action to be executed at completion of semantic analysis of a <see cref="SyntaxNode"/> with an
97- /// appropriate kind. A syntax node action can report diagnostics about a <see cref="SyntaxNode"/>, and can also
98- /// collect state information to be used by other syntax node actions or code block end actions.
99- /// </summary>
100- /// <remarks>This method honors exclusions.</remarks>
101- /// <param name="context">Action will be executed only if the kind of a <see cref="SyntaxNode"/> matches
102- /// <paramref name="syntaxKind"/>.</param>
103- /// <param name="action">Action to be executed at completion of semantic analysis of a
104- /// <see cref="SyntaxNode"/>.</param>
105- /// <param name="syntaxKind">The kind of syntax that should be analyzed.</param>
106- /// <typeparam name="TLanguageKindEnum">Enum type giving the syntax node kinds of the source language for which
107- /// the action applies.</typeparam>
108- public static void RegisterSyntaxNodeActionHonorExclusions < TLanguageKindEnum > ( this CompilationStartAnalysisContext context , Action < SyntaxNodeAnalysisContext > action , TLanguageKindEnum syntaxKind )
109- where TLanguageKindEnum : struct
110- {
111- context . RegisterSyntaxNodeActionHonorExclusions ( action , LanguageKindArrays < TLanguageKindEnum > . GetOrCreateArray ( syntaxKind ) ) ;
112- }
113-
11495 /// <summary>
11596 /// Register an action to be executed at completion of semantic analysis of a <see cref="SyntaxNode"/> with an
11697 /// appropriate kind. A syntax node action can report diagnostics about a <see cref="SyntaxNode"/>, and can also
@@ -130,42 +111,6 @@ public static void RegisterSyntaxNodeActionHonorExclusions<TLanguageKindEnum>(th
130111 context . RegisterSyntaxNodeActionHonorExclusions ( action , LanguageKindArrays < TLanguageKindEnum > . GetOrCreateArray ( syntaxKind ) ) ;
131112 }
132113
133- /// <summary>
134- /// Register an action to be executed at completion of semantic analysis of a <see cref="SyntaxNode"/> with an
135- /// appropriate kind. A syntax node action can report diagnostics about a <see cref="SyntaxNode"/>, and can also
136- /// collect state information to be used by other syntax node actions or code block end actions.
137- /// </summary>
138- /// <remarks>This method honors exclusions.</remarks>
139- /// <param name="context">Action will be executed only if the kind of a <see cref="SyntaxNode"/> matches one of
140- /// the <paramref name="syntaxKinds"/> values.</param>
141- /// <param name="action">Action to be executed at completion of semantic analysis of a
142- /// <see cref="SyntaxNode"/>.</param>
143- /// <param name="syntaxKinds">The kinds of syntax that should be analyzed.</param>
144- /// <typeparam name="TLanguageKindEnum">Enum type giving the syntax node kinds of the source language for which
145- /// the action applies.</typeparam>
146- public static void RegisterSyntaxNodeActionHonorExclusions < TLanguageKindEnum > ( this CompilationStartAnalysisContext context , Action < SyntaxNodeAnalysisContext > action , ImmutableArray < TLanguageKindEnum > syntaxKinds )
147- where TLanguageKindEnum : struct
148- {
149- Compilation compilation = context . Compilation ;
150- ConcurrentDictionary < SyntaxTree , bool > cache = GetOrCreateGeneratedDocumentCache ( compilation ) ;
151-
152- context . RegisterSyntaxNodeAction (
153- c =>
154- {
155- if ( c . IsGenerated ( cache ) )
156- {
157- return ;
158- }
159-
160- // Honor the containing document item's ExcludeFromStylecop=True
161- // MSBuild metadata, if analyzers have access to it.
162- //// TODO: code here
163-
164- action ( c ) ;
165- } ,
166- syntaxKinds ) ;
167- }
168-
169114 /// <summary>
170115 /// Register an action to be executed at completion of semantic analysis of a <see cref="SyntaxNode"/> with an
171116 /// appropriate kind. A syntax node action can report diagnostics about a <see cref="SyntaxNode"/>, and can also
0 commit comments