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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user