70 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)
7410
Assert.True(lambdaSymbol.Parameters.Single().Type.
IsErrorType
());
CodeGen\CodeGenTupleTest.cs (3)
16580
Assert.True(xSymbol.
IsErrorType
());
16616
Assert.True(xSymbol.TupleUnderlyingType.
IsErrorType
());
16617
Assert.True(xSymbol.
IsErrorType
());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (9)
Semantics\PatternMatchingTestBase.cs (4)
109
if (type.
IsErrorType
())
154
if (!decl.Type.IsVar || !type.
IsErrorType
())
275
if (typeSyntax.IsVar && type.
IsErrorType
())
413
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 (31)
Semantics\LambdaTests.cs (6)
2664
Assert.False(parameter.Type.
IsErrorType
());
2667
Assert.False(parameter.Type.
IsErrorType
());
2670
Assert.Equal(tooMany, parameter.Type.
IsErrorType
());
2677
Assert.False(parameter.Type.
IsErrorType
());
2680
Assert.Equal(tooMany, parameter.Type.
IsErrorType
());
6480
Assert.True(model.GetTypeInfo(parameterUsage).Type.
IsErrorType
());
Semantics\LocalFunctionTests.cs (2)
7578
Assert.True(typeInfo.Type.
IsErrorType
());
8613
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
());
11341
Assert.True(type.
IsErrorType
());
Semantics\OutVarTests.cs (16)
1043
if (expected?.
IsErrorType
() != false)
20214
Assert.True(x1.Type.
IsErrorType
());
21299
Assert.True(((ILocalSymbol)y1).Type.
IsErrorType
());
21359
Assert.True(symbol.Type.
IsErrorType
());
21407
Assert.True(((ITypeSymbol)model.GetTypeInfo(zRef).Type).
IsErrorType
());
22662
Assert.True(((ITypeSymbol)model.GetTypeInfo(reference).Type).
IsErrorType
());
32145
Assert.True(x1.Type.
IsErrorType
());
32174
Assert.True(b.Type.
IsErrorType
());
32214
Assert.True(b.Type.
IsErrorType
());
32254
Assert.True(a.Type.
IsErrorType
());
32274
Assert.True(x1.Type.
IsErrorType
());
32312
Assert.True(x1.Type.
IsErrorType
());
32328
Assert.True(b.Type.
IsErrorType
());
32332
Assert.False(x1.Type.
IsErrorType
());
32381
Assert.True(x1.Type.
IsErrorType
());
32431
Assert.True(x1.Type.
IsErrorType
());
SourceGeneration\SyntaxAwareGeneratorTests.cs (1)
801
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)
9161
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9185
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9213
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9238
Assert.False((type as INamedTypeSymbol).
IsErrorType
());
9268
Assert.False(type.
IsErrorType
());
9269
Assert.True(type.TypeArguments[0].
IsErrorType
());
9277
Assert.False(constructedFrom.TypeArguments[0].
IsErrorType
());
14578
Assert.True(((ITypeSymbol)semanticInfo.Type).
IsErrorType
());
Compilation\UsedAssembliesTests.cs (1)
92
bool hasCoreLibraryRef = !comp.ObjectType.
IsErrorType
();
Symbols\FunctionPointerTypeSymbolTests.cs (2)
1268
Assert.True(((IFunctionPointerTypeSymbol)typeInfo.Type!).Signature.ReturnType.
IsErrorType
());
1272
Assert.False(nestedTypeInfo.Type!.
IsErrorType
());
Symbols\Source\BaseClassTests.cs (1)
277
Assert.False(((ITypeSymbol)members[0]).
IsErrorType
());