-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encoding/jsonschema: clearer internals
It wasn't entirely clear to me when reading the code exactly how the `cue.Value` passed to `newSel`, `getNextIdent` and friends is used. In fact, it's only used to report errors in the correct position, so pass a `token.Pos` around instead to make that a bit more clear. Also rearrange the arguments to `state.newSel` to put the position first to match other methods. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I78290b09be818126759c3f2162e567e9819887ba Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1201909 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters