2 writes to ParameterSymbol
Microsoft.CodeAnalysis.CSharp (2)
Generated\BoundNodes.xml.Generated.cs (2)
4640
this.
ParameterSymbol
= parameterSymbol;
4650
this.
ParameterSymbol
= parameterSymbol;
65 references to ParameterSymbol
Microsoft.CodeAnalysis.CSharp (65)
Binder\Binder.ValueChecks.cs (6)
1115
ParameterSymbol parameterSymbol = parameter.
ParameterSymbol
;
3369
return GetParameterRefEscape(((BoundParameter)expr).
ParameterSymbol
);
3690
return CheckParameterRefEscape(node, parameter, parameter.
ParameterSymbol
, escapeTo, checkingReceiver, diagnostics);
4059
return GetParameterValEscape(((BoundParameter)expr).
ParameterSymbol
);
4751
return CheckParameterValEscape(node, ((BoundParameter)expr).
ParameterSymbol
, escapeTo, diagnostics);
5738
((BoundParameter)expression).
ParameterSymbol
.RefKind is not (RefKind.In or RefKind.RefReadOnlyParameter);
Binder\Binder_Expressions.cs (1)
5094
if (boundParameter.
ParameterSymbol
is { } parameter &&
Binder\Binder_Operators.cs (1)
2641
ParameterSymbol parameterSymbol = parameterAccess.
ParameterSymbol
;
Binder\Binder_Symbols.cs (1)
1490
if (colorColorValueReceiver is BoundParameter {
ParameterSymbol
: { ContainingSymbol: SynthesizedPrimaryConstructor primaryConstructor } parameter } &&
Binder\LockOrUsingBinder.cs (1)
65
lockedOrDisposedVariables = lockedOrDisposedVariables.Add(((BoundParameter)expression).
ParameterSymbol
);
BoundTree\BoundExpression.cs (1)
398
get { return this.
ParameterSymbol
; }
BoundTree\BoundExpressionExtensions.cs (1)
28
return ((BoundParameter)node).
ParameterSymbol
.RefKind;
CodeGen\EmitAddress.cs (1)
473
ParameterSymbol parameterSymbol = parameter.
ParameterSymbol
;
CodeGen\EmitExpression.cs (9)
1288
return ((BoundParameter)receiver).
ParameterSymbol
.RefKind != RefKind.None;
1381
var sym = parameter.
ParameterSymbol
;
1424
if (parameter.
ParameterSymbol
.RefKind != RefKind.None)
1426
var parameterType = parameter.
ParameterSymbol
.Type;
2217
return ((BoundParameter)receiver).
ParameterSymbol
.RefKind != RefKind.None;
2757
return ((BoundParameter)left).
ParameterSymbol
.RefKind == RefKind.None;
2800
if (left.
ParameterSymbol
.RefKind != RefKind.None &&
3297
if (parameter.
ParameterSymbol
.RefKind != RefKind.None && !refAssign)
3301
EmitIndirectStore(parameter.
ParameterSymbol
.Type, parameter.Syntax);
CodeGen\EmitStatement.cs (1)
1292
if (parameter.
ParameterSymbol
.RefKind == RefKind.None)
CodeGen\Optimizer.cs (1)
1041
if (((BoundParameter)lhs).
ParameterSymbol
.RefKind != RefKind.None)
FlowAnalysis\DataFlowsOutWalker.cs (2)
156
return ((BoundParameter)node).
ParameterSymbol
;
241
case BoundKind.Parameter: return ((BoundParameter)node).
ParameterSymbol
;
FlowAnalysis\DefiniteAssignment.cs (8)
833
NoteRead(((BoundParameter)n).
ParameterSymbol
);
1020
NoteWrite(((BoundParameter)n).
ParameterSymbol
, value, read: read, isRef: isRef);
1458
unassignedSlot = GetOrCreateSlot(parameter.
ParameterSymbol
);
1503
return ((BoundParameter)expression).
ParameterSymbol
;
1619
var param = paramExpr.
ParameterSymbol
;
2479
CheckAssigned(node.
ParameterSymbol
, node.Syntax);
2483
NotePrimaryConstructorParameterReadIfNeeded(node.
ParameterSymbol
);
2600
CheckAssigned(((BoundParameter)expr).
ParameterSymbol
, node);
FlowAnalysis\LocalDataFlowPass.cs (1)
221
return GetOrCreateSlot(((BoundParameter)node).
ParameterSymbol
);
FlowAnalysis\NullableWalker.cs (3)
9923
var parameter = node.
ParameterSymbol
;
10038
BoundParameter {
ParameterSymbol
: ParameterSymbol parameter }
10088
case BoundParameter {
ParameterSymbol
: { RefKind: RefKind.None } parameter } when
FlowAnalysis\ReadWriteWalker.cs (2)
206
readOrWritten.Add(((BoundParameter)receiver).
ParameterSymbol
);
302
return ((BoundParameter)underlying).
ParameterSymbol
;
Generated\BoundNodes.xml.Generated.cs (4)
4661
if (!Symbols.SymbolEqualityComparer.ConsiderEverything.Equals(parameterSymbol, this.
ParameterSymbol
) || !TypeSymbol.Equals(type, this.Type, TypeCompareKind.ConsiderEverything))
11491
return node.Update(node.
ParameterSymbol
, type);
13599
ParameterSymbol parameterSymbol = GetUpdatedSymbol(node, node.
ParameterSymbol
);
16018
new TreeDumperNode("parameterSymbol", node.
ParameterSymbol
, null),
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
483
AddIfCaptured(node.
ParameterSymbol
, node.Syntax);
Lowering\ClosureConversion\ClosureConversion.cs (1)
822
if (_parameterMap.TryGetValue(node.
ParameterSymbol
, out replacementParameter))
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
1084
return _parameterMap[node.
ParameterSymbol
];
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
189
CheckReferenceToVariable(node, node.
ParameterSymbol
);
Lowering\DiagnosticsPass_Warnings.cs (2)
220
return param1.
ParameterSymbol
== param2.
ParameterSymbol
;
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
374
refAssignmentSourceIndex = _factory.ParameterId(rightParameter.
ParameterSymbol
);
419
if (node is BoundParameter {
ParameterSymbol
: var parameterSymbol })
Lowering\LocalRewriter\LocalRewriter.cs (2)
314
if (node.
ParameterSymbol
.ContainingSymbol is SynthesizedPrimaryConstructor primaryCtor &&
315
primaryCtor.GetCapturedParameters().TryGetValue(node.
ParameterSymbol
, out var field))
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
624
return 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)
171
case BoundParameter {
ParameterSymbol
: { RefKind: RefKind.None } parameterSymbol }:
Lowering\LocalRewriter\LocalRewriter_NullCoalescingOperator.cs (1)
146
if (unwrappedRight is { ConstantValueOpt: not null } or BoundLocal { LocalSymbol.IsRef: false } or BoundParameter {
ParameterSymbol
.RefKind: RefKind.None } &&
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
493
return ((BoundParameter)expression).
ParameterSymbol
.RefKind != RefKind.None;
Lowering\MethodToClassRewriter.cs (1)
390
if (TryReplaceWithProxy(node.
ParameterSymbol
, node.Syntax, out BoundNode? replacement))
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (4)
239
case BoundParameter {
ParameterSymbol
: var symbol }:
287
if (node.
ParameterSymbol
.ContainingSymbol == topLevelMethod)
289
CaptureVariable(node.
ParameterSymbol
, node.Syntax);
418
Capture(node.
ParameterSymbol
, node.Syntax);
Operations\CSharpOperationFactory.cs (1)
667
IParameterSymbol parameter = boundParameter.
ParameterSymbol
.GetPublicSymbol();