88 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)
7421
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)
2980
Assert.True(parameter.Type.
IsErrorType
());
40262
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
40285
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
40361
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
40387
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
40480
Assert.True(model.GetTypeInfo(localDeclaration.Type).Type.
IsErrorType
());
Semantics\InlineArrayTests.cs (1)
8128
Assert.True(typeInfo.Type.
IsErrorType
());
Semantics\OutVarTests.cs (16)
1041
if (expected?.
IsErrorType
() != false)
20214
Assert.True(x1.Type.
IsErrorType
());
21302
Assert.True(((ILocalSymbol)y1).Type.
IsErrorType
());
21362
Assert.True(symbol.Type.
IsErrorType
());
21410
Assert.True(((ITypeSymbol)model.GetTypeInfo(zRef).Type).
IsErrorType
());
22710
Assert.True(((ITypeSymbol)model.GetTypeInfo(reference).Type).
IsErrorType
());
32193
Assert.True(x1.Type.
IsErrorType
());
32222
Assert.True(b.Type.
IsErrorType
());
32262
Assert.True(b.Type.
IsErrorType
());
32302
Assert.True(a.Type.
IsErrorType
());
32322
Assert.True(x1.Type.
IsErrorType
());
32360
Assert.True(x1.Type.
IsErrorType
());
32376
Assert.True(b.Type.
IsErrorType
());
32380
Assert.False(x1.Type.
IsErrorType
());
32429
Assert.True(x1.Type.
IsErrorType
());
32479
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 (26)
Semantics\DelegateTypeTests.cs (4)
2212
Assert.True(typeInfo.ConvertedType!.
IsErrorType
());
2477
Assert.True(typeInfo2.ConvertedType!.
IsErrorType
());
2529
Assert.True(typeInfo2.ConvertedType!.
IsErrorType
());
2812
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
());
6509
Assert.True(model.GetTypeInfo(parameterUsage).Type.
IsErrorType
());
Semantics\LocalFunctionTests.cs (2)
7965
Assert.True(typeInfo.Type.
IsErrorType
());
9000
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)
9160
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9184
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9212
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9237
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9267
Assert.False(type.
IsErrorType
());
9268
Assert.True(type.TypeArguments[0].
IsErrorType
());
9276
Assert.False(constructedFrom.TypeArguments[0].
IsErrorType
());
14577
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
());