17 instantiations of BoundParameter
Microsoft.CodeAnalysis.CSharp (17)
Binder\Binder_Query.cs (2)
693var x1Expression = new BoundParameter(node, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true }; 694var x2Expression = new BoundParameter(node, lambdaSymbol.Parameters[1]) { WasCompilerGenerated = true };
Binder\Binder_Statements.cs (1)
3997BoundExpression argument = new BoundParameter(syntax, constructor.Parameters[0]);
Binder\Semantics\Conversions\Conversions.cs (1)
422analyzedArguments.Arguments.Add(new BoundParameter(syntax, parameter) { WasCompilerGenerated = true });
Compiler\MethodBodySynthesizer.cs (4)
92var submissionArrayReference = new BoundParameter(syntax, submissionConstructor.Parameters[0]) { WasCompilerGenerated = true }; 204new BoundParameter(syntax, parameter) { WasCompilerGenerated = true }, 294BoundParameter parameterAccess = new BoundParameter( 386BoundParameter boundParameter = new BoundParameter(syntax,
FlowAnalysis\NullableWalker.cs (3)
7517var parameterValue = new BoundParameter(argument.Syntax, parameter); 7557var parameterValue = new BoundParameter(argument.Syntax, parameter); 9831arguments.Add(new BoundExpressionWithNullability(syntax, new BoundParameter(syntax, parameter), parameterType.NullableAnnotation, parameterType.Type));
Generated\BoundNodes.xml.Generated.cs (1)
4662var result = new BoundParameter(this.Syntax, parameterSymbol, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (3)
612return new BoundParameter(syntax, potentialParameter); 760value = new BoundParameter(syntax, parameterToUse); 824return new BoundParameter(node.Syntax, replacementParameter, node.HasErrors);
Lowering\SyntheticBoundNodeFactory.cs (1)
238return new BoundParameter(Syntax, p, p.Type) { WasCompilerGenerated = true };
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
573var submissionArrayParameter = new BoundParameter(syntax, _parameters[0]) { WasCompilerGenerated = true };
117 references to BoundParameter
Microsoft.CodeAnalysis.CSharp (117)
Binder\Binder.ValueChecks.cs (9)
833var parameter = (BoundParameter)expr; 1132private bool CheckParameterValueKind(SyntaxNode node, BoundParameter parameter, BindValueKind valueKind, bool checkingReceiver, BindingDiagnosticBag diagnostics) 3392return GetParameterRefEscape(((BoundParameter)expr).ParameterSymbol); 3712var parameter = (BoundParameter)expr; 4082return GetParameterValEscape(((BoundParameter)expr).ParameterSymbol); 4775return CheckParameterValEscape(node, ((BoundParameter)expr).ParameterSymbol, escapeTo, diagnostics); 5762((BoundParameter)expression).ParameterSymbol.RefKind is not (RefKind.In or RefKind.RefReadOnlyParameter);
Binder\Binder_Expressions.cs (3)
5078BoundParameter boundParameter; 5082case BoundParameter param: 5086case BoundConversion { Conversion.IsIdentity: true, Operand: BoundParameter param }:
Binder\Binder_Operators.cs (2)
2640BoundParameter parameterAccess = (BoundParameter)expr;
Binder\Binder_Query.cs (3)
693var x1Expression = new BoundParameter(node, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true }; 694var x2Expression = new BoundParameter(node, lambdaSymbol.Parameters[1]) { WasCompilerGenerated = true }; 727var xExpression = new BoundParameter(let, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true };
Binder\Binder_Symbols.cs (1)
1490if (colorColorValueReceiver is BoundParameter { ParameterSymbol: { ContainingSymbol: SynthesizedPrimaryConstructor primaryConstructor } parameter } &&
Binder\LockOrUsingBinder.cs (1)
65lockedOrDisposedVariables = lockedOrDisposedVariables.Add(((BoundParameter)expression).ParameterSymbol);
BoundTree\BoundExpressionExtensions.cs (1)
28return ((BoundParameter)node).ParameterSymbol.RefKind;
BoundTree\BoundTreeVisitors.cs (1)
104return VisitParameter(node as BoundParameter, arg);
CodeGen\EmitAddress.cs (2)
52return EmitParameterAddress((BoundParameter)expression, addressKind); 471private LocalDefinition EmitParameterAddress(BoundParameter parameter, AddressKind addressKind)
CodeGen\EmitExpression.cs (10)
145EmitParameterLoad((BoundParameter)expression); 1288return ((BoundParameter)receiver).ParameterSymbol.RefKind != RefKind.None; 1379private static int ParameterSlot(BoundParameter parameter) 1419private void EmitParameterLoad(BoundParameter parameter) 2217return ((BoundParameter)receiver).ParameterSymbol.RefKind != RefKind.None; 2757return ((BoundParameter)left).ParameterSymbol.RefKind == RefKind.None; 2799var left = (BoundParameter)assignmentTarget; 3106EmitParameterStore((BoundParameter)expression, assignment.IsRef); 3295private void EmitParameterStore(BoundParameter parameter, bool refAssign)
CodeGen\EmitStatement.cs (2)
1291var parameter = (BoundParameter)expression;
CodeGen\Optimizer.cs (1)
1041if (((BoundParameter)lhs).ParameterSymbol.RefKind != RefKind.None)
Compiler\MethodBodySynthesizer.cs (3)
92var submissionArrayReference = new BoundParameter(syntax, submissionConstructor.Parameters[0]) { WasCompilerGenerated = true }; 294BoundParameter parameterAccess = new BoundParameter( 386BoundParameter boundParameter = new BoundParameter(syntax,
FlowAnalysis\AbstractFlowPass.cs (3)
557VisitLvalueParameter((BoundParameter)node); 2052public override BoundNode VisitParameter(BoundParameter node) 2057protected virtual void VisitLvalueParameter(BoundParameter node)
FlowAnalysis\DataFlowsOutWalker.cs (2)
156return ((BoundParameter)node).ParameterSymbol; 241case BoundKind.Parameter: return ((BoundParameter)node).ParameterSymbol;
FlowAnalysis\DefiniteAssignment.cs (9)
833NoteRead(((BoundParameter)n).ParameterSymbol); 1020NoteWrite(((BoundParameter)n).ParameterSymbol, value, read: read, isRef: isRef); 1457var parameter = ((BoundParameter)node); 1503return ((BoundParameter)expression).ParameterSymbol; 1618var paramExpr = (BoundParameter)node; 2475public override BoundNode VisitParameter(BoundParameter node) 2600CheckAssigned(((BoundParameter)expr).ParameterSymbol, node);
FlowAnalysis\LocalDataFlowPass.cs (1)
221return GetOrCreateSlot(((BoundParameter)node).ParameterSymbol);
FlowAnalysis\NullableWalker.cs (5)
7517var parameterValue = new BoundParameter(argument.Syntax, parameter); 7557var parameterValue = new BoundParameter(argument.Syntax, parameter); 9924public override BoundNode? VisitParameter(BoundParameter node) 10041BoundParameter { ParameterSymbol: ParameterSymbol parameter } 10091case BoundParameter { ParameterSymbol: { RefKind: RefKind.None } parameter } when
FlowAnalysis\ReadWriteWalker.cs (2)
206readOrWritten.Add(((BoundParameter)receiver).ParameterSymbol); 302return ((BoundParameter)underlying).ParameterSymbol;
Generated\BoundNodes.xml.Generated.cs (10)
4658public BoundParameter Update(ParameterSymbol parameterSymbol, TypeSymbol type) 4662var result = new BoundParameter(this.Syntax, parameterSymbol, type, this.HasErrors); 9073return VisitParameter((BoundParameter)node, arg); 9424public virtual R VisitParameter(BoundParameter node, A arg) => this.DefaultVisit(node, arg); 9660public virtual BoundNode? VisitParameter(BoundParameter node) => this.DefaultVisit(node); 10240public override BoundNode? VisitParameter(BoundParameter node) => null; 11487public override BoundNode? VisitParameter(BoundParameter node) 13596public override BoundNode? VisitParameter(BoundParameter node) 13599BoundParameter updatedNode; 16015public override TreeDumperNode VisitParameter(BoundParameter node, object? arg) => new TreeDumperNode("parameter", null, new TreeDumperNode[]
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
232BoundParameter tokenParameter = F.Parameter(getEnumeratorMethod.Parameters[0]);
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
481public override BoundNode VisitParameter(BoundParameter node)
Lowering\ClosureConversion\ClosureConversion.cs (1)
819protected override BoundNode VisitUnhoistedParameter(BoundParameter node)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
227return VisitParameter((BoundParameter)node); 1082private BoundExpression VisitParameter(BoundParameter node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
187public override BoundNode VisitParameter(BoundParameter node)
Lowering\DiagnosticsPass_Warnings.cs (4)
218var param1 = (BoundParameter)expr1; 219var param2 = (BoundParameter)expr2;
Lowering\Instrumentation\Instrumenter.cs (1)
222Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (4)
358Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter); 371else if (original.Right is BoundParameter rightParameter) 419if (node is BoundParameter { ParameterSymbol: var parameterSymbol }) 455var addressOf = value is BoundLocal or BoundParameter ?
Lowering\LocalRewriter\LocalRewriter.cs (1)
312public override BoundNode? VisitParameter(BoundParameter node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
624return expression is BoundParameter { ParameterSymbol: { ContainingSymbol: SynthesizedPrimaryConstructor primaryCtor } parameter } &&
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
854((BoundParameter)expression).ParameterSymbol.RefKind != RefKind.None ||
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
171case BoundParameter { ParameterSymbol: { RefKind: RefKind.None } parameterSymbol }:
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
146if (unwrappedRight is { ConstantValueOpt: not null } or BoundLocal { LocalSymbol.IsRef: false } or BoundParameter { ParameterSymbol.RefKind: RefKind.None } &&
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
493return ((BoundParameter)expression).ParameterSymbol.RefKind != RefKind.None;
Lowering\MethodToClassRewriter.cs (2)
388public sealed override BoundNode VisitParameter(BoundParameter node) 399protected virtual BoundNode VisitUnhoistedParameter(BoundParameter node)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (5)
239case BoundParameter { ParameterSymbol: var symbol }: 273protected override void VisitLvalueParameter(BoundParameter node) 279public override BoundNode VisitParameter(BoundParameter node) 285private void TryHoistTopLevelParameter(BoundParameter node) 416public override BoundNode VisitParameter(BoundParameter node)
Lowering\SyntheticBoundNodeFactory.cs (2)
236public BoundParameter Parameter(ParameterSymbol p) 438return (InstrumentationState?.IsSuppressed == false && left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter) ?
Operations\CSharpOperationFactory.cs (2)
56return CreateBoundParameterOperation((BoundParameter)boundNode); 665private IParameterReferenceOperation CreateBoundParameterOperation(BoundParameter boundParameter)
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (6)
560var parameterReference = f.Parameter(method.Parameters[0]); 596var parameterReference0 = f.Parameter(method.Parameters[0]); 597var parameterReference1 = f.Parameter(method.Parameters[1]); 653var parameterReference = f.Parameter(method.Parameters[0]); 687var parameterReference = f.Parameter(method.Parameters[0]); 736SyntheticBoundNodeFactory f, BoundFieldAccess fieldReference, BoundParameter parameterReference)
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
49var param = F.Parameter(Parameters[0]);
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (2)
61var left = F.Parameter(Parameters[0]); 62var right = F.Parameter(Parameters[1]);
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
52var other = F.Parameter(Parameters[0]);
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
54var paramAccess = F.Parameter(Parameters[0]);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
131BoundParameter builder = F.Parameter(this.Parameters[0]); 236static BoundStatement makeAppendString(SyntheticBoundNodeFactory F, BoundParameter builder, string value)
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
573var submissionArrayParameter = new BoundParameter(syntax, _parameters[0]) { WasCompilerGenerated = true };