internal/core/adt: unify builtin-range matching under MatchBuiltinRange
The previous commit moved the range tables into adt but left two
matchers: adt.MatchBuiltinRange and export.boundSimplifier.matchRange.
Drop the latter so the codebase has a single "match builtin" API.
Now, export calls adt.MatchBuiltinRange on the whole Conjunction;
when it returns a name we emit it directly, and otherwise
boundSimplifier only handles the remaining int/uint + bounds collapse.
This also fixes export to render `int & >=0` as uint,
matching how the debug printer already formats predeclared types.
MatchBuiltinRange is simplified to align with matchRange,
and we drop the now-unnecessary exported tables in the adt package.
Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
Change-Id: Ib2ee99a8ebe474993f4f2d3ac0ebee7245e808e7
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1236172
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
Reviewed-by: Marcel van Lohuizen <mpvl@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>