mirror of
https://github.com/golang/go
synced 2024-11-18 05:04:47 -07:00
go/constant: rename go/constants
Change-Id: I4b1ce33253890de9bc64fee9b476fe52eec87fc0 Reviewed-on: https://go-review.googlesource.com/9920 Reviewed-by: Russ Cox <rsc@golang.org> Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
parent
2b03610842
commit
b1d144e158
@ -341,11 +341,11 @@ var pkgDeps = map[string][]string{
|
||||
// dependencies. Do not simply update them in situ.
|
||||
"container/heap": {"sort"},
|
||||
"debug/plan9obj": {"encoding/binary", "errors", "fmt", "io", "os"},
|
||||
"go/constants": {"fmt", "go/token", "math/big", "strconv"},
|
||||
"go/constant": {"fmt", "go/token", "math/big", "strconv"},
|
||||
"go/format": {"bytes", "fmt", "go/ast", "go/parser", "go/printer", "go/token", "internal/format", "io"},
|
||||
"go/importer": {"go/internal/gcimporter", "go/types", "io", "runtime"},
|
||||
"go/internal/gcimporter": {"bufio", "errors", "fmt", "go/build", "go/constants", "go/token", "go/types", "io", "os", "path/filepath", "strconv", "strings", "text/scanner"},
|
||||
"go/types": {"bytes", "container/heap", "fmt", "go/ast", "go/constants", "go/parser", "go/token", "io", "math", "path", "sort", "strconv", "strings", "sync", "unicode"},
|
||||
"go/internal/gcimporter": {"bufio", "errors", "fmt", "go/build", "go/constant", "go/token", "go/types", "io", "os", "path/filepath", "strconv", "strings", "text/scanner"},
|
||||
"go/types": {"bytes", "container/heap", "fmt", "go/ast", "go/constant", "go/parser", "go/token", "io", "math", "path", "sort", "strconv", "strings", "sync", "unicode"},
|
||||
"image/internal/imageutil": {"image"},
|
||||
"internal/format": {"bytes", "go/ast", "go/parser", "go/printer", "go/token", "strings"},
|
||||
"internal/singleflight": {"sync"},
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
// +build !go1.4
|
||||
|
||||
package constants
|
||||
package constant
|
||||
|
||||
import (
|
||||
"math"
|
@ -4,7 +4,7 @@
|
||||
|
||||
// +build go1.4
|
||||
|
||||
package constants
|
||||
package constant
|
||||
|
||||
import "math/big"
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Package constants implements Values representing untyped
|
||||
// Package constant implements Values representing untyped
|
||||
// Go constants and the corresponding operations. Values
|
||||
// and operations may have arbitrary or unlimited precision.
|
||||
//
|
||||
@ -11,7 +11,7 @@
|
||||
// values produce unknown values unless specified
|
||||
// otherwise.
|
||||
//
|
||||
package constants // import "go/constants"
|
||||
package constant // import "go/constant"
|
||||
|
||||
import (
|
||||
"fmt"
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package constants
|
||||
package constant
|
||||
|
||||
import (
|
||||
"go/token"
|
@ -18,7 +18,7 @@ import (
|
||||
"strings"
|
||||
"text/scanner"
|
||||
|
||||
exact "go/constants"
|
||||
exact "go/constant"
|
||||
"go/types"
|
||||
)
|
||||
|
||||
|
@ -28,7 +28,7 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
)
|
||||
|
||||
|
@ -8,7 +8,7 @@ package types
|
||||
|
||||
import (
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
)
|
||||
|
||||
|
@ -8,7 +8,7 @@ package types
|
||||
|
||||
import (
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
)
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
|
||||
package types
|
||||
|
||||
import exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
import exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
|
||||
// Conversion type-checks the conversion T(x).
|
||||
// The result is in x.
|
||||
|
@ -6,7 +6,7 @@ package types
|
||||
|
||||
import (
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
)
|
||||
|
||||
|
@ -9,7 +9,7 @@ package types
|
||||
import (
|
||||
"fmt"
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
"math"
|
||||
)
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
)
|
||||
|
||||
|
@ -9,7 +9,7 @@ package types
|
||||
import (
|
||||
"bytes"
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
)
|
||||
|
||||
|
@ -7,7 +7,7 @@ package types
|
||||
import (
|
||||
"fmt"
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
pathLib "path"
|
||||
"strconv"
|
||||
|
@ -31,7 +31,7 @@ func TestSelf(t *testing.T) {
|
||||
conf := Config{Importer: importer.Default()}
|
||||
_, err = conf.Check("go/types", fset, files, nil)
|
||||
if err != nil {
|
||||
// Importing go/constants doesn't work in the
|
||||
// Importing go/constant doesn't work in the
|
||||
// build dashboard environment. Don't report an error
|
||||
// for now so that the build remains green.
|
||||
// TODO(gri) fix this
|
||||
|
@ -9,7 +9,7 @@ package types
|
||||
import (
|
||||
"fmt"
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
)
|
||||
|
||||
|
@ -8,7 +8,7 @@ package types
|
||||
|
||||
import (
|
||||
"go/ast"
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
"sort"
|
||||
"strconv"
|
||||
|
@ -7,7 +7,7 @@
|
||||
package types
|
||||
|
||||
import (
|
||||
exact "go/constants" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
exact "go/constant" // Renamed to reduce diffs from x/tools. TODO: remove
|
||||
"go/token"
|
||||
"strings"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user