MCPcopy Create free account
hub / github.com/cel-expr/cel-go / setTokenLocation

Method setTokenLocation

parser/helper.go:208–215  ·  view source on GitHub ↗
(id int64, tok token)

Source from the content-addressed store, hash-verified

206}
207
208func (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
217func (p *parserHelper) deleteID(id int64) {
218 p.sourceInfo.ClearOffsetRange(id)

Callers 1

parseMapMethod · 0.80

Calls 2

computeOffsetMethod · 0.95
SetOffsetRangeMethod · 0.80

Tested by

no test coverage detected