Creates a shallow copy of this Token, preserving type, text, position, and meaning. @return a new Token with the same attributes as this one
()
| 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 |
nothing calls this directly
no test coverage detected