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)
1293or ErrorCode.ERR_YieldInAnonMeth
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\ExtensionTests.cs (2)
18318Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(5, 13), 18321Diagnostic(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)
15241Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield"), 24079Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield"), 24088Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield"));
Semantics\UnsafeTests.cs (5)
2486Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(5, 9) 2514Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(3, 5) 2539Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(5, 9) 2547Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(5, 9), 2571Diagnostic(ErrorCode.ERR_YieldInAnonMeth, "yield").WithLocation(3, 5),