25 references to Error
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Expressions.cs (13)
1671
if (lookupResult.
Error
!= null)
1673
Error(diagnostics, lookupResult.
Error
, node);
7739
this.BindMemberAccessReportError(node, right, rightName, boundLeft, lookupResult.
Error
, diagnostics);
7740
return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.
Error
, lookupResult.Symbols.ToImmutable(), lookupResult.Kind);
7802
Error(diagnostics, lookupResult.
Error
, right);
7805
new ExtendedErrorTypeSymbol(GetContainingNamespaceOrType(symbols[0]), symbols.ToImmutable(), lookupResult.Kind, lookupResult.
Error
, rightArity));
7810
Debug.Assert(lookupResult.
Error
== null);
7992
this.BindMemberAccessReportError(node, right, rightName, boundLeft, lookupResult.
Error
, diagnostics);
7993
return BindMemberAccessBadResult(node, rightName, boundLeft, lookupResult.
Error
, lookupResult.Symbols.ToImmutable(), lookupResult.Kind);
8915
if (result.
Error
!= null)
8917
Error(diagnostics, result.
Error
, node);
8918
wasError = (result.
Error
.Severity == DiagnosticSeverity.Error);
9607
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
,
2314
if (result.
Error
!= null &&
2317
diagnostics.Add(new CSDiagnostic(result.
Error
, where.Location));
2326
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)