Skip to content

Commit

Permalink
Fix documentation of ConstDeclNode.getConstNode().
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Oct 22, 2014
1 parent 3f72e2c commit ea30db2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/src/main/java/org/jruby/ast/ConstDeclNode.java
Expand Up @@ -74,13 +74,16 @@ public String getName() {
}

/**
* Get the path the name is associated with or null (in Foo::BAR it is Foo).
* Get the full path, including the name of the new constant (in Foo::BAR it is Foo::BAR) or null.
* Your probably want to extract the left part with
* <code>((Colon2Node) node.getConstNode()).getLeftNode()</code>
* if <code>node.getConstNode()</code> is a <code>Colon2ConstNode</code>.
* @return pathNode
*/
public Node getConstNode() {
return (Node) constNode;
}

public List<Node> childNodes() {
return createList(getConstNode(), getValueNode());
}
Expand Down

0 comments on commit ea30db2

Please sign in to comment.