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