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