(token: Token)
| 15 | } |
| 16 | |
| 17 | static fromToken(token: Token): Location { |
| 18 | const textLength = (token.text ?? '').length; |
| 19 | |
| 20 | const start = new Point(token.line, token.column); |
| 21 | const end = new Point(token.line, token.column + textLength); |
| 22 | |
| 23 | return new Location(start, end); |
| 24 | } |
| 25 | |
| 26 | static fromObject(object: LocationI): Location { |
| 27 | const start = new Point(object.start.line, object.start.column); |
no outgoing calls
no test coverage detected