commit | 770103390e76359fb2f59e555885bf1dea7f3a84 | [log] [tgz] |
---|---|---|
author | Johan Compagner <jcompagner@gmail.com> | Thu Oct 18 14:54:17 2012 +0200 |
committer | Johan Compagner <jcompagner@gmail.com> | Thu Oct 18 14:54:17 2012 +0200 |
tree | af921bc2399bf039b0f8530dce4f4af6d02d1aae | |
parent | 9f0d3e6aa44eab34fde6115c41bd2a0e2e347079 [diff] |
isArrayLookup enabled
diff --git a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/validation/TypeInfoValidator.java b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/validation/TypeInfoValidator.java index 1aa6a4d..3087520 100644 --- a/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/validation/TypeInfoValidator.java +++ b/plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/internal/javascript/validation/TypeInfoValidator.java
@@ -1240,9 +1240,9 @@ private static final boolean EXPERIMENTAL = false; private boolean isArrayLookup(ASTNode expression) { - if (EXPERIMENTAL && expression instanceof GetArrayItemExpression) + if (expression instanceof GetArrayItemExpression) return true; - if (EXPERIMENTAL && expression instanceof PropertyExpression) { + if (expression instanceof PropertyExpression) { return isArrayLookup(((PropertyExpression) expression) .getObject()); }