7 references to CodeBlockTopLevelRule
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.cs (2)
1172
Diagnostic(CodeBlockActionAnalyzer.
CodeBlockTopLevelRule
.Id, "M").WithArguments("M").WithLocation(4, 17),
1190
.VerifyAnalyzerDiagnostics(analyzers, null, null, expected: Diagnostic(CodeBlockActionAnalyzer.
CodeBlockTopLevelRule
.Id, "M").WithArguments("M").WithLocation(4, 17));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Diagnostics\DiagnosticServiceTests.vb (1)
1974
Dim diagnostic = diagnostics.Single(Function(d) d.Id = CodeBlockActionAnalyzer.
CodeBlockTopLevelRule
.Id)
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (2)
602
return ImmutableArray.Create(
CodeBlockTopLevelRule
, CodeBlockPerCompilationRule);
610
codeBlockContext.ReportDiagnostic(Diagnostic.Create(
CodeBlockTopLevelRule
, codeBlockContext.OwningSymbol.Locations[0], codeBlockContext.OwningSymbol.Name));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Diagnostics\DiagnosticAnalyzerTests.vb (2)
727
Diagnostic(CodeBlockActionAnalyzer.
CodeBlockTopLevelRule
.Id, <![CDATA[M]]>).WithArguments("M"),
749
Diagnostic(CodeBlockActionAnalyzer.
CodeBlockTopLevelRule
.Id, <![CDATA[M]]>).WithArguments("M"))