14 references to GetCapturedParameters
Microsoft.CodeAnalysis.CSharp (14)
Binder\Binder.ValueChecks.cs (1)
1166primaryConstructor.GetCapturedParameters().TryGetValue(parameterSymbol, out FieldSymbol backingField))
Binder\Binder_Expressions.cs (3)
1814Debug.Assert(!primaryConstructor.GetCapturedParameters().ContainsKey(shadowedParameter)); // How could we capture a shadowed parameter? 2192else if (primaryCtor.GetCapturedParameters().ContainsKey(parameter)) // check other references in the entire type 5049if (primaryConstructor.GetCapturedParameters().ContainsKey(parameter))
Binder\Binder_Operators.cs (1)
2655primaryConstructor.GetCapturedParameters().ContainsKey(parameterSymbol))
Compiler\MethodCompiler.cs (1)
1253IReadOnlyDictionary<ParameterSymbol, FieldSymbol> capturedParameters = primaryCtor.GetCapturedParameters();
FlowAnalysis\DefiniteAssignment.cs (2)
705primaryConstructor.GetCapturedParameters().ContainsKey(parameter))) // Primary constructor parameter captured by the type itself is not hoisted into a closure 1975!primaryCtor.GetCapturedParameters().ContainsKey(parameter))
FlowAnalysis\NullableWalker.cs (2)
2209primaryConstructor.GetCapturedParameters().TryGetValue(parameter, out FieldSymbol? field)) 10269parameter.ContainingSymbol is not SynthesizedPrimaryConstructor primaryConstructor || !primaryConstructor.GetCapturedParameters().ContainsKey(parameter):
Lowering\ClosureConversion\ClosureConversion.cs (1)
811primaryConstructor.GetCapturedParameters().Any());
Lowering\LocalRewriter\LocalRewriter.cs (1)
315primaryCtor.GetCapturedParameters().TryGetValue(node.ParameterSymbol, out var field))
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
626primaryCtor.GetCapturedParameters().ContainsKey(parameter);
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
113IReadOnlyDictionary<ParameterSymbol, FieldSymbol> capturedParameters = GetCapturedParameters();