Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

方法里面调用另外一个类中的方法,是如何实现的? #5

Open
pandaBilbo opened this issue Nov 25, 2020 · 2 comments
Open

Comments

@pandaBilbo
Copy link

比如ClassA().print
和 ClassA a = ClassA();
a.print
前者 类型是MethodInvocation
"callee":{
"type":"Identifier",
"name":"ClassA"
}
后者类型是MemberExpression
"callee":{
"type":"Identifier",
"name":"a"
}

请问是怎么找到对应的类的AST来调用print方法的?

@ldhlfzysys
Copy link

我试了一下好像没实现

@RicoLiu
Copy link

RicoLiu commented Apr 19, 2022

有解决方案吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants