internal/cuetxtar: move error assertion code to inline_err.go
Extract all @test(err, ...) infrastructure from inline.go into a
dedicated inline_err.go: types (posSpec, errArgs, posWrite), parsing
(parseErrArgs, parseParenList, parsePosSpecs), and runner methods
(runErrAssertion, checkErrPositions, enqueuePosWrite, applyPosWritebacks,
isError, errorCode, errorMessage, findDescendantError).
No functional changes; this is a pure file split.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I8b9432cc701a26c5856d97d483eabc0a66d02290
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1234696
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>