on-internet
← Community

[分享创造] ast-bro v4.6.0 给 AI 编码 agent 用的代码导航工具,elixir 有调用图了

V2EX ·

ast-bro 是给 AI 编码 agent 用的代码导航 CLI 和 MCP server,这次给 elixir 补上了调用图,还有依赖图和测试 elixir 从 4.4.0 起就能出大纲了,但一直没有调用图,现在 callers, callees, trace, impact 和 context 都能用了,调用按模块解析,跟 elixir 自己的规则一样,alias, import 的 only 和 except, 远程调用, 管道, capture 和 defdelegate 都算,还会看参数个数,fmt/1 的调用不会落到 fmt/2 上,deps, reverse-deps 和 cycles 也会读 alias, import, require 和 use exunit 测试现在会出现在大纲里,名字跟 exunit 起的一样,比如 test group inner,测试也算调用者,所以 callers --tests 和 impact --mode tests 能找到它们,在 ash_sqlite 上,一个迁移函数在测试里的调用者从 0 个变成了 34 个,写在模块顶层 if 里的函数,比如 if code.ensure_loaded?(jason),现在也能在大纲里看到 elixir 这部分全是 danielluning 写的,分了四个 pr,还拿 elixir 编译器

Comments

Sign in or sign up to comment and upvote.

No comments yet.