12 references to Rule
Microsoft.ML.CodeAnalyzer.Tests (9)
Code\NameTest.cs (9)
21VerifyCS.Diagnostic(NameAnalyzer.PrivateFieldName.Rule).WithLocation(6, 21).WithArguments("foo"), 22VerifyCS.Diagnostic(NameAnalyzer.PrivateFieldName.Rule).WithLocation(8, 24).WithArguments("_Bubba"), 23VerifyCS.Diagnostic(NameAnalyzer.PrivateFieldName.Rule).WithLocation(9, 22).WithArguments("_shouldParseHTML"), 24VerifyCS.Diagnostic(NameAnalyzer.PrivateFieldName.Rule).WithLocation(12, 23).WithArguments("BillyClub"), 25VerifyCS.Diagnostic(NameAnalyzer.PrivateFieldName.Rule).WithLocation(14, 30).WithArguments("bob"), 26VerifyCS.Diagnostic(NameAnalyzer.PrivateFieldName.Rule).WithLocation(15, 30).WithArguments("CHAZ"), 27VerifyCS.Diagnostic(NameAnalyzer.PrivateFieldName.Rule).WithLocation(18, 21).WithArguments("_liveFromNYC"), 28VerifyCS.Diagnostic(NameAnalyzer.PrivateFieldName.Rule).WithLocation(20, 28).WithArguments("nice"), 69VerifyCS.Diagnostic(NameAnalyzer.PrivateFieldName.Rule).WithLocation(22, 30).WithArguments("BadEvent"),
Microsoft.ML.InternalCodeAnalyzer (3)
NameAnalyzer.cs (3)
72ImmutableArray.Create(PrivateFieldName.Rule, GeneralName.Rule); 172var diagnostic = Diagnostic.Create(PrivateFieldName.Rule, identifier.GetLocation(), name); 173context.ReportDiagnostic(CreateDiagnostic(PrivateFieldName.Rule, identifier,