Add ArrayFactory to JetExpression
This commit is contained in:
@@ -16,9 +16,20 @@
|
|||||||
|
|
||||||
package org.jetbrains.jet.lang.psi;
|
package org.jetbrains.jet.lang.psi;
|
||||||
|
|
||||||
|
import com.intellij.util.ArrayFactory;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
public interface JetExpression extends JetElement {
|
public interface JetExpression extends JetElement {
|
||||||
|
JetExpression[] EMPTY_ARRAY = new JetExpression[0];
|
||||||
|
|
||||||
|
ArrayFactory<JetExpression> ARRAY_FACTORY = new ArrayFactory<JetExpression>() {
|
||||||
|
@NotNull
|
||||||
|
@Override
|
||||||
|
public JetExpression[] create(int count) {
|
||||||
|
return count == 0 ? EMPTY_ARRAY : new JetExpression[count];
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
<R, D> R accept(@NotNull JetVisitor<R, D> visitor, D data);
|
<R, D> R accept(@NotNull JetVisitor<R, D> visitor, D data);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user