11 instantiations of BoundDelegateCreationExpression
Microsoft.CodeAnalysis.CSharp (11)
Binder\Binder_Expressions.cs (4)
4570return new BoundDelegateCreationExpression(node, boundLambda, methodOpt: null, isExtensionMethod: false, wasTargetTyped, type: type, hasErrors: hasErrors); 4585return new BoundDelegateCreationExpression(node, methodGroup, conversion.Method, conversion.IsExtensionMethod, wasTargetTyped, type, hasErrors); 4596return new BoundDelegateCreationExpression(node, argument, methodOpt: null, isExtensionMethod: false, wasTargetTyped, type: type); 4638return new BoundDelegateCreationExpression(node, argument, methodOpt: null, isExtensionMethod: false, wasTargetTyped, type: type);
Generated\BoundNodes.xml.Generated.cs (1)
6840var result = new BoundDelegateCreationExpression(this.Syntax, argument, methodOpt, isExtensionMethod, wasTargetTyped, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (2)
1335return new BoundDelegateCreationExpression( 1633BoundExpression result = new BoundDelegateCreationExpression(
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
565var boundDelegateCreation = new BoundDelegateCreationExpression(syntax, argument: receiver, methodOpt: method,
Lowering\LocalRewriter\LocalRewriter_DelegateCreationExpression.cs (1)
23return new BoundDelegateCreationExpression(node.Syntax, loweredReceiver, methodOpt: null, isExtensionMethod: false, node.WasTargetTyped, type: node.Type);
Lowering\LocalRewriter\LocalRewriter_Event.cs (2)
95BoundDelegateCreationExpression removeDelegate = new BoundDelegateCreationExpression( 133BoundDelegateCreationExpression addDelegate = new BoundDelegateCreationExpression(
53 references to BoundDelegateCreationExpression
Microsoft.CodeAnalysis.CSharp (53)
Binder\Binder_Conversions.cs (1)
350BoundDelegateCreationExpression { WasTargetTyped: true } or
BoundTree\BoundExpressionExtensions.cs (4)
157var delegateCreation = parent as BoundDelegateCreationExpression; 177var expr = (BoundDelegateCreationExpression)node;
BoundTree\BoundTreeVisitors.cs (1)
120return VisitDelegateCreationExpression(node as BoundDelegateCreationExpression, arg);
CodeGen\EmitExpression.cs (2)
110EmitDelegateCreationExpression((BoundDelegateCreationExpression)expression, used); 783private void EmitDelegateCreationExpression(BoundDelegateCreationExpression expression, bool used)
Compilation\CSharpSemanticModel.cs (5)
2214var delegateCreation = (BoundDelegateCreationExpression)boundNodeForSyntacticParent; 4270var delegateCreation = (BoundDelegateCreationExpression)boundNodeForSyntacticParent; 4776private ImmutableArray<Symbol> CreateReducedExtensionMethodIfPossible(BoundDelegateCreationExpression delegateCreation, BoundExpression receiverOpt)
FlowAnalysis\AbstractFlowPass.cs (1)
1515public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
FlowAnalysis\NullableWalker.cs (7)
4286BoundDelegateCreationExpression { WasTargetTyped: true }; 8693public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 8732TypeWithState setAnalyzedNullability(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, Action<NamedTypeSymbol>? analysisCompletion, bool isTargetTyped) 8749void setAnalyzedNullabilityAsContinuation(BoundDelegateCreationExpression node, Action<NamedTypeSymbol>? analysisCompletion) 8763Action<NamedTypeSymbol>? visitMethodGroupArgument(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group) 8771Action<NamedTypeSymbol>? analyzeMethodGroupConversion(BoundDelegateCreationExpression node, NamedTypeSymbol delegateType, BoundMethodGroup group, bool isTargetTyped) 8792Action<NamedTypeSymbol>? analyzeMethodGroupConversionAsContinuation(BoundDelegateCreationExpression node, BoundMethodGroup group)
Generated\BoundNodes.xml.Generated.cs (10)
6836public BoundDelegateCreationExpression Update(BoundExpression argument, MethodSymbol? methodOpt, bool isExtensionMethod, bool wasTargetTyped, TypeSymbol type) 6840var result = new BoundDelegateCreationExpression(this.Syntax, argument, methodOpt, isExtensionMethod, wasTargetTyped, type, this.HasErrors); 8871return VisitDelegateCreationExpression((BoundDelegateCreationExpression)node, arg); 9148public virtual R VisitDelegateCreationExpression(BoundDelegateCreationExpression node, A arg) => this.DefaultVisit(node, arg); 9376public virtual BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) => this.DefaultVisit(node); 10194public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 11466public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 13802public override BoundNode? VisitDelegateCreationExpression(BoundDelegateCreationExpression node) 13806BoundDelegateCreationExpression updatedNode; 16047public override TreeDumperNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node, object? arg) => new TreeDumperNode("delegateCreationExpression", null, new TreeDumperNode[]
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
450public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\ClosureConversion\ClosureConversion.cs (1)
1313public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
210return VisitDelegateCreationExpression((BoundDelegateCreationExpression)node); 706private BoundExpression VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
779public 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)
238public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (2)
57BoundDelegateCreationExpression { WasTargetTyped: true }); 565var 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)
95BoundDelegateCreationExpression removeDelegate = new BoundDelegateCreationExpression( 133BoundDelegateCreationExpression addDelegate = new BoundDelegateCreationExpression(
Lowering\MethodToClassRewriter.cs (1)
575public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Lowering\SpillSequenceSpiller.cs (1)
1107public override BoundNode VisitDelegateCreationExpression(BoundDelegateCreationExpression node)
Operations\CSharpOperationFactory.cs (2)
251return CreateBoundDelegateCreationExpressionOperation((BoundDelegateCreationExpression)boundNode); 1145private IDelegateCreationOperation CreateBoundDelegateCreationExpressionOperation(BoundDelegateCreationExpression boundDelegateCreationExpression)
Operations\CSharpOperationFactory_Methods.cs (2)
162var boundDelegateCreationExpression = (BoundDelegateCreationExpression)delegateNode;