13 references to ERR_YieldInAnonMeth
Microsoft.CodeAnalysis.CSharp (2)
Binder\WithLambdaParametersBinder.cs (1)
82diagnostics.Add(ErrorCode.ERR_YieldInAnonMeth, node.YieldKeyword.GetLocation());
Errors\ErrorFacts.cs (1)
1282or ErrorCode.ERR_YieldInAnonMeth
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
17957Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(5, 13), 17960Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(7, 13));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (9)
Semantics\IteratorTests.cs (1)
206Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(8, 44)
Semantics\SemanticErrorTests.cs (3)
15239Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield"), 24077Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield"), 24086Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield"));
Semantics\UnsafeTests.cs (5)
2485Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(5, 9) 2513Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(3, 5) 2538Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(5, 9) 2546Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(5, 9), 2570Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(3, 5),