254 references to IsErrorType
Microsoft.CodeAnalysis.VisualBasic (254)
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
()))
190
If (argument.HasErrors OrElse targetType.
IsErrorType
) Then
230
If sourceType IsNot Nothing AndAlso sourceType.
IsErrorType
() Then
234
Debug.Assert(argument.IsNothingLiteral() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.
IsErrorType
()))
334
If targetType.
IsErrorType
Then
500
If sourceType IsNot Nothing AndAlso sourceType.
IsErrorType
() Then
504
Debug.Assert(argument.IsNothingLiteral() OrElse (sourceType IsNot Nothing AndAlso Not sourceType.
IsErrorType
()))
603
If argument.HasErrors OrElse (sourceType IsNot Nothing AndAlso sourceType.
IsErrorType
()) Then
747
If Not iEnumerable_T.
IsErrorType
() Then
833
If sourceArg.
IsErrorType
() OrElse destinationArg.
IsErrorType
() Then
1771
ElseIf Not (sourceElement.
IsErrorType
() OrElse targetElement.
IsErrorType
()) Then
Binding\Binder_Expressions.vb (17)
690
Dim typeExpression = New BoundTypeExpression(node.Type, Nothing, aliasSym, typeSym, typeSym.
IsErrorType
())
780
If operand.HasErrors OrElse operandType.
IsErrorType
() OrElse targetType.
IsErrorType
() Then
952
If type Is Nothing OrElse type.
IsErrorType
() Then
969
If Not resultType.
IsErrorType
() Then
1068
If type.
IsErrorType
() OrElse
2930
If type Is Nothing OrElse type.
IsErrorType
() Then
3231
If asMemberAccess IsNot Nothing AndAlso Not fieldAccessType.
IsErrorType
() Then
3246
hasErrors:=hasError OrElse fieldAccessType.
IsErrorType
)
3263
If asSimpleName IsNot Nothing AndAlso Not localAccessType.
IsErrorType
() Then
3295
If asSimpleName IsNot Nothing AndAlso Not parameterType.
IsErrorType
() Then
3337
If asSimpleName IsNot Nothing AndAlso Not type.
IsErrorType
() Then
3767
If Not type.
IsErrorType
() Then
4732
Debug.Assert(operand.Type.
IsErrorType
() OrElse ignoreDiagnostics.DiagnosticBag.IsEmptyWithoutResolution())
4788
If getAwaiter IsNot Nothing AndAlso Not getAwaiter.Type.
IsErrorType
() Then
4888
If Not notifyCompletion.
IsErrorType
() AndAlso
4906
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_InterpolatedString.vb (1)
143
If factoryType.
IsErrorType
() OrElse
Binding\Binder_Invocation.vb (6)
862
If Not returnType.
IsErrorType
() Then
1034
Not targetType.
IsErrorType
() AndAlso
1035
Not receiver.Type.
IsErrorType
() Then
1529
If boundArguments(i).HasErrors OrElse (type IsNot Nothing AndAlso type.
IsErrorType
()) Then
2481
If targetType.
IsErrorType
() OrElse argument.HasErrors Then ' UNDONE: should HasErrors really always cause argument mismatch [petergo, 3/9/2011]
2550
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
674
If initializedObjectType.SpecialType = SpecialType.System_Object OrElse initializedObjectType.
IsErrorType
Then
Binding\Binder_Operators.vb (8)
83
hasErrors:=booleanType.
IsErrorType
())
106
ElseIf targetArgumentType.
IsErrorType
() Then
399
If operandType.GetNullableUnderlyingTypeOrSelf().
IsErrorType
() OrElse
400
operatorResultType.GetNullableUnderlyingTypeOrSelf().
IsErrorType
() OrElse
401
(forceToBooleanType IsNot Nothing AndAlso forceToBooleanType.GetNullableUnderlyingTypeOrSelf().
IsErrorType
()) Then
973
If leftType.
IsErrorType
() OrElse rightType.
IsErrorType
() Then
1282
If operand.Type.
IsErrorType
() Then
Binding\Binder_Query.vb (29)
174
If Not source.Type.
IsErrorType
() AndAlso source.Kind = BoundKind.QueryableSource AndAlso
344
If source.Type.
IsErrorType
() Then
539
If letOperator.Type.
IsErrorType
() Then
584
Debug.Assert(Not source.Type.
IsErrorType
())
616
If param.Type.
IsErrorType
() Then
683
If source.Type.
IsErrorType
() Then
713
If param.Type.
IsErrorType
() Then
719
Return bodyType IsNot Nothing AndAlso bodyType.
IsErrorType
()
820
If source.Type.
IsErrorType
() Then
1135
If source.Type.
IsErrorType
() Then
1517
If outer.Type.
IsErrorType
() Then
1523
If inner.HasErrors OrElse inner.Type.
IsErrorType
() OrElse
1700
If outer.Type.
IsErrorType
() OrElse methodGroup Is Nothing Then
1706
If inner.HasErrors OrElse inner.Type.
IsErrorType
() OrElse
1806
If source.Type.
IsErrorType
() OrElse methodGroup Is Nothing Then
1954
If Not source.Type.
IsErrorType
() Then
2030
If Not outer.Type.
IsErrorType
() Then
2043
Not inner.HasErrors AndAlso Not inner.Type.
IsErrorType
() Then
2374
If source.Type.
IsErrorType
() Then
2414
If source.Type.
IsErrorType
() Then
2482
If source.Type.
IsErrorType
() Then
2486
If boundCount.HasErrors OrElse (boundCount.Type IsNot Nothing AndAlso boundCount.Type.
IsErrorType
()) Then
2571
If sourceOrPreviousOrdering.Type.
IsErrorType
() Then
3463
keysAreGood = Not (outerKey.Type.
IsErrorType
() OrElse innerKey.Type.
IsErrorType
())
3953
If m_GroupReference.Type.
IsErrorType
() OrElse String.IsNullOrEmpty(functionAggregationSyntax.FunctionName.ValueText) Then
4252
If source.Type.
IsErrorType
() Then
4325
If Not source.IsValue OrElse source.Type.
IsErrorType
Then
4541
Return If(controlVariableType.
IsErrorType
(), Nothing, controlVariableType)
Binding\Binder_Statements.vb (22)
432
Debug.Assert(Not diagnostics.AccumulatesDiagnostics OrElse diagnostics.HasAnyResolvedErrors OrElse If(methodSymbol.ContainingType.BaseTypeNoUseSiteDiagnostics?.
IsErrorType
(), False))
808
ElseIf Not target.Type.
IsErrorType
() AndAlso
1264
If Not type.
IsErrorType
() Then
2640
Not boundExpression.Type.
IsErrorType
() AndAlso
2700
Return Not type.
IsErrorType
() AndAlso type.IsInterfaceType() AndAlso
3139
If targetType IsNot Nothing AndAlso Not targetType.
IsErrorType
Then
3239
targetType.
IsErrorType
OrElse
3444
If Not (controlVariableType.
IsErrorType
OrElse currentType.
IsErrorType
OrElse elementType.
IsErrorType
) Then
3883
If specialTypeMember IsNot Nothing AndAlso specialTypeMember.GetUseSiteInfo().DiagnosticInfo Is Nothing AndAlso Not targetCollectionType.
IsErrorType
Then
3944
If specialTypeMember IsNot Nothing AndAlso specialTypeMember.GetUseSiteInfo().DiagnosticInfo Is Nothing AndAlso Not enumeratorType.
IsErrorType
Then
3991
If (idisposable IsNot Nothing AndAlso Not idisposable.
IsErrorType
) AndAlso
3992
Not boundGetEnumeratorCall.HasErrors AndAlso Not boundGetEnumeratorCall.Type.
IsErrorType
Then
4522
If Not resourceExpressionType.
IsErrorType
AndAlso Not iDisposable.
IsErrorType
Then
4574
ElseIf Not declarationType.
IsErrorType
AndAlso Not iDisposable.
IsErrorType
Then
4834
If exceptionType.
IsErrorType
() Then
4875
If Not previousType.
IsErrorType
() Then
5059
If isAsync AndAlso Not retType.
IsErrorType
() AndAlso methodReturnType.Equals(arg.Type) AndAlso
5217
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\Binder.vb (1)
507
Debug.Assert(If(Not result?.
IsErrorType
(), True))
Binding\MemberSemanticModel.vb (3)
778
If elementType IsNot Nothing AndAlso Not elementType.
IsErrorType
() Then
779
If current IsNot Nothing AndAlso Not current.Type.
IsErrorType
() Then
784
If boundCurrentConversion IsNot Nothing AndAlso Not boundCurrentConversion.Type.
IsErrorType
() Then
BoundTree\BoundAnonymousTypeCreationExpression.vb (1)
18
If type.
IsErrorType
Then
BoundTree\BoundLocal.vb (1)
41
If HasErrors OrElse Type.
IsErrorType
Then
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)
1930
If defaultConstructorType Is Nothing OrElse defaultConstructorType.
IsErrorType
Then
Compilation\SemanticModel.vb (2)
974
If useOfLocalBeforeDeclaration AndAlso Not type.
IsErrorType
() Then
1066
If namedType.
IsErrorType
() Then
Compilation\VisualBasicCompilation.vb (1)
1234
Debug.Assert(If(Not candidate?.
IsErrorType
(), True))
Emit\NoPia\EmbeddedTypesManager.vb (1)
243
type.
IsErrorType
() OrElse
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (1)
152
If Not ICriticalNotifyCompletion.
IsErrorType
Then
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
472
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)
688
If(embeddedOperatorsType.
IsErrorType
AndAlso TypeOf embeddedOperatorsType Is MissingMetadataTypeSymbol,
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (2)
182
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)
367
If Me.Method.ReturnType.
IsErrorType
Then
372
If parameter.IsByRef OrElse parameter.Type.
IsErrorType
Then
Lowering\SyntheticBoundNodeFactory.vb (9)
234
If nullableType.
IsErrorType
Then
300
Debug.Assert(left.Type.IsSameTypeIgnoringAll(right.Type) OrElse right.Type.
IsErrorType
() OrElse left.Type.
IsErrorType
())
628
Debug.Assert(Not expression.Type.
IsErrorType
)
629
Debug.Assert(Not type.
IsErrorType
)
638
Debug.Assert(expression.Type Is Nothing OrElse Not expression.Type.
IsErrorType
)
639
Debug.Assert(Not type.
IsErrorType
)
1017
ElseIf type.
IsErrorType
() OrElse arg.Type.
IsErrorType
() Then
Semantics\CompileTimeCalculations.vb (1)
673
If targetType Is Nothing OrElse targetType.
IsErrorType
() Then
Semantics\Conversions.vb (16)
1285
If argument.HasErrors OrElse targetElementType.
IsErrorType
Then
1317
If targetElementType.
IsErrorType
Then
1404
If Not invoke.ReturnType.
IsErrorType
() Then
1471
If sourceType IsNot Nothing AndAlso Not sourceType.
IsErrorType
() AndAlso Not sourceType.IsObjectType() Then
1483
If Not nullableOfT.
IsErrorType
() AndAlso
2452
If Not base.
IsErrorType
() AndAlso base.TypeKind = TypeKind.Class AndAlso
2516
If source.
IsErrorType
() OrElse destination.
IsErrorType
Then
2777
If sourceArg.
IsErrorType
() OrElse destinationArg.
IsErrorType
() Then
3592
If argumentType.
IsErrorType
OrElse targetType.
IsErrorType
Then
4065
If returnTypeOfConvertFromMethod.
IsErrorType
OrElse returnTypeOfConvertToMethod.
IsErrorType
Then
4208
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)
3655
If targetType.
IsErrorType
() Then
Semantics\TypeInference\TypeArgumentInference.vb (3)
366
If type.
IsErrorType
Then
989
If argument Is Nothing OrElse argument.HasErrors OrElse targetType.
IsErrorType
() OrElse argument.Kind = BoundKind.OmittedArgument Then
2224
If lambdaReturnType.
IsErrorType
() Then
Semantics\TypeInference\TypeInferenceCollection.vb (1)
572
If type.
IsErrorType
Then
Symbols\ArrayTypeSymbol.vb (3)
84
If iListOfT.
IsErrorType
() Then
85
If Not iReadOnlyListOfT.
IsErrorType
() Then
88
ElseIf iReadOnlyListOfT.
IsErrorType
() Then
Symbols\AssemblySymbol.vb (7)
589
Debug.Assert(Not type.
IsErrorType
())
601
Debug.Assert(Not type.
IsErrorType
())
615
Debug.Assert(If(Not type?.
IsErrorType
(), True))
634
Debug.Assert(If(Not result?.
IsErrorType
(), True))
658
Debug.Assert(If(Not corLibCandidate?.
IsErrorType
(), True))
678
Debug.Assert(If(Not candidate?.
IsErrorType
(), True))
707
Debug.Assert(If(Not result?.
IsErrorType
(), True))
Symbols\Attributes\AttributeData.vb (1)
88
Debug.Assert(Not attributeType.
IsErrorType
())
Symbols\Attributes\PEAttributeData.vb (1)
166
If attributeClass.
IsErrorType
() OrElse attributeCtor Is Nothing Then
Symbols\Attributes\SourceAttributeData.vb (1)
299
If attributeClass.
IsErrorType
() AndAlso Not TypeOf attributeClass Is MissingMetadataTypeSymbol Then
Symbols\ConstraintsHelper.vb (2)
655
If typeArgument.
IsErrorType
() Then
923
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)
257
If selfOrUnderlyingType.
IsErrorType
OrElse
Symbols\Metadata\PE\PEModuleSymbol.vb (1)
345
Debug.Assert(If(Not currentModuleResult?.
IsErrorType
(), True))
Symbols\MetadataOrSourceAssemblySymbol.vb (1)
53
Debug.Assert(If(Not result?.
IsErrorType
(), True))
Symbols\NamedTypeSymbol.vb (1)
168
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)
506
Debug.Assert(Not underlying.
IsErrorType
())
Symbols\Retargeting\RetargetingNamespaceSymbol.vb (1)
179
Debug.Assert(Not underlying.
IsErrorType
())
Symbols\Retargeting\RetargetingSymbolTranslator.vb (2)
369
Debug.Assert(Not result1.
IsErrorType
())
933
If retargetedType.
IsErrorType
() Then
Symbols\Source\CustomEventAccessorSymbol.vb (5)
185
Not eventType.
IsErrorType
Then
216
If Not eventType.
IsErrorType
AndAlso Not TypeSymbol.Equals(eventType, parameterType, TypeCompareKind.ConsiderEverything) Then
229
If Not registrationTokenType.
IsErrorType
AndAlso firstImplementedEvent.IsWindowsRuntimeEvent <> (TypeSymbol.Equals(parameterType, registrationTokenType, TypeCompareKind.ConsiderEverything)) Then
236
If Not registrationTokenType.
IsErrorType
AndAlso Not TypeSymbol.Equals(parameterType, registrationTokenType, TypeCompareKind.ConsiderEverything) Then
240
If Not eventType.
IsErrorType
AndAlso Not TypeSymbol.Equals(eventType, parameterType, TypeCompareKind.ConsiderEverything) Then
Symbols\Source\LocalSymbol.vb (1)
890
(valueExpression.Type Is Nothing OrElse Not valueExpression.Type.
IsErrorType
))
Symbols\Source\SourceAssemblySymbol.vb (3)
416
If forwarded.
IsErrorType
() Then
934
Return Not obj.
IsErrorType
() AndAlso obj.DeclaredAccessibility = Accessibility.Public
1765
Return Not stdmodule.
IsErrorType
AndAlso
Symbols\Source\SourceEventSymbol.vb (1)
245
If Not type.
IsErrorType
() Then
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
472
If Not implemented.
IsErrorType
() Then
Symbols\Source\SourceMemberFieldSymbol.vb (2)
118
If Not varType.
IsErrorType
() Then
218
If Not varType.
IsErrorType
() Then
Symbols\Source\SourceMethodSymbol.vb (1)
2342
If Not retType.
IsErrorType
() Then
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
143
If Not attributeType.
IsErrorType
() Then
Symbols\Source\SourceNamedTypeSymbol.vb (5)
1147
ElseIf Not baseClassType.
IsErrorType
() Then
1198
If Not typeSymbol.
IsErrorType
() Then
1471
Dim diag = If(isInterface AndAlso Not t.
IsErrorType
(), GetDependenceDiagnosticForBase(Me, t), Nothing)
1479
If Not t.
IsErrorType
() Then
2745
If formClass.
IsErrorType
() OrElse Not Me.IsOrDerivedFrom(formClass, useSiteInfo:=CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
436
If (Not propertyType.
IsErrorType
()) AndAlso (Not valueParameterType.IsErrorType()) Then
Symbols\Source\SourcePropertySymbol.vb (1)
377
If Not type.
IsErrorType
() Then
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)
435
If Not attributeType.
IsErrorType
() Then
507
Debug.Assert(Not attributeType.
IsErrorType
())
Symbols\Tuples\TupleTypeSymbol.vb (2)
178
If Me._underlyingType.
IsErrorType
() Then
836
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
()))