12 references to Error
Microsoft.CodeAnalysis.CSharp (12)
Binder\Binder.cs (1)
563Error(diagnostics, code, location);
Binder\Binder_Await.cs (5)
210Error(diagnostics, ErrorCode.ERR_AwaitInUnsafeContext, nodeOrToken.GetLocation()!); 215Error(diagnostics, ErrorCode.ERR_BadAwaitInLock, nodeOrToken.GetLocation()!); 220Error(diagnostics, ErrorCode.ERR_BadAwaitInCatchFilter, nodeOrToken.GetLocation()!); 226Error(diagnostics, ErrorCode.ERR_BadAwaitInFinally, nodeOrToken.GetLocation()!); 232Error(diagnostics, ErrorCode.ERR_BadAwaitInCatch, nodeOrToken.GetLocation()!);
Binder\Binder_Conversions.cs (1)
2907Error(diagnostics, ErrorCode.ERR_CannotUseReducedExtensionMethodInAddressOf, errorLocation);
Binder\Binder_Expressions.cs (1)
9486Error(diagnostics, ErrorCode.ERR_RefReturnLvalueExpected, location);
Binder\Binder_Statements.cs (2)
2511Error(diagnostics, ErrorCode.ERR_MissingAddressOf, location); 2529Error(diagnostics, ErrorCode.ERR_CannotInferDelegateType, location);
Binder\ExecutableCodeBinder.cs (1)
157Error(diagnostics, ErrorCode.ERR_IteratorRefLikeElementType, errorLocation);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3657Binder.Error(diagnostics, ErrorCode.ERR_SimpleProgramMultipleUnitsWithTopLevelStatements, singleDecl.NameLocation);