feat(lsp): method, type, and self-receiver rename (0.10)

Add rtkMethod so .Method( call sites rename with the method decl, improve
type renames across extend/annotations, and clip self to the enclosing
method body.

- Len→Length includes self.Len(); Point→Vec2 hits extend + types
- self→this stays within one method (textual func bounds)
- smoke_lsp_rename_method + test-lsp wiring
This commit is contained in:
2026-07-19 23:27:21 +03:00
parent 8f645ad68b
commit 00195e2d98
6 changed files with 320 additions and 58 deletions
+2 -2
View File
@@ -53,8 +53,8 @@ URI="file://$TMP/Main.bux"
rpc '{"jsonrpc":"2.0","method":"exit","params":null}'
} | "$LSP" 2>/dev/null | tr '\r' '\n' > "$TMP/out.txt"
if ! grep -q '0.7.0' "$TMP/out.txt"; then
echo "WARN: version not 0.7.0"
if ! grep -qE '0\.(7|8|9|10)\.0' "$TMP/out.txt"; then
echo "WARN: unexpected bux-lsp version"
fi
# Field rename x → px: expect ≥3 (decl, init x:, access p.x)