27 references to ERR_ReturnInIterator
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (3)
3027
diagnostics.Add(ErrorCode.
ERR_ReturnInIterator
, syntax.ReturnKeyword.GetLocation());
3040
diagnostics.Add(ErrorCode.
ERR_ReturnInIterator
, syntax.ReturnKeyword.GetLocation());
3514
Error(diagnostics, ErrorCode.
ERR_ReturnInIterator
, syntax);
Errors\ErrorFacts.cs (1)
1283
or ErrorCode.
ERR_ReturnInIterator
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (21)
CodeGen\CodeGenAsyncIteratorTests.cs (21)
1007
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "GetStrings(await Task.FromResult(1))").WithLocation(9, 12),
1010
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(15, 9),
1013
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(23, 18),
1019
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(30, 18)
1067
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "GetStrings(await Task.FromResult(1))").WithLocation(12, 16),
1070
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(18, 13),
1073
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(26, 22),
1079
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(33, 22)
1099
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(7, 9)
1119
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(6, 9),
1715
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(8, 9),
1721
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(12, 9)
1746
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(8, 9),
1752
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(12, 9)
1783
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(8, 9),
1817
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(8, 9),
1823
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(12, 9)
1951
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(6, 9)
1988
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(6, 9),
2040
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(7, 9)
4368
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(8, 9)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\LockTests.cs (1)
406
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(9, 26),
Semantics\SemanticErrorTests.cs (1)
15222
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return"),