writeParameterMatchingArgument abstract method
void
writeParameterMatchingArgument(
- Expression argument,
- int index,
- Set<
String> usedNames, { - @Deprecated(_deprecationMessageMethodBeingCopied) ExecutableElement? methodBeingCopied,
- List<
TypeParameterElement> ? typeParametersInScope,
Writes the code for a parameter that would match the given argument.
The name of the parameter will be generated based on the type of the
argument, but if the argument type is not known the index will be used
to compose a name. In any case, the set of usedNames will be used to
ensure that the name is unique (and the chosen name will be added to the
set).
If typeParametersInScope is provided, then it will be used to resolve
what are the valid type parameters to use.
Implementation
void writeParameterMatchingArgument(
Expression argument,
int index,
Set<String> usedNames, {
@Deprecated(_deprecationMessageMethodBeingCopied)
ExecutableElement? methodBeingCopied,
List<TypeParameterElement>? typeParametersInScope,
});