protected ConstantLeaf(ConstantType type, T value, Position position) {
        super(BaseNode.NodeType.CONSTANT, position);
        this.value = value;
        this.constantType = type.ordinal();
    }