27 references to ERR_ReturnInIterator
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (3)
2912diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.ReturnKeyword.GetLocation()); 2925diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.ReturnKeyword.GetLocation()); 3397Error(diagnostics, ErrorCode.ERR_ReturnInIterator, syntax);
Errors\ErrorFacts.cs (1)
1221case ErrorCode.ERR_ReturnInIterator:
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (21)
CodeGen\CodeGenAsyncIteratorTests.cs (21)
714Diagnostic(ErrorCode.ERR_ReturnInIterator, "GetStrings(await Task.FromResult(1))").WithLocation(9, 12), 717Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(15, 9), 720Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(23, 18), 726Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(30, 18) 774Diagnostic(ErrorCode.ERR_ReturnInIterator, "GetStrings(await Task.FromResult(1))").WithLocation(12, 16), 777Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(18, 13), 780Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(26, 22), 786Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(33, 22) 806Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(7, 9) 826Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(6, 9), 1422Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1428Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(12, 9) 1453Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1459Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(12, 9) 1490Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1524Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1530Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(12, 9) 1655Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(6, 9) 1692Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(6, 9), 1744Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(7, 9) 4072Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\LockTests.cs (1)
406Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(9, 26),
Semantics\SemanticErrorTests.cs (1)
15109Diagnostic(ErrorCode.ERR_ReturnInIterator, "return"),