(id int64, tok token)
| 206 | } |
| 207 | |
| 208 | func (p *parserHelper) setTokenLocation(id int64, tok token) { |
| 209 | if tok.start >= 0 { |
| 210 | p.sourceInfo.SetOffsetRange(id, ast.OffsetRange{ |
| 211 | Start: p.computeOffset(tok.start), |
| 212 | Stop: p.computeOffset(tok.end), |
| 213 | }) |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | func (p *parserHelper) deleteID(id int64) { |
| 218 | p.sourceInfo.ClearOffsetRange(id) |
no test coverage detected