mirror of
https://github.com/golang/go
synced 2024-11-18 07:34:53 -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.
|
// dependencies. Do not simply update them in situ.
|
||||||
"container/heap": {"sort"},
|
"container/heap": {"sort"},
|
||||||
"debug/plan9obj": {"encoding/binary", "errors", "fmt", "io", "os"},
|
"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/format": {"bytes", "fmt", "go/ast", "go/parser", "go/printer", "go/token", "internal/format", "io"},
|
||||||
"go/importer": {"go/internal/gcimporter", "go/types", "io", "runtime"},
|
"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/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/constants", "go/parser", "go/token", "io", "math", "path", "sort", "strconv", "strings", "sync", "unicode"},
|
"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"},
|
"image/internal/imageutil": {"image"},
|
||||||
"internal/format": {"bytes", "go/ast", "go/parser", "go/printer", "go/token", "strings"},
|
"internal/format": {"bytes", "go/ast", "go/parser", "go/printer", "go/token", "strings"},
|
||||||
"internal/singleflight": {"sync"},
|
"internal/singleflight": {"sync"},
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
// +build !go1.4
|
// +build !go1.4
|
||||||
|
|
||||||
package constants
|
package constant
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"math"
|
"math"
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
// +build go1.4
|
// +build go1.4
|
||||||
|
|
||||||
package constants
|
package constant
|
||||||
|
|
||||||
import "math/big"
|
import "math/big"
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// 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
|
// Go constants and the corresponding operations. Values
|
||||||
// and operations may have arbitrary or unlimited precision.
|
// and operations may have arbitrary or unlimited precision.
|
||||||
//
|
//
|
||||||
@ -11,7 +11,7 @@
|
|||||||
// values produce unknown values unless specified
|
// values produce unknown values unless specified
|
||||||
// otherwise.
|
// otherwise.
|
||||||
//
|
//
|
||||||
package constants // import "go/constants"
|
package constant // import "go/constant"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
@ -2,7 +2,7 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package constants
|
package constant
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go/token"
|
"go/token"
|
@ -18,7 +18,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"text/scanner"
|
"text/scanner"
|
||||||
|
|
||||||
exact "go/constants"
|
exact "go/constant"
|
||||||
"go/types"
|
"go/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ package types
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ package types
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
package types
|
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).
|
// Conversion type-checks the conversion T(x).
|
||||||
// The result is in x.
|
// The result is in x.
|
||||||
|
@ -6,7 +6,7 @@ package types
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ package types
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
"math"
|
"math"
|
||||||
)
|
)
|
||||||
|
@ -8,7 +8,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"fmt"
|
"fmt"
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ package types
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ package types
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
pathLib "path"
|
pathLib "path"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -31,7 +31,7 @@ func TestSelf(t *testing.T) {
|
|||||||
conf := Config{Importer: importer.Default()}
|
conf := Config{Importer: importer.Default()}
|
||||||
_, err = conf.Check("go/types", fset, files, nil)
|
_, err = conf.Check("go/types", fset, files, nil)
|
||||||
if err != 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
|
// build dashboard environment. Don't report an error
|
||||||
// for now so that the build remains green.
|
// for now so that the build remains green.
|
||||||
// TODO(gri) fix this
|
// TODO(gri) fix this
|
||||||
|
@ -9,7 +9,7 @@ package types
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ package types
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"go/ast"
|
"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"
|
"go/token"
|
||||||
"sort"
|
"sort"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
package types
|
package types
|
||||||
|
|
||||||
import (
|
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"
|
"go/token"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user