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