feat(lsp): method call hierarchy for extend Type / .Method (0.9)

Index methods inside extend/impl blocks and include .Method( call sites
in the call graph so IDEs can navigate receiver methods.

- analyzeFile: track extend/impl brace scope; kind=method + container
- Call hierarchy treats methods as callables; display Type.Method
- smoke_lsp_method_hierarchy (Scale→Len, Main→Scale)
This commit is contained in:
2026-07-19 23:22:13 +03:00
parent 5de8d8912d
commit 8f645ad68b
5 changed files with 202 additions and 38 deletions
+2 -2
View File
@@ -57,8 +57,8 @@ if ! grep -q 'callHierarchyProvider' "$TMP/out.txt"; then
cat "$TMP/out.txt"
exit 1
fi
if ! grep -q '0.8.0' "$TMP/out.txt"; then
echo "WARN: version not 0.8.0"
if ! grep -qE '0\.[89]\.0' "$TMP/out.txt"; then
echo "WARN: unexpected bux-lsp version"
fi
# prepare should mention Add