Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
cue: move to external builtin packages
Browse files Browse the repository at this point in the history
This includes a new generator for builtin packages.

Change-Id: Ieab84e16d9136c2ad5d2d8e8cad49c84a6e0b658
Reviewed-on: https://cue-review.googlesource.com/c/cue/+/6885
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
Reviewed-by: CUE cueckoo <cueckoo@gmail.com>
  • Loading branch information
mpvl committed Aug 20, 2020
1 parent bf882b0 commit abce145
Show file tree
Hide file tree
Showing 49 changed files with 3,716 additions and 4,366 deletions.
6 changes: 4 additions & 2 deletions cue/ast/astutil/file_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ import (
"strings"
"testing"

"github.com/google/go-cmp/cmp"

"cuelang.org/go/cue"
"cuelang.org/go/cue/ast"
"cuelang.org/go/cue/ast/astutil"
"cuelang.org/go/cue/format"
"cuelang.org/go/cue/token"
"github.com/google/go-cmp/cmp"
_ "cuelang.org/go/pkg"
)

func TestToFile(t *testing.T) {
Expand Down Expand Up @@ -93,7 +95,7 @@ func TestToFile(t *testing.T) {
got := string(b)
want := strings.TrimLeft(tc.want, "\n")
if got != want {
t.Error(cmp.Diff(got, want))
t.Error(cmp.Diff(want, got))
}
})
}
Expand Down
2 changes: 1 addition & 1 deletion cue/ast/ident.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ package ast

import (
"strconv"
"strings"
"unicode"
"unicode/utf8"

"cuelang.org/go/cue/errors"
"cuelang.org/go/cue/token"
"cuelang.org/go/pkg/strings"
)

func isLetter(ch rune) bool {
Expand Down
Loading

0 comments on commit abce145

Please sign in to comment.