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