38 references to IsErrorType
Microsoft.CodeAnalysis.CSharp.Features (11)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (1)
88
if (type.
IsErrorType
() && (type.Name == "var" || type.Name == string.Empty))
ExtractMethod\CSharpSelectionResult.ExpressionResult.cs (1)
102
if (info.ConvertedType == null || info.ConvertedType.
IsErrorType
())
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (2)
150
if (leftType.
IsErrorType
() || rightType.
IsErrorType
())
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.InfoCache.cs (1)
43
if (!stringType.
IsErrorType
())
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateConversionService.cs (4)
145
|| typeToGenerateIn.
IsErrorType
()
146
|| parameterSymbol.
IsErrorType
())
176
|| typeToGenerateIn.
IsErrorType
()
177
|| parameterSymbol.
IsErrorType
())
src\Analyzers\CSharp\CodeFixes\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentCodeFixProvider.cs (1)
113
return type == null || type.
IsErrorType
()
src\Analyzers\CSharp\CodeFixes\UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeActionHelpers.cs (1)
93
if (returnType.
IsErrorType
())
Microsoft.CodeAnalysis.CSharp.Workspaces (7)
Simplification\Simplifiers\NameSimplifier.cs (1)
443
if (argument == null || argument.
IsErrorType
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpUseExplicitTypeHelper.cs (1)
156
return !initializerTypeInfo.Type.
IsErrorType
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\InternalExtensions.cs (1)
26
return typeInfo.Type?.
IsErrorType
() == false ? typeInfo.Type : semanticModel.Compilation.ObjectType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
52
&& !typeSymbol.
IsErrorType
();
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
37
return otherSideType.
IsErrorType
() &&
1136
if (symbol.
IsErrorType
())
1541
CreateResult(patternOperation.NarrowedType.
IsErrorType
()
Microsoft.CodeAnalysis.Features (11)
CodeRefactorings\AddAwait\AbstractAddAwaitCodeRefactoringProvider.cs (1)
77
if (!model.GetTypeInfo(node.GetRequiredParent().GetRequiredParent(), cancellationToken).Type.
IsErrorType
())
Common\SymbolDisplayPartKindTags.cs (1)
31
if (namedType.
IsErrorType
())
ConvertToInterpolatedString\AbstractConvertPlaceholderToInterpolatedStringRefactoringProvider.cs (1)
120
if (stringType.
IsErrorType
())
GenerateComparisonOperators\GenerateComparisonOperatorsCodeRefactoringProvider.cs (1)
76
if (comparedType.
IsErrorType
())
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
300
.WhereAsArray(symbol => !symbol.
IsErrorType
() && symbol.SpecialType is not (SpecialType.System_Object or SpecialType.System_ValueType or SpecialType.System_Enum));
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
275
if (symbol.
IsErrorType
())
QuickInfo\CommonSemanticQuickInfoProvider.ErrorVisitor.cs (1)
69
return symbol.
IsErrorType
();
Rename\SymbolicRenameInfo.cs (1)
204
if (symbol.
IsErrorType
())
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (2)
176
value.Type.
IsErrorType
() ||
605
symbol.GetSymbolType().
IsErrorType
() ||
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\AbstractGenerateParameterizedMemberService.State.cs (1)
62
if (TypeToGenerateIn.
IsErrorType
())
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (2)
636
if (newTypeInfo.Type.
IsErrorType
() && !originalTypeInfo.Type.
IsErrorType
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ISymbolExtensions_Accessibility.cs (1)
182
if (type.
IsErrorType
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.cs (1)
677
if (type.
IsErrorType
())
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (1)
44
if (symbol.
IsErrorType
() && symbol.Name == string.Empty)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\KnownTypes.cs (1)
34
if (returnType.
IsErrorType
())
Microsoft.VisualStudio.LanguageServices (3)
ChangeSignature\AddParameterDialogViewModel.cs (2)
56
public bool TypeBinds => !TypeSymbol!.
IsErrorType
();
242
if (type == null || type.
IsErrorType
())
Library\ObjectBrowser\AbstractListItemFactory.cs (1)
133
return symbol.
IsErrorType
()