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