Use stub in JetParameter#getDefaultValue()
This commit is contained in:
@@ -47,6 +47,10 @@ public class JetParameter extends JetNamedDeclarationStub<PsiJetParameterStub> {
|
|||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
public JetExpression getDefaultValue() {
|
public JetExpression getDefaultValue() {
|
||||||
|
PsiJetParameterStub stub = getStub();
|
||||||
|
if (stub != null && !stub.hasDefaultValue()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
boolean passedEQ = false;
|
boolean passedEQ = false;
|
||||||
ASTNode child = getNode().getFirstChildNode();
|
ASTNode child = getNode().getFirstChildNode();
|
||||||
while (child != null) {
|
while (child != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user