9 references to WRN_CollectionExpressionRefStructSpreadMayAllocate
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Conversions.cs (1)
832? ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate
Errors\ErrorFacts.cs (2)
567case ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate: 2428or ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate
Errors\MessageProvider.cs (1)
117or ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate
Generated\ErrorFacts.Generated.cs (1)
339case ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate:
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Semantics\CollectionExpressionTests.cs (3)
29KeyValuePair.Create(GetIdForErrorCode(ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate), ReportDiagnostic.Warn) 25162Diagnostic(ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate, "[..S.GetSpan(), 3]").WithArguments("System.ReadOnlySpan<object>").WithLocation(3, 7), 26374Diagnostic(ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate, "[x, ..y]").WithArguments($"System.{spanType}<object>").WithLocation(7, 23));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
435case ErrorCode.WRN_CollectionExpressionRefStructSpreadMayAllocate: