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