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
83 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)
62if (typeofOperation.TypeOperand is IErrorTypeSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
111if (contextualType is not IErrorTypeSymbol errorType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
213if (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)
96return 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 (8)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
329if (type is null or IErrorTypeSymbol)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (4)
100if (targetType is null or IErrorTypeSymbol) 113if (originalTypeInfo.Type is IErrorTypeSymbol) 116if (originalTypeInfo.ConvertedType is null or IErrorTypeSymbol) 1049if (type is null or IErrorTypeSymbol)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
334return potentialType is not (null or IErrorTypeSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
544if (targetType is not null and not IErrorTypeSymbol && 940=> type is null || type is IErrorTypeSymbol;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
286if (type is not null and not IErrorTypeSymbol)
Microsoft.CodeAnalysis.CSharp.Features (13)
CodeRefactorings\InlineTemporary\InlineTemporaryCodeRefactoringProvider.cs (1)
492if (localSymbol.Type.ContainsAnonymousType() || localSymbol.Type is IErrorTypeSymbol { Name: null or "" })
Completion\CompletionProviders\AwaitCompletionProvider.cs (1)
89if (returnType is null or IErrorTypeSymbol || taskLikeTypes.IsTaskLike(returnType))
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] } &&
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (1)
28if (info.Type is IErrorTypeSymbol)
GenerateType\CSharpGenerateTypeService.cs (1)
809if (propertyType is null or IErrorTypeSymbol)
InlineHints\CSharpInlineTypeHintsService.cs (1)
154return type is not null or IErrorTypeSymbol && type.Name != "var";
SignatureHelp\ElementAccessExpressionSignatureHelpProvider.cs (1)
209if (expressionType is IErrorTypeSymbol errorType)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
329if (type is null or IErrorTypeSymbol)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (4)
100if (targetType is null or IErrorTypeSymbol) 113if (originalTypeInfo.Type is IErrorTypeSymbol) 116if (originalTypeInfo.ConvertedType is null or IErrorTypeSymbol) 1049if (type is null or IErrorTypeSymbol)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\SimpleLambdaParametersWithModifiersTests.cs (5)
452Assert.True(symbol.Parameters is [{ Type: IErrorTypeSymbol, RefKind: RefKind.None, IsOptional: false }]); 513Assert.True(symbol.Parameters is [{ Name: "", Type: IErrorTypeSymbol { Name: "x" }, RefKind: RefKind.Ref, IsOptional: false }]); 546Assert.True(symbol.Parameters is [{ Name: "", Type: IErrorTypeSymbol { Name: "x" }, RefKind: RefKind.Ref, IsOptional: false }]); 1104Assert.True(symbol.Parameters is [{ Name: "x", Type: IErrorTypeSymbol, RefKind: RefKind.Out, IsParams: false }]); 1133Assert.True(symbol.Parameters is [{ Name: "x", Type: IErrorTypeSymbol, RefKind: RefKind.Ref, IsParams: false }]);
Microsoft.CodeAnalysis.CSharp.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ParenthesizedExpressionSyntaxExtensions.cs (1)
334return potentialType is not (null or IErrorTypeSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (2)
544if (targetType is not null and not IErrorTypeSymbol && 940=> type is null || type is IErrorTypeSymbol;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ExpressionGenerator.cs (1)
286if (type is not null and not IErrorTypeSymbol)
Microsoft.CodeAnalysis.Features (13)
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)
70if (expressionType is null or IErrorTypeSymbol)
IntroduceVariable\AbstractIntroduceVariableService.State.cs (1)
81if (expressionType is IErrorTypeSymbol)
Navigation\AbstractNavigableItemsService.cs (2)
54if (symbol is null or IErrorTypeSymbol) 67if (typeSymbol is null or IErrorTypeSymbol)
ReplaceConditionalWithStatements\AbstractReplaceConditionalWithStatementsCodeRefactoringProvider.cs (1)
310return conditionalType is null or IErrorTypeSymbol
src\Analyzers\Core\Analyzers\ConvertTypeofToNameof\AbstractConvertTypeOfToNameOfDiagnosticAnalyzer.cs (1)
62if (typeofOperation.TypeOperand is IErrorTypeSymbol)
Microsoft.CodeAnalysis.Test.Utilities (1)
Compilation\TestOperationVisitor.cs (1)
1484case IErrorTypeSymbol error:
Microsoft.CodeAnalysis.VisualBasic (2)
Symbols\ErrorTypeSymbol.vb (2)
385Public ReadOnly Property CandidateReason As CandidateReason Implements IErrorTypeSymbol.CandidateReason 428Public 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)
1004If right IsNot Nothing AndAlso TypeOf right IsNot IErrorTypeSymbol Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
GenerateType\VisualBasicGenerateTypeService.vb (1)
705If 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)
1004If right IsNot Nothing AndAlso TypeOf right IsNot IErrorTypeSymbol Then
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (1)
111if (contextualType is not IErrorTypeSymbol errorType)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
213if (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)
96return 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.MetadataExtractor (1)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (1)
532if (paramTypeSymbol 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.Maui.Controls.BindingSourceGen (2)
BindingSourceGenerator.cs (2)
174 if (lambdaResultType == null || lambdaResultType is IErrorTypeSymbol) 190 if (parameters.Length == 0 || parameters[0].Type 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)