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