Feature request checklist
Change
Have an Error method to obtain the raw offset (or range?) for the error, in addition to the line and column, to make it more useful when the caller embeds the CEL expression in a larger document and would like to translate errors back to the original context.
Furthermore, Error.ToDisplayString takes a Source argument, but in the case where Env.Parse() fails, we don't necessarily have an Ast to obtain the Source from, so you currently need to go outside the 'cel' package API in order to translate Issues into nice display strings.
Feature request checklist
Change
Have an Error method to obtain the raw offset (or range?) for the error, in addition to the line and column, to make it more useful when the caller embeds the CEL expression in a larger document and would like to translate errors back to the original context.
Furthermore, Error.ToDisplayString takes a Source argument, but in the case where Env.Parse() fails, we don't necessarily have an Ast to obtain the Source from, so you currently need to go outside the 'cel' package API in order to translate Issues into nice display strings.