package org.jruby.ast;

import java.util.List;
import org.jruby.ast.visitor.NodeVisitor;
import org.jruby.lexer.yacc.InvalidSourcePosition;

Marker to indicate that rather than assigning nil (where in multiple places we have nulls getting implicitly converted to nils) we should raise an error. MRI passes a -1 as a special value so we are doing something similar but more explicit.
/** * Marker to indicate that rather than assigning nil (where in multiple * places we have nulls getting implicitly converted to nils) we should * raise an error. * * MRI passes a -1 as a special value so we are doing something similar * but more explicit. */
public class RequiredKeywordArgumentValueNode extends Node implements InvisibleNode { public RequiredKeywordArgumentValueNode() { super(InvalidSourcePosition.INSTANCE, false); } @Override public <T> T accept(NodeVisitor<T> visitor) { return visitor.visitRequiredKeywordArgumentValueNode(this); } @Override public List<Node> childNodes() { return EMPTY_LIST; } @Override public NodeType getNodeType() { return NodeType.REQUIRED_KEYWORD_ARGUMENT_VALUE; } }