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