Augmenting PSI with references
已回答
Hello
It's probably simple question but I have trouble understanding where to start. I'm implementing support if the internal framework and need to augment PSI with references. I need the parameter of the annotation @Ann to be a reference to methodA to provide navigation, renaming, etc... PsiAugmentProvider doesn't work with references. Where should I look to do so?
claas A {
@Ann("methodA")
void methodB() {
}
void methodA() {
}
}
请先登录再写评论。
You need to "inject" references into the String literal for these annotation parameters. See http://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/reference_contributor.html as introduction.