21 references to AnonymousFunction
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Operators.cs (1)
3679case ConversionKind.AnonymousFunction:
Binder\Semantics\Conversions\Conversion.cs (3)
228case ConversionKind.AnonymousFunction: 276internal static Conversion AnonymousFunction => new Conversion(ConversionKind.AnonymousFunction); 945return Kind == ConversionKind.AnonymousFunction;
Binder\Semantics\Conversions\ConversionKindExtensions.cs (1)
40case AnonymousFunction:
Binder\Semantics\Conversions\ConversionsBase.cs (1)
678case ConversionKind.AnonymousFunction:
Binder\Semantics\Conversions\UserDefinedImplicitConversions.cs (1)
620case ConversionKind.AnonymousFunction:
CodeGen\EmitConversion.cs (1)
122case ConversionKind.AnonymousFunction:
CodeGen\EmitExpression.cs (1)
1546case ConversionKind.AnonymousFunction:
Compilation\CSharpSemanticModel.cs (4)
2101conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, false); 2198if (conversion.Kind == ConversionKind.AnonymousFunction) 2228conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, delegateCreation.IsExtensionMethod); 2234conversion = new Conversion(ConversionKind.AnonymousFunction, lambda.Symbol, delegateCreation.IsExtensionMethod);
FlowAnalysis\NullableWalker.cs (1)
8872case ConversionKind.AnonymousFunction:
Lowering\ClosureConversion\ClosureConversion.cs (1)
1395if (conversion.ConversionKind == ConversionKind.AnonymousFunction)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
795case ConversionKind.AnonymousFunction:
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
570case ConversionKind.AnonymousFunction: 1396=> expr is BoundConversion conv && conv.ConversionKind == ConversionKind.AnonymousFunction;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
72_inExpressionLambda = _inExpressionLambda || (node.ConversionKind == ConversionKind.AnonymousFunction && !wasInExpressionLambda && rewrittenType.IsExpressionTree());
Lowering\LocalRewriter\LocalRewriter_TupleBinaryOperator.cs (1)
230case ConversionKind.AnonymousFunction: // a lambda cannot be saved without a target type
Lowering\SpillSequenceSpiller.cs (1)
1176if (node.ConversionKind == ConversionKind.AnonymousFunction && node.Type.IsExpressionTree())