26 references to ERR_RefReturningCallAndAwait
Microsoft.CodeAnalysis.CSharp (2)
Errors\ErrorFacts.cs (1)
618
or ErrorCode.
ERR_RefReturningCallAndAwait
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (1)
650
F.Diagnostics.Add(ErrorCode.
ERR_RefReturningCallAndAwait
, F.Syntax.Location, call.Method);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (4)
CodeGen\CodeGenAsyncSpillTests.cs (1)
3477
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "P").WithArguments("C.P.get").WithLocation(18, 28)
CodeGen\CodeGenAsyncTests.cs (2)
5902
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "ReadMemory()").WithArguments("IntCode.ReadMemory()").WithLocation(8, 9),
5905
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "ReadMemory()").WithArguments("IntCode.ReadMemory()").WithLocation(9, 9)
CodeGen\CodeGenInParametersTests.cs (1)
1574
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "RefReturning(ref local)").WithArguments("Program.RefReturning(ref int)").WithLocation(14, 19)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Semantics\InlineArrayTests.cs (9)
4957
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "GetItem(MemoryMarshal.CreateReadOnlySpan(ref Unsafe.As<Buffer10<Buffer10<int>>, Buffer10<int>>(ref Unsafe.AsRef(in GetC(x).F)),10), Get01())").WithArguments("Program.GetItem(System.ReadOnlySpan<Buffer10<int>>, int)").WithLocation(20, 12)
20386
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
,
20848
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
,
21132
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, @"foreach (ref int y in GetBuffer())
21290
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, @"foreach (ref readonly int y in GetBuffer())
21804
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
,
22126
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
,
22393
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, @"foreach (ref int y in GetBuffer())
22557
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, @"foreach (ref readonly int y in GetBuffer())
Semantics\PatternSwitchTests.cs (1)
3537
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "GetRef()").WithArguments("Program.<<Main>$>g__GetRef|0_0()").WithLocation(2, 1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\AwaitExpressionTests.cs (3)
153
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "res.Get()").WithArguments("RefHolder<T>.Get()").WithLocation(17, 13)
191
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "res.Get()").WithArguments("RefHolder<T>.Get()").WithLocation(19, 17)
234
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "res[0]").WithArguments("ValuesHolder<TResult>.this[int].get").WithLocation(23, 4)
Semantics\RefLocalsAndReturnsTests.cs (6)
3534
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "Save(await Task.FromResult(0))").WithArguments("TestClass.Save(int)").WithLocation(26, 19)
3841
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "GiveMeRef()").WithArguments("Program.GiveMeRef()").WithLocation(9, 16));
4449
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "S.Instance").WithArguments("S.Instance.get").WithLocation(32, 17),
4452
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "Assign(ref temp, 0)").WithArguments("C.Assign(ref int, int)").WithLocation(33, 28)
4500
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "Save(1)").WithArguments("TestClass.Save(int)").WithLocation(28, 9),
4503
Diagnostic(ErrorCode.
ERR_RefReturningCallAndAwait
, "inst[1, 2]").WithArguments("TestClass.this[int, int].get").WithLocation(36, 9)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
2972
case ErrorCode.
ERR_RefReturningCallAndAwait
: