25 references to Error
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Expressions.cs (13)
1674
if (lookupResult.
Error
!= null)
1676
Error(diagnostics, lookupResult.
Error
, node);
7740
this.BindMemberAccessReportError(node, right, rightName, boundLeft, lookupResult.
Error
, diagnostics);
7741
return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.
Error
, lookupResult.Symbols.ToImmutable(), lookupResult.Kind);
7803
Error(diagnostics, lookupResult.
Error
, right);
7806
new ExtendedErrorTypeSymbol(GetContainingNamespaceOrType(symbols[0]), symbols.ToImmutable(), lookupResult.Kind, lookupResult.
Error
, rightArity));
7811
Debug.Assert(lookupResult.
Error
== null);
7993
this.BindMemberAccessReportError(node, right, rightName, boundLeft, lookupResult.
Error
, diagnostics);
7994
return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.
Error
, lookupResult.Symbols.ToImmutable(), lookupResult.Kind);
8916
if (result.
Error
!= null)
8918
Error(diagnostics, result.
Error
, node);
8919
wasError = (result.
Error
.Severity == DiagnosticSeverity.Error);
9608
indexerAccessExpression = BadIndexerExpression(node, expr, analyzedArguments, lookupResult.
Error
, diagnostics);
Binder\Binder_Lookup.cs (4)
77
Debug.Assert(result.IsMultiViable || result.IsClear || result.
Error
!= null);
161
Debug.Assert(result.IsMultiViable || result.IsClear || result.
Error
!= null);
566
result.SetFrom(GenerateNonViableAttributeTypeResult(symbolWithoutSuffix, result.
Error
, diagnose));
576
resultWithSuffix.SetFrom(GenerateNonViableAttributeTypeResult(symbolWithSuffix, resultWithSuffix.
Error
, diagnose));
Binder\Binder_Symbols.cs (5)
1306
Debug.Assert(lookupResult.
Error
!= null);
1311
lookupResult.
Error
,
2332
if (result.
Error
!= null &&
2335
diagnostics.Add(new CSDiagnostic(result.
Error
, where.Location));
2344
return new ExtendedErrorTypeSymbol(GetContainingNamespaceOrType(symbols[0]), symbols.ToImmutable(), result.Kind, result.
Error
, arity);
Binder\ForEachLoopBinder.cs (2)
1884
if (lookupResult.
Error
!= null)
1886
diagnostics.Add(lookupResult.
Error
, collectionSyntax.Location);
BoundTree\BoundMethodGroup.cs (1)
23
: this(syntax, typeArgumentsOpt, name, methods, lookupResult.SingleSymbolOrDefault, lookupResult.
Error
, flags, functionType: GetFunctionType(binder, syntax), receiverOpt, lookupResult.Kind, hasErrors)