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