12 references to WRN_CollectionExpressionRefStructMayAllocate
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
833
: ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
,
Errors\ErrorFacts.cs (2)
566
case ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
:
2427
or ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
Errors\MessageProvider.cs (1)
116
or ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
Generated\ErrorFacts.Generated.cs (1)
338
case ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\CollectionExpressionTests.cs (6)
28
KeyValuePair.Create(GetIdForErrorCode(ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
), ReportDiagnostic.Warn),
28497
Diagnostic(ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
, "[1]").WithArguments("System.Span<int>").WithLocation(1, 4)
30844
Diagnostic(ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
, "[1]").WithArguments("System.Span<int>").WithLocation(7, 24));
31157
Diagnostic(ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
, "[null]").WithArguments($"{spanType}<string?>").WithLocation(3, 7),
31160
Diagnostic(ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
, "[null]").WithArguments($"{spanType}<string>").WithLocation(5, 7),
31166
Diagnostic(ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
, "[null]").WithArguments($"{spanType}<string>").WithLocation(10, 10)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
434
case ErrorCode.
WRN_CollectionExpressionRefStructMayAllocate
: