10 references to Error
Microsoft.CodeAnalysis.CSharp (10)
Binder\Binder.cs (1)
563
Error
(diagnostics, code, location);
Binder\Binder_Await.cs (5)
207
Error
(diagnostics, ErrorCode.ERR_AwaitInUnsafeContext, nodeOrToken.GetLocation()!);
212
Error
(diagnostics, ErrorCode.ERR_BadAwaitInLock, nodeOrToken.GetLocation()!);
217
Error
(diagnostics, ErrorCode.ERR_BadAwaitInCatchFilter, nodeOrToken.GetLocation()!);
223
Error
(diagnostics, ErrorCode.ERR_BadAwaitInFinally, nodeOrToken.GetLocation()!);
229
Error
(diagnostics, ErrorCode.ERR_BadAwaitInCatch, nodeOrToken.GetLocation()!);
Binder\Binder_Expressions.cs (1)
9147
Error
(diagnostics, ErrorCode.ERR_RefReturnLvalueExpected, location);
Binder\Binder_Statements.cs (2)
2472
Error
(diagnostics, ErrorCode.ERR_MissingAddressOf, location);
2490
Error
(diagnostics, ErrorCode.ERR_CannotInferDelegateType, location);
Binder\ExecutableCodeBinder.cs (1)
152
Error
(diagnostics, ErrorCode.ERR_IteratorRefLikeElementType, errorLocation);