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)
16796Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(5, 13), 16799Diagnostic(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)
15194Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield"), 24032Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield"), 24041Diagnostic(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),