Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cue/load: replace readimports with cueimports.Read
Pretty much the same code inherited from Go. The way cue/load used it already matched the cueimports.Read API. While here, fileProcessor.add only needs to use cue/parser to read a CUE file's package clause and imported package paths, so there is no need to parse comments at all. Signed-off-by: Daniel Martí <mvdan@mvdan.cc> Change-Id: I67c5349dd691b282a8c4c1fbd3dd5daaf7f10163 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1194965 Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com> TryBot-Result: CUEcueckoo <cueckoo@cuelang.org> Reviewed-by: Roger Peppe <rogpeppe@gmail.com>
- Loading branch information