1 /* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
2  * Use of this file is governed by the BSD 3-clause license that
3  * can be found in the LICENSE.txt file in the project root.
4  */
5 
6 
7 public protocol WritableToken: Token {
setTextnull8     func setText(_ text: String)
9 
10     func setType(_ ttype: Int)
11 
12     func setLine(_ line: Int)
13 
14     func setCharPositionInLine(_ pos: Int)
15 
16     func setChannel(_ channel: Int)
17 
18     func setTokenIndex(_ index: Int)
19 }
20