2 implementations of IErrorTypeSymbol
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\ErrorTypeSymbol.cs (1)
11internal sealed class ErrorTypeSymbol : NamedTypeSymbol, IErrorTypeSymbol
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\ErrorTypeSymbol.vb (1)
18Implements IErrorTypeSymbol
48 references to IErrorTypeSymbol
Microsoft.CodeAnalysis (1)
SymbolDisplay\SymbolDisplayPartKind.cs (1)
23/// <seealso cref="IErrorTypeSymbol"/>
Microsoft.CodeAnalysis.CodeStyle (4)
AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
77if (typeofOperation.TypeOperand is IErrorTypeSymbol)
SymbolEquivalenceComparer.cs (1)
204if (namedType is IErrorTypeSymbol errorType)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
150if (x is IErrorTypeSymbol errorType)
SymbolKey.NamedTypeSymbolKey.cs (1)
105if (contextualType is not IErrorTypeSymbol errorType)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
SimplificationHelpers.cs (1)
97return symbol is not null and not IErrorTypeSymbol;
Microsoft.CodeAnalysis.CSharp (2)
Symbols\PublicModel\ErrorTypeSymbol.cs (2)
34ImmutableArray<ISymbol> IErrorTypeSymbol.CandidateSymbols => _underlying.CandidateSymbols.SelectAsArray(s => s.GetPublicSymbol()); 36CandidateReason IErrorTypeSymbol.CandidateReason => _underlying.CandidateReason;
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
CastSimplifier.cs (1)
755=> type is null || type is IErrorTypeSymbol;
ParenthesizedExpressionSyntaxExtensions.cs (1)
317return potentialType is not (null or IErrorTypeSymbol);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
ExpressionGenerator.cs (1)
287if (type is not null and not IErrorTypeSymbol)
Microsoft.CodeAnalysis.CSharp.Features (6)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
425if (localSymbol.Type.ContainsAnonymousType() || localSymbol.Type is IErrorTypeSymbol { Name: null or "" })
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
67if (info.Type is IErrorTypeSymbol { Name.Length: > 0 } &&
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
126if (type is IErrorTypeSymbol { TypeArguments: [var typeArgument] } &&
GenerateType\CSharpGenerateTypeService.cs (1)
862if (propertyType is null or IErrorTypeSymbol)
InlineHints\CSharpInlineTypeHintsService.cs (1)
141return type is not null or IErrorTypeSymbol && type.Name != "var";
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
210if (expressionType is IErrorTypeSymbol errorType)
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
CastSimplifier.cs (1)
755=> type is null || type is IErrorTypeSymbol;
ExpressionGenerator.cs (1)
287if (type is not null and not IErrorTypeSymbol)
ParenthesizedExpressionSyntaxExtensions.cs (1)
317return potentialType is not (null or IErrorTypeSymbol);
Microsoft.CodeAnalysis.Features (8)
AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
77if (typeofOperation.TypeOperand is IErrorTypeSymbol)
Completion\Providers\ImportCompletionProvider\AbstractExtensionMethodImportCompletionProvider.cs (1)
90if (receiverTypeSymbol is IErrorTypeSymbol errorTypeSymbol)
ConvertForEachToFor\AbstractConvertForEachToForCodeRefactoringProvider.cs (1)
347=> type is null or IErrorTypeSymbol;
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
105if (collectionType.Type is null or IErrorTypeSymbol)
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (1)
72_state.DelegateMethodSymbol.ReturnType is IErrorTypeSymbol)
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
68if (expressionType is null or IErrorTypeSymbol)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
87if (expressionType is IErrorTypeSymbol)
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
329return conditionalType is null or IErrorTypeSymbol
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\TestOperationVisitor.cs (1)
1466case IErrorTypeSymbol error:
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\ErrorTypeSymbol.vb (2)
379Public ReadOnly Property CandidateReason As CandidateReason Implements IErrorTypeSymbol.CandidateReason 411Public ReadOnly Property IErrorTypeSymbol_CandidateSymbols As ImmutableArray(Of ISymbol) Implements IErrorTypeSymbol.CandidateSymbols
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
1005If right IsNot Nothing AndAlso TypeOf right IsNot IErrorTypeSymbol Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
GenerateType\VisualBasicGenerateTypeService.vb (1)
717If typeSymbol Is Nothing OrElse TypeOf typeSymbol Is IErrorTypeSymbol Then
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Simplification\Reducers\VisualBasicVariableDeclaratorReducer.vb (2)
154If localSymbol IsNot Nothing AndAlso TypeOf localSymbol IsNot IErrorTypeSymbol AndAlso TypeOf localSymbol.Type IsNot IErrorTypeSymbol Then
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
1005If right IsNot Nothing AndAlso TypeOf right IsNot IErrorTypeSymbol Then
Microsoft.CodeAnalysis.Workspaces (4)
SimplificationHelpers.cs (1)
97return symbol is not null and not IErrorTypeSymbol;
SymbolEquivalenceComparer.cs (1)
204if (namedType is IErrorTypeSymbol errorType)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
150if (x is IErrorTypeSymbol errorType)
SymbolKey.NamedTypeSymbolKey.cs (1)
105if (contextualType is not IErrorTypeSymbol errorType)
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
SymbolKeyTests.cs (8)
1039var method = (IErrorTypeSymbol)found; 1074var method = (IErrorTypeSymbol)found; 1124var method = (IErrorTypeSymbol)found; 1171var method = (IErrorTypeSymbol)found;