16 references to GetCapturedParameters
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder.ValueChecks.cs (1)
1433primaryConstructor.GetCapturedParameters().TryGetValue(parameterSymbol, out FieldSymbol backingField))
Binder\Binder_Expressions.cs (4)
493primaryConstructor.GetCapturedParameters().ContainsKey(parameter)) 1882Debug.Assert(!primaryConstructor.GetCapturedParameters().ContainsKey(shadowedParameter)); // How could we capture a shadowed parameter? 2170else if (primaryCtor.GetCapturedParameters().ContainsKey(parameter)) // check other references in the entire type 5139if (primaryConstructor.GetCapturedParameters().ContainsKey(parameter))
Binder\Binder_Operators.cs (1)
4273primaryConstructor.GetCapturedParameters().ContainsKey(parameterSymbol))
Compiler\MethodCompiler.cs (1)
1275IReadOnlyDictionary<ParameterSymbol, FieldSymbol> capturedParameters = primaryCtor.GetCapturedParameters();
FlowAnalysis\DefiniteAssignment.cs (2)
642primaryConstructor.GetCapturedParameters().ContainsKey(parameter))) // Primary constructor parameter captured by the type itself is not hoisted into a closure 1913!primaryCtor.GetCapturedParameters().ContainsKey(parameter))
FlowAnalysis\NullableWalker.cs (2)
2285primaryConstructor.GetCapturedParameters().TryGetValue(parameter, out FieldSymbol? field)) 11376parameter.ContainingSymbol is not SynthesizedPrimaryConstructor primaryConstructor || !primaryConstructor.GetCapturedParameters().ContainsKey(parameter):
Lowering\ClosureConversion\ClosureConversion.cs (1)
826primaryConstructor.GetCapturedParameters().Any());
Lowering\LocalRewriter\LocalRewriter.cs (1)
319primaryCtor.GetCapturedParameters().TryGetValue(node.ParameterSymbol, out var field))
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
646primaryCtor.GetCapturedParameters().ContainsKey(parameter);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
3194PrimaryConstructor is { } primaryConstructor && primaryConstructor.GetCapturedParameters().Any() &&
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
117IReadOnlyDictionary<ParameterSymbol, FieldSymbol> capturedParameters = GetCapturedParameters();