MCPcopy Create free account
hub / github.com/apache/groovy / dup

Method dup

src/main/java/org/codehaus/groovy/syntax/Token.java:73–77  ·  view source on GitHub ↗

Creates a shallow copy of this Token, preserving type, text, position, and meaning. @return a new Token with the same attributes as this one

()

Source from the content-addressed store, hash-verified

71 * @return a new Token with the same attributes as this one
72 */
73 public Token dup() {
74 Token token = new Token(this.type, this.text, this.startLine, this.startColumn);
75 token.setMeaning(this.meaning);
76 return token;
77 }
78
79 //--------------------------------------------------------------------------
80 // NODE IDENTIFICATION AND MEANING

Callers

nothing calls this directly

Calls 1

setMeaningMethod · 0.95

Tested by

no test coverage detected