use of com.intellij.lang.javascript.psi.ecma6.ES6Decorator in project intellij-plugins by JetBrains.
the class AngularJS2IndexingHandler method determineModuleName.
private static String determineModuleName(@NotNull JSCallExpression callExpression) {
if (!(callExpression.getParent() instanceof ES6Decorator))
return null;
final ES6Decorator decorator = (ES6Decorator) callExpression.getParent();
final PsiElement owner = decorator.getOwner();
if (owner instanceof JSClass)
return ((JSClass) owner).getName();
return null;
}
Aggregations