5 references to AnalyzedSyntaxNodesInsideCodeBlock
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (4)
Diagnostics\GetDiagnosticsTests.cs (4)
1542
Assert.Empty(analyzer.
AnalyzedSyntaxNodesInsideCodeBlock
);
1639
Assert.Equal(expectedSyntaxNodeInsideBlockCallbacks.Count, analyzer.
AnalyzedSyntaxNodesInsideCodeBlock
.Count);
1640
AssertEx.All(analyzer.
AnalyzedSyntaxNodesInsideCodeBlock
, node => node.IsKind(SyntaxKind.LocalDeclarationStatement));
1641
AssertEx.SetEqual(expectedSyntaxNodeInsideBlockCallbacks, analyzer.
AnalyzedSyntaxNodesInsideCodeBlock
.Select(s => s.ToString()).ToHashSet());
Microsoft.CodeAnalysis.Test.Utilities (1)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
3052
codeBlockStartContext.RegisterSyntaxNodeAction(syntaxNodeContext =>
AnalyzedSyntaxNodesInsideCodeBlock
.Add(syntaxNodeContext.Node), SyntaxKind.LocalDeclarationStatement);