Skip to content

Commit

Permalink
Rename replacement for the Node.getType() method to Node.getToken()
Browse files Browse the repository at this point in the history
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=125212516
  • Loading branch information
blickly committed Jun 20, 2016
1 parent 9dfefaf commit 58b1dea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/com/google/javascript/rhino/Node.java
Expand Up @@ -597,20 +597,20 @@ public static Node newString(Token token, String str, int lineno, int charno) {
return new StringNode(token, str, lineno, charno); return new StringNode(token, str, lineno, charno);
} }


public Token getKind() { public Token getToken() {
return token; return token;
} }


public Token getType() { public Token getType() {
return getKind(); return getToken();
} }


public void setKind(Token token) { public void setToken(Token token) {
this.token = token; this.token = token;
} }


public void setType(Token token) { public void setType(Token token) {
setKind(token); setToken(token);
} }


public boolean hasChildren() { public boolean hasChildren() {
Expand Down

0 comments on commit 58b1dea

Please sign in to comment.