27 references to ERR_ReturnInIterator
Microsoft.CodeAnalysis.CSharp (4)
Binder\Binder_Statements.cs (3)
3050
diagnostics.Add(ErrorCode.
ERR_ReturnInIterator
, syntax.ReturnKeyword.GetLocation());
3063
diagnostics.Add(ErrorCode.
ERR_ReturnInIterator
, syntax.ReturnKeyword.GetLocation());
3537
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),
1718
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(12, 9)
1743
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(8, 9),
1746
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(12, 9)
1777
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(8, 9),
1808
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(8, 9),
1811
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(12, 9)
1936
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(6, 9)
1973
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(6, 9),
2025
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return").WithLocation(7, 9)
4315
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)
15267
Diagnostic(ErrorCode.
ERR_ReturnInIterator
, "return"),