44 references to IsValid
Microsoft.CodeAnalysis.CSharp (44)
Binder\Binder.cs (1)
626if (conversion.IsValid && conversion.Method is object)
Binder\Binder_Await.cs (1)
424Debug.Assert(conversion.IsValid);
Binder\Binder_Expressions.cs (10)
1224if (!conversion.IsImplicit || !conversion.IsValid) 1273if (!conversion.IsImplicit || !conversion.IsValid) 2587if (!conversion.IsValid) 2693if (!conversion.IsValid) 2710bool hasErrors = !conversion.IsValid || targetType.IsStatic; 2864if (!elementConversion.IsValid) 5250Debug.Assert(conversion.IsValid); 5348if (!conversion.IsImplicit || !conversion.IsValid) 5433Debug.Assert(conv.IsValid); // i.e. if it exists, then it is valid. 6954if (!conversion.IsValid)
Binder\Binder_Invocation.cs (2)
1683if (!conversion.IsValid && defaultConstantValue is { SpecialType: SpecialType.System_Decimal or SpecialType.System_DateTime }) 1692if (!conversion.IsValid)
Binder\Binder_Operators.cs (2)
224if (!rightToLeftConversion.IsImplicit || !rightToLeftConversion.IsValid) 272if (!argumentConversion.IsImplicit || !argumentConversion.IsValid) // NOTE: dev10 appears to allow user-defined conversions here.
Binder\Binder_Statements.cs (7)
1373if (!elementConversionClassification.IsValid || !elementConversionClassification.IsImplicit) 1379if (elementConversionClassification.IsValid) 1960else if (!conversion.IsValid || 2234Debug.Assert(!conversion.IsImplicit || !conversion.IsValid); 2425if (!conversion.IsImplicit || !conversion.IsValid) 2525if (!elementConversion.IsValid) 3174else if (!conversion.IsImplicit || !conversion.IsValid)
Binder\ForEachLoopBinder.cs (4)
480if (!elementConversionClassification.IsValid) 541Debug.Assert(collectionConversionClassification.IsValid); 542Debug.Assert(currentConversionClassification.IsValid || 554if (currentConversionClassification.IsValid)
Binder\Semantics\Conversions\Conversion.cs (1)
577if (!conv.IsValid)
Binder\Semantics\Conversions\Conversions.cs (1)
494if (pointerConversion.IsValid)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (2)
383if (Conversions.ClassifyImplicitConversionFromExpression(left, systemDelegateType, ref useSiteInfo).IsValid && 384Conversions.ClassifyImplicitConversionFromExpression(right, systemDelegateType, ref useSiteInfo).IsValid)
Binder\SwitchBinder.cs (2)
259if (!conversion.IsValid) 414if (conversion.IsValid)
BoundTree\Constructors.cs (2)
369hasErrors || !conversion.IsValid) 396hasErrors: hasErrors || !conversion.IsValid)
Compilation\CSharpSemanticModel.cs (1)
2137conversion = convertedSwitchConversion.IsValid ? convertedSwitchConversion : Conversion.NoConversion;
FlowAnalysis\AbstractFlowPass.cs (1)
3001if (!conversion.IsValid)
FlowAnalysis\NullableWalker.cs (2)
7365if (conversion is { IsValid: true, Kind: ConversionKind.ImplicitUserDefined }) 9349if (!conversion.IsValid)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (3)
790if (!conversion.IsValid) 818if (!conversion.IsValid) 845Debug.Assert(conversion.IsValid);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (2)
33Debug.Assert(BoundNode.GetConversion(leftConversion, leftPlaceholder).IsValid); 240Debug.Assert(BoundNode.GetConversion(leftConversion, leftPlaceholder).IsValid);