828 references to ErrorType
ILLink.RoslynAnalyzer (1)
TrimAnalysis\SingleValueExtensions.cs (1)
34 SymbolKind.ErrorType => UnknownValue.Instance,
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1741case SymbolKind.ErrorType:
Microsoft.CodeAnalysis.CodeStyle (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
124case SymbolKind.ErrorType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (3)
126SymbolKind.ErrorType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies), 367if (x.Kind == SymbolKind.ErrorType && 371Debug.Assert(y.Kind == SymbolKind.ErrorType);
Microsoft.CodeAnalysis.CSharp (73)
Binder\Binder.cs (1)
427RoslynDebug.Assert(member is null || member.Kind != SymbolKind.ErrorType);
Binder\Binder_Attributes.cs (1)
609if (namedArgumentNameSymbol.Kind == SymbolKind.ErrorType)
Binder\Binder_Crefs.cs (1)
51if (result.Kind == SymbolKind.ErrorType)
Binder\Binder_Expressions.cs (3)
1628bool isNamedType = (symbol.Kind == SymbolKind.NamedType) || (symbol.Kind == SymbolKind.ErrorType); 2159case SymbolKind.ErrorType: 8284case SymbolKind.ErrorType:
Binder\Binder_Patterns.cs (1)
561if (strippedInputType.Kind is not SymbolKind.ErrorType and not SymbolKind.DynamicType and not SymbolKind.TypeParameter &&
Binder\Binder_Symbols.cs (3)
2274else if (singleResult.Kind == SymbolKind.ErrorType) 2333((object)qualifierOpt == null || qualifierOpt.Kind != SymbolKind.ErrorType)) // Suppress cascading. 2643if (forwardedType.Kind == SymbolKind.ErrorType)
Binder\HostObjectModeBinder.cs (2)
36if (hostObjectType.Kind == SymbolKind.ErrorType) 55if (hostObjectType.Kind != SymbolKind.ErrorType)
Binder\InMethodBinder.cs (1)
256if (newSymbolKind == SymbolKind.ErrorType)
Binder\LocalScopeBinder.cs (1)
506if (newSymbolKind == SymbolKind.ErrorType) return true;
Binder\Semantics\AccessCheck.cs (1)
183case SymbolKind.ErrorType:
Binder\WithLambdaParametersBinder.cs (1)
130case SymbolKind.ErrorType:
BoundTree\UnboundLambda.cs (1)
409bool hasErrors = !types.IsDefault && types.Any(static t => t.Type?.Kind == SymbolKind.ErrorType);
Compilation\CSharpSemanticModel.cs (2)
577if (type?.Kind != SymbolKind.ErrorType) 1748if (lookupResult.Symbols.Any(t => t.Kind == SymbolKind.NamedType || t.Kind == SymbolKind.Namespace || t.Kind == SymbolKind.ErrorType))
Compilation\SyntaxTreeSemanticModel.cs (1)
366if ((object)result == null || result.Kind == SymbolKind.ErrorType)
Compiler\ClsComplianceChecker.cs (1)
1246System.Diagnostics.Debug.Assert(symbol.Kind == SymbolKind.ErrorType);
Compiler\DocumentationCommentCompiler.cs (1)
644case SymbolKind.ErrorType:
Compiler\DocumentationCommentCompiler.IncludeElementExpander.cs (2)
569case SymbolKind.ErrorType: 591case SymbolKind.ErrorType:
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
443SymbolKind.NamedType or SymbolKind.ErrorType => ((NamedTypeSymbol)otherContainer).TypeParameters, 766case SymbolKind.ErrorType:
Emitter\EditAndContinue\EmitHelpers.cs (1)
165if (type.Kind == SymbolKind.ErrorType)
Emitter\Model\PEModuleBuilder.cs (3)
977if (namedTypeSymbol.OriginalDefinition.Kind == SymbolKind.ErrorType) 982if (diagInfo == null && namedTypeSymbol.Kind == SymbolKind.ErrorType) 1150case SymbolKind.ErrorType:
FlowAnalysis\DefiniteAssignment.VariableIdentifier.cs (1)
35SymbolKind.ErrorType => true,
FlowAnalysis\NullableWalker.cs (1)
1932case SymbolKind.ErrorType:
Lowering\SynthesizedSubmissionFields.cs (1)
64if ((object)hostObjectTypeSymbol != null && hostObjectTypeSymbol.Kind != SymbolKind.ErrorType)
Symbols\AbstractTypeMap.cs (1)
118case SymbolKind.ErrorType:
Symbols\Attributes\SourceAttributeData.cs (1)
290if (parameterType.Kind != SymbolKind.NamedType && parameterType.Kind != SymbolKind.ErrorType)
Symbols\ErrorTypeSymbol.cs (1)
218return SymbolKind.ErrorType;
Symbols\ExtendedErrorTypeSymbol.cs (2)
38(containingSymbol.Kind == SymbolKind.ErrorType)); 317case SymbolKind.ErrorType:
Symbols\MemberSymbolExtensions.cs (4)
223case SymbolKind.ErrorType: 297case SymbolKind.ErrorType: 329case SymbolKind.ErrorType: 347case SymbolKind.ErrorType:
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
153case SymbolKind.ErrorType:
Symbols\Metadata\PE\MetadataDecoder.cs (3)
230case SymbolKind.ErrorType: 316Debug.Assert(ReferenceEquals(newresult, result) || (newresult.Kind == SymbolKind.ErrorType)); 544Debug.Assert(scope.Kind == SymbolKind.NamedType || scope.Kind == SymbolKind.ErrorType);
Symbols\Metadata\PE\PEModuleSymbol.cs (1)
653return candidate.Kind != SymbolKind.ErrorType || !(candidate is MissingMetadataTypeSymbol);
Symbols\Metadata\PE\SymbolFactory.cs (1)
93if (arg.Key.Kind == SymbolKind.ErrorType &&
Symbols\Metadata\PE\TupleTypeDecoder.cs (1)
159case SymbolKind.ErrorType:
Symbols\MetadataOrSourceAssemblySymbol.cs (2)
97(corType.Kind == SymbolKind.ErrorType && 98_lazySpecialTypes[(int)typeId].Kind == SymbolKind.ErrorType));
Symbols\MethodSymbolExtensions.cs (1)
107case SymbolKind.ErrorType:
Symbols\NamespaceOrTypeSymbol.cs (1)
262if (scope.Kind == SymbolKind.ErrorType)
Symbols\Retargeting\RetargetingSymbolTranslator.cs (3)
227if (type.Kind == SymbolKind.ErrorType) 494if (newDefinition.Kind == SymbolKind.ErrorType && !newDefinition.IsGenericType) 659case SymbolKind.ErrorType:
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (1)
827else if (imported.Kind != SymbolKind.ErrorType)
Symbols\Symbol.cs (2)
201case SymbolKind.ErrorType: 644case SymbolKind.ErrorType:
Symbols\SymbolDistinguisher.cs (2)
59case SymbolKind.ErrorType: 196Debug.Assert(unwrappedSymbol.Kind == SymbolKind.DynamicType || unwrappedSymbol.Kind == SymbolKind.ErrorType || unwrappedSymbol.Kind == SymbolKind.FunctionPointerType);
Symbols\SymbolExtensions.cs (4)
138case SymbolKind.ErrorType: 204case SymbolKind.ErrorType: 272case SymbolKind.ErrorType: 528case SymbolKind.ErrorType:
Symbols\TypeSymbolExtensions.cs (3)
347return type.Kind == SymbolKind.ErrorType; 1748case SymbolKind.ErrorType: 1920case SymbolKind.ErrorType:
Symbols\TypeUnification.cs (2)
141case SymbolKind.ErrorType: 274case SymbolKind.ErrorType:
Symbols\VarianceSafety.cs (1)
333case SymbolKind.ErrorType:
Utilities\TypeSymbolExtensions.cs (2)
45case SymbolKind.ErrorType: 128case SymbolKind.ErrorType:
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
619if (method.TypeArguments.Any(static t => t.Kind == SymbolKind.ErrorType))
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
SymbolKey\SymbolKeyCompilationsTests.cs (2)
104Assert.NotEqual(SymbolKind.ErrorType, symbol01.Kind); 105Assert.NotEqual(SymbolKind.ErrorType, symbol02.Kind);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (12)
CodeGen\CodeGenDeconstructTests.cs (1)
5612Assert.Equal(SymbolKind.ErrorType, xTypeISymbol.Kind);
CodeGen\CodeGenTupleTest.cs (11)
3351Assert.Equal(SymbolKind.ErrorType, mTuple.TupleUnderlyingType.Kind); 5954Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.Kind); 5959Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.Kind); 5978Assert.Equal(SymbolKind.ErrorType, tupleWithNames.Kind); 5997Assert.Equal(SymbolKind.ErrorType, tupleWithSomeNames.Kind); 6015Assert.Equal(SymbolKind.ErrorType, tupleWithNames.Kind); 6199Assert.Equal(SymbolKind.ErrorType, types[1].Kind); 6421Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.Kind); 6437Assert.Equal(SymbolKind.ErrorType, tupleWithNames.Kind); 6452Assert.Equal(SymbolKind.ErrorType, tupleWithNames.Kind); 6552Assert.Equal(SymbolKind.ErrorType, types[1].Kind);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Semantics\PatternMatchingTestBase.cs (2)
400Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 401Assert.Equal(SymbolKind.ErrorType, typeInfo.ConvertedType.Kind);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (15)
Semantics\DeconstructionTests.cs (12)
4285Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 4291Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 4416Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 4422Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 4544Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 4553Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 5230Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 5236Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 5374Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 5380Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 5511Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind); 5520Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
Semantics\NativeIntegerTests.cs (2)
726Assert.Equal(SymbolKind.ErrorType, type.Kind); 734Assert.Equal(SymbolKind.ErrorType, type.Kind);
Semantics\QueryTests.cs (1)
3141Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (329)
Compilation\GetSemanticInfoTests.cs (1)
4790Assert.Equal(SymbolKind.ErrorType, lambda.ReturnType.Kind);
Compilation\SemanticModelGetSemanticInfoTests.cs (5)
7778Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind); 7797Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind); 8124Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind); 8148Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind); 8241Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind);
DocumentationComments\DocumentationCommentIDTests.cs (1)
94Assert.Equal(SymbolKind.ErrorType, symbol.Kind);
Symbols\CompilationCreationTests.cs (115)
140Assert.Equal(SymbolKind.ErrorType, asm1[1].GlobalNamespace.GetTypeMembers("Class4"). 164Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind); 195Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind); 216Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind); 221Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind); 226Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind); 254Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind); 279Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind); 284Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind); 289Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind); 304Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind); 309Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind); 314Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind); 319Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind); 324Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind); 370Assert.Equal(SymbolKind.ErrorType, retval15.Kind); 374Assert.Equal(SymbolKind.ErrorType, retval16.Kind); 378Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind); 393Assert.Equal(SymbolKind.ErrorType, retval18.Kind); 397Assert.Equal(SymbolKind.ErrorType, retval19.Kind); 401Assert.Equal(SymbolKind.ErrorType, retval20.Kind); 405Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind); 410Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind); 458Assert.Equal(SymbolKind.ErrorType, asm1[1].GlobalNamespace.GetTypeMembers("Class4"). 475Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind); 497Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind); 518Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind); 523Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind); 528Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind); 546Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind); 571Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind); 576Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind); 581Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind); 596Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind); 601Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind); 606Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind); 611Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind); 616Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind); 636Assert.Equal(SymbolKind.ErrorType, retval15.Kind); 640Assert.Equal(SymbolKind.ErrorType, retval16.Kind); 644Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind); 659Assert.Equal(SymbolKind.ErrorType, retval18.Kind); 663Assert.Equal(SymbolKind.ErrorType, retval19.Kind); 667Assert.Equal(SymbolKind.ErrorType, retval20.Kind); 671Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind); 676Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind); 747Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind); 843Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind); 864Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind); 869Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind); 874Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind); 984Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind); 1009Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind); 1014Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind); 1019Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind); 1034Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind); 1039Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind); 1044Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind); 1049Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind); 1054Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind); 1107Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind); 1134Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind); 1139Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind); 1195Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind); 1222Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind); 1243Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind); 1248Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind); 1253Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind); 1275Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind); 1300Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind); 1305Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind); 1310Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind); 1325Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind); 1330Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind); 1335Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind); 1340Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind); 1345Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind); 1380Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind); 1407Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind); 1412Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind); 1458Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind); 1517Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind); 1538Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind); 1543Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind); 1548Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind); 1605Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind); 1630Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind); 1635Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind); 1640Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind); 1655Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind); 1660Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind); 1665Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind); 1670Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind); 1675Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind); 1743Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind); 1770Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind); 1775Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind); 1841Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind); 1868Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind); 1889Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind); 1894Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind); 1899Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind); 1921Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind); 1946Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind); 1951Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind); 1956Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind); 1971Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind); 1976Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind); 1981Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind); 1986Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind); 1991Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind); 2028Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind); 2055Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind); 2060Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind); 2528Assert.NotEqual(SymbolKind.ErrorType, typeC5.Kind);
Symbols\Metadata\PE\BaseTypeResolution.cs (9)
206Assert.NotEqual(SymbolKind.ErrorType, @base.Kind); 227Assert.NotEqual(SymbolKind.ErrorType, base1.Kind); 233Assert.NotEqual(SymbolKind.ErrorType, base2.Kind); 239Assert.NotEqual(SymbolKind.ErrorType, base3.Kind); 245Assert.NotEqual(SymbolKind.ErrorType, base4.Kind); 251Assert.NotEqual(SymbolKind.ErrorType, base5.Kind); 257Assert.NotEqual(SymbolKind.ErrorType, base6.Kind); 263Assert.NotEqual(SymbolKind.ErrorType, base7.Kind); 269Assert.NotEqual(SymbolKind.ErrorType, base8.Kind);
Symbols\Metadata\PE\MissingTypeReferences.cs (16)
46Assert.Equal(SymbolKind.ErrorType, @base.Kind); 64Assert.Equal(SymbolKind.ErrorType, @base.Kind); 101Assert.Equal(SymbolKind.ErrorType, @base.Kind); 112Assert.Equal(SymbolKind.ErrorType, @base.ContainingSymbol.Kind); 116Assert.Equal(SymbolKind.ErrorType, @base.ContainingSymbol.ContainingSymbol.Kind); 130Assert.Equal(SymbolKind.ErrorType, @base.Kind); 145Assert.Equal(SymbolKind.ErrorType, @base.Kind); 160Assert.Equal(SymbolKind.ErrorType, @base.Kind); 173Assert.Equal(SymbolKind.ErrorType, genericBase.Kind); 177Assert.Equal(SymbolKind.ErrorType, @base.Kind); 194Assert.Equal(SymbolKind.ErrorType, @base.Kind); 213Assert.Equal(SymbolKind.ErrorType, @base.Kind); 228Assert.Equal(SymbolKind.ErrorType, genericBase.ContainingSymbol.Kind); 231Assert.Equal(SymbolKind.ErrorType, @base.Kind); 250Assert.Equal(SymbolKind.ErrorType, genericBase.ContainingSymbol.Kind); 253Assert.Equal(SymbolKind.ErrorType, @base.Kind);
Symbols\Metadata\PE\NoPia.cs (63)
156Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 164Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 200Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 208Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 213Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 215Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 237Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 239Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 244Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 246Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 270Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind); 271Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind); 275Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 277Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 304Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 311Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 528Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 537Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 542Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 550Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 571Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 573Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 578Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 580Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 604Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind); 605Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind); 612Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 614Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 640Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 646Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 717Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 718Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 719Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind); 724Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind); 736Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 737Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 739Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind); 780Assert.NotEqual(SymbolKind.ErrorType, varI5_2.GetMembers("Foo").OfType<MethodSymbol>().Single().ReturnType.Kind); 794Assert.NotEqual(SymbolKind.ErrorType, varI7_3.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind); 809Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMembers("Foo").OfType<MethodSymbol>().Single().ReturnType.Kind); 810Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind); 858Assert.NotEqual(SymbolKind.ErrorType, varI7_7.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind); 1018Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 1019Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 1020Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind); 1025Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind); 1037Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 1038Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 1040Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind); 1147Assert.NotEqual(SymbolKind.ErrorType, varI5_2.GetMembers("Foo").OfType<MethodSymbol>().Single().ReturnType.Kind); 1161Assert.NotEqual(SymbolKind.ErrorType, varI7_3.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind); 1176Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMembers("Foo").OfType<MethodSymbol>().Single().ReturnType.Kind); 1177Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind); 1225Assert.NotEqual(SymbolKind.ErrorType, varI7_7.GetMembers("Bar").OfType<MethodSymbol>().Single().ReturnType.Kind); 1239Assert.NotEqual(SymbolKind.ErrorType, varI5.Kind); 1240Assert.NotEqual(SymbolKind.ErrorType, varI6.Kind); 1241Assert.NotEqual(SymbolKind.ErrorType, varI5_Foo.ReturnType.Kind); 1242Assert.NotEqual(SymbolKind.ErrorType, ((NamedTypeSymbol)varI5_Foo.ReturnType).TypeArguments()[0].Kind); 1249Assert.NotEqual(SymbolKind.ErrorType, varI7_Foo.ReturnType.Kind); 1250Assert.NotEqual(SymbolKind.ErrorType, ((NamedTypeSymbol)varI7_Foo.ReturnType).TypeArguments()[0].Kind); 1253Assert.NotEqual(SymbolKind.ErrorType, varI7_Bar.ReturnType.Kind); 1254Assert.NotEqual(SymbolKind.ErrorType, ((NamedTypeSymbol)varI7_Bar.ReturnType).TypeArguments()[0].Kind); 1259Assert.NotEqual(SymbolKind.ErrorType, varI1.Kind);
Symbols\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.cs (19)
36Assert.Equal(SymbolKind.ErrorType, localField.Type.BaseType().Kind); 56Assert.Equal(SymbolKind.ErrorType, importedField.Type.Kind); 76Assert.Equal(SymbolKind.ErrorType, importedField.Type.Kind); 101Assert.Equal(SymbolKind.ErrorType, inner.Kind); 140Assert.Equal(SymbolKind.ErrorType, m.Parameters.Where(arg => arg.Name == "c1").Select(arg => arg).Single().Type.BaseType().Kind); 145Assert.Equal(SymbolKind.ErrorType, m.ReturnType.BaseType().Kind); 184Assert.Equal(SymbolKind.ErrorType, importedProperty.Parameters.Single(arg => arg.Name == "x").Type.Kind); 203Assert.Equal(SymbolKind.ErrorType, importedProperty.Type.Kind); 222Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Where(arg => arg.Name == "x").Select(arg => arg).Single().Type.Kind); 241Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Where(arg => arg.Name == "x").Select(arg => arg).Single().Type.Kind); 260Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Where(arg => arg.Name == "x").Select(arg => arg).Single().Type.Kind); 279Assert.Equal(SymbolKind.ErrorType, importedMethod.ReturnType.Kind); 298Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Where(arg => arg.Name == "x").Select(arg => arg).Single().Type.Kind); 317Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.Single(arg => arg.Name == "x").Type.Kind); 336Assert.Equal(SymbolKind.ErrorType, importedField.Type.Kind); 391Assert.Equal(SymbolKind.ErrorType, localField.Type.BaseType().Kind); 490Assert.Equal(SymbolKind.ErrorType, ((ArrayTypeSymbol)localField.Type).ElementType.Kind); 521Assert.Equal(SymbolKind.ErrorType, localMethod.ReturnType.Kind); 571Assert.Equal(SymbolKind.ErrorType, m.ReturnType.Kind);
Symbols\Metadata\PE\NoPiaLocalHideAndTypeSubstitutionTests.cs (2)
306Assert.Equal(SymbolKind.ErrorType, missing.Kind); 374Assert.Equal(SymbolKind.ErrorType, param.First().Type.Kind);
Symbols\MissingSpecialMember.cs (3)
537Assert.Equal(SymbolKind.ErrorType, symbol.Kind); // Not available 541Assert.NotEqual(SymbolKind.ErrorType, symbol.Kind); 687Assert.True(symbol.Kind != SymbolKind.ErrorType, $"{wkt} should not be an error type");
Symbols\Retargeting\NoPia.cs (73)
464Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 472Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 506Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 514Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 519Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 521Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 541Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 543Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 548Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 550Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 573Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind); 574Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind); 578Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 580Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 606Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 612Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 765Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 773Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 807Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 815Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 820Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 822Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 842Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 844Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 849Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 851Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 874Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind); 875Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind); 879Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 881Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 907Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 913Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 1069Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 1077Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 1111Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 1119Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 1124Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 1126Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 1146Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 1148Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 1153Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 1155Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 1178Assert.NotEqual(SymbolKind.ErrorType, param[0].Type.Kind); 1179Assert.NotEqual(SymbolKind.ErrorType, param[1].Type.Kind); 1183Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 1185Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 1211Assert.Equal(SymbolKind.ErrorType, param[0].Type.Kind); 1217Assert.Equal(SymbolKind.ErrorType, param[1].Type.Kind); 1349Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 1350Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 1351Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind); 1356Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind); 1370Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 1371Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 1373Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind); 1415Assert.Equal(SymbolKind.ErrorType, assemblies1[0].GlobalNamespace.GetMember<MethodSymbol>("C.Test1").ReturnType.Kind); 1423Assert.Equal(SymbolKind.ErrorType, assemblies2[0].GlobalNamespace.GetMember<MethodSymbol>("C.Test1").ReturnType.Kind); 1460Assert.Equal(SymbolKind.ErrorType, assemblies1[0].GlobalNamespace.GetMember<MethodSymbol>("C.Test1").ReturnType.Kind); 1468Assert.Equal(SymbolKind.ErrorType, assemblies2[0].GlobalNamespace.GetMember<MethodSymbol>("C.Test1").ReturnType.Kind); 1902Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 1903Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 1904Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind); 1909Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind); 1923Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 1924Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 1926Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind); 1952Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 1953Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 1954Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMembers("Test3").OfType<MethodSymbol>().Single().ReturnType.Kind); 1959Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind); 1973Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test1").OfType<MethodSymbol>().Single().ReturnType.Kind); 1974Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test2").OfType<MethodSymbol>().Single().ReturnType.Kind); 1976Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMembers("Test4").OfType<MethodSymbol>().Single().ReturnType.Kind);
Symbols\Retargeting\RetargetExplicitInterfaceImplementation.cs (1)
98case SymbolKind.ErrorType:
Symbols\Source\BaseClassTests.cs (10)
40Assert.Equal(SymbolKind.ErrorType, x.BaseType().Kind); 41Assert.Equal(SymbolKind.ErrorType, y.BaseType().Kind); 60Assert.Equal(SymbolKind.ErrorType, x.BaseType().Kind); 61Assert.Equal(SymbolKind.ErrorType, y.BaseType().Kind); 186Assert.Equal(SymbolKind.ErrorType, a.Interfaces()[0].Kind); 1321Assert.NotEqual(SymbolKind.ErrorType, d.BaseType().Kind); 1392Assert.Equal(SymbolKind.ErrorType, a2.BaseType().Kind); 1395Assert.Equal(SymbolKind.ErrorType, b2.BaseType().Kind); 1415Assert.Equal(SymbolKind.ErrorType, abase.Kind); 1417Assert.Equal(SymbolKind.ErrorType, bbase.Kind);
Symbols\Source\UsingAliasTests.cs (2)
705Assert.Equal(SymbolKind.ErrorType, alias.Target.Kind); 748Assert.Equal(SymbolKind.ErrorType, alias.Target.Kind);
Symbols\SymbolErrorTests.cs (3)
16894Assert.Equal(SymbolKind.ErrorType, fieldType.Type.Kind); 16921Assert.Equal(SymbolKind.ErrorType, fieldType.Kind); 16958Assert.Equal(SymbolKind.ErrorType, fieldType.Kind);
Symbols\TypeTests.cs (6)
645Assert.NotEqual(SymbolKind.ErrorType, objType.Kind); 653Assert.NotEqual(SymbolKind.ErrorType, dynType.Kind); 1243Assert.Equal(SymbolKind.ErrorType, typeAb.Kind); 1250Assert.Equal(SymbolKind.ErrorType, typeBi.Kind); 1257Assert.Equal(SymbolKind.ErrorType, typeCi.Kind); 1264Assert.Equal(SymbolKind.ErrorType, typeDi.TypeArguments()[2].Kind);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
Extensions.cs (2)
723return type.Kind == SymbolKind.ErrorType; 826case SymbolKind.ErrorType:
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (1)
619if (method.TypeArguments.Any(static t => t.Kind == SymbolKind.ErrorType))
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Native.cs (1)
656if (type.Kind == SymbolKind.ErrorType)
Microsoft.CodeAnalysis.Features (1)
Shared\Extensions\ISymbolExtensions_2.cs (1)
56case SymbolKind.ErrorType:
Microsoft.CodeAnalysis.UnitTests (2)
CorLibTypesTests.cs (2)
82Assert.Equal(SymbolKind.ErrorType, symbol.Kind); 86Assert.NotEqual(SymbolKind.ErrorType, symbol.Kind);
Microsoft.CodeAnalysis.VisualBasic (89)
Binding\Binder_Expressions.vb (4)
660If symbols.Count = 1 AndAlso symbols(0).Kind = SymbolKind.ErrorType Then 3298Case SymbolKind.NamedType, SymbolKind.ErrorType 3358Case SymbolKind.NamedType, SymbolKind.ErrorType 3439If candidate Is Nothing OrElse candidate.Kind = SymbolKind.ErrorType Then
Binding\Binder_Imports.vb (2)
118If aliasTarget.Kind <> SymbolKind.ErrorType Then 181If importedSymbol.Kind <> SymbolKind.ErrorType Then
Binding\Binder_Invocation.vb (1)
2304If targetType.Kind <> SymbolKind.ErrorType Then
Binding\Binder_Lookup.vb (1)
181Case SymbolKind.NamedType, SymbolKind.ErrorType
Binding\DocumentationCommentCrefBinder.vb (1)
855Case SymbolKind.NamedType, SymbolKind.ErrorType
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
400Case SymbolKind.NamedType, SymbolKind.ErrorType
Compilation\ClsComplianceChecker.vb (1)
826Debug.Assert(symbol.Kind = SymbolKind.ErrorType)
Compilation\NamespaceScopeBuilder.vb (2)
38ElseIf target.Kind <> SymbolKind.ErrorType AndAlso Not target.ContainingAssembly.IsLinked Then 53Debug.Assert(target.Kind <> SymbolKind.ErrorType)
Emit\EditAndContinue\EmitHelpers.vb (1)
151If type.Kind = SymbolKind.ErrorType Then
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (2)
331SymbolKind.ErrorType 494SymbolKind.ErrorType
Emit\SymbolTranslator.vb (3)
133If namedTypeSymbol.OriginalDefinition.Kind = SymbolKind.ErrorType Then 137If diagInfo Is Nothing AndAlso namedTypeSymbol.Kind = SymbolKind.ErrorType Then 256Case SymbolKind.NamedType, SymbolKind.ErrorType
Lowering\SynthesizedSubmissionFields.vb (1)
57If hostObjectTypeSymbol IsNot Nothing AndAlso hostObjectTypeSymbol.Kind <> SymbolKind.ErrorType Then
Semantics\AccessCheck.vb (3)
112Case SymbolKind.ErrorType 498Case SymbolKind.NamedType, SymbolKind.ErrorType 599Case SymbolKind.TypeParameter, SymbolKind.ErrorType
Semantics\Conversions.vb (36)
708Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 876Debug.Assert(targetType.Kind <> SymbolKind.ErrorType) 890Debug.Assert(targetType.Kind <> SymbolKind.ErrorType) 913Debug.Assert(source.Kind <> SymbolKind.ErrorType) 915Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 943Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 1000If sourceType.Kind <> SymbolKind.ErrorType Then 1019Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 1441Debug.Assert(booleanType.Kind <> SymbolKind.ErrorType) 1725Debug.Assert(source.Kind <> SymbolKind.ErrorType) 1726Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 1790Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 1819If sourceType.Kind <> SymbolKind.ErrorType Then 1829Debug.Assert(source.Kind <> SymbolKind.ErrorType) 1831Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 1846Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 1875If sourceType.Kind <> SymbolKind.ErrorType Then 2068Return If(valueType.Kind = SymbolKind.ErrorType, Nothing, valueType) 2087Debug.Assert(source.Kind <> SymbolKind.ErrorType) 2088Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 2111Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 2130Debug.Assert(sourceType.Kind <> SymbolKind.ErrorType) 2196Debug.Assert(source.Kind <> SymbolKind.ErrorType) 2198Debug.Assert(destination.Kind <> SymbolKind.ErrorType) 2470If dstUnderlying Is destination OrElse dstUnderlying.Kind = SymbolKind.ErrorType Then 2486If dstUnderlyingElement.Kind = SymbolKind.ErrorType Then 2492If arrayElement.Kind = SymbolKind.ErrorType Then 3030If srcElem.Kind = SymbolKind.ErrorType OrElse dstElem.Kind = SymbolKind.ErrorType Then 3368If underlying.Kind <> SymbolKind.ErrorType Then 3482If srcUnderlying.Kind = SymbolKind.ErrorType OrElse Not srcUnderlying.IsValueType OrElse srcUnderlying.IsNullableType() Then 3490If dstUnderlying.Kind = SymbolKind.ErrorType OrElse Not dstUnderlying.IsValueType OrElse dstUnderlying.IsNullableType() Then 3759If valueType.Kind <> SymbolKind.ErrorType Then 3775If constraint.Kind = SymbolKind.ErrorType Then 3919If valueType.Kind <> SymbolKind.ErrorType AndAlso IsDerivedFrom(valueType, source, useSiteInfo) Then 3940If constraint.Kind = SymbolKind.ErrorType Then
Semantics\OverloadResolution.vb (3)
3024If targetType.Kind = SymbolKind.ErrorType Then 3099If targetType.Kind = SymbolKind.ErrorType Then 4716Case SymbolKind.NamedType, SymbolKind.ErrorType
Semantics\TypeInference\TypeArgumentInference.vb (1)
971If targetType.Kind = SymbolKind.ErrorType Then
Symbols\AssemblySymbol.vb (1)
704Return candidate IsNot Nothing AndAlso (candidate.Kind <> SymbolKind.ErrorType OrElse Not (TypeOf candidate Is MissingMetadataTypeSymbol))
Symbols\Attributes\SourceAttributeData.vb (1)
172If parameterType.Kind <> SymbolKind.NamedType AndAlso parameterType.Kind <> SymbolKind.ErrorType Then
Symbols\BaseTypeAnalysis.vb (1)
195If current Is Nothing OrElse current.Kind = SymbolKind.ErrorType Then
Symbols\ConstraintsHelper.vb (2)
770Case SymbolKind.ErrorType 801Case SymbolKind.ErrorType
Symbols\ErrorTypeSymbol.vb (1)
105Return SymbolKind.ErrorType
Symbols\Metadata\PE\MetadataDecoder.vb (2)
202Case SymbolKind.NamedType, SymbolKind.ErrorType 277Debug.Assert(newresult Is result OrElse (newresult.Kind = SymbolKind.ErrorType))
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
384Return candidate.Kind <> SymbolKind.ErrorType OrElse Not (TypeOf candidate Is MissingMetadataTypeSymbol)
Symbols\Metadata\PE\SymbolFactory.vb (1)
81If arg.Key.Kind = SymbolKind.ErrorType AndAlso
Symbols\Metadata\PE\TupleTypeDecoder.vb (1)
127Case SymbolKind.ErrorType
Symbols\MetadataOrSourceAssemblySymbol.vb (2)
83(corType.Kind = SymbolKind.ErrorType AndAlso 84_lazySpecialTypes(CInt(typeId)).Kind = SymbolKind.ErrorType))
Symbols\Retargeting\RetargetingSymbolTranslator.vb (3)
174If type.Kind = SymbolKind.ErrorType Then 398If newDefinition.Kind = SymbolKind.ErrorType AndAlso Not newDefinition.IsGenericType Then 554Case SymbolKind.ErrorType, SymbolKind.NamedType
Symbols\Source\SourceFile.vb (1)
69Debug.Assert(Not memberImports.Any(Function(i) i.NamespaceOrType.Kind = SymbolKind.ErrorType))
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
947Case SymbolKind.ErrorType
Symbols\Symbol.vb (2)
251Case SymbolKind.ErrorType 607SymbolKind.ErrorType,
Symbols\SymbolExtensions.vb (1)
308Case SymbolKind.NamedType, SymbolKind.ErrorType
Symbols\TypeSubstitution.vb (1)
569((targetGenericDefinition.Kind = SymbolKind.NamedType OrElse targetGenericDefinition.Kind = SymbolKind.ErrorType) AndAlso
Symbols\TypeSymbol.vb (1)
378If Me.Kind <> SymbolKind.ErrorType Then
Symbols\TypeSymbolExtensions.vb (1)
158Return type.Kind = SymbolKind.ErrorType
Utilities\TypeUnification.vb (2)
106Case SymbolKind.NamedType, SymbolKind.ErrorType 243Case SymbolKind.NamedType, SymbolKind.ErrorType
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (8)
CodeGen\CodeGenTuples.vb (8)
5750Assert.Equal(SymbolKind.ErrorType, mTuple.TupleUnderlyingType.Kind) 6946Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 6966Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 6987Assert.Equal(SymbolKind.ErrorType, tupleWithSomeNames.TupleUnderlyingType.Kind) 7158Assert.Equal(SymbolKind.ErrorType, types(1).Kind) 7296Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 7314Assert.Equal(SymbolKind.ErrorType, tupleWithoutNames.TupleUnderlyingType.Kind) 7440Assert.Equal(SymbolKind.ErrorType, types(1).Kind)
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (3)
CompilationContext.vb (3)
784If typeSymbol.Kind = SymbolKind.ErrorType Then 822If namespaceOrTypeSymbol.Kind = SymbolKind.ErrorType Then 853If namespaceOrTypeSymbol.Kind = SymbolKind.ErrorType Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
ExtractMethod\Extensions.vb (1)
469Return type Is Nothing OrElse type.Kind = SymbolKind.ErrorType
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (8)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
1523Assert.Equal(SymbolKind.ErrorType, aliasSymbol.Target.Kind)
Semantics\GetExtendedSemanticInfoTests.vb (2)
5744Assert.Equal(SymbolKind.ErrorType, semanticInfo.Type.Kind) 10222Assert.Equal(SymbolKind.ErrorType, [alias].Target.Kind)
Semantics\NameOfTests.vb (5)
140Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind) 1531Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind) 1869Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind) 2886Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind) 2951Assert.Equal(SymbolKind.ErrorType, typeInfo.Type.Kind)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (262)
SymbolsTests\CompilationCreationTests.vb (117)
100Assert.Equal(type.Kind, SymbolKind.ErrorType) ' Not available 102Assert.NotEqual(type.Kind, SymbolKind.ErrorType) 273Assert.Equal(SymbolKind.ErrorType, asm1(1).GlobalNamespace.GetTypeMembers("Class4").Single().GetMembers("Foo").OfType(Of MethodSymbol)().Single().ReturnType.Kind) 291Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind) 317Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind) 332Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind) 335Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind) 338Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind) 361Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind) 380Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind) 383Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind) 386Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind) 396Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind) 399Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind) 402Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind) 405Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind) 408Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind) 446Assert.Equal(SymbolKind.ErrorType, retval15.Kind) 448Assert.Equal(SymbolKind.ErrorType, retval16.Kind) 450Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind) 460Assert.Equal(SymbolKind.ErrorType, retval18.Kind) 462Assert.Equal(SymbolKind.ErrorType, retval19.Kind) 464Assert.Equal(SymbolKind.ErrorType, retval20.Kind) 466Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind) 469Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind) 513Assert.Equal(SymbolKind.ErrorType, asm1(1).GlobalNamespace.GetTypeMembers("Class4").Single().GetMembers("Foo").OfType(Of MethodSymbol)().Single().ReturnType.Kind) 522Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind) 537Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind) 552Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind) 555Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind) 558Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind) 570Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind) 589Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind) 592Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind) 595Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind) 605Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind) 608Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind) 611Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind) 614Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind) 617Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind) 631Assert.Equal(SymbolKind.ErrorType, retval15.Kind) 633Assert.Equal(SymbolKind.ErrorType, retval16.Kind) 635Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind) 645Assert.Equal(SymbolKind.ErrorType, retval18.Kind) 647Assert.Equal(SymbolKind.ErrorType, retval19.Kind) 649Assert.Equal(SymbolKind.ErrorType, retval20.Kind) 651Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind) 654Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind) 701Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind) 754Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind) 769Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind) 772Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind) 775Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind) 853Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind) 872Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind) 875Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind) 878Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind) 888Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind) 891Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind) 894Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind) 897Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind) 900Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind) 929Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind) 945Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind) 948Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind) 990Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind) 1009Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind) 1024Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind) 1027Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind) 1030Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind) 1046Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind) 1065Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind) 1068Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind) 1071Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind) 1081Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind) 1084Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind) 1087Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind) 1090Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind) 1093Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind) 1116Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind) 1132Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind) 1135Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind) 1171Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind) 1212Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind) 1228Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind) 1231Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind) 1234Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind) 1278Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind) 1297Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind) 1300Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind) 1303Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind) 1313Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind) 1316Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind) 1319Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind) 1322Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind) 1325Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind) 1381Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind) 1397Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind) 1400Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind) 1457Assert.NotEqual(SymbolKind.ErrorType, retval1.Kind) 1476Assert.NotEqual(SymbolKind.ErrorType, retval2.Kind) 1491Assert.NotEqual(SymbolKind.ErrorType, retval3.Kind) 1494Assert.NotEqual(SymbolKind.ErrorType, retval4.Kind) 1497Assert.NotEqual(SymbolKind.ErrorType, retval5.Kind) 1513Assert.NotEqual(SymbolKind.ErrorType, retval6.Kind) 1532Assert.NotEqual(SymbolKind.ErrorType, retval7.Kind) 1535Assert.NotEqual(SymbolKind.ErrorType, retval8.Kind) 1538Assert.NotEqual(SymbolKind.ErrorType, retval9.Kind) 1548Assert.NotEqual(SymbolKind.ErrorType, retval10.Kind) 1551Assert.NotEqual(SymbolKind.ErrorType, retval11.Kind) 1554Assert.NotEqual(SymbolKind.ErrorType, retval12.Kind) 1557Assert.NotEqual(SymbolKind.ErrorType, retval13.Kind) 1560Assert.NotEqual(SymbolKind.ErrorType, retval14.Kind) 1587Assert.NotEqual(SymbolKind.ErrorType, retval17.Kind) 1603Assert.NotEqual(SymbolKind.ErrorType, retval21.Kind) 1606Assert.NotEqual(SymbolKind.ErrorType, retval22.Kind) 1966Assert.NotEqual(SymbolKind.ErrorType, typeC5.Kind)
SymbolsTests\Metadata\PE\BaseTypeResolution.vb (9)
191Assert.NotEqual(SymbolKind.ErrorType, base.Kind) 209Assert.NotEqual(SymbolKind.ErrorType, base1.Kind) 215Assert.NotEqual(SymbolKind.ErrorType, base2.Kind) 221Assert.NotEqual(SymbolKind.ErrorType, base3.Kind) 227Assert.NotEqual(SymbolKind.ErrorType, base4.Kind) 233Assert.NotEqual(SymbolKind.ErrorType, base5.Kind) 239Assert.NotEqual(SymbolKind.ErrorType, base6.Kind) 246Assert.NotEqual(SymbolKind.ErrorType, base7.Kind) 252Assert.NotEqual(SymbolKind.ErrorType, base8.Kind)
SymbolsTests\Metadata\PE\MissingTypeReferences.vb (14)
42Assert.Equal(SymbolKind.ErrorType, base.Kind) 59Assert.Equal(SymbolKind.ErrorType, base.Kind) 97Assert.Equal(SymbolKind.ErrorType, base.Kind) 108Assert.Equal(SymbolKind.ErrorType, base.ContainingSymbol.Kind) 113Assert.Equal(SymbolKind.ErrorType, baseContainerContainer.Kind) 129Assert.Equal(SymbolKind.ErrorType, base.Kind) 144Assert.Equal(SymbolKind.ErrorType, base.Kind) 159Assert.Equal(SymbolKind.ErrorType, base.Kind) 172Assert.Equal(SymbolKind.ErrorType, genericBase.Kind) 176Assert.Equal(SymbolKind.ErrorType, base.Kind) 212Assert.Equal(SymbolKind.ErrorType, base.Kind) 229Assert.Equal(SymbolKind.ErrorType, genericBase.ContainingSymbol.Kind) 234Assert.Equal(SymbolKind.ErrorType, base.Kind) 260Assert.Equal(SymbolKind.ErrorType, base.Kind)
SymbolsTests\Metadata\PE\NoPia.vb (63)
107Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 114Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 143Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 150Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 153Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 155Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 171Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 173Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 176Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 178Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 196Assert.NotEqual(SymbolKind.ErrorType, param(0).[Type].Kind) 197Assert.NotEqual(SymbolKind.ErrorType, param(1).[Type].Kind) 199Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 201Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 222Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 228Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 407Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 414Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 417Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 424Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 442Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 444Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 447Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 449Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 470Assert.NotEqual(SymbolKind.ErrorType, param(0).[Type].Kind) 471Assert.NotEqual(SymbolKind.ErrorType, param(1).[Type].Kind) 476Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 478Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 499Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 504Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 558Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind) 559Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind) 560Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test3").ReturnType.Kind) 563Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind) 567Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind) 568Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind) 570Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind) 600Assert.NotEqual(SymbolKind.ErrorType, varI5_2.GetMember(Of MethodSymbol)("Foo").ReturnType.Kind) 609Assert.NotEqual(SymbolKind.ErrorType, varI7_3.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind) 619Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMember(Of MethodSymbol)("Foo").ReturnType.Kind) 620Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind) 654Assert.NotEqual(SymbolKind.ErrorType, varI7_7.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind) 775Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind) 776Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind) 777Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test3").ReturnType.Kind) 781Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind) 785Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind) 786Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind) 788Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind) 877Assert.NotEqual(SymbolKind.ErrorType, varI5_2.GetMember(Of MethodSymbol)("Foo").ReturnType.Kind) 887Assert.NotEqual(SymbolKind.ErrorType, varI7_3.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind) 898Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMember(Of MethodSymbol)("Foo").ReturnType.Kind) 899Assert.NotEqual(SymbolKind.ErrorType, varI7_4.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind) 933Assert.NotEqual(SymbolKind.ErrorType, varI7_7.GetMember(Of MethodSymbol)("Bar").ReturnType.Kind) 944Assert.NotEqual(SymbolKind.ErrorType, varI5.Kind) 945Assert.NotEqual(SymbolKind.ErrorType, varI6.Kind) 946Assert.NotEqual(SymbolKind.ErrorType, varI5_Foo.ReturnType.Kind) 947Assert.NotEqual(SymbolKind.ErrorType, (DirectCast(varI5_Foo.ReturnType, NamedTypeSymbol)).TypeArguments(0).Kind) 952Assert.NotEqual(SymbolKind.ErrorType, varI7_Foo.ReturnType.Kind) 953Assert.NotEqual(SymbolKind.ErrorType, (DirectCast(varI7_Foo.ReturnType, NamedTypeSymbol)).TypeArguments(0).Kind) 955Assert.NotEqual(SymbolKind.ErrorType, varI7_Bar.ReturnType.Kind) 956Assert.NotEqual(SymbolKind.ErrorType, (DirectCast(varI7_Bar.ReturnType, NamedTypeSymbol)).TypeArguments(0).Kind) 959Assert.NotEqual(SymbolKind.ErrorType, varI1.Kind)
SymbolsTests\Metadata\PE\NoPiaInstantiationOfGenericClassAndStruct.vb (20)
34Assert.Equal(SymbolKind.ErrorType, localField.[Type].BaseType.Kind) 50Assert.Equal(SymbolKind.ErrorType, importedField.[Type].Kind) 66Assert.Equal(SymbolKind.ErrorType, importedField.[Type].Kind) 89Assert.Equal(SymbolKind.ErrorType, inner.Kind) 120Assert.Equal(SymbolKind.ErrorType, m.Parameters.[Where](Function(arg) arg.Name = "c1").[Select](Function(arg) arg).[Single]().[Type].BaseType.Kind) 124Assert.Equal(SymbolKind.ErrorType, m.ReturnType.BaseType.Kind) 157Assert.Equal(SymbolKind.ErrorType, importedProperty.Parameters.Where(Function(arg) arg.Name = "x").Single().Type.Kind) 173Assert.Equal(SymbolKind.ErrorType, importedProperty.Type.Kind) 189Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Select](Function(arg) arg).[Single]().[Type].Kind) 205Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Select](Function(arg) arg).[Single]().[Type].Kind) 221Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Select](Function(arg) arg).[Single]().[Type].Kind) 237Assert.Equal(SymbolKind.ErrorType, importedMethod.ReturnType.Kind) 253Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Select](Function(arg) arg).[Single]().[Type].Kind) 269Assert.Equal(SymbolKind.ErrorType, importedMethod.Parameters.[Where](Function(arg) arg.Name = "x").[Single]().[Type].Kind) 283Assert.Equal(SymbolKind.ErrorType, importedField.[Type].Kind) 297Assert.Equal(SymbolKind.ErrorType, var1.DelegateParameters.First().Type.Kind) 325Assert.Equal(SymbolKind.ErrorType, localField.[Type].BaseType.Kind) 409Assert.Equal(SymbolKind.ErrorType, DirectCast(localField.Type, ArrayTypeSymbol).ElementType.Kind) 430Assert.Equal(SymbolKind.ErrorType, localMethod.ReturnType.Kind) 483Assert.Equal(SymbolKind.ErrorType, m.ReturnType.Kind)
SymbolsTests\Retargeting\NoPia.vb (27)
397Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 405Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 430Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 437Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 440Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 442Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 457Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 459Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 462Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 464Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 481Assert.NotEqual(SymbolKind.ErrorType, param(0).[Type].Kind) 482Assert.NotEqual(SymbolKind.ErrorType, param(1).[Type].Kind) 484Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 486Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 505Assert.Equal(SymbolKind.ErrorType, param(0).[Type].Kind) 510Assert.Equal(SymbolKind.ErrorType, param(1).[Type].Kind) 620Assert.Equal(SymbolKind.ErrorType, assemblies1(0).GlobalNamespace.GetMember(Of MethodSymbol)("C.Test1").ReturnType.Kind) 623Assert.Equal(SymbolKind.ErrorType, assemblies2(0).GlobalNamespace.GetMember(Of MethodSymbol)("C.Test1").ReturnType.Kind) 652Assert.Equal(SymbolKind.ErrorType, assemblies1(0).GlobalNamespace.GetMember(Of MethodSymbol)("C.Test1").ReturnType.Kind) 655Assert.Equal(SymbolKind.ErrorType, assemblies2(0).GlobalNamespace.GetMember(Of MethodSymbol)("C.Test1").ReturnType.Kind) 1045Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind) 1046Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind) 1047Assert.Equal(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test3").ReturnType.Kind) 1050Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind) 1058Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test1").ReturnType.Kind) 1059Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test2").ReturnType.Kind) 1061Assert.NotEqual(SymbolKind.ErrorType, localTypes3.GetMember(Of MethodSymbol)("Test4").ReturnType.Kind)
SymbolsTests\Source\BaseClassTests.vb (2)
2077Assert.Equal(SymbolKind.ErrorType, x.BaseType.Kind) 2078Assert.Equal(SymbolKind.ErrorType, y.BaseType.Kind)
SymbolsTests\Source\TypeTests.vb (1)
776Assert.Equal(SymbolKind.ErrorType, baseType.Kind)
SymbolsTests\SymbolErrorTests.vb (5)
20995Assert.Equal(SymbolKind.ErrorType, sym.Kind) 22491Assert.Equal(SymbolKind.ErrorType, errTypeSym.Kind) 23427Assert.Equal(SymbolKind.ErrorType, typ.Kind) 23457Assert.Equal(SymbolKind.ErrorType, typ.Kind) 23493Assert.Equal(SymbolKind.ErrorType, typ.Kind)
SymbolsTests\WellKnownTypeValidationTests.vb (4)
460Assert.Equal(SymbolKind.ErrorType, symbol.Kind) ' Not available 462Assert.NotEqual(SymbolKind.ErrorType, symbol.Kind) 592Assert.True(SymbolKind.ErrorType <> symbol.Kind, $"{symbol} should not be an error type") 675Assert.True(SymbolKind.ErrorType <> symbol.Kind, $"{symbol} should not be an error type")
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
124case SymbolKind.ErrorType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (3)
126SymbolKind.ErrorType => NamedTypesAreEquivalent((INamedTypeSymbol)x, (INamedTypeSymbol)y, equivalentTypesWithDifferingAssemblies), 367if (x.Kind == SymbolKind.ErrorType && 371Debug.Assert(y.Kind == SymbolKind.ErrorType);
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
SymbolKeyTests.cs (4)
1096Assert.Equal(SymbolKind.ErrorType, propType.Kind); 1131Assert.Equal(SymbolKind.ErrorType, propType.Kind); 1178Assert.Equal(SymbolKind.ErrorType, propType.Kind); 1225Assert.Equal(SymbolKind.ErrorType, propType.Kind);
Microsoft.Extensions.Options.SourceGeneration (1)
Parser.cs (1)
82if (modelType.Kind == SymbolKind.ErrorType)
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphBuilder.cs (1)
271case SymbolKind.ErrorType: