90 references to IsErrorType
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenDeconstructTests.cs (10)
5405
Assert.False(xType.
IsErrorType
());
5412
Assert.False(yType.
IsErrorType
());
5438
Assert.False(xType.
IsErrorType
());
5445
Assert.False(yType.
IsErrorType
());
5570
Assert.False(xType.
IsErrorType
());
5618
Assert.True(yType.
IsErrorType
());
5649
Assert.True(x1Type.
IsErrorType
());
5658
Assert.True(x2Type.
IsErrorType
());
5693
Assert.True(x1Type.
IsErrorType
());
5702
Assert.True(x2Type.
IsErrorType
());
CodeGen\CodeGenFunctionPointersTests.cs (1)
7423
Assert.True(lambdaSymbol.Parameters.Single().Type.
IsErrorType
());
CodeGen\CodeGenTupleTest.cs (3)
16574
Assert.True(xSymbol.
IsErrorType
());
16610
Assert.True(xSymbol.TupleUnderlyingType.
IsErrorType
());
16611
Assert.True(xSymbol.
IsErrorType
());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (32)
Semantics\ExtensionTests.cs (6)
2822
Assert.True(parameter.Type.
IsErrorType
());
34796
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
34819
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
34895
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
34921
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
35014
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
Semantics\InlineArrayTests.cs (1)
8123
Assert.True(typeInfo.Type.
IsErrorType
());
Semantics\OutVarTests.cs (16)
1043
if (expected?.
IsErrorType
() != false)
20225
Assert.True(x1.Type.
IsErrorType
());
21313
Assert.True(((ILocalSymbol)y1).Type.
IsErrorType
());
21373
Assert.True(symbol.Type.
IsErrorType
());
21421
Assert.True(((ITypeSymbol)model.GetTypeInfo(zRef).Type).
IsErrorType
());
22721
Assert.True(((ITypeSymbol)model.GetTypeInfo(reference).Type).
IsErrorType
());
32204
Assert.True(x1.Type.
IsErrorType
());
32233
Assert.True(b.Type.
IsErrorType
());
32273
Assert.True(b.Type.
IsErrorType
());
32313
Assert.True(a.Type.
IsErrorType
());
32333
Assert.True(x1.Type.
IsErrorType
());
32371
Assert.True(x1.Type.
IsErrorType
());
32387
Assert.True(b.Type.
IsErrorType
());
32391
Assert.False(x1.Type.
IsErrorType
());
32440
Assert.True(x1.Type.
IsErrorType
());
32490
Assert.True(x1.Type.
IsErrorType
());
Semantics\PatternMatchingTestBase.cs (4)
108
if (type.
IsErrorType
())
153
if (!decl.Type.IsVar || !type.
IsErrorType
())
274
if (typeSyntax.IsVar && type.
IsErrorType
())
421
Assert.True(model.GetTypeInfo(reference).Type.
IsErrorType
());
Semantics\PatternMatchingTests.cs (2)
3482
Assert.True(((ITypeSymbol)compilation.GetSemanticModel(tree).GetTypeInfo(x1Ref).Type).
IsErrorType
());
3488
Assert.True(((ITypeSymbol)compilation.GetSemanticModel(tree).GetTypeInfo(x2Ref).Type).
IsErrorType
());
Semantics\PatternMatchingTests_Scope.cs (3)
12160
Assert.True(((ILocalSymbol)y1).Type.
IsErrorType
());
12214
Assert.True(symbol.Type.
IsErrorType
());
12256
Assert.True(model.GetTypeInfo(zRef).Type.
IsErrorType
());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (28)
Semantics\DelegateTypeTests.cs (6)
2212
Assert.True(typeInfo.ConvertedType!.
IsErrorType
());
2451
Assert.True(typeInfo2.ConvertedType!.
IsErrorType
());
2480
Assert.True(typeInfo2.ConvertedType!.
IsErrorType
());
2526
Assert.True(typeInfo2.ConvertedType!.
IsErrorType
());
2555
Assert.True(typeInfo2.ConvertedType!.
IsErrorType
());
2838
Assert.True(typeInfo.ConvertedType!.
IsErrorType
());
Semantics\DynamicTests.cs (7)
5351
Assert.True(typeInfo.Type.
IsErrorType
());
5352
Assert.True(typeInfo.ConvertedType.
IsErrorType
());
7511
Assert.False(typeInfo.Type.
IsErrorType
());
7526
Assert.False(typeInfo.Type.
IsErrorType
());
7535
Assert.False(operation.Type.
IsErrorType
());
7902
Assert.False(typeInfo.Type.
IsErrorType
());
7918
Assert.False(typeInfo.Type.
IsErrorType
());
Semantics\LambdaTests.cs (6)
2667
Assert.False(parameter.Type.
IsErrorType
());
2670
Assert.False(parameter.Type.
IsErrorType
());
2673
Assert.Equal(tooMany, parameter.Type.
IsErrorType
());
2680
Assert.False(parameter.Type.
IsErrorType
());
2683
Assert.Equal(tooMany, parameter.Type.
IsErrorType
());
6516
Assert.True(model.GetTypeInfo(parameterUsage).Type.
IsErrorType
());
Semantics\LocalFunctionTests.cs (2)
7662
Assert.True(typeInfo.Type.
IsErrorType
());
8697
Assert.True(model.GetTypeInfo(parameterUsage).Type.
IsErrorType
());
Semantics\MultiDimensionalArrayTests.cs (2)
1691
Assert.True(((ITypeSymbol)p.GetMember<MethodSymbol>("Test3").GetAttributes().Single().ConstructorArguments.Single().Value).
IsErrorType
());
1692
Assert.True(((ITypeSymbol)p.GetMember<MethodSymbol>("Test4").GetAttributes().Single().ConstructorArguments.Single().Value).
IsErrorType
());
Semantics\OperatorTests.cs (4)
2989
Assert.True(type1.
IsErrorType
());
2995
Assert.True(type2.
IsErrorType
());
3001
Assert.True(type3.
IsErrorType
());
11983
Assert.True(type.
IsErrorType
());
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
792
Assert.False(dType.
IsErrorType
());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (16)
Compilation\GetSemanticInfoTests.cs (4)
5407
Assert.False(type.
IsErrorType
());
5413
Assert.True(type.
IsErrorType
());
5419
Assert.False(type.
IsErrorType
());
5427
Assert.True(type.
IsErrorType
());
Compilation\SemanticModelGetSemanticInfoTests.cs (8)
9156
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9180
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9208
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9233
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9263
Assert.False(type.
IsErrorType
());
9264
Assert.True(type.TypeArguments[0].
IsErrorType
());
9272
Assert.False(constructedFrom.TypeArguments[0].
IsErrorType
());
14573
Assert.True(((ITypeSymbol)semanticInfo.Type).
IsErrorType
());
Compilation\UsedAssembliesTests.cs (1)
92
bool hasCoreLibraryRef = !comp.ObjectType.
IsErrorType
();
Symbols\FunctionPointerTypeSymbolTests.cs (2)
1269
Assert.True(((IFunctionPointerTypeSymbol)typeInfo.Type!).Signature.ReturnType.
IsErrorType
());
1273
Assert.False(nestedTypeInfo.Type!.
IsErrorType
());
Symbols\Source\BaseClassTests.cs (1)
278
Assert.False(((ITypeSymbol)members[0]).
IsErrorType
());