phodal / chapi

CHAPI (Common Hierarchical Abstract Parser and Information Converter) streamlines code analysis by converting diverse language source code into a unified abstract model, simplifying cross-language development. Chapi 是一个通用层次抽象解析器与信息转换器,它可以将不同编程语言的源代码转换为统一的层次抽象模型。
https://chapi.phodal.com/
Mozilla Public License 2.0
270 stars 44 forks source link

能不能把函数内有哪些变量也分析出来 #1

Closed jtong closed 4 years ago

jtong commented 4 years ago

这样的话,就可以通过查字典的方法分析命名是否考虑了可读性。

phodal commented 4 years ago

这些变量在代码中存在的 https://github.com/phodal/chapi/blob/master/chapi-ast-java/src/main/kotlin/chapi/ast/javaast/JavaFullIdentListener.kt#L578 ,只是没有存储到 CodeFunction 中,我看看怎么放合适