Array factory used in JetDotQualifiedExpression

This commit is contained in:
Pavel V. Talanov
2014-05-16 18:02:03 +04:00
parent 0a576995c7
commit ed7e3b558a
@@ -80,7 +80,7 @@ public class JetDotQualifiedExpression extends JetExpressionImplStub<PsiJetPlace
return null;
}
else {
JetExpression[] expressions = stub.getChildrenByType(IMPORT_DIRECTIVE_EXPRESSIONS, new JetExpression[] {});
JetExpression[] expressions = stub.getChildrenByType(IMPORT_DIRECTIVE_EXPRESSIONS, JetExpression.ARRAY_FACTORY);
if (expressions.length < 1 || expressions.length > 2) {
LOG.error("Invalid stub structure. DOT_QUALIFIED_EXPRESSION must have one or two children. Was: " + expressions.length +
"\nFile text:\n" + getContainingFile().getText());