13 references to WRN_DeprecatedCollectionInitAdd
Microsoft.CodeAnalysis.CSharp (5)
Errors\ErrorFacts.cs (2)
312case ErrorCode.WRN_DeprecatedCollectionInitAdd: 1184or ErrorCode.WRN_DeprecatedCollectionInitAdd
Generated\ErrorFacts.Generated.cs (1)
69case 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)
6811Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "1").WithArguments("B.Add(long)"), 6820Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "false").WithArguments("B.Add(bool)"));
Semantics\CollectionExpressionTests.cs (2)
8148Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "1").WithArguments("MyCollection<int>.Add(int)").WithLocation(15, 32), 8151Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "x").WithArguments("MyCollection<int>.Add(int)").WithLocation(15, 37));
Semantics\ParamsCollectionTests.cs (4)
2359Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "1").WithArguments("MyCollection.Add(long)").WithLocation(101, 14), 2362Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "2").WithArguments("MyCollection.Add(long)").WithLocation(102, 14), 2365Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "3").WithArguments("MyCollection.Add(long)").WithLocation(102, 17), 2368Diagnostic(ErrorCode.WRN_DeprecatedCollectionInitAdd, "params MyCollection a").WithArguments("MyCollection.Add(long)").WithLocation(105, 22)