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