remove_leading_comment
Deletes the comment block directly above a specified symbol in code files, stopping at blank lines or non-comment content. Use to remove outdated or incorrect documentation without affecting code structure.
Instructions
Remove the contiguous block of comment lines immediately above a named symbol. Stops at the first blank line or non-comment line.
Use this when: You want to delete an outdated or wrong comment above a symbol.
Don't use this when: You want to update the comment text -> use
replace_leading_comment.
Example: target="LRUCache.get"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | ||
| target | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |