60 references to IsUserDefined
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder.ValueChecks.cs (4)
3583
(!conversion.Conversion.
IsUserDefined
||
3953
Debug.Assert(!conversion.Conversion.
IsUserDefined
||
4354
if (conversion.Conversion.
IsUserDefined
)
5132
if (conversion.Conversion.
IsUserDefined
)
Binder\Binder_Conversions.cs (3)
89
(!conversion.
IsUserDefined
|| filterConversion(conversion.UserDefinedFromConversion));
262
if (conversion.
IsUserDefined
)
411
if (conversion.
IsUserDefined
)
Binder\Binder_Expressions.cs (1)
2756
Debug.Assert(conversion.
IsUserDefined
);
Binder\Binder_Patterns.cs (1)
831
Debug.Assert(!conversion.
IsUserDefined
|| result == ConstantValue.False || result == ConstantValue.Bad);
Binder\Binder_Statements.cs (1)
2268
Debug.Assert(conversion.
IsUserDefined
);
Binder\DecisionDagBuilder.cs (1)
461
Debug.Assert(!conversion.
IsUserDefined
);
Binder\ForEachLoopBinder.cs (2)
628
Debug.Assert(!collectionConversionClassification.
IsUserDefined
);
1533
Debug.Assert(!collectionConversion.
IsUserDefined
);
Binder\Semantics\Conversions\Conversion.cs (6)
431
if (
IsUserDefined
)
470
if (
IsUserDefined
)
583
Debug.Assert(!this.
IsUserDefined
);
587
return !this.
IsUserDefined
||
1011
/// or the method used to perform the conversion for a user-defined conversion if <see cref="
IsUserDefined
"/> is true.
1153
var (methodSymbol, constrainedToType) =
IsUserDefined
? (MethodSymbol, ConstrainedToType) : (null, null);
BoundTree\BoundNode.cs (2)
457
if (!boundConversion.Conversion.
IsUserDefined
)
462
if (boundConversion.Conversion.
IsUserDefined
)
FlowAnalysis\AbstractFlowPass.cs (1)
3006
if (!conversion.
IsUserDefined
)
FlowAnalysis\NullableWalker.cs (4)
5641
Debug.Assert(!conversion.
IsUserDefined
);
5646
Debug.Assert(!conversion.
IsUserDefined
);
5653
if (conversion.
IsUserDefined
)
10430
if (node.OperandConversion is BoundConversion { Conversion: var operandConversion } && operandConversion.
IsUserDefined
&& operandConversion.Method?.ParameterCount == 1)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
877
if (BoundNode.GetConversion(node.LeftConversion, node.LeftPlaceholder) is {
IsUserDefined
: true } leftConversion)
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
213
Debug.Assert(!conversion.
IsUserDefined
);
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
312
if (_inExpressionLambda && !conversion.
IsUserDefined
)
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
500
Debug.Assert(receiverConversion.IsImplicit && !receiverConversion.
IsUserDefined
);
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (2)
196
case BoundConversion { Conversion: {
IsUserDefined
: true } } conv when conv.ExplicitCastInCode || enclosingConversionWasExplicit:
404
when expr.Type.IsNullableType() && o.Type is { } && o.Type.IsNullableType() && !underlying[0].
IsUserDefined
:
Symbols\Source\ParameterHelpers.cs (1)
778
conversion.
IsUserDefined
||
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ConversionExtensions.cs (1)
17
return conversion.
IsUserDefined
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (5)
335
if (isAnonymousFunctionCast && originalConversion.
IsUserDefined
)
398
if (!rewrittenConversion.
IsUserDefined
)
723
if (innerOriginalConversion.
IsUserDefined
)
1213
if (oldConversion.
IsUserDefined
!= newConversion.
IsUserDefined
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
861
var originalIsUserDefined = originalConversion.
IsUserDefined
;
862
var newIsUserDefined = newConversion.
IsUserDefined
;
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
FirstClassSpanTests.cs (1)
2834
Assert.False(argConv.
IsUserDefined
);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (10)
Compilation\GetSemanticInfoTests.cs (10)
636
Assert.True(impconv.
IsUserDefined
);
642
Assert.True(conv.
IsUserDefined
);
739
Assert.True(conv.
IsUserDefined
);
787
Assert.True(conv.
IsUserDefined
);
793
Assert.False(conv.
IsUserDefined
);
800
Assert.False(conv.
IsUserDefined
);
807
Assert.False(conv.
IsUserDefined
);
814
Assert.False(conv.
IsUserDefined
);
821
Assert.False(conv.
IsUserDefined
);
828
Assert.False(conv.
IsUserDefined
);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\ConversionExtensions.cs (1)
17
return conversion.
IsUserDefined
&&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (5)
335
if (isAnonymousFunctionCast && originalConversion.
IsUserDefined
)
398
if (!rewrittenConversion.
IsUserDefined
)
723
if (innerOriginalConversion.
IsUserDefined
)
1213
if (oldConversion.
IsUserDefined
!= newConversion.
IsUserDefined
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (2)
861
var originalIsUserDefined = originalConversion.
IsUserDefined
;
862
var newIsUserDefined = newConversion.
IsUserDefined
;