15 instantiations of BoundCall
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Expressions.cs (1)
4333return new BoundCall(
Binder\Binder_Invocation.cs (1)
1142return new BoundCall(node, receiver, method, args, argNames, argRefKinds, isDelegateCall: isDelegateCall,
Binder\Binder_Statements.cs (2)
3859return new BoundCall( 3905return new BoundCall(
BoundTree\Constructors.cs (2)
135return new BoundCall( 180return new BoundCall(syntax,
Compiler\MethodBodySynthesizer.cs (1)
44new BoundCall(syntax,
Generated\BoundNodes.xml.Generated.cs (1)
6075var result = new BoundCall(this.Syntax, receiverOpt, method, arguments, argumentNamesOpt, argumentRefKindsOpt, isDelegateCall, expanded, invokedAsExtensionMethod, argsToParamsOpt, defaultArguments, resultKind, originalMethodsOpt, type, this.HasErrors);
Lowering\LocalRewriter\LocalRewriter_Call.cs (2)
242rewrittenBoundCall = new BoundCall( 1293return new BoundCall(
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
336var createInstanceCall = new BoundCall(
Lowering\SyntheticBoundNodeFactory.cs (2)
813return new BoundCall( 824return new BoundCall(
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (2)
293return new BoundCall( 344BoundCall userMainInvocation = new BoundCall(
273 references to BoundCall
Microsoft.CodeAnalysis.CSharp (262)
Binder\Binder.ValueChecks.cs (17)
704var call = (BoundCall)expr; 722case BoundCall sliceAccess: 3011var call = (BoundCall)expr; 3091case BoundCall call: 3256var call = (BoundCall)expr; 3337case BoundCall call: 3581var call = (BoundCall)expr; 3648case BoundCall call: 4006var call = (BoundCall)expr; 4090case BoundCall call: 4533if (part is not BoundCall { Method.Name: BoundInterpolatedString.AppendFormattedMethod } call) 4640var methodRefKind = ((BoundCall)expression).Method.RefKind;
Binder\Binder_Await.cs (4)
92var call = (BoundCall)expression; 347var getAwaiterMethod = ((BoundCall)getAwaiterCall).Method; 454getResultMethod = ((BoundCall)getAwaiterGetResultCall).Method;
Binder\Binder_Deconstruct.cs (1)
683var deconstructMethod = ((BoundCall)result).Method;
Binder\Binder_Expressions.cs (4)
4352var result = CreateBadCall( 5539var boundCall = (BoundCall)addMethodInvocation; 8563Debug.Assert(indexerOrSliceAccess is BoundIndexerAccess or BoundCall);
Binder\Binder_InterpolatedString.cs (3)
524Debug.Assert(appendCallsArray.All(appendCalls => appendCalls.All(a => a is { HasErrors: true } or BoundCall { Arguments: { Length: > 0 } } or BoundDynamicInvocation))); 811Debug.Assert(call is BoundCall or BoundDynamicInvocation or { HasErrors: true }); 815if (call is BoundCall { Method: { ReturnType: var returnType } method })
Binder\Binder_Invocation.cs (7)
880var call = (BoundCall)expression; 934private BoundCall BindInvocationExpressionContinued( 1590private BoundCall CreateBadCall( 1631return BoundCall.ErrorCall(node, receiver, method, args, argNames, argRefKinds, isDelegate, invokedAsExtensionMethod: invokedAsExtensionMethod, originalMethods: methods, resultKind: resultKind, binder: this); 1830private BoundCall CreateBadCall( 1845return BoundCall.ErrorCall(node, expr, method, args, argNames, argRefKinds, isDelegateCall: false, invokedAsExtensionMethod: false, originalMethods: originalMethods, resultKind: resultKind, binder: this);
Binder\Binder_Query.cs (19)
233var result = MakeQueryInvocation(state.selectOrGroup, e, "Select", lambda, diagnostics 257BoundCall result; 308private static BoundCall ReverseLastTwoParameterOrder(BoundCall result) 367var invocation = MakeQueryInvocation(where, state.fromExpression, "Where", lambda, diagnostics 415BoundCall invocation; 481BoundCall invocation; 568var invocation = MakeQueryInvocation(ordering, state.fromExpression, methodName, lambda, diagnostics 611var invocation = MakeQueryInvocation( 657var invocation = MakeQueryInvocation( 676private static BoundExpression? ExtractCastInvocation(BoundCall invocation) 682var i1 = r1 != null ? r1.ExpressionOpt as BoundCall : null; 756var invocation = MakeQueryInvocation(let, state.fromExpression, "Select", lambda, diagnostics 873protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, BoundExpression arg, BindingDiagnosticBag diagnostics 886protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics 899protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, TypeSyntax typeArgSyntax, TypeWithAnnotations typeArg, BindingDiagnosticBag diagnostics 912protected BoundCall MakeQueryInvocation(CSharpSyntaxNode node, BoundExpression receiver, string methodName, SeparatedSyntaxList<TypeSyntax> typeArgsSyntax, ImmutableArray<TypeWithAnnotations> typeArgs, ImmutableArray<BoundExpression> args, BindingDiagnosticBag diagnostics 1007return (BoundCall)MakeInvocationExpression(
Binder\Binder_Statements.cs (6)
1668case BoundCall or BoundArrayAccess: 1716BoundImplicitIndexerAccess { IndexerOrSliceAccess: BoundCall call } => call.Method, 3816internal static BoundCall? GenerateBaseParameterlessConstructorInitializer(MethodSymbol constructor, BindingDiagnosticBag diagnostics) 3877private static BoundCall? GenerateBaseCopyConstructorInitializer(SynthesizedRecordCopyCtor constructor, BindingDiagnosticBag diagnostics) 4051var call = (BoundCall)patternMethodCall;
Binder\ForEachLoopBinder.cs (1)
661return BoundCall.Synthesized(
Binder\RefSafetyAnalysis.cs (3)
581public override BoundNode? VisitCall(BoundCall node) 746var invocation = conversion.DeconstructionInfo.Invocation as BoundCall;
Binder\Semantics\Conversions\Conversion.cs (1)
437&& deconstruction.DeconstructMethodInfo.Invocation is BoundCall call)
BoundTree\BoundExpressionExtensions.cs (2)
34return ((BoundCall)node).Method.RefKind; 191var originalMethods = ((BoundCall)node).OriginalMethodsOpt;
BoundTree\BoundImplicitIndexerAccess.cs (1)
21Debug.Assert(IndexerOrSliceAccess is BoundIndexerAccess or BoundCall or BoundArrayAccess);
BoundTree\BoundNode_Source.cs (1)
197case BoundCall call:
BoundTree\BoundNodeExtensions.cs (2)
51return expression.Kind == BoundKind.Call && ((BoundCall)expression).IsConstructorInitializer(); 57public static bool IsConstructorInitializer(this BoundCall call)
BoundTree\BoundTreeVisitors.cs (1)
116return VisitCall(node as BoundCall, arg);
BoundTree\BoundTreeWalker.cs (2)
37var call = unoptimizedForm as BoundCall;
BoundTree\Constructors.cs (8)
103public BoundCall Update(BoundExpression? receiverOpt, 117public static BoundCall ErrorCall( 153public BoundCall Update(ImmutableArray<BoundExpression> arguments) 158public BoundCall Update(BoundExpression? receiverOpt, MethodSymbol method, ImmutableArray<BoundExpression> arguments) 163public static BoundCall Synthesized(SyntaxNode syntax, BoundExpression? receiverOpt, MethodSymbol method) 168public static BoundCall Synthesized(SyntaxNode syntax, BoundExpression? receiverOpt, MethodSymbol method, BoundExpression arg0) 173public static BoundCall Synthesized(SyntaxNode syntax, BoundExpression? receiverOpt, MethodSymbol method, BoundExpression arg0, BoundExpression arg1) 178public static BoundCall Synthesized(SyntaxNode syntax, BoundExpression? receiverOpt, MethodSymbol method, ImmutableArray<BoundExpression> arguments)
CodeGen\EmitAddress.cs (2)
113var call = (BoundCall)expression;
CodeGen\EmitExpression.cs (11)
102EmitCallExpression((BoundCall)expression, used ? UseKind.UsedAsValue : UseKind.Unused); 615public override BoundNode VisitCall(BoundCall node) 1578private void EmitCallExpression(BoundCall call, UseKind useKind) 1595private void EmitDefaultValueTypeConstructorCallExpression(BoundCall call) 1615private void EmitStaticCallExpression(BoundCall call, UseKind useKind) 1646private void EmitInstanceCallExpression(BoundCall call, UseKind useKind) 1801LocalDefinition emitGenericReceiver(BoundCall call, out CallKind callKind) 2000return ((BoundCall)receiver).Method.RefKind != RefKind.None; 2711var left = (BoundCall)assignmentTarget; 2915Debug.Assert(((BoundCall)expression).Method.RefKind != RefKind.None);
CodeGen\Optimizer.cs (4)
1056Debug.Assert(((BoundCall)lhs).Method.RefKind == RefKind.Ref, "only ref returning methods are assignable"); 1107public override BoundNode VisitCall(BoundCall node) 1141private BoundExpression VisitCallOrConditionalAccessReceiver(BoundExpression receiver, BoundCall callOpt) 2134public override BoundNode VisitCall(BoundCall node)
Compilation\CSharpSemanticModel.cs (6)
3431var call = (BoundCall)boundNode; 4249var call = (BoundCall)boundNodeForSyntacticParent; 4722private static ImmutableArray<MethodSymbol> CreateReducedExtensionMethodsFromOriginalsIfNecessary(BoundCall call, CSharpCompilation compilation) 4759private ImmutableArray<Symbol> CreateReducedExtensionMethodIfPossible(BoundCall call)
Compilation\MemberSemanticModel.cs (4)
1040var call = bound?.Operation as BoundCall; 1769var call = (BoundCall)node;
Compiler\MethodBodySynthesizer.cs (8)
285BoundCall getOrCreateCall = BoundCall.Synthesized( 297BoundCall processHandlerCall = BoundCall.Synthesized( 395operand: BoundCall.Synthesized(syntax, 459operand: BoundCall.Synthesized(syntax, 476BoundExpression compareExchange = BoundCall.Synthesized(syntax, 538BoundCall.Synthesized(
Compiler\MethodBodySynthesizer.Lowered.cs (1)
377public static BoundCall GenerateGetHashCode(
Compiler\MethodCompiler.cs (3)
1902expressionStatement.Expression is BoundCall { Method: var initMethod } && initMethod.IsDefaultValueTypeConstructor(); 2297var ctorCall = initializerInvocation as BoundCall;
FlowAnalysis\AbstractFlowPass.cs (1)
1275public override BoundNode VisitCall(BoundCall node)
FlowAnalysis\NullableWalker.cs (8)
1413return constructorBody is BoundConstructorMethodBody { Initializer: BoundExpressionStatement { Expression: BoundCall { Method: { MethodKind: MethodKind.Constructor } initializerMethod } } } 5678public override BoundNode? VisitCall(BoundCall node) 5686private void ReinferMethodAndVisitArguments(BoundCall node, TypeWithState receiverType) 5715private void LearnFromEqualsMethod(MethodSymbol method, BoundCall node, TypeWithState receiverType, ImmutableArray<VisitArgumentResult> results) 5952private TypeWithState VisitCallReceiver(BoundCall node) 6283if (node is BoundCall { Method: { OriginalDefinition: LocalFunctionSymbol localFunction } }) 9272var invocation = conversion.DeconstructionInfo.Invocation as BoundCall;
FlowAnalysis\NullableWalker_Patterns.cs (1)
811BoundCall call => AsMemberOfType(inputType, call.Method).GetTypeOrReturnType(),
Generated\BoundNodes.xml.Generated.cs (10)
6071public BoundCall Update(BoundExpression? receiverOpt, MethodSymbol method, ImmutableArray<BoundExpression> arguments, ImmutableArray<string> argumentNamesOpt, ImmutableArray<RefKind> argumentRefKindsOpt, bool isDelegateCall, bool expanded, bool invokedAsExtensionMethod, ImmutableArray<int> argsToParamsOpt, BitVector defaultArguments, LookupResultKind resultKind, ImmutableArray<MethodSymbol> originalMethodsOpt, TypeSymbol type) 6075var result = new BoundCall(this.Syntax, receiverOpt, method, arguments, argumentNamesOpt, argumentRefKindsOpt, isDelegateCall, expanded, invokedAsExtensionMethod, argsToParamsOpt, defaultArguments, resultKind, originalMethodsOpt, type, this.HasErrors); 8833return VisitCall((BoundCall)node, arg); 9129public virtual R VisitCall(BoundCall node, A arg) => this.DefaultVisit(node, arg); 9357public virtual BoundNode? VisitCall(BoundCall node) => this.DefaultVisit(node); 10101public override BoundNode? VisitCall(BoundCall node) 11342public override BoundNode? VisitCall(BoundCall node) 13461public override BoundNode? VisitCall(BoundCall node) 13467BoundCall updatedNode; 15823public override TreeDumperNode VisitCall(BoundCall node, object? arg) => new TreeDumperNode("call", null, new TreeDumperNode[]
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
440public override BoundNode VisitCall(BoundCall node)
Lowering\ClosureConversion\ClosureConversion.cs (3)
1054public override BoundNode VisitCall(BoundCall node) 1093var rewritten = (BoundCall)visited;
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
202return VisitCall((BoundCall)node); 566private BoundExpression VisitCall(BoundCall node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
439public override BoundNode VisitCall(BoundCall node)
Lowering\Instrumentation\CompoundInstrumenter.cs (1)
157public override BoundExpression InstrumentCall(BoundCall original, BoundExpression rewritten)
Lowering\Instrumentation\Instrumenter.cs (1)
226public virtual BoundExpression InstrumentCall(BoundCall original, BoundExpression rewritten)
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
545public override BoundExpression InstrumentCall(BoundCall original, BoundExpression rewritten)
Lowering\LocalRewriter\LocalRewriter.cs (1)
960return ((BoundCall)expr).Method.RefKind != RefKind.None;
Lowering\LocalRewriter\LocalRewriter.DecisionDagRewriter.cs (1)
151public override BoundNode VisitCall(BoundCall node)
Lowering\LocalRewriter\LocalRewriter_AssignmentOperator.cs (3)
344BoundExpression setterCall = BoundCall.Synthesized( 359BoundCall setterCall = BoundCall.Synthesized(
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (11)
86var falseOperatorCall = BoundCall.Synthesized(syntax, receiverOpt: node.ConstrainedToTypeOpt is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, node.ConstrainedToTypeOpt), 757return BoundCall.Synthesized(syntax, receiverOpt: constrainedToTypeOpt is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, constrainedToTypeOpt), leftTruthOperator, loweredLeft); 779return BoundCall.Synthesized(syntax, receiverOpt: constrainedToTypeOpt is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, constrainedToTypeOpt), method, loweredLeft, loweredRight); 883return BoundCall.Synthesized(syntax, expression, UnsafeGetNullableMethod(syntax, expression.Type, SpecialMember.System_Nullable_T_GetValueOrDefault)); 911return BoundCall.Synthesized(syntax, expression, UnsafeGetNullableMethod(syntax, expression.Type, SpecialMember.System_Nullable_T_get_HasValue)); 1760BoundExpression callX_GetValueOrDefault = BoundCall.Synthesized(syntax, boundTempX, getValueOrDefaultX); 1762BoundExpression callY_GetValueOrDefault = BoundCall.Synthesized(syntax, boundTempY, getValueOrDefaultY); 1925return BoundCall.Synthesized(syntax, receiverOpt: null, method, loweredLeft, loweredRight); 1951: (BoundExpression)BoundCall.Synthesized(syntax, receiverOpt: null, method, loweredLeft, loweredRight); 1986return BoundCall.Synthesized(syntax, receiverOpt: null, method, loweredLeft, loweredRight);
Lowering\LocalRewriter\LocalRewriter_Call.cs (3)
136public override BoundNode VisitCall(BoundCall node) 189BoundCall? nodeOpt = null) 205BoundCall? node,
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (3)
687Debug.Assert(((BoundCall)originalLHS).Method.RefKind != RefKind.None); 899var call = (BoundCall)expression;
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (10)
939value = BoundCall.Synthesized(syntax, rewrittenOperand, get_Value); 1039BoundCall.Synthesized(syntax, boundTemp, getValueOrDefault), 1082return MakeLiftedUserDefinedConversionConsequence(BoundCall.Synthesized(syntax, receiverOpt: constrainedToTypeOpt is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, constrainedToTypeOpt), conversion.Method, nonNullValue), type); 1222BoundExpression result = BoundCall.Synthesized(syntax, receiverOpt: constrainedToTypeOpt is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, constrainedToTypeOpt), conversion.Method, rewrittenOperand); 1227private BoundExpression MakeLiftedUserDefinedConversionConsequence(BoundCall call, TypeSymbol resultType) 1289BoundCall callGetValueOrDefault = BoundCall.Synthesized(syntax, boundTemp, getValueOrDefault); 1294BoundCall userDefinedCall = BoundCall.Synthesized(syntax, receiverOpt: constrainedToTypeOpt is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, constrainedToTypeOpt), conversion.Method, callGetValueOrDefault); 1592return BoundCall.Synthesized(syntax, receiverOpt: null, method, operand);
Lowering\LocalRewriter\LocalRewriter_Event.cs (1)
247getOrCreateCall = BoundCall.Synthesized(
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.cs (2)
63var call = (BoundCall)expression;
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
348var getPinnableCall = getPinnableMethod.IsStatic ?
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (7)
161BoundCall.Synthesized( 381BoundExpression disposeCall = BoundCall.Synthesized(syntax: forEachSyntax, receiverOpt: boundDisposableVar, method: disposeMethod); 501return BoundCall.Synthesized(syntax, receiver, methodArgumentInfo.Method, arguments: ImmutableArray<BoundExpression>.Empty); 561BoundCall.Synthesized( 577BoundExpression arrayLength = BoundCall.Synthesized( 876BoundExpression currentDimensionUpperBound = BoundCall.Synthesized(forEachSyntax, boundArrayVar, getUpperBoundMethod, dimensionArgument); 931BoundExpression currentDimensionLowerBound = BoundCall.Synthesized(forEachSyntax, boundArrayVar, getLowerBoundMethod, dimensionArgument);
Lowering\LocalRewriter\LocalRewriter_IndexerAccess.cs (3)
501Debug.Assert(node.IndexerOrSliceAccess is BoundCall); 801var sliceCall = (BoundCall)node.IndexerOrSliceAccess;
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (3)
64exitCallExpr = BoundCall.Synthesized( 109BoundCall.Synthesized( 158enterCallExpr = BoundCall.Synthesized(
Lowering\LocalRewriter\LocalRewriter_NullCoalescingAssignmentOperator.cs (3)
103var tmp = _factory.StoreToTemp(BoundCall.Synthesized(leftOperand.Syntax, lhsRead, getValueOrDefault), 126var lhsReadHasValue = BoundCall.Synthesized(leftOperand.Syntax, lhsRead, hasValue);
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (4)
141return BoundCall.Synthesized(rewrittenLeft.Syntax, rewrittenLeft, getValueOrDefault); 188var boundCall = (BoundCall)expression; 249rewrittenLeft = BoundCall.Synthesized(rewrittenLeft.Syntax, rewrittenLeft, getValueOrDefault);
Lowering\LocalRewriter\LocalRewriter_ObjectCreationExpression.cs (1)
336var createInstanceCall = new BoundCall(
Lowering\LocalRewriter\LocalRewriter_PropertyAccess.cs (1)
95return BoundCall.Synthesized(
Lowering\LocalRewriter\LocalRewriter_StringConcat.cs (9)
159var boundCall = (BoundCall)lowered; 308return BoundCall.Synthesized(syntax, receiverOpt: null, method, loweredLeft, loweredRight); 320return BoundCall.Synthesized(syntax, receiverOpt: null, method, ImmutableArray.Create(loweredFirst, loweredSecond, loweredThird)); 333return BoundCall.Synthesized(syntax, receiverOpt: null, method, ImmutableArray.Create(loweredFirst, loweredSecond, loweredThird, loweredFourth)); 346return BoundCall.Synthesized(syntax, receiverOpt: null, method, array); 434return BoundCall.Synthesized(expr.Syntax, expr, structToStringMethod); 459return BoundCall.Synthesized(expr.Syntax, expr, objectToStringMethod); 487whenNotNull: BoundCall.Synthesized(
Lowering\LocalRewriter\LocalRewriter_StringInterpolation.cs (3)
77Debug.Assert(parts.All(static p => p is BoundCall or BoundDynamicInvocation)); 117if (part is BoundCall call) 376? BoundCall.Synthesized(syntax, result.HandlerTemp, toStringAndClear)
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (3)
164var call = factory.Call( 179var call = factory.Call( 193var call = factory.Call(
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (9)
116return BoundCall.Synthesized(syntax, receiverOpt: constrainedToTypeOpt is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, constrainedToTypeOpt), method, loweredOperand); 164return BoundCall.Synthesized(syntax, receiverOpt: null, method, loweredOperand); 205BoundExpression call_GetValueOrDefault = BoundCall.Synthesized(syntax, boundTemp, getValueOrDefault); 644return BoundCall.Synthesized(syntax, receiverOpt: node.ConstrainedToTypeOpt is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, node.ConstrainedToTypeOpt), node.MethodOpt, rewrittenArgument); 666BoundExpression call_GetValueOrDefault = BoundCall.Synthesized(syntax, boundTemp, getValueOrDefault); 669BoundExpression userDefinedCall = BoundCall.Synthesized(syntax, receiverOpt: node.ConstrainedToTypeOpt is null ? null : new BoundTypeExpression(syntax, aliasOpt: null, node.ConstrainedToTypeOpt), node.MethodOpt, call_GetValueOrDefault); 811return BoundCall.Synthesized(syntax, receiverOpt: null, method, operand); 826BoundExpression getValueCall = BoundCall.Synthesized(syntax, operand, getValueOrDefault); 828BoundExpression methodCall = BoundCall.Synthesized(syntax, receiverOpt: null, method, getValueCall);
Lowering\LocalRewriter\LocalRewriter_UsingStatement.cs (1)
364disposedExpression = BoundCall.Synthesized(resourceSyntax, local, getValueOrDefault);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
672var siteInvocation = _factory.Call(
Lowering\MethodToClassRewriter.cs (1)
229public override BoundNode VisitCall(BoundCall node)
Lowering\SpillSequenceSpiller.cs (1)
945public override BoundNode VisitCall(BoundCall node)
Lowering\StateMachineRewriter\MethodToStateMachineRewriter.cs (2)
599var call = (BoundCall)expr;
Lowering\SyntheticBoundNodeFactory.cs (8)
786public BoundCall Call(BoundExpression? receiver, MethodSymbol method) 791public BoundCall Call(BoundExpression? receiver, MethodSymbol method, BoundExpression arg0) 796public BoundCall Call(BoundExpression? receiver, MethodSymbol method, BoundExpression arg0, BoundExpression arg1) 801public BoundCall Call(BoundExpression? receiver, MethodSymbol method, params BoundExpression[] args) 806public BoundCall Call(BoundExpression? receiver, WellKnownMember method, BoundExpression arg0) 809public BoundCall Call(BoundExpression? receiver, MethodSymbol method, ImmutableArray<BoundExpression> args) 821public BoundCall Call(BoundExpression? receiver, MethodSymbol method, ImmutableArray<RefKind> refKinds, ImmutableArray<BoundExpression> args) 1672return BoundCall.Synthesized(syntax, expression, LocalRewriter.UnsafeGetNullableMethod(syntax, expression.Type, CodeAnalysis.SpecialMember.System_Nullable_T_get_HasValue, Compilation, Diagnostics));
Operations\CSharpOperationFactory.cs (4)
42return CreateBoundCallOperation((BoundCall)boundNode); 437private IOperation CreateBoundCallOperation(BoundCall boundCall) 2196case BoundCall call: 2333BoundCall { Method.Name: var name } => name,
Operations\CSharpOperationFactory_Methods.cs (2)
242var boundCall = (BoundCall)containingExpression;
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
74var retExpr = F.Call(
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
103var contractsEqual = F.Call(receiver: null, F.WellKnownMethod(WellKnownMember.System_Type__op_Equality),
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
165var basePrintCall = F.Call(receiver: F.Base(ContainingType.BaseTypeNoUseSiteDiagnostics), basePrintMethod, builder);
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (4)
291private static BoundCall CreateParameterlessCall(CSharpSyntaxNode syntax, BoundExpression receiver, MethodSymbol method) 344BoundCall userMainInvocation = new BoundCall( 477var initializeCall = CreateParameterlessCall(syntax, scriptLocal, initializer); 592var initializeResult = CreateParameterlessCall(
Symbols\Synthesized\SynthesizedInstanceConstructor.cs (1)
297var baseConstructorCall = Binder.GenerateBaseParameterlessConstructorInitializer(this, diagnostics);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (11)
Rewriters\LocalDeclarationRewriter.cs (2)
114var call = BoundCall.Synthesized(
Rewriters\MayHaveSideEffectsVisitor.cs (1)
42public override BoundNode VisitCall(BoundCall node)
Symbols\ExceptionLocalSymbol.cs (2)
29var call = BoundCall.Synthesized(syntax, receiverOpt: null, method: method);
Symbols\ObjectAddressLocalSymbol.cs (2)
38var call = BoundCall.Synthesized(
Symbols\ObjectIdLocalSymbol.cs (1)
91return BoundCall.Synthesized(
Symbols\PlaceholderLocalSymbol.cs (1)
166expr = BoundCall.Synthesized(
Symbols\ReturnValueLocalSymbol.cs (2)
35var call = BoundCall.Synthesized(