Use stub in JetParameter#getDefaultValue()

This commit is contained in:
Pavel V. Talanov
2014-03-28 14:57:23 +04:00
parent e8d065a80f
commit fe82fff099
@@ -47,6 +47,10 @@ public class JetParameter extends JetNamedDeclarationStub<PsiJetParameterStub> {
@Nullable
public JetExpression getDefaultValue() {
PsiJetParameterStub stub = getStub();
if (stub != null && !stub.hasDefaultValue()) {
return null;
}
boolean passedEQ = false;
ASTNode child = getNode().getFirstChildNode();
while (child != null) {