diff options
author | David Symonds <dsymonds@golang.org> | 2014-12-09 15:00:58 +1100 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2014-12-09 22:42:16 +0000 |
commit | 24257c8cd2d4a24e16e9f638b0ec6424daab38af (patch) | |
tree | 59dabe20420ed61944bcf28180de7b34773603aa /go | |
parent | 6e0e92af7e68a970d4babae511bbc8340a1d80c2 (diff) | |
download | tools-24257c8cd2d4a24e16e9f638b0ec6424daab38af.tar.gz |
tools: add import comments.
Change-Id: Idda6e64580432cb9a731e4ebf4005ee4ceb4202d
Reviewed-on: https://go-review.googlesource.com/1244
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'go')
-rw-r--r-- | go/buildutil/allpackages.go | 2 | ||||
-rw-r--r-- | go/callgraph/callgraph.go | 2 | ||||
-rw-r--r-- | go/callgraph/cha/cha.go | 2 | ||||
-rw-r--r-- | go/callgraph/rta/rta.go | 2 | ||||
-rw-r--r-- | go/callgraph/static/static.go | 2 | ||||
-rw-r--r-- | go/exact/exact.go | 2 | ||||
-rw-r--r-- | go/gccgoimporter/importer.go | 2 | ||||
-rw-r--r-- | go/gcimporter/gcimporter.go | 2 | ||||
-rw-r--r-- | go/importer/import.go | 2 | ||||
-rw-r--r-- | go/loader/loader.go | 2 | ||||
-rw-r--r-- | go/pointer/doc.go | 2 | ||||
-rw-r--r-- | go/ssa/doc.go | 2 | ||||
-rw-r--r-- | go/ssa/interp/interp.go | 2 | ||||
-rw-r--r-- | go/ssa/ssautil/visit.go | 2 | ||||
-rw-r--r-- | go/types/api.go | 2 | ||||
-rw-r--r-- | go/types/typeutil/map.go | 2 | ||||
-rw-r--r-- | go/vcs/vcs.go | 2 |
17 files changed, 17 insertions, 17 deletions
diff --git a/go/buildutil/allpackages.go b/go/buildutil/allpackages.go index 1da5560..c95db42 100644 --- a/go/buildutil/allpackages.go +++ b/go/buildutil/allpackages.go @@ -7,7 +7,7 @@ // // All I/O is done via the build.Context file system interface, which must // be concurrency-safe. -package buildutil +package buildutil // import "golang.org/x/tools/go/buildutil" import ( "go/build" diff --git a/go/callgraph/callgraph.go b/go/callgraph/callgraph.go index d0e12d8..dad8c22 100644 --- a/go/callgraph/callgraph.go +++ b/go/callgraph/callgraph.go @@ -32,7 +32,7 @@ in the call graph; they are treated like built-in operators of the language. */ -package callgraph +package callgraph // import "golang.org/x/tools/go/callgraph" // TODO(adonovan): add a function to eliminate wrappers from the // callgraph, preserving topology. diff --git a/go/callgraph/cha/cha.go b/go/callgraph/cha/cha.go index 2fbc72e..fcdf686 100644 --- a/go/callgraph/cha/cha.go +++ b/go/callgraph/cha/cha.go @@ -17,7 +17,7 @@ // and all concrete types are put into interfaces, it is sound to run on // partial programs, such as libraries without a main or test function. // -package cha +package cha // import "golang.org/x/tools/go/callgraph/cha" import ( "golang.org/x/tools/go/callgraph" diff --git a/go/callgraph/rta/rta.go b/go/callgraph/rta/rta.go index c4e2916..8d22da6 100644 --- a/go/callgraph/rta/rta.go +++ b/go/callgraph/rta/rta.go @@ -40,7 +40,7 @@ // cmd/callgraph tool on its own source takes ~2.1s for RTA and ~5.4s // for points-to analysis. // -package rta +package rta // import "golang.org/x/tools/go/callgraph/rta" // TODO(adonovan): test it by connecting it to the interpreter and // replacing all "unreachable" functions by a special intrinsic, and diff --git a/go/callgraph/static/static.go b/go/callgraph/static/static.go index f787fff..ebb183b 100644 --- a/go/callgraph/static/static.go +++ b/go/callgraph/static/static.go @@ -1,6 +1,6 @@ // Package static computes the call graph of a Go program containing // only static call edges. -package static +package static // import "golang.org/x/tools/go/callgraph/static" import ( "golang.org/x/tools/go/callgraph" diff --git a/go/exact/exact.go b/go/exact/exact.go index e8fbfe9..51c4906 100644 --- a/go/exact/exact.go +++ b/go/exact/exact.go @@ -11,7 +11,7 @@ // values produce unknown values unless specified // otherwise. // -package exact +package exact // import "golang.org/x/tools/go/exact" import ( "fmt" diff --git a/go/gccgoimporter/importer.go b/go/gccgoimporter/importer.go index a2b772b..59576ca 100644 --- a/go/gccgoimporter/importer.go +++ b/go/gccgoimporter/importer.go @@ -3,7 +3,7 @@ // license that can be found in the LICENSE file. // Package gccgoimporter implements Import for gccgo-generated object files. -package gccgoimporter +package gccgoimporter // import "golang.org/x/tools/go/gccgoimporter" import ( "bytes" diff --git a/go/gcimporter/gcimporter.go b/go/gcimporter/gcimporter.go index b6844b4..5df01a7 100644 --- a/go/gcimporter/gcimporter.go +++ b/go/gcimporter/gcimporter.go @@ -4,7 +4,7 @@ // Package gcimporter implements Import for gc-generated object files. // Importing this package installs Import as go/types.DefaultImport. -package gcimporter +package gcimporter // import "golang.org/x/tools/go/gcimporter" import ( "bufio" diff --git a/go/importer/import.go b/go/importer/import.go index 3604c98..2b6e279 100644 --- a/go/importer/import.go +++ b/go/importer/import.go @@ -7,7 +7,7 @@ // by R. Griesemer, Technical Report 156, ETH Zürich, 1991. // package importer implements an exporter and importer for Go export data. -package importer +package importer // import "golang.org/x/tools/go/importer" import ( "encoding/binary" diff --git a/go/loader/loader.go b/go/loader/loader.go index 82165a9..c568ea2 100644 --- a/go/loader/loader.go +++ b/go/loader/loader.go @@ -73,7 +73,7 @@ // DEPENDENCY is a package loaded to satisfy an import in an initial // package or another dependency. // -package loader +package loader // import "golang.org/x/tools/go/loader" // 'go test', in-package test files, and import cycles // --------------------------------------------------- diff --git a/go/pointer/doc.go b/go/pointer/doc.go index 00bf2a4..22e569c 100644 --- a/go/pointer/doc.go +++ b/go/pointer/doc.go @@ -607,4 +607,4 @@ ACM, New York, NY, USA, 47-56. DOI=10.1145/349299.349310 http://doi.acm.org/10.1145/349299.349310 */ -package pointer +package pointer // import "golang.org/x/tools/go/pointer" diff --git a/go/ssa/doc.go b/go/ssa/doc.go index 0b5c33d..d666073 100644 --- a/go/ssa/doc.go +++ b/go/ssa/doc.go @@ -120,4 +120,4 @@ // domains of source locations, ast.Nodes, types.Objects, // ssa.Values/Instructions. // -package ssa +package ssa // import "golang.org/x/tools/go/ssa" diff --git a/go/ssa/interp/interp.go b/go/ssa/interp/interp.go index d674c25..16a76a8 100644 --- a/go/ssa/interp/interp.go +++ b/go/ssa/interp/interp.go @@ -42,7 +42,7 @@ // // * os.Exit is implemented using panic, causing deferred functions to // run. -package interp +package interp // import "golang.org/x/tools/go/ssa/interp" import ( "fmt" diff --git a/go/ssa/ssautil/visit.go b/go/ssa/ssautil/visit.go index 8dc6694..14de154 100644 --- a/go/ssa/ssautil/visit.go +++ b/go/ssa/ssautil/visit.go @@ -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 ssautil +package ssautil // import "golang.org/x/tools/go/ssa/ssautil" import "golang.org/x/tools/go/ssa" diff --git a/go/types/api.go b/go/types/api.go index bfdcccb..ae53f7c 100644 --- a/go/types/api.go +++ b/go/types/api.go @@ -20,7 +20,7 @@ // and checks for compliance with the language specification. // Use Info.Types[expr].Type for the results of type inference. // -package types +package types // import "golang.org/x/tools/go/types" import ( "bytes" diff --git a/go/types/typeutil/map.go b/go/types/typeutil/map.go index bf1ed2d..b3a04cc 100644 --- a/go/types/typeutil/map.go +++ b/go/types/typeutil/map.go @@ -4,7 +4,7 @@ // Package typeutil defines various utilities for types, such as Map, // a mapping from types.Type to interface{} values. -package typeutil +package typeutil // import "golang.org/x/tools/go/types/typeutil" import ( "bytes" diff --git a/go/vcs/vcs.go b/go/vcs/vcs.go index 700b84d..2d9b7de 100644 --- a/go/vcs/vcs.go +++ b/go/vcs/vcs.go @@ -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 vcs +package vcs // import "golang.org/x/tools/go/vcs" import ( "bytes" |