Use stubs in JetAnnotationEntry#getValueArgumentList()

This commit is contained in:
Pavel V. Talanov
2014-04-07 17:25:19 +04:00
parent f0a36ae4e0
commit 94270e3486
@@ -57,6 +57,10 @@ public class JetAnnotationEntry extends JetElementImplStub<PsiJetAnnotationEntry
@Override
public JetValueArgumentList getValueArgumentList() {
PsiJetAnnotationEntryStub stub = getStub();
if (stub != null && !stub.hasValueArguments()) {
return null;
}
return (JetValueArgumentList) findChildByType(JetNodeTypes.VALUE_ARGUMENT_LIST);
}