8 references to ERR_DeprecatedCollectionInitAddStr
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Crefs.cs (1)
1195case ErrorCode.ERR_DeprecatedCollectionInitAddStr:
Errors\ErrorFacts.cs (2)
1183or ErrorCode.ERR_DeprecatedCollectionInitAddStr 2568case ErrorCode.ERR_DeprecatedCollectionInitAddStr:
Symbols\ObsoleteAttributeHelpers.cs (2)
212(message: { }, isError: true, isColInit: true) => ErrorCode.ERR_DeprecatedCollectionInitAddStr, 230ErrorCode.WRN_DeprecatedSymbol or ErrorCode.ERR_DeprecatedCollectionInitAddStr or
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Attributes\AttributeTests_WellKnownAttributes.cs (1)
6817Diagnostic(ErrorCode.ERR_DeprecatedCollectionInitAddStr, @"""a""").WithArguments("B.Add(string)", "Don't use this overload"),
Semantics\CollectionExpressionTests.cs (2)
8212Diagnostic(ErrorCode.ERR_DeprecatedCollectionInitAddStr, "1").WithArguments("MyCollection<int>.Add(int)", "do not use").WithLocation(15, 32), 8215Diagnostic(ErrorCode.ERR_DeprecatedCollectionInitAddStr, "x").WithArguments("MyCollection<int>.Add(int)", "do not use").WithLocation(15, 37));