26 instantiations of BoundParameter
Microsoft.CodeAnalysis.CSharp (23)
Binder\Binder.WithQueryLambdaParametersBinder.cs (2)
50translation = new BoundParameter(node, value.Single()); 57translation = new BoundParameter(node, base.lambdaSymbol.Parameters[0]);
Binder\Binder_Expressions.cs (1)
1966return new BoundParameter(node, parameter, hasErrors: isError);
Binder\Binder_Initializers.cs (1)
133new BoundParameter(parameterSyntax,
Binder\Binder_Query.cs (3)
692var x1Expression = new BoundParameter(node, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true }; 693var x2Expression = new BoundParameter(node, lambdaSymbol.Parameters[1]) { WasCompilerGenerated = true }; 726var xExpression = new BoundParameter(let, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true };
Binder\Binder_Statements.cs (1)
3903BoundExpression argument = new BoundParameter(syntax, constructor.Parameters[0]);
Binder\Semantics\Conversions\Conversions.cs (1)
323analyzedArguments.Arguments.Add(new BoundParameter(syntax, parameter) { WasCompilerGenerated = true });
Compiler\MethodBodySynthesizer.cs (4)
91var submissionArrayReference = new BoundParameter(syntax, submissionConstructor.Parameters[0]) { WasCompilerGenerated = true }; 203new BoundParameter(syntax, parameter) { WasCompilerGenerated = true }, 292BoundParameter parameterAccess = new BoundParameter( 383BoundParameter boundParameter = new BoundParameter(syntax,
FlowAnalysis\NullableWalker.cs (3)
6720var parameterValue = new BoundParameter(argument.Syntax, parameter); 6760var parameterValue = new BoundParameter(argument.Syntax, parameter); 8931arguments.Add(new BoundExpressionWithNullability(syntax, new BoundParameter(syntax, parameter), parameterType.NullableAnnotation, parameterType.Type));
Generated\BoundNodes.xml.Generated.cs (1)
4551var result = new BoundParameter(this.Syntax, parameterSymbol, type, this.HasErrors);
Lowering\ClosureConversion\ClosureConversion.cs (3)
604return new BoundParameter(syntax, potentialParameter); 749value = new BoundParameter(syntax, parameterToUse); 809return new BoundParameter(node.Syntax, replacementParameter, node.HasErrors);
Lowering\SyntheticBoundNodeFactory.cs (1)
285return new BoundParameter(Syntax, p, p.Type) { WasCompilerGenerated = true };
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (2)
341var arguments = Parameters.SelectAsArray((p, s) => (BoundExpression)new BoundParameter(s, p, p.Type), _userMainReturnTypeSyntax); 560var submissionArrayParameter = new BoundParameter(syntax, _parameters[0]) { WasCompilerGenerated = true };
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (3)
CompilationContext.cs (1)
645var expression = new BoundParameter(syntax, parameter);
Symbols\DisplayClassInstance.cs (1)
112return new BoundParameter(syntax, this.Parameter) { WasCompilerGenerated = true };
Symbols\EEMethodSymbol.cs (1)
724return new BoundParameter(syntax, _thisParameter);
111 references to BoundParameter
Microsoft.CodeAnalysis.CSharp (110)
Binder\Binder.ValueChecks.cs (9)
663var parameter = (BoundParameter)expr; 911private bool CheckParameterValueKind(SyntaxNode node, BoundParameter parameter, BindValueKind valueKind, bool checkingReceiver, BindingDiagnosticBag diagnostics) 2960return GetParameterRefEscape(((BoundParameter)expr).ParameterSymbol); 3208var parameter = (BoundParameter)expr; 3505return GetParameterValEscape(((BoundParameter)expr).ParameterSymbol); 3913return CheckParameterValEscape(node, ((BoundParameter)expr).ParameterSymbol, escapeTo, diagnostics); 4630((BoundParameter)expression).ParameterSymbol.RefKind != RefKind.In;
Binder\Binder_Expressions.cs (3)
4287BoundParameter boundParameter; 4291case BoundParameter param: 4295case BoundConversion { Conversion.IsIdentity: true, Operand: BoundParameter param }:
Binder\Binder_Operators.cs (2)
2597BoundParameter parameterAccess = (BoundParameter)expr;
Binder\Binder_Query.cs (3)
692var x1Expression = new BoundParameter(node, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true }; 693var x2Expression = new BoundParameter(node, lambdaSymbol.Parameters[1]) { WasCompilerGenerated = true }; 726var xExpression = new BoundParameter(let, lambdaSymbol.Parameters[0]) { WasCompilerGenerated = true };
Binder\Binder_Symbols.cs (1)
1488if (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); 466private LocalDefinition EmitParameterAddress(BoundParameter parameter, AddressKind addressKind)
CodeGen\EmitExpression.cs (10)
144EmitParameterLoad((BoundParameter)expression); 1248return ((BoundParameter)receiver).ParameterSymbol.RefKind != RefKind.None; 1339private static int ParameterSlot(BoundParameter parameter) 1379private void EmitParameterLoad(BoundParameter parameter) 1997return ((BoundParameter)receiver).ParameterSymbol.RefKind != RefKind.None; 2540return ((BoundParameter)left).ParameterSymbol.RefKind == RefKind.None; 2581var left = (BoundParameter)assignmentTarget; 2888EmitParameterStore((BoundParameter)expression, assignment.IsRef); 3077private void EmitParameterStore(BoundParameter parameter, bool refAssign)
CodeGen\EmitStatement.cs (2)
1266var parameter = (BoundParameter)expression;
CodeGen\Optimizer.cs (1)
1040if (((BoundParameter)lhs).ParameterSymbol.RefKind != RefKind.None)
Compiler\MethodBodySynthesizer.cs (3)
91var submissionArrayReference = new BoundParameter(syntax, submissionConstructor.Parameters[0]) { WasCompilerGenerated = true }; 292BoundParameter parameterAccess = new BoundParameter( 383BoundParameter boundParameter = new BoundParameter(syntax,
FlowAnalysis\AbstractFlowPass.cs (3)
558VisitLvalueParameter((BoundParameter)node); 1911public override BoundNode VisitParameter(BoundParameter node) 1916protected virtual void VisitLvalueParameter(BoundParameter node)
FlowAnalysis\DataFlowsOutWalker.cs (2)
156return ((BoundParameter)node).ParameterSymbol; 241case BoundKind.Parameter: return ((BoundParameter)node).ParameterSymbol;
FlowAnalysis\DefiniteAssignment.cs (9)
812NoteRead(((BoundParameter)n).ParameterSymbol); 984NoteWrite(((BoundParameter)n).ParameterSymbol, value, read); 1390var parameter = ((BoundParameter)node); 1436return ((BoundParameter)expression).ParameterSymbol; 1517var paramExpr = (BoundParameter)node; 2311public override BoundNode VisitParameter(BoundParameter node) 2436CheckAssigned(((BoundParameter)expr).ParameterSymbol, node);
FlowAnalysis\LocalDataFlowPass.cs (1)
216return GetOrCreateSlot(((BoundParameter)node).ParameterSymbol);
FlowAnalysis\NullableWalker.cs (5)
6720var parameterValue = new BoundParameter(argument.Syntax, parameter); 6760var parameterValue = new BoundParameter(argument.Syntax, parameter); 9024public override BoundNode? VisitParameter(BoundParameter node) 9153BoundParameter { ParameterSymbol: ParameterSymbol parameter } 9205RefKind kind = ((BoundParameter)expr).ParameterSymbol.RefKind;
FlowAnalysis\ReadWriteWalker.cs (2)
196readOrWritten.Add(((BoundParameter)receiver).ParameterSymbol); 274return ((BoundParameter)underlying).ParameterSymbol;
Generated\BoundNodes.xml.Generated.cs (10)
4547public BoundParameter Update(ParameterSymbol parameterSymbol, TypeSymbol type) 4551var result = new BoundParameter(this.Syntax, parameterSymbol, type, this.HasErrors); 8749return VisitParameter((BoundParameter)node, arg); 9087public virtual R VisitParameter(BoundParameter node, A arg) => this.DefaultVisit(node, arg); 9315public virtual BoundNode? VisitParameter(BoundParameter node) => this.DefaultVisit(node); 9883public override BoundNode? VisitParameter(BoundParameter node) => null; 11092public override BoundNode? VisitParameter(BoundParameter node) 13129public override BoundNode? VisitParameter(BoundParameter node) 13132BoundParameter updatedNode; 15455public 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)
462public override BoundNode VisitParameter(BoundParameter node)
Lowering\ClosureConversion\ClosureConversion.cs (1)
804protected override BoundNode VisitUnhoistedParameter(BoundParameter node)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
229return VisitParameter((BoundParameter)node); 991private BoundExpression VisitParameter(BoundParameter node)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
176public override BoundNode VisitParameter(BoundParameter node)
Lowering\DiagnosticsPass_Warnings.cs (4)
218var param1 = (BoundParameter)expr1; 219var param2 = (BoundParameter)expr2;
Lowering\Instrumentation\Instrumenter.cs (1)
221Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (4)
360Debug.Assert(original.Left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter); 373else if (original.Right is BoundParameter rightParameter) 421if (node is BoundParameter { ParameterSymbol: var parameterSymbol }) 457var addressOf = value is BoundLocal or BoundParameter ?
Lowering\LocalRewriter\LocalRewriter.cs (1)
274public override BoundNode? VisitParameter(BoundParameter node)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
390return expression is BoundParameter { ParameterSymbol: { ContainingSymbol: SynthesizedPrimaryConstructor primaryCtor } parameter } &&
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
839return localsMayBeAssignedOrCaptured || ((BoundParameter)expression).ParameterSymbol.RefKind != RefKind.None;
Lowering\LocalRewriter\LocalRewriter_DeconstructionAssignmentOperator.cs (1)
171case BoundParameter { ParameterSymbol: { RefKind: RefKind.None } parameterSymbol }:
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
489return ((BoundParameter)expression).ParameterSymbol.RefKind != RefKind.None;
Lowering\MethodToClassRewriter.cs (2)
379public sealed override BoundNode VisitParameter(BoundParameter node) 390protected virtual BoundNode VisitUnhoistedParameter(BoundParameter node)
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (5)
213case BoundParameter { ParameterSymbol: var symbol }: 247protected override void VisitLvalueParameter(BoundParameter node) 253public override BoundNode VisitParameter(BoundParameter node) 259private void TryHoistTopLevelParameter(BoundParameter node) 390public override BoundNode VisitParameter(BoundParameter node)
Lowering\SyntheticBoundNodeFactory.cs (2)
283public BoundParameter Parameter(ParameterSymbol p) 451return (InstrumentationState?.IsSuppressed == false && left is BoundLocal { LocalSymbol.SynthesizedKind: SynthesizedLocalKind.UserDefined } or BoundParameter) ?
Operations\CSharpOperationFactory.cs (2)
56return CreateBoundParameterOperation((BoundParameter)boundNode); 662private IParameterReferenceOperation CreateBoundParameterOperation(BoundParameter boundParameter)
Symbols\Synthesized\Records\SynthesizedRecordCopyCtor.cs (1)
50var 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)
58var other = F.Parameter(Parameters[0]);
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
56var paramAccess = F.Parameter(Parameters[0]);
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (2)
132BoundParameter builder = F.Parameter(this.Parameters[0]); 236static BoundStatement makeAppendString(SyntheticBoundNodeFactory F, BoundParameter builder, string value)
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
560var submissionArrayParameter = new BoundParameter(syntax, _parameters[0]) { WasCompilerGenerated = true };
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
CompilationContext.cs (1)
645var expression = new BoundParameter(syntax, parameter);