主页
IDEs Support (IntelliJ Platform) | JetBrains
联系支持服务
社区
登录
Charmik1994
活动总数
15
最后的活动
2020年01月21日 13:37
成员加入日期
2019年04月12日 08:46
关注
0 名用户
关注者数
0 名用户
投票数
1
订阅数
2
活动概览
帖子(2)
评论(10)
Charmik1994
进行了评论,
2019年05月14日 11:18
ping, sorry?
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票
Charmik1994
进行了评论,
2019年05月04日 13:56
Sorry, I think I did everything what you said, but I have a small problem anyway. I tried to debug bindings but still didn't figure it out. Can you look at my code, please? https://paste.ofcode.org...
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票
Charmik1994
进行了评论,
2019年04月30日 11:16
I tried to do what you suggested, and I did almost everything, but I can't figure out some small things. My code: https://pastecode.xyz/view/f36f2cf5 1) ClassBuilderFactory for GenerationState.Bui...
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票
Charmik1994
进行了评论,
2019年04月29日 12:53
okay! cool! thanks! I will try this way. as I understood it doesn't compile your code with "shouldGenerateCode = false" right? Because I don't really have source code, I use decompiler for it, and...
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票
Charmik1994
进行了评论,
2019年04月29日 09:12
Yeah, I understand that it is not specified and it's not on Java code, but I thought maybe your parser implements it in someway. I analyze bytecode and I have all anonymous classes names, but I wa...
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票
Charmik1994
进行了评论,
2019年04月24日 13:32
sorry, I still don't get it. I wrote a standalone application (but without dependencies), I think it's the better way to show it: https://paste.ofcode.org/35Eqy7hD6rbhypfhhxDFnau it prints "null". ...
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票
Charmik1994
进行了评论,
2019年04月24日 13:06
sorry, what is KtCKotlinAsJavaSupport? I couldn't find this class in JB repositories. I found only CliKotlinAsJavaSupport. but it returns null for KtObjectDeclaration too. are you sure that I can ...
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票
Charmik1994
进行了评论,
2019年04月24日 10:44
sorry, maybe I misunderstood you. But if I find the field T1 in my example, and then go to root of AST, I get classes: KtPropertyKtClassBodyKtObjectDeclarationKtObjectLiteralExpressionKtBlockExpres...
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票
Charmik1994
进行了评论,
2019年04月24日 09:13
Yes, I know that there's no "$1" in source code. I want to get the class name where this variable is declared. it's anonymous class, but in bytecode it's $1. can I get it in some way?
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票
Charmik1994
进行了评论,
2019年04月19日 11:30
and if I do recurse(KtFile): void recurse(PsiElement element) { PsiElement[] children = element.getChildren(); for (PsiElement child : children) { if (child instanceof PsiAnonymousClas...
社区
IntelliJ IDEA Open API and Plugin Development
parse .kt file with anonymous classes
0 票