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