File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/kotlin/com/emberjs/utils Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import com.intellij.application.options.CodeStyle
2525import com.intellij.framework.detection.impl.FrameworkDetectionManager
2626import com.intellij.injected.editor.VirtualFileWindow
2727import com.intellij.lang.Language
28+ import com.intellij.lang.ecmascript6.psi.ES6ExportDefaultAssignment
2829import com.intellij.lang.ecmascript6.psi.ES6ExportSpecifierAlias
2930import com.intellij.lang.ecmascript6.psi.ES6ImportExportDeclaration
3031import com.intellij.lang.ecmascript6.psi.ES6ImportSpecifier
@@ -347,6 +348,10 @@ class EmberUtils {
347348 return followReferences(element.parent.reference?.resolve())
348349 }
349350
351+ if (element is ES6ExportDefaultAssignment ) {
352+ return element.namedElement
353+ }
354+
350355 if (element is ES6ImportedBinding ) {
351356 val res = element.multiResolve(true ).firstOrNull()
352357 if (res != null && res.element != null ) {
You can’t perform that action at this time.
0 commit comments