[jruby-joni] 177/194: RootNode -> TopNode

Hideki Yamane henrich at moszumanska.debian.org
Thu Feb 1 12:04:39 UTC 2018


This is an automated email from the git hooks/post-receive script.

henrich pushed a commit to branch debian/sid
in repository jruby-joni.

commit afdaefce76d28a049d36066d73eea1049121b7ce
Author: Marcin Mielzynski <lopx at gazeta.pl>
Date:   Fri Jan 19 22:22:20 2018 +0100

    RootNode -> TopNode
---
 src/org/joni/Analyser.java | 2 +-
 src/org/joni/ast/Node.java | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/org/joni/Analyser.java b/src/org/joni/Analyser.java
index 8372efe..b51f73a 100644
--- a/src/org/joni/Analyser.java
+++ b/src/org/joni/Analyser.java
@@ -104,7 +104,7 @@ final class Analyser extends Parser {
 
         if (Config.DEBUG_PARSE_TREE && Config.DEBUG_PARSE_TREE_RAW) Config.log.println("<RAW TREE>\n" + root + "\n");
 
-        Node.RootNode top = Node.newRoot(root);
+        Node.TopNode top = Node.newTop(root);
         setupTree(root, 0);
         root = top.getRoot();
 
diff --git a/src/org/joni/ast/Node.java b/src/org/joni/ast/Node.java
index d47a05f..3ee73fe 100644
--- a/src/org/joni/ast/Node.java
+++ b/src/org/joni/ast/Node.java
@@ -78,14 +78,14 @@ public abstract class Node implements NodeType {
         return (getType2Bit() & SIMPLE) != 0;
     }
 
-    public static RootNode newRoot(Node root) {
-        return new RootNode(root);
+    public static TopNode newTop(Node root) {
+        return new TopNode(root);
     }
 
-    public static final class RootNode extends Node {
+    public static final class TopNode extends Node {
         private Node root;
 
-        RootNode(Node root) {
+        TopNode(Node root) {
             super(-1);
             root.parent = this;
             setChild(root);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/jruby-joni.git



More information about the pkg-java-commits mailing list