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
@@ -58,8 +58,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.9.0' "$TMP/out.txt"; then
echo "WARN: version not 0.9.0"
if ! grep -qE '0\.(9|10)\.0' "$TMP/out.txt"; then
echo "WARN: unexpected bux-lsp version"
fi
# prepare should return method (Point.Len or Len)