< prev index next >
test/testlibrary/jittester/src/jdk/test/lib/jittester/VariableDeclarationBlock.java
Print this page
@@ -22,14 +22,16 @@
*/
package jdk.test.lib.jittester;
import java.util.ArrayList;
+
import jdk.test.lib.jittester.visitors.Visitor;
public class VariableDeclarationBlock extends IRNode {
- public VariableDeclarationBlock(ArrayList<IRNode> content, int level) {
+ public VariableDeclarationBlock(ArrayList<? extends Declaration> content, int level) {
+ super(TypeList.VOID);
addChildren(content);
this.level = level;
}
@Override
@@ -38,14 +40,10 @@
.stream()
.mapToLong(IRNode::complexity)
.sum();
}
- protected int size() {
- return getChildren() != null ? getChildren().size() : 0;
- }
-
@Override
public<T> T accept(Visitor<T> v) {
return v.visit(this);
}
}
< prev index next >