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
70 references to IErrorTypeSymbol
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (1)
630if (targetClassSymbol is null || targetClassSymbol is IErrorTypeSymbol)
Microsoft.CodeAnalysis (1)
SymbolDisplay\SymbolDisplayPartKind.cs (1)
23/// <seealso cref="IErrorTypeSymbol"/>
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
74if (typeofOperation.TypeOperand is IErrorTypeSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
113if (contextualType is not IErrorTypeSymbol errorType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
214if (namedType is not IErrorTypeSymbol errorType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
147if (x is IErrorTypeSymbol errorType)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\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 (7)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (2)
340if (type is null or IErrorTypeSymbol) 351if (type is null or IErrorTypeSymbol)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (3)
93if (originalTypeInfo.Type is IErrorTypeSymbol) 96if (originalTypeInfo.ConvertedType is null or IErrorTypeSymbol) 626=> semanticModel.GetTypeInfo(expression, cancellationToken).Type is not null and not IErrorTypeSymbol;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
314return potentialType is not (null or IErrorTypeSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
864=> type is null || type is IErrorTypeSymbol;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
288if (type is not null and not IErrorTypeSymbol)
Microsoft.CodeAnalysis.CSharp.Features (11)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
423if (localSymbol.Type.ContainsAnonymousType() || localSymbol.Type is IErrorTypeSymbol { Name: null or "" })
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (1)
57if (info.Type is IErrorTypeSymbol { Name.Length: > 0 } &&
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
122if (type is IErrorTypeSymbol { TypeArguments: [var typeArgument] } &&
GenerateType\CSharpGenerateTypeService.cs (1)
834if (propertyType is null or IErrorTypeSymbol)
InlineHints\CSharpInlineTypeHintsService.cs (1)
154return type is not null or IErrorTypeSymbol && type.Name != "var";
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
211if (expressionType is IErrorTypeSymbol errorType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (2)
340if (type is null or IErrorTypeSymbol) 351if (type is null or IErrorTypeSymbol)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (3)
93if (originalTypeInfo.Type is IErrorTypeSymbol) 96if (originalTypeInfo.ConvertedType is null or IErrorTypeSymbol) 626=> semanticModel.GetTypeInfo(expression, cancellationToken).Type is not null and not IErrorTypeSymbol;
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
314return potentialType is not (null or IErrorTypeSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
864=> type is null || type is IErrorTypeSymbol;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
288if (type is not null and not IErrorTypeSymbol)
Microsoft.CodeAnalysis.Features (12)
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)
DesignerAttribute\DesignerAttributeDiscoveryService.cs (3)
315if (type is IErrorTypeSymbol errorType) 335if (current is IErrorTypeSymbol errorType) 340static INamedTypeSymbol? TryMapToNonErrorType(Compilation compilation, IErrorTypeSymbol errorType)
GenerateType\AbstractGenerateTypeService.GenerateNamedType.cs (1)
72_state.DelegateMethodSymbol.ReturnType is IErrorTypeSymbol)
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (1)
71if (expressionType is null or IErrorTypeSymbol)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
80if (expressionType is IErrorTypeSymbol)
Navigation\AbstractNavigableItemsService.cs (1)
46if (symbol is null or IErrorTypeSymbol)
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
311return conditionalType is null or IErrorTypeSymbol
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
74if (typeofOperation.TypeOperand is IErrorTypeSymbol)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\TestOperationVisitor.cs (1)
1484case IErrorTypeSymbol error:
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\ErrorTypeSymbol.vb (2)
379Public ReadOnly Property CandidateReason As CandidateReason Implements IErrorTypeSymbol.CandidateReason 422Public ReadOnly Property IErrorTypeSymbol_CandidateSymbols As ImmutableArray(Of ISymbol) Implements IErrorTypeSymbol.CandidateSymbols
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
1005If right IsNot Nothing AndAlso TypeOf right IsNot IErrorTypeSymbol Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
GenerateType\VisualBasicGenerateTypeService.vb (1)
711If 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
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (1)
1005If right IsNot Nothing AndAlso TypeOf right IsNot IErrorTypeSymbol Then
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
113if (contextualType is not IErrorTypeSymbol errorType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
214if (namedType is not IErrorTypeSymbol errorType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
147if (x is IErrorTypeSymbol errorType)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Simplification\SimplificationHelpers.cs (1)
97return symbol is not null and not IErrorTypeSymbol;
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
SymbolKeyTests.cs (8)
1110var method = (IErrorTypeSymbol)found; 1145var method = (IErrorTypeSymbol)found; 1195var method = (IErrorTypeSymbol)found; 1242var method = (IErrorTypeSymbol)found;
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
356if (paramTypeSymbol is IErrorTypeSymbol)
Microsoft.Gen.Logging (2)
Parsing\Parser.cs (1)
537if (paramTypeSymbol is IErrorTypeSymbol)
Parsing\Parser.TagProvider.cs (1)
81if (providerType is IErrorTypeSymbol)
Microsoft.Gen.Metrics (1)
Parser.cs (1)
532if (paramTypeSymbol is IErrorTypeSymbol)
Microsoft.Gen.MetricsReports (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
532if (paramTypeSymbol is IErrorTypeSymbol)
Microsoft.ML.InternalCodeAnalyzer (1)
ContractsCheckNameofFixProvider.cs (1)
136if (type != null && !(type is IErrorTypeSymbol))
System.Text.Json.SourceGeneration (1)
JsonSourceGenerator.Parser.cs (1)
531if (type is { IsRefLikeType: true } or INamedTypeSymbol { IsUnboundGenericType: true } or IErrorTypeSymbol)