package consulo.javascript.ecmascript6.psi.impl;

import com.intellij.lang.ASTNode;
import com.intellij.lang.javascript.psi.impl.JSStatementImpl;
import consulo.javascript.ecmascript6.psi.ES6ExportDefaultAssignment;

/**
 * @author VISTALL
 * @since 2019-12-14
 */
public class ES6ExportDefaultAssignmentImpl extends JSStatementImpl implements ES6ExportDefaultAssignment
{
	public ES6ExportDefaultAssignmentImpl(ASTNode node)
	{
		super(node);
	}
}

@@ -121,28 +121,251 @@
 psi.
-impl.JSStatementImpl
+JSClass;%0Aimport com.intellij.lang.javascript.psi.JSElement;%0Aimport com.intellij.lang.javascript.psi.impl.JSStatementImpl;%0Aimport com.intellij.psi.PsiElement;%0Aimport com.intellij.psi.ResolveState;%0Aimport com.intellij.psi.scope.PsiScopeProcessor
 ;%0Aim
@@ -433,16 +433,84 @@
 nment;%0A%0A
+import javax.annotation.Nonnull;%0Aimport javax.annotation.Nullable;%0A%0A
 /**%0A * @
@@ -713,16 +713,16 @@
 ode)%0A%09%7B%0A
-
 %09%09super(
@@ -730,11 +730,498 @@
 ode);%0A%09%7D
+%0A%0A%09@Nullable%0A%09public JSElement getElement()%0A%09%7B%0A%09%09return findChildByClass(JSClass.class);%0A%09%7D%0A%0A%09@Override%0A%09public boolean processDeclarations(@Nonnull PsiScopeProcessor processor, @Nonnull ResolveState state, PsiElement lastParent, @Nonnull PsiElement place)%0A%09%7B%0A%09%09JSElement element = getElement();%0A%09%09if(element != null && !element.processDeclarations(processor, state, lastParent, place))%0A%09%09%7B%0A%09%09%09return false;%0A%09%09%7D%0A%09%09return super.processDeclarations(processor, state, lastParent, place);%0A%09%7D
 %0A%7D%0A

allow search class from export default