11 instantiations of BoundDelegateCreationExpression
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Expressions.cs (4)
5450return new BoundDelegateCreationExpression(node, boundLambda, methodOpt: null, isExtensionMethod: false, wasTargetTyped, type: type, hasErrors: hasErrors); 5465return new BoundDelegateCreationExpression(node, methodGroup, conversion.Method, conversion.IsExtensionMethod, wasTargetTyped, type, hasErrors); 5476return new BoundDelegateCreationExpression(node, argument, methodOpt: null, isExtensionMethod: false, wasTargetTyped, type: type); 5518return new BoundDelegateCreationExpression(node, argument, methodOpt: null, isExtensionMethod: false, wasTargetTyped, type: type);
Generated\BoundNodes.xml.Generated.cs (1)
7119var result = new BoundDelegateCreationExpression(this.Syntax, argument, methodOpt, isExtensionMethod, wasTargetTyped, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (2)
1354return new BoundDelegateCreationExpression( 1664BoundExpression result = new BoundDelegateCreationExpression(
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
572var boundDelegateCreation = new BoundDelegateCreationExpression(syntax, argument: receiver, methodOpt: method,
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
25return new BoundDelegateCreationExpression(node.Syntax, loweredReceiver, methodOpt: null, isExtensionMethod: false, node.WasTargetTyped, type: node.Type);
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
106BoundDelegateCreationExpression removeDelegate = new BoundDelegateCreationExpression( 143BoundDelegateCreationExpression addDelegate = new BoundDelegateCreationExpression(
56 references to BoundDelegateCreationExpression
Microsoft.CodeAnalysis.CSharp (56)
Binder\Binder_Conversions.cs (1)
750BoundDelegateCreationExpression { WasTargetTyped: true } or
BoundTree\BoundExpressionExtensions.cs (4)
185var delegateCreation = parent as BoundDelegateCreationExpression; 205var expr = (BoundDelegateCreationExpression)node;
BoundTree\BoundTreeVisitors.cs (1)
120return VisitDelegateCreationExpression(node as BoundDelegateCreationExpression, arg);
CodeGen\EmitExpression.cs (2)
111EmitDelegateCreationExpression((BoundDelegateCreationExpression)expression, used); 808private void EmitDelegateCreationExpression(BoundDelegateCreationExpression expression, bool used)
Compilation\CSharpSemanticModel.cs (5)
2217var delegateCreation = (BoundDelegateCreationExpression)boundNodeForSyntacticParent; 4292var delegateCreation = (BoundDelegateCreationExpression)boundNodeForSyntacticParent; 4800private OneOrMany<Symbol> CreateReducedExtensionMethodIfPossible(BoundDelegateCreationExpression delegateCreation, BoundExpression receiverOpt)
FlowAnalysis\AbstractFlowPass.cs (1)
1619public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
FlowAnalysis\NullableWalker.cs (7)
4963BoundDelegateCreationExpression { WasTargetTyped: true } or 10235public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 10274TypeWithState setAnalyzedNullability(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, Action<NamedTypeSymbol>? analysisCompletion, bool isTargetTyped) 10291void setAnalyzedNullabilityAsContinuation(BoundDelegateCreationExpression node, Action<NamedTypeSymbol>? analysisCompletion) 10305Action<NamedTypeSymbol>? visitMethodGroupArgument(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group) 10313Action<NamedTypeSymbol>? analyzeMethodGroupConversion(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group, bool isTargetTyped) 10334Action<NamedTypeSymbol>? analyzeMethodGroupConversionAsContinuation(BoundDelegateCreationExpression node, BoundMethodGroup group)
Generated\BoundNodes.xml.Generated.cs (10)
7115public BoundDelegateCreationExpression Update(BoundExpression argument, MethodSymbol? methodOpt, bool isExtensionMethod, bool wasTargetTyped, TypeSymbol type) 7119var result = new BoundDelegateCreationExpression(this.Syntax, argument, methodOpt, isExtensionMethod, wasTargetTyped, type, this.HasErrors); 9249return VisitDelegateCreationExpression((BoundDelegateCreationExpression)node, arg); 9535public virtual R VisitDelegateCreationExpression(BoundDelegateCreationExpression node, A arg) => this.DefaultVisit(node, arg); 9771public virtual BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) => this.DefaultVisit(node); 10614public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 12064public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 14503public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 14507BoundDelegateCreationExpression updatedNode; 16827public override TreeDumperNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node, object? arg) => new TreeDumperNode("delegateCreationExpression", null, new TreeDumperNode[]
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
469public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\ClosureConversion\ClosureConversion.cs (1)
1332public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
209return VisitDelegateCreationExpression((BoundDelegateCreationExpression)node); 786private BoundExpression VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
911public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\ExtensionMethodBodyRewriter.cs (1)
174public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\ExtensionMethodReferenceRewriter.cs (2)
207public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 212public static BoundNode VisitDelegateCreationExpression(BoundTreeRewriter rewriter, BoundDelegateCreationExpression node)
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
60internal FieldSymbol GetOrAddCacheField(SyntheticBoundNodeFactory factory, BoundDelegateCreationExpression boundDelegateCreation)
Lowering\LocalRewriter\DelegateCacheRewriter.cs (4)
34internal static bool CanRewrite(BoundDelegateCreationExpression boundDelegateCreation) 43internal BoundExpression Rewrite(BoundDelegateCreationExpression boundDelegateCreation) 61private DelegateCacheContainer GetOrAddCacheContainer(BoundDelegateCreationExpression boundDelegateCreation) 123private static bool TryGetOwnerFunctionOrExtensionType(MethodSymbol currentFunction, BoundDelegateCreationExpression boundDelegateCreation, [NotNullWhen(true)] out Symbol? owner)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
237public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
57BoundDelegateCreationExpression { WasTargetTyped: true }); 572var boundDelegateCreation = new BoundDelegateCreationExpression(syntax, argument: receiver, methodOpt: method,
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
14public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
106BoundDelegateCreationExpression removeDelegate = new BoundDelegateCreationExpression( 143BoundDelegateCreationExpression addDelegate = new BoundDelegateCreationExpression(
Lowering\MethodToClassRewriter.cs (1)
336public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\SpillSequenceSpiller.cs (1)
1218public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Operations\CSharpOperationFactory.cs (2)
255return CreateBoundDelegateCreationExpressionOperation((BoundDelegateCreationExpression)boundNode); 1151private IDelegateCreationOperation CreateBoundDelegateCreationExpressionOperation(BoundDelegateCreationExpression boundDelegateCreationExpression)
Operations\CSharpOperationFactory_Methods.cs (2)
162var boundDelegateCreationExpression = (BoundDelegateCreationExpression)delegateNode;