11 instantiations of BoundDelegateCreationExpression
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Expressions.cs (4)
5367return new BoundDelegateCreationExpression(node, boundLambda, methodOpt: null, isExtensionMethod: false, wasTargetTyped, type: type, hasErrors: hasErrors); 5382return new BoundDelegateCreationExpression(node, methodGroup, conversion.Method, conversion.IsExtensionMethod, wasTargetTyped, type, hasErrors); 5393return new BoundDelegateCreationExpression(node, argument, methodOpt: null, isExtensionMethod: false, wasTargetTyped, type: type); 5435return new BoundDelegateCreationExpression(node, argument, methodOpt: null, isExtensionMethod: false, wasTargetTyped, type: type);
Generated\BoundNodes.xml.Generated.cs (1)
7109var result = new BoundDelegateCreationExpression(this.Syntax, argument, methodOpt, isExtensionMethod, wasTargetTyped, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (2)
1351return new BoundDelegateCreationExpression( 1661BoundExpression result = new BoundDelegateCreationExpression(
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
574var 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(
52 references to BoundDelegateCreationExpression
Microsoft.CodeAnalysis.CSharp (52)
BoundTree\BoundExpressionExtensions.cs (4)
175var delegateCreation = parent as BoundDelegateCreationExpression; 195var expr = (BoundDelegateCreationExpression)node;
BoundTree\BoundTreeVisitors.cs (1)
120return VisitDelegateCreationExpression(node as BoundDelegateCreationExpression, arg);
CodeGen\EmitExpression.cs (2)
111EmitDelegateCreationExpression((BoundDelegateCreationExpression)expression, used); 797private void EmitDelegateCreationExpression(BoundDelegateCreationExpression expression, bool used)
Compilation\CSharpSemanticModel.cs (5)
2216var delegateCreation = (BoundDelegateCreationExpression)boundNodeForSyntacticParent; 4285var delegateCreation = (BoundDelegateCreationExpression)boundNodeForSyntacticParent; 4794private OneOrMany<Symbol> CreateReducedExtensionMethodIfPossible(BoundDelegateCreationExpression delegateCreation, BoundExpression receiverOpt)
FlowAnalysis\AbstractFlowPass.cs (1)
1612public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
FlowAnalysis\NullableWalker.cs (7)
4689BoundDelegateCreationExpression { WasTargetTyped: true } or 9593public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 9632TypeWithState setAnalyzedNullability(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, Action<NamedTypeSymbol>? analysisCompletion, bool isTargetTyped) 9649void setAnalyzedNullabilityAsContinuation(BoundDelegateCreationExpression node, Action<NamedTypeSymbol>? analysisCompletion) 9663Action<NamedTypeSymbol>? visitMethodGroupArgument(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group) 9671Action<NamedTypeSymbol>? analyzeMethodGroupConversion(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group, bool isTargetTyped) 9692Action<NamedTypeSymbol>? analyzeMethodGroupConversionAsContinuation(BoundDelegateCreationExpression node, BoundMethodGroup group)
Generated\BoundNodes.xml.Generated.cs (10)
7105public BoundDelegateCreationExpression Update(BoundExpression argument, MethodSymbol? methodOpt, bool isExtensionMethod, bool wasTargetTyped, TypeSymbol type) 7109var result = new BoundDelegateCreationExpression(this.Syntax, argument, methodOpt, isExtensionMethod, wasTargetTyped, type, this.HasErrors); 9203return VisitDelegateCreationExpression((BoundDelegateCreationExpression)node, arg); 9489public virtual R VisitDelegateCreationExpression(BoundDelegateCreationExpression node, A arg) => this.DefaultVisit(node, arg); 9725public virtual BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) => this.DefaultVisit(node); 10567public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 11893public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 14321public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 14325BoundDelegateCreationExpression updatedNode; 16652public 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)
1329public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
208return VisitDelegateCreationExpression((BoundDelegateCreationExpression)node); 785private BoundExpression VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
851public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\LocalRewriter\DelegateCacheContainer.cs (1)
54internal FieldSymbol GetOrAddCacheField(SyntheticBoundNodeFactory factory, BoundDelegateCreationExpression boundDelegateCreation)
Lowering\LocalRewriter\DelegateCacheRewriter.cs (4)
35internal static bool CanRewrite(BoundDelegateCreationExpression boundDelegateCreation) 44internal BoundExpression Rewrite(BoundDelegateCreationExpression boundDelegateCreation) 62private DelegateCacheContainer GetOrAddCacheContainer(BoundDelegateCreationExpression boundDelegateCreation) 124private static bool TryGetOwnerFunction(MethodSymbol currentFunction, BoundDelegateCreationExpression boundDelegateCreation, [NotNullWhen(true)] out MethodSymbol? ownerFunction)
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
237public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
57BoundDelegateCreationExpression { WasTargetTyped: true }); 574var 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)
584public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\SpillSequenceSpiller.cs (1)
1205public 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;