remove_parameter
Remove a named parameter from a function signature while keeping the body intact and adjusting language-specific syntax. Use it to drop one parameter without retyping the signature.
Instructions
Remove a parameter by name from a function's signature, keeping the
body. A parameter on a line of its own goes with that line and its
comment. Removing the only one leaves (), or (void) in C. In Python
a * or / left invalid goes too, and a *args with keyword-only
parameters after it leaves a bare * (def f(a, *args, b) minus args
is def f(a, *, b)). One Go name of a, b int, or one name that a
destructuring parameter binds, goes alone. Refused: a name the function
lacks, and in C the last named parameter before ....
Use this when: dropping one parameter without retyping the signature. Don't use this when: rewriting the signature (replace_signature).
Example: target="LRUCache.get" parameter_name="default"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | Yes | Function or method name as list_symbols lists it, dotted for nesting ('LRUCache.get'); overloads take parameter types ('A.m(int)'). | |
| file_path | Yes | Absolute path to the source or config file. | |
| parameter_name | Yes | Bare name of the parameter (e.g. 'default'), without its type or default value. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |