correspondingParameter property
The parameter element representing the parameter to which the value of this expression is bound.
Returns null if any of these conditions are false:
- this expression is an argument to an invocation
- the AST structure has been resolved
- the function being invoked is known based on static type information
- this expression corresponds to one of the parameters of the function being invoked
Implementation
@override
/// The parameter element representing the parameter to which the value of
/// this expression is bound.
///
/// Returns `null` if any of these conditions are false:
/// - this expression is an argument to an invocation
/// - the AST structure has been resolved
/// - the function being invoked is known based on static type information
/// - this expression corresponds to one of the parameters of the function
/// being invoked
FormalParameterElement? get correspondingParameter;