27 references to ERR_ReturnInIterator
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (3)
3050diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.ReturnKeyword.GetLocation()); 3063diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.ReturnKeyword.GetLocation()); 3537Error(diagnostics, ErrorCode.ERR_ReturnInIterator, syntax);
Errors\ErrorFacts.cs (1)
1283or ErrorCode.ERR_ReturnInIterator
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (21)
CodeGen\CodeGenAsyncIteratorTests.cs (21)
1007Diagnostic(ErrorCode.ERR_ReturnInIterator, "GetStrings(await Task.FromResult(1))").WithLocation(9, 12), 1010Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(15, 9), 1013Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(23, 18), 1019Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(30, 18) 1067Diagnostic(ErrorCode.ERR_ReturnInIterator, "GetStrings(await Task.FromResult(1))").WithLocation(12, 16), 1070Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(18, 13), 1073Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(26, 22), 1079Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(33, 22) 1099Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(7, 9) 1119Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(6, 9), 1715Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1718Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(12, 9) 1743Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1746Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(12, 9) 1777Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1808Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1811Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(12, 9) 1936Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(6, 9) 1973Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(6, 9), 2025Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(7, 9) 4315Diagnostic(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)
15267Diagnostic(ErrorCode.ERR_ReturnInIterator, "return"),