18 references to ERR_MustNotHaveRefReturn
Microsoft.CodeAnalysis.CSharp (5)
Binder\Binder_Statements.cs (4)
3035
diagnostics.Add(ErrorCode.
ERR_MustNotHaveRefReturn
, syntax.ReturnKeyword.GetLocation());
3047
? ErrorCode.
ERR_MustNotHaveRefReturn
3472
Error(diagnostics, ErrorCode.
ERR_MustNotHaveRefReturn
, syntax);
3481
? ErrorCode.
ERR_MustNotHaveRefReturn
Errors\ErrorFacts.cs (1)
1773
or ErrorCode.
ERR_MustNotHaveRefReturn
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenAsyncIteratorTests.cs (1)
1792
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "return").WithLocation(12, 9)
CodeGen\CodeGenRefReadonlyReturnTests.cs (1)
515
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "return").WithLocation(15, 9)
CodeGen\CodeGenRefReturnTests.cs (1)
2748
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "o.F()").WithLocation(24, 23)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (10)
Semantics\LambdaTests.cs (7)
1341
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "i").WithLocation(11, 22),
1344
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "return").WithLocation(12, 20),
1347
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "return").WithLocation(13, 23));
1371
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "i").WithLocation(9, 33),
1374
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "return").WithLocation(10, 27),
1377
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "return").WithLocation(11, 30));
1419
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "return").WithLocation(23, 17));
Semantics\RefLocalsAndReturnsTests.cs (3)
2682
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "return").WithLocation(14, 13),
2724
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "b").WithLocation(9, 50),
4249
Diagnostic(ErrorCode.
ERR_MustNotHaveRefReturn
, "return").WithLocation(6, 9));