27 references to ERR_ReturnInIterator
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (3)
3027diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.ReturnKeyword.GetLocation()); 3040diagnostics.Add(ErrorCode.ERR_ReturnInIterator, syntax.ReturnKeyword.GetLocation()); 3514Error(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), 1721Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(12, 9) 1746Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1752Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(12, 9) 1783Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1817Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(8, 9), 1823Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(12, 9) 1951Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(6, 9) 1988Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(6, 9), 2040Diagnostic(ErrorCode.ERR_ReturnInIterator, "return").WithLocation(7, 9) 4368Diagnostic(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)
15222Diagnostic(ErrorCode.ERR_ReturnInIterator, "return"),