find_field_writes
Find all locations in Java source code where a field value is mutated, including assignments and increments. Useful for tracking state changes in data flow analysis.
Instructions
Find all write accesses (mutations) to a field.
USAGE: Position cursor on a field declaration or reference OUTPUT: List of locations where the field is modified
IMPORTANT: Uses ZERO-BASED coordinates.
Unlike find_references which returns all usages, this returns only locations where the field value is changed (assignments, increments, etc). Useful for data flow analysis and understanding state mutations.
Requires load_project to be called first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxResults | No | Max write locations to return (default 100) | |
| filePath | Yes | Path to source file | |
| column | Yes | Zero-based column number | |
| line | Yes | Zero-based line number |