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