13 references to WRN_DeprecatedCollectionInitAdd
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
312
case ErrorCode.
WRN_DeprecatedCollectionInitAdd
:
1184
or ErrorCode.
WRN_DeprecatedCollectionInitAdd
Generated\ErrorFacts.Generated.cs (1)
69
case ErrorCode.
WRN_DeprecatedCollectionInitAdd
:
Symbols\ObsoleteAttributeHelpers.cs (2)
210
(message: null, isError: _, isColInit: true) => ErrorCode.
WRN_DeprecatedCollectionInitAdd
,
229
(ErrorCode.WRN_Experimental or ErrorCode.WRN_ExperimentalWithMessage or ErrorCode.WRN_WindowsExperimental or ErrorCode.
WRN_DeprecatedCollectionInitAdd
or
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Attributes\AttributeTests_WellKnownAttributes.cs (2)
6811
Diagnostic(ErrorCode.
WRN_DeprecatedCollectionInitAdd
, "1").WithArguments("B.Add(long)"),
6820
Diagnostic(ErrorCode.
WRN_DeprecatedCollectionInitAdd
, "false").WithArguments("B.Add(bool)"));
Semantics\CollectionExpressionTests.cs (2)
8148
Diagnostic(ErrorCode.
WRN_DeprecatedCollectionInitAdd
, "1").WithArguments("MyCollection<int>.Add(int)").WithLocation(15, 32),
8151
Diagnostic(ErrorCode.
WRN_DeprecatedCollectionInitAdd
, "x").WithArguments("MyCollection<int>.Add(int)").WithLocation(15, 37));
Semantics\ParamsCollectionTests.cs (4)
2359
Diagnostic(ErrorCode.
WRN_DeprecatedCollectionInitAdd
, "1").WithArguments("MyCollection.Add(long)").WithLocation(101, 14),
2362
Diagnostic(ErrorCode.
WRN_DeprecatedCollectionInitAdd
, "2").WithArguments("MyCollection.Add(long)").WithLocation(102, 14),
2365
Diagnostic(ErrorCode.
WRN_DeprecatedCollectionInitAdd
, "3").WithArguments("MyCollection.Add(long)").WithLocation(102, 17),
2368
Diagnostic(ErrorCode.
WRN_DeprecatedCollectionInitAdd
, "params MyCollection a").WithArguments("MyCollection.Add(long)").WithLocation(105, 22)