Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我实现了一些在编译时应用的 AST 转换,出于日志记录的目的,我想发出反映注入的 AST 节点的“源”代码。toString()/方法返回非常不可读的getText()结构,对于长表达式来说很快就会变得复杂。
toString()
getText()
我能想到的最接近的是 AstNodeToScriptAdapter 可以在这里找到