13 references to Error
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Await.cs (4)
231
Error
(diagnostics, ErrorCode.ERR_BadAwaitInLock, nodeOrToken.GetLocation()!);
236
Error
(diagnostics, ErrorCode.ERR_BadAwaitInCatchFilter, nodeOrToken.GetLocation()!);
247
Error
(diagnostics, ErrorCode.ERR_BadAwaitInFinally, nodeOrToken.GetLocation()!);
253
Error
(diagnostics, ErrorCode.ERR_BadAwaitInCatch, nodeOrToken.GetLocation()!);
Binder\Binder_Constraints.cs (1)
621
Error
(diagnostics, ErrorCode.ERR_BadConstraintType, syntax.GetLocation());
Binder\Binder_Conversions.cs (1)
3615
Error
(diagnostics, ErrorCode.ERR_CannotUseReducedExtensionMethodInAddressOf, errorLocation);
Binder\Binder_Expressions.cs (2)
10389
Error
(diagnosticsForBindElementAccessCore, ErrorCode.ERR_InlineArrayBadIndex, node.Location);
10478
Error
(diagnostics, ErrorCode.ERR_RefReturnLvalueExpected, location);
Binder\Binder_Statements.cs (2)
2519
Error
(diagnostics, ErrorCode.ERR_MissingAddressOf, location);
2537
Error
(diagnostics, ErrorCode.ERR_CannotInferDelegateType, location);
Binder\Binder.cs (1)
602
Error
(diagnostics, code, location);
Binder\ExecutableCodeBinder.cs (1)
157
Error
(diagnostics, ErrorCode.ERR_IteratorRefLikeElementType, errorLocation);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3837
Binder.
Error
(diagnostics, ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, singleDecl.NameLocation);