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) 2584if (!conversion.IsValid) 2690if (!conversion.IsValid) 2707bool hasErrors = !conversion.IsValid || targetType.IsStatic; 2861if (!elementConversion.IsValid) 5247Debug.Assert(conversion.IsValid); 5345if (!conversion.IsImplicit || !conversion.IsValid) 5430Debug.Assert(conv.IsValid); // i.e. if it exists, then it is valid. 6951if (!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) 1957else if (!conversion.IsValid || 2231Debug.Assert(!conversion.IsImplicit || !conversion.IsValid); 2422if (!conversion.IsImplicit || !conversion.IsValid) 2522if (!elementConversion.IsValid) 3171else 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)
7368if (conversion is { IsValid: true, Kind: ConversionKind.ImplicitUserDefined }) 9352if (!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);