19 references to WRN_StaticInAsOrIs
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Operators.cs (2)
4628Error(diagnostics, ErrorCode.WRN_StaticInAsOrIs, node, targetType); 5198Error(diagnostics, ErrorCode.WRN_StaticInAsOrIs, node, targetType);
Errors\ErrorFacts.cs (2)
235case ErrorCode.WRN_StaticInAsOrIs: 1597or ErrorCode.WRN_StaticInAsOrIs
Generated\ErrorFacts.Generated.cs (1)
155case ErrorCode.WRN_StaticInAsOrIs:
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\WarningVersionTests.cs (2)
73Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "o is SC").WithArguments("SC").WithLocation(6, 13), 76Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "o as SC").WithArguments("SC").WithLocation(7, 17)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\SymbolErrorTests.cs (11)
13391Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "o as C").WithArguments("C").WithLocation(6, 11), 13394Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "new object() as C").WithArguments("C").WithLocation(7, 11), 13397Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "null as C").WithArguments("C").WithLocation(8, 11), 13400Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "1 as C").WithArguments("C").WithLocation(9, 11), 13406Diagnostic(ErrorCode.WRN_StaticInAsOrIs, @"""a"" as C").WithArguments("C").WithLocation(10, 11), 13412Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "o is C").WithArguments("C").WithLocation(12, 11), 13415Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "new object() is C").WithArguments("C").WithLocation(13, 11), 13418Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "null is C").WithArguments("C").WithLocation(14, 11), 13424Diagnostic(ErrorCode.WRN_StaticInAsOrIs, "1 is C").WithArguments("C").WithLocation(15, 11), 13430Diagnostic(ErrorCode.WRN_StaticInAsOrIs, @"""a"" is C").WithArguments("C").WithLocation(16, 11), 13441var regularDiagnostics = strictDiagnostics.Where(d => !d.Code.Equals((int)ErrorCode.WRN_StaticInAsOrIs)).ToArray();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
446case ErrorCode.WRN_StaticInAsOrIs: