391 references to IsErrorType
Microsoft.CodeAnalysis.VisualBasic (269)
Binding\Binder.vb (1)
507
Debug.Assert(If(Not result?.
IsErrorType
(), True))
Binding\Binder_Attributes.vb (5)
92
Debug.Assert(Not attributeType.
IsErrorType
())
243
If type.
IsErrorType
() Then
259
If Not attributeTypeForBinding.
IsErrorType
() Then
276
If Not type.
IsErrorType
() Then
300
If Not type.
IsErrorType
() Then
Binding\Binder_Conversions.vb (15)
79
If (argument.HasErrors OrElse targetType.
IsErrorType
) Then
113
If sourceType IsNot Nothing AndAlso sourceType.
IsErrorType
() Then
117
Debug.Assert(argument.IsNothingLiteral() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.
IsErrorType
()))
186
If (argument.HasErrors OrElse targetType.
IsErrorType
) Then
226
If sourceType IsNot Nothing AndAlso sourceType.
IsErrorType
() Then
230
Debug.Assert(argument.IsNothingLiteral() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.
IsErrorType
()))
326
If targetType.
IsErrorType
Then
492
If sourceType IsNot Nothing AndAlso sourceType.
IsErrorType
() Then
496
Debug.Assert(argument.IsNothingLiteral() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.
IsErrorType
()))
595
If argument.HasErrors OrElse (sourceType IsNot Nothing AndAlso sourceType.
IsErrorType
()) Then
739
If Not iEnumerable_T.
IsErrorType
() Then
825
If sourceArg.
IsErrorType
() OrElse destinationArg.
IsErrorType
() Then
1750
ElseIf Not (sourceElement.
IsErrorType
() OrElse targetElement.
IsErrorType
()) Then
Binding\Binder_Expressions.vb (17)
669
Dim typeExpression = New BoundTypeExpression(node.Type, Nothing, aliasSym, typeSym, typeSym.
IsErrorType
())
759
If operand.HasErrors OrElse operandType.
IsErrorType
() OrElse targetType.
IsErrorType
() Then
931
If type Is Nothing OrElse type.
IsErrorType
() Then
948
If Not resultType.
IsErrorType
() Then
1047
If type.
IsErrorType
() OrElse
2899
If type Is Nothing OrElse type.
IsErrorType
() Then
3200
If asMemberAccess IsNot Nothing AndAlso Not fieldAccessType.
IsErrorType
() Then
3215
hasErrors:=hasError OrElse fieldAccessType.
IsErrorType
)
3232
If asSimpleName IsNot Nothing AndAlso Not localAccessType.
IsErrorType
() Then
3264
If asSimpleName IsNot Nothing AndAlso Not parameterType.
IsErrorType
() Then
3306
If asSimpleName IsNot Nothing AndAlso Not type.
IsErrorType
() Then
3736
If Not type.
IsErrorType
() Then
4701
Debug.Assert(operand.Type.
IsErrorType
() OrElse ignoreDiagnostics.DiagnosticBag.IsEmptyWithoutResolution())
4757
If getAwaiter IsNot Nothing AndAlso Not getAwaiter.Type.
IsErrorType
() Then
4857
If Not notifyCompletion.
IsErrorType
() AndAlso
4875
ElseIf getAwaiter.Type.
IsErrorType
() Then
Binding\Binder_Initializers.vb (2)
621
If (valueExpression.Type Is Nothing OrElse Not valueExpression.Type.
IsErrorType
) Then
657
If Not targetType.
IsErrorType
Then
Binding\Binder_Invocation.vb (6)
864
If Not returnType.
IsErrorType
() Then
1036
Not targetType.
IsErrorType
() AndAlso
1037
Not receiver.Type.
IsErrorType
() Then
1531
If boundArguments(i).HasErrors OrElse (type IsNot Nothing AndAlso type.
IsErrorType
()) Then
2487
If targetType.
IsErrorType
() OrElse argument.HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011]
2556
If targetType.
IsErrorType
() OrElse argument.HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011]
Binding\Binder_Lambda.vb (2)
50
ElseIf Not returnType.
IsErrorType
() Then
179
If Not targetReturnType.
IsErrorType
() Then
Binding\Binder_Lookup.vb (2)
423
If Not candidate.
IsErrorType
() Then
1044
If type.
IsErrorType
() Then
Binding\Binder_ObjectInitializer.vb (2)
23
If type.
IsErrorType
() Then
605
If initializedObjectType.SpecialType = SpecialType.System_Object OrElse initializedObjectType.
IsErrorType
Then
Binding\Binder_Operators.vb (8)
53
hasErrors:=booleanType.
IsErrorType
())
76
ElseIf targetArgumentType.
IsErrorType
() Then
369
If operandType.GetNullableUnderlyingTypeOrSelf().
IsErrorType
() OrElse
370
operatorResultType.GetNullableUnderlyingTypeOrSelf().
IsErrorType
() OrElse
371
(forceToBooleanType IsNot Nothing AndAlso forceToBooleanType.GetNullableUnderlyingTypeOrSelf().
IsErrorType
()) Then
943
If leftType.
IsErrorType
() OrElse rightType.
IsErrorType
() Then
1252
If operand.Type.
IsErrorType
() Then
Binding\Binder_Query.vb (29)
175
If Not source.Type.
IsErrorType
() AndAlso source.Kind = BoundKind.QueryableSource AndAlso
345
If source.Type.
IsErrorType
() Then
540
If letOperator.Type.
IsErrorType
() Then
585
Debug.Assert(Not source.Type.
IsErrorType
())
617
If param.Type.
IsErrorType
() Then
684
If source.Type.
IsErrorType
() Then
714
If param.Type.
IsErrorType
() Then
720
Return bodyType IsNot Nothing AndAlso bodyType.
IsErrorType
()
821
If source.Type.
IsErrorType
() Then
1136
If source.Type.
IsErrorType
() Then
1518
If outer.Type.
IsErrorType
() Then
1524
If inner.HasErrors OrElse inner.Type.
IsErrorType
() OrElse
1701
If outer.Type.
IsErrorType
() OrElse methodGroup Is Nothing Then
1707
If inner.HasErrors OrElse inner.Type.
IsErrorType
() OrElse
1807
If source.Type.
IsErrorType
() OrElse methodGroup Is Nothing Then
1955
If Not source.Type.
IsErrorType
() Then
2031
If Not outer.Type.
IsErrorType
() Then
2044
Not inner.HasErrors AndAlso Not inner.Type.
IsErrorType
() Then
2375
If source.Type.
IsErrorType
() Then
2415
If source.Type.
IsErrorType
() Then
2483
If source.Type.
IsErrorType
() Then
2487
If boundCount.HasErrors OrElse (boundCount.Type IsNot Nothing AndAlso boundCount.Type.
IsErrorType
()) Then
2572
If sourceOrPreviousOrdering.Type.
IsErrorType
() Then
3464
keysAreGood = Not (outerKey.Type.
IsErrorType
() OrElse innerKey.Type.
IsErrorType
())
3954
If m_GroupReference.Type.
IsErrorType
() OrElse String.IsNullOrEmpty(functionAggregationSyntax.FunctionName.ValueText) Then
4253
If source.Type.
IsErrorType
() Then
4326
If Not source.IsValue OrElse source.Type.
IsErrorType
Then
4542
Return If(controlVariableType.
IsErrorType
(), Nothing, controlVariableType)
Binding\Binder_Statements.vb (21)
777
ElseIf Not target.Type.
IsErrorType
() AndAlso
1233
If Not type.
IsErrorType
() Then
2611
Not boundExpression.Type.
IsErrorType
() AndAlso
2671
Return Not type.
IsErrorType
() AndAlso type.IsInterfaceType() AndAlso
3110
If targetType IsNot Nothing AndAlso Not targetType.
IsErrorType
Then
3210
targetType.
IsErrorType
OrElse
3415
If Not (controlVariableType.
IsErrorType
OrElse currentType.
IsErrorType
OrElse elementType.
IsErrorType
) Then
3854
If specialTypeMember IsNot Nothing AndAlso specialTypeMember.GetUseSiteInfo().DiagnosticInfo Is Nothing AndAlso Not targetCollectionType.
IsErrorType
Then
3915
If specialTypeMember IsNot Nothing AndAlso specialTypeMember.GetUseSiteInfo().DiagnosticInfo Is Nothing AndAlso Not enumeratorType.
IsErrorType
Then
3962
If (idisposable IsNot Nothing AndAlso Not idisposable.
IsErrorType
) AndAlso
3963
Not boundGetEnumeratorCall.HasErrors AndAlso Not boundGetEnumeratorCall.Type.
IsErrorType
Then
4493
If Not resourceExpressionType.
IsErrorType
AndAlso Not iDisposable.
IsErrorType
Then
4545
ElseIf Not declarationType.
IsErrorType
AndAlso Not iDisposable.
IsErrorType
Then
4803
If exceptionType.
IsErrorType
() Then
4844
If Not previousType.
IsErrorType
() Then
5028
If isAsync AndAlso Not retType.
IsErrorType
() AndAlso methodReturnType.Equals(arg.Type) AndAlso
5186
If Not exceptionType.
IsErrorType
Then
Binding\Binder_Symbols.vb (1)
428
If diagBag IsNot Nothing AndAlso forwardedType.
IsErrorType
Then
Binding\Binder_Utils.vb (1)
1110
If Not isFromLambda AndAlso Not newParam.Type.
IsErrorType
() Then
Binding\Binder_XmlLiterals.vb (5)
649
ElseIf Not receiverType.
IsErrorType
() Then
699
ElseIf Not receiverType.
IsErrorType
() Then
956
If type.
IsErrorType
() Then
961
receiverOpt.Type.
IsErrorType
() OrElse
1039
If type.
IsErrorType
() Then
Binding\MemberSemanticModel.vb (4)
119
If boundExpression Is Nothing OrElse vbDestination.
IsErrorType
() Then
779
If elementType IsNot Nothing AndAlso Not elementType.
IsErrorType
() Then
780
If current IsNot Nothing AndAlso Not current.Type.
IsErrorType
() Then
785
If boundCurrentConversion IsNot Nothing AndAlso Not boundCurrentConversion.Type.
IsErrorType
() Then
BoundTree\BoundAnonymousTypeCreationExpression.vb (1)
18
If type.
IsErrorType
Then
BoundTree\BoundArrayCreation.vb (2)
41
If Not elementType.
IsErrorType
() AndAlso Not item.Type.
IsErrorType
() Then
BoundTree\BoundLocal.vb (1)
41
If HasErrors OrElse Type.
IsErrorType
Then
BoundTree\BoundLocalDeclaration.vb (1)
42
Debug.Assert(LocalSymbol.Type.IsSameTypeIgnoringAll(InitializerOpt.Type) OrElse InitializerOpt.Type.
IsErrorType
() OrElse
CodeGen\EmitStatement.vb (1)
1114
If(embeddedOperatorsType.
IsErrorType
AndAlso TypeOf embeddedOperatorsType Is MissingMetadataTypeSymbol,
Compilation\ClsComplianceChecker.vb (1)
774
Debug.Assert(Not attributeData.AttributeClass.
IsErrorType
(), "Already checked HasErrors.")
Compilation\MethodCompiler.vb (1)
1872
If defaultConstructorType Is Nothing OrElse defaultConstructorType.
IsErrorType
Then
Compilation\SemanticModel.vb (3)
977
If useOfLocalBeforeDeclaration AndAlso Not type.
IsErrorType
() Then
1069
If namedType.
IsErrorType
() Then
2362
If bnode IsNot Nothing AndAlso Not vbdestination.
IsErrorType
() Then
Compilation\VisualBasicCompilation.vb (3)
1231
Debug.Assert(If(Not candidate?.
IsErrorType
(), True))
1879
If vbsource.
IsErrorType
() OrElse vbdest.
IsErrorType
() Then
Emit\NoPia\EmbeddedTypesManager.vb (2)
49
If type.
IsErrorType
() Then
197
type.
IsErrorType
() OrElse
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (1)
152
If Not ICriticalNotifyCompletion.
IsErrorType
Then
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
446
If type.
IsErrorType
OrElse type.IsEnumType Then
Lowering\IteratorRewriter\IteratorRewriter.vb (1)
91
If MyBase.EnsureAllSymbolsAndSignature OrElse Me.Method.IsSub OrElse Me._elementType.
IsErrorType
Then
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
693
If(embeddedOperatorsType.
IsErrorType
AndAlso TypeOf embeddedOperatorsType Is MissingMetadataTypeSymbol,
Lowering\LocalRewriter\LocalRewriter_InterpolatedString.vb (1)
93
If factoryType.
IsErrorType
() Then
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (2)
183
If (objectType.
IsErrorType
() OrElse booleanType.
IsErrorType
()) Or
Lowering\LocalRewriter\LocalRewriter_ObjectCreation.vb (1)
88
If createInstance IsNot Nothing AndAlso Not createInstance.ReturnType.
IsErrorType
() Then
Lowering\LocalRewriter\LocalRewriter_Query.vb (1)
105
If parameter.Type.
IsErrorType
() Then
Lowering\LocalRewriter\LocalRewriter_SelectCase.vb (1)
160
If(embeddedOperatorsType.
IsErrorType
AndAlso TypeOf embeddedOperatorsType Is MissingMetadataTypeSymbol,
Lowering\StateMachineRewriter\StateMachineRewriter.vb (2)
365
If Me.Method.ReturnType.
IsErrorType
Then
370
If parameter.IsByRef OrElse parameter.Type.
IsErrorType
Then
Lowering\SyntheticBoundNodeFactory.vb (9)
234
If nullableType.
IsErrorType
Then
296
Debug.Assert(left.Type.IsSameTypeIgnoringAll(right.Type) OrElse right.Type.
IsErrorType
() OrElse left.Type.
IsErrorType
())
624
Debug.Assert(Not expression.Type.
IsErrorType
)
625
Debug.Assert(Not type.
IsErrorType
)
634
Debug.Assert(expression.Type Is Nothing OrElse Not expression.Type.
IsErrorType
)
635
Debug.Assert(Not type.
IsErrorType
)
983
ElseIf type.
IsErrorType
() OrElse arg.Type.
IsErrorType
() Then
Semantics\CompileTimeCalculations.vb (1)
673
If targetType Is Nothing OrElse targetType.
IsErrorType
() Then
Semantics\Conversions.vb (18)
1281
If argument.HasErrors OrElse targetElementType.
IsErrorType
Then
1313
If targetElementType.
IsErrorType
Then
1400
If Not invoke.ReturnType.
IsErrorType
() Then
1467
If sourceType IsNot Nothing AndAlso Not sourceType.
IsErrorType
() AndAlso Not sourceType.IsObjectType() Then
1479
If Not nullableOfT.
IsErrorType
() AndAlso
2447
If Not base.
IsErrorType
() AndAlso base.TypeKind = TypeKind.Class AndAlso
2511
If source.
IsErrorType
() OrElse destination.
IsErrorType
Then
2625
If [interface].
IsErrorType
() Then
2772
If sourceArg.
IsErrorType
() OrElse destinationArg.
IsErrorType
() Then
3437
If [interface].
IsErrorType
() Then
3587
If argumentType.
IsErrorType
OrElse targetType.
IsErrorType
Then
4060
If returnTypeOfConvertFromMethod.
IsErrorType
OrElse returnTypeOfConvertToMethod.
IsErrorType
Then
4203
If Not toParameterType.
IsErrorType
() AndAlso Not lambdaParameterType.
IsErrorType
() Then
Semantics\Operators.vb (10)
716
If operandValue Is Nothing OrElse operandValue.IsBad OrElse resultType.
IsErrorType
() Then
1042
resultType.
IsErrorType
() Then
1931
Debug.Assert(Not source.
IsErrorType
())
1932
Debug.Assert(Not destination.
IsErrorType
())
1996
If Not (sourceUnderlying.
IsErrorType
() OrElse destinationUnderlying.
IsErrorType
()) Then
2343
If inputType.
IsErrorType
() OrElse outputType.
IsErrorType
() Then
2688
Debug.Assert(Not type.
IsErrorType
())
2733
Debug.Assert(Not type.
IsErrorType
())
Semantics\OverloadResolution.vb (1)
3294
If targetType.
IsErrorType
() Then
Semantics\TypeInference\TypeArgumentInference.vb (3)
367
If type.
IsErrorType
Then
994
If argument Is Nothing OrElse argument.HasErrors OrElse targetType.
IsErrorType
() OrElse argument.Kind = BoundKind.OmittedArgument Then
2246
If lambdaReturnType.
IsErrorType
() Then
Semantics\TypeInference\TypeInferenceCollection.vb (1)
571
If type.
IsErrorType
Then
Symbols\ArrayTypeSymbol.vb (3)
83
If iListOfT.
IsErrorType
() Then
84
If Not iReadOnlyListOfT.
IsErrorType
() Then
87
ElseIf iReadOnlyListOfT.
IsErrorType
() Then
Symbols\AssemblySymbol.vb (7)
554
Debug.Assert(Not type.
IsErrorType
())
566
Debug.Assert(Not type.
IsErrorType
())
580
Debug.Assert(If(Not type?.
IsErrorType
(), True))
599
Debug.Assert(If(Not result?.
IsErrorType
(), True))
623
Debug.Assert(If(Not corLibCandidate?.
IsErrorType
(), True))
643
Debug.Assert(If(Not candidate?.
IsErrorType
(), True))
672
Debug.Assert(If(Not result?.
IsErrorType
(), True))
Symbols\Attributes\AttributeData.vb (2)
69
If AttributeClass.
IsErrorType
() AndAlso Not TypeOf AttributeClass Is MissingMetadataTypeSymbol Then
91
Debug.Assert(Not attributeType.
IsErrorType
())
Symbols\Attributes\PEAttributeData.vb (1)
166
If attributeClass.
IsErrorType
() OrElse attributeCtor Is Nothing Then
Symbols\ConstraintsHelper.vb (2)
640
If typeArgument.
IsErrorType
() Then
890
If constraintType.
IsErrorType
() Then
Symbols\InstanceTypeSymbol.vb (1)
187
If base.
IsErrorType
() AndAlso TypeOf base Is NoPiaIllegalGenericInstantiationSymbol Then
Symbols\Metadata\PE\MetadataDecoder.vb (3)
118
Debug.Assert(If(Not result?.
IsErrorType
(), True))
153
Debug.Assert(If(Not result?.
IsErrorType
(), True))
326
Debug.Assert(If(Not candidate?.
IsErrorType
(), True))
Symbols\Metadata\PE\PEFieldSymbol.vb (1)
254
If selfOrUnderlyingType.
IsErrorType
OrElse
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
343
Debug.Assert(If(Not currentModuleResult?.
IsErrorType
(), True))
Symbols\MetadataOrSourceAssemblySymbol.vb (1)
53
Debug.Assert(If(Not result?.
IsErrorType
(), True))
Symbols\NamedTypeSymbol.vb (1)
160
Debug.Assert(Me.
IsErrorType
OrElse Not (TypeOf Me Is SourceNamedTypeSymbol) OrElse Not Name.Contains("."), "type name contains dots: " + Name)
Symbols\NonMissingAssemblySymbol.vb (3)
98
If Not result.
IsErrorType
() AndAlso result.ContainingAssembly Is Me Then
107
Debug.Assert(result Is Nothing OrElse (result.ContainingAssembly Is Me AndAlso Not result.
IsErrorType
()))
153
Debug.Assert(result Is Nothing OrElse (result.ContainingAssembly Is Me AndAlso Not result.
IsErrorType
()))
Symbols\NonMissingModuleSymbol.vb (1)
166
Debug.Assert(If(Not result?.
IsErrorType
(), True))
Symbols\NoPiaIllegalGenericInstantiationSymbol.vb (1)
48
If _underlyingSymbol.
IsErrorType
() Then
Symbols\Retargeting\RetargetingNamedTypeSymbol.vb (1)
500
Debug.Assert(Not underlying.
IsErrorType
())
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
179
Debug.Assert(Not underlying.
IsErrorType
())
Symbols\Retargeting\RetargetingSymbolTranslator.vb (2)
372
Debug.Assert(Not result1.
IsErrorType
())
943
If retargetedType.
IsErrorType
() Then
Symbols\Source\CustomEventAccessorSymbol.vb (5)
184
Not eventType.
IsErrorType
Then
215
If Not eventType.
IsErrorType
AndAlso Not TypeSymbol.Equals(eventType, parameterType, TypeCompareKind.ConsiderEverything) Then
228
If Not registrationTokenType.
IsErrorType
AndAlso firstImplementedEvent.IsWindowsRuntimeEvent <> (TypeSymbol.Equals(parameterType, registrationTokenType, TypeCompareKind.ConsiderEverything)) Then
235
If Not registrationTokenType.
IsErrorType
AndAlso Not TypeSymbol.Equals(parameterType, registrationTokenType, TypeCompareKind.ConsiderEverything) Then
239
If Not eventType.
IsErrorType
AndAlso Not TypeSymbol.Equals(eventType, parameterType, TypeCompareKind.ConsiderEverything) Then
Symbols\Source\LocalSymbol.vb (1)
887
(valueExpression.Type Is Nothing OrElse Not valueExpression.Type.
IsErrorType
))
Symbols\Source\SourceAssemblySymbol.vb (3)
400
If forwarded.
IsErrorType
() Then
914
Return Not obj.
IsErrorType
() AndAlso obj.DeclaredAccessibility = Accessibility.Public
1725
Return Not stdmodule.
IsErrorType
AndAlso
Symbols\Source\SourceEventSymbol.vb (2)
242
If Not type.
IsErrorType
() Then
635
Debug.Assert(Not arguments.AttributeType.
IsErrorType
())
Symbols\Source\SourceFieldSymbol.vb (1)
694
Debug.Assert(Not arguments.AttributeType.
IsErrorType
())
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
475
If Not implemented.
IsErrorType
() Then
Symbols\Source\SourceMemberFieldSymbol.vb (2)
104
If Not varType.
IsErrorType
() Then
204
If Not varType.
IsErrorType
() Then
Symbols\Source\SourceMethodSymbol.vb (2)
1492
Debug.Assert(Not arguments.AttributeType.
IsErrorType
())
2298
If Not retType.
IsErrorType
() Then
Symbols\Source\SourceNamedTypeSymbol.vb (6)
1140
ElseIf Not baseClassType.
IsErrorType
() Then
1191
If Not typeSymbol.
IsErrorType
() Then
1459
Dim diag = If(isInterface AndAlso Not t.
IsErrorType
(), GetDependenceDiagnosticForBase(Me, t), Nothing)
1467
If Not t.
IsErrorType
() Then
2001
Debug.Assert(Not arguments.AttributeType.
IsErrorType
())
2619
If formClass.
IsErrorType
() OrElse Not Me.IsOrDerivedFrom(formClass, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
143
If Not attributeType.
IsErrorType
() Then
Symbols\Source\SourcePropertyAccessorSymbol.vb (2)
431
If (Not propertyType.
IsErrorType
()) AndAlso (Not valueParameterType.
IsErrorType
()) Then
Symbols\Source\SourcePropertySymbol.vb (2)
373
If Not type.
IsErrorType
() Then
538
Debug.Assert(Not arguments.AttributeType.
IsErrorType
())
Symbols\Source\SynthesizedEntryPointSymbol.vb (2)
31
Debug.Assert(taskType.
IsErrorType
() OrElse initializerMethod.ReturnType.IsOrDerivedFrom(taskType, CompoundUseSiteInfo(Of AssemblySymbol).Discarded))
34
Dim getAwaiterMethod = If(taskType.
IsErrorType
(),
Symbols\Source\SynthesizedEventAccessorSymbol.vb (3)
148
If fieldType.
IsErrorType
Then
350
delegateType.
IsErrorType
).MakeCompilerGenerated
427
delegateType.
IsErrorType
).MakeCompilerGenerated
Symbols\SpecialMembers.vb (1)
70
If Not type.
IsErrorType
() Then
Symbols\Symbol_Attributes.vb (2)
423
If Not attributeType.
IsErrorType
() Then
495
Debug.Assert(Not attributeType.
IsErrorType
())
Symbols\Tuples\TupleTypeSymbol.vb (2)
173
If Me._underlyingType.
IsErrorType
() Then
831
Dim diagnosticInfo = If(container.
IsErrorType
(),
Symbols\TypeSymbolExtensions.vb (3)
663
If typeArgument.
IsErrorType
Then
674
If typeWithContainingAssembly.
IsErrorType
Then
694
If matchingTypeArgument.
IsErrorType
Then
Symbols\WellKnownMembers.vb (4)
332
If Not type.
IsErrorType
() Then
385
Debug.Assert(If(Not result?.
IsErrorType
(), True))
411
(_lazyWellKnownTypes(index).
IsErrorType
() AndAlso result.
IsErrorType
()))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (24)
Attributes\AttributeTests.vb (4)
1950
Assert.False(DirectCast(gt.Value, TypeSymbol).
IsErrorType
)
2002
Assert.False(DirectCast(gt.Value, TypeSymbol).
IsErrorType
)
2037
Assert.False(DirectCast(gt.Value, TypeSymbol).
IsErrorType
)
2081
Assert.False(DirectCast(gt.Value, TypeSymbol).
IsErrorType
)
CodeGen\CodeGenTuples.vb (20)
9102
Assert.False(methodM.ReturnType.
IsErrorType
())
9103
Assert.True(methodM.ReturnType.TupleUnderlyingType.
IsErrorType
())
9938
Assert.False(validField.Type.
IsErrorType
())
9943
Assert.True(validFieldWithAttribute.Type.
IsErrorType
())
9949
Assert.True(tooFewNames.Type.
IsErrorType
())
9954
Assert.True(tooManyNames.Type.
IsErrorType
())
9958
Assert.True(tooFewNamesMethod.ReturnType.
IsErrorType
())
9962
Assert.True(tooManyNamesMethod.ReturnType.
IsErrorType
())
10035
Assert.False(validField.Type.
IsErrorType
())
10040
Assert.True(validFieldWithAttribute.Type.
IsErrorType
())
10045
Assert.False(partialNames.Type.
IsErrorType
())
10050
Assert.False(allNullNames.Type.
IsErrorType
())
10056
Assert.False(partialParamType.
IsErrorType
())
10062
Assert.False(allNullParamType.
IsErrorType
())
10104
Assert.False(field1.Type.
IsErrorType
())
21682
Assert.False(found.
IsErrorType
())
21687
Assert.False(tuple2.
IsErrorType
())
21693
Assert.False(tuple3.
IsErrorType
())
22541
Assert.True(tuple.TupleUnderlyingType.
IsErrorType
())
22627
Assert.False(tuple.TupleUnderlyingType.
IsErrorType
())
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (3)
EETypeNameDecoder.vb (1)
52
Debug.Assert(If(Not result?.
IsErrorType
(), True))
Symbols\PlaceholderLocalSymbol.vb (2)
125
If type.
IsErrorType
() Then
128
ElseIf exprType.
IsErrorType
() Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (12)
Compilation\CompilationAPITests.vb (3)
2813
Assert.True(comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).
IsErrorType
)
2820
Assert.True(comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).
IsErrorType
)
2828
Assert.True(comp.GetWellKnownType(WellKnownType.System_ValueTuple_T2).
IsErrorType
)
Compilation\SemanticModelAPITests.vb (5)
545
Assert.False(DirectCast(oldSymbol, NamedTypeSymbol).TypeArguments.Single.
IsErrorType
)
557
Assert.False(DirectCast(newSymbol, NamedTypeSymbol).TypeArguments.Single.
IsErrorType
)
560
Assert.True(DirectCast(newSymbol, NamedTypeSymbol).TypeArguments.Single.
IsErrorType
)
890
Assert.Equal(False, DirectCast(originalX, LocalSymbol).Type.
IsErrorType
)
913
Assert.Equal(False, DirectCast(local, LocalSymbol).Type.
IsErrorType
)
Semantics\GetExtendedSemanticInfoTests.vb (1)
3513
Assert.False(DirectCast(semanticInfo.Type, TypeSymbol).
IsErrorType
)
Semantics\MultiDimensionalTest.vb (2)
2720
Assert.True(DirectCast(p.GetMember(Of MethodSymbol)("Test3").GetAttributes().Single().ConstructorArguments.Single().Value, TypeSymbol).
IsErrorType
())
2721
Assert.True(DirectCast(p.GetMember(Of MethodSymbol)("Test4").GetAttributes().Single().ConstructorArguments.Single().Value, TypeSymbol).
IsErrorType
())
Semantics\XmlLiteralSemanticModelTests.vb (1)
234
Assert.True(DirectCast(info.Type, TypeSymbol).
IsErrorType
())
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (83)
SymbolsTests\CorLibrary\Choosing.vb (2)
48
Assert.False(obj.
IsErrorType
())
88
Assert.True(consumer.GetSpecialType(SpecialType.System_Object).
IsErrorType
())
SymbolsTests\Metadata\MetadataTypeTests.vb (43)
404
Assert.False(i2.
IsErrorType
())
441
Assert.False(i2.
IsErrorType
())
478
Assert.False(i2.
IsErrorType
())
515
Assert.False(i2.
IsErrorType
())
567
Assert.False(i2.
IsErrorType
())
575
Assert.False(iEquatable.
IsErrorType
())
580
Assert.True(iQueryable_T.
IsErrorType
())
584
Assert.True(iQueryable.
IsErrorType
())
594
Assert.False(t.
IsErrorType
())
601
Assert.True(t.
IsErrorType
())
608
Assert.False(t.
IsErrorType
())
615
Assert.True(t.
IsErrorType
())
622
Assert.False(t.
IsErrorType
())
636
Assert.False(t.
IsErrorType
())
650
Assert.False(t.
IsErrorType
())
657
Assert.False(t.
IsErrorType
())
664
Assert.True(t.
IsErrorType
())
671
Assert.False(t.
IsErrorType
())
678
Assert.False(t.
IsErrorType
())
692
Assert.False(t.
IsErrorType
())
699
Assert.False(t.
IsErrorType
())
706
Assert.True(t.
IsErrorType
())
713
Assert.True(t.
IsErrorType
())
720
Assert.True(t.
IsErrorType
())
734
Assert.True(t.
IsErrorType
())
748
Assert.False(t.
IsErrorType
())
755
Assert.True(t.
IsErrorType
())
762
Assert.False(t.
IsErrorType
())
769
Assert.True(t.
IsErrorType
())
776
Assert.True(t.
IsErrorType
())
797
Assert.True(t.
IsErrorType
())
806
Assert.False(t.
IsErrorType
())
817
Assert.False(t.
IsErrorType
())
828
Assert.False(t.
IsErrorType
())
842
Assert.False(t.
IsErrorType
())
856
Assert.False(t.
IsErrorType
())
863
Assert.False(t.
IsErrorType
())
874
Assert.False(t.
IsErrorType
())
881
Assert.False(t.
IsErrorType
())
895
Assert.False(t.
IsErrorType
())
902
Assert.False(t.
IsErrorType
())
939
Assert.False(t.
IsErrorType
())
950
Assert.False(t.
IsErrorType
())
SymbolsTests\Metadata\PE\BaseTypeResolution.vb (12)
330
Assert.False(test1.BaseType.
IsErrorType
())
331
Assert.False(test1.BaseType.BaseType.
IsErrorType
())
332
Assert.False(test2.BaseType.
IsErrorType
())
333
Assert.False(test2.BaseType.BaseType.
IsErrorType
())
334
Assert.False(test2.BaseType.BaseType.BaseType.
IsErrorType
())
356
Assert.False(m3.BaseType.
IsErrorType
())
357
Assert.False(m3.BaseType.BaseType.
IsErrorType
())
358
Assert.False(m4.BaseType.
IsErrorType
())
359
Assert.False(m4.BaseType.BaseType.
IsErrorType
())
366
Assert.True(m3.BaseType.
IsErrorType
())
367
Assert.False(m4.BaseType.
IsErrorType
())
368
Assert.True(m4.BaseType.BaseType.
IsErrorType
())
SymbolsTests\Metadata\PE\HasUnsupportedMetadata.vb (9)
405
If method.ReturnType.
IsErrorType
() OrElse method.Parameters(0).Type.
IsErrorType
() Then
480
Assert.False(type.
IsErrorType
())
481
Assert.True(type.BaseType.
IsErrorType
()) ' Handled exception decoding base type TypeRef.
493
Assert.False(type.
IsErrorType
())
494
Assert.True(type.BaseType.
IsErrorType
()) ' Handled exception decoding base type TypeRef.
506
Assert.False(type.
IsErrorType
())
507
Assert.True(type.BaseType.
IsErrorType
()) ' Handled exception decoding base type TypeRef.
542
Assert.True(field.Type.
IsErrorType
())
SymbolsTests\Metadata\PE\LoadingAttributes.vb (2)
53
Assert.False(it.CoClassType.
IsErrorType
())
59
Assert.False(it2.CoClassType.
IsErrorType
())
SymbolsTests\Metadata\PE\TypeForwarders.vb (5)
174
Assert.False(baseType.
IsErrorType
())
405
Assert.False(baseType.
IsErrorType
())
408
Assert.True(ilAssembly1.ResolveForwardedType("Base").
IsErrorType
())
410
Assert.True(ilAssembly2.ResolveForwardedType("Base").
IsErrorType
())
1312
Assert.False(resolved.
IsErrorType
())
SymbolsTests\Retargeting\RetargetCustomModifiers.vb (1)
79
Assert.True(p6.[Type].
IsErrorType
())
SymbolsTests\Retargeting\RetargetingCustomAttributes.vb (1)
365
Assert.False(a.AttributeClass.
IsErrorType
())
SymbolsTests\Source\BaseClassTests.vb (6)
2031
Assert.True(baseB.
IsErrorType
())
2035
Assert.True(baseY.
IsErrorType
())
2048
Assert.True(baseY.
IsErrorType
())
2052
Assert.True(baseB.
IsErrorType
())
2378
Assert.True(interfaces.Single.
IsErrorType
())
2412
Assert.True(interfaces.Single.
IsErrorType
())
SymbolsTests\Source\TypeTests.vb (1)
2518
Assert.False(symbol.
IsErrorType
(), "ErrorType")
SymbolsTests\SymbolErrorTests.vb (1)
7912
Assert.True(test.ReturnType.
IsErrorType
())