зеркало из https://github.com/golang/tools.git
`find . -type f \( -name "*.go" -or -name "*.yaml" \) -print0 | xargs -0 gsed -i 's/the the /the /g'`
This commit is contained in:
Родитель
4aa5c68dc7
Коммит
d0df252001
|
@ -63,7 +63,7 @@ func init() {
|
|||
flag.Var((*buildutil.TagsFlag)(&build.Default.BuildTags), "tags", buildutil.TagsFlagDoc)
|
||||
}
|
||||
|
||||
const Usage = `callgraph: display the the call graph of a Go program.
|
||||
const Usage = `callgraph: display the call graph of a Go program.
|
||||
|
||||
Usage:
|
||||
|
||||
|
|
|
@ -266,7 +266,7 @@ func fiximports(packages ...string) bool {
|
|||
|
||||
// TODO(adonovan): should we make an HTTP request to
|
||||
// see if there's an HTTP redirect, a "go-import" meta tag,
|
||||
// or an import comment in the the latest revision?
|
||||
// or an import comment in the latest revision?
|
||||
// It would duplicate a lot of logic from "go get".
|
||||
}
|
||||
break
|
||||
|
|
|
@ -95,7 +95,7 @@ func referrers(q *Query) error {
|
|||
if pkglevel {
|
||||
return globalReferrersPkgLevel(q, obj, fset)
|
||||
}
|
||||
// We'll use the the object's position to identify it in the larger program.
|
||||
// We'll use the object's position to identify it in the larger program.
|
||||
objposn := fset.Position(obj.Pos())
|
||||
defpkg := obj.Pkg().Path() // defining package
|
||||
return globalReferrers(q, qpos.info.Pkg.Path(), defpkg, objposn)
|
||||
|
|
|
@ -491,7 +491,7 @@ func (p *parser) parseMapType(parent *types.Package) types.Type {
|
|||
//
|
||||
// For unqualified and anonymous names, the returned package is the parent
|
||||
// package unless parent == nil, in which case the returned package is the
|
||||
// package being imported. (The parent package is not nil if the the name
|
||||
// package being imported. (The parent package is not nil if the name
|
||||
// is an unqualified struct field or interface method name belonging to a
|
||||
// type declared in another package.)
|
||||
//
|
||||
|
|
|
@ -253,7 +253,7 @@ func (state *golistState) processGolistOverlay(response *responseDeduper) (modif
|
|||
return modifiedPkgs, needPkgs, err
|
||||
}
|
||||
|
||||
// resolveImport finds the the ID of a package given its import path.
|
||||
// resolveImport finds the ID of a package given its import path.
|
||||
// In particular, it will find the right vendored copy when in GOPATH mode.
|
||||
func (state *golistState) resolveImport(sourceDir, importPath string) (string, error) {
|
||||
env, err := state.getEnv()
|
||||
|
|
|
@ -68,7 +68,7 @@ func TestRedirects(t *testing.T) {
|
|||
"/cl/152047": {302, "https://go-review.googlesource.com/152047"},
|
||||
"/cl/152048": {302, "https://codereview.appspot.com/152048"},
|
||||
|
||||
// And verify we're using the the "bigEnoughAssumeRietveld" value:
|
||||
// And verify we're using the "bigEnoughAssumeRietveld" value:
|
||||
"/cl/299999": {302, "https://go-review.googlesource.com/299999"},
|
||||
"/cl/300000": {302, "https://codereview.appspot.com/300000"},
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
# instructions on how to use this.
|
||||
|
||||
substitutions:
|
||||
# This bucket must be owned by the the GCP project executing the build. If
|
||||
# This bucket must be owned by the GCP project executing the build. If
|
||||
# you are running this from your own project, override using --substitutions.
|
||||
_RESULT_BUCKET: 'golang-gopls_integration_tests'
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ type packageHandle struct {
|
|||
|
||||
goFiles, compiledGoFiles []*parseGoHandle
|
||||
|
||||
// mode is the mode the the files were parsed in.
|
||||
// mode is the mode the files were parsed in.
|
||||
mode source.ParseMode
|
||||
|
||||
// m is the metadata associated with the package.
|
||||
|
|
|
@ -1556,13 +1556,13 @@ type DocumentSymbol struct {
|
|||
Deprecated bool `json:"deprecated,omitempty"`
|
||||
/**
|
||||
* The range enclosing this symbol not including leading/trailing whitespace but everything else
|
||||
* like comments. This information is typically used to determine if the the clients cursor is
|
||||
* like comments. This information is typically used to determine if the clients cursor is
|
||||
* inside the symbol to reveal in the symbol in the UI.
|
||||
*/
|
||||
Range Range `json:"range"`
|
||||
/**
|
||||
* The range that should be selected and revealed when this symbol is being picked, e.g the name of a function.
|
||||
* Must be contained by the the `range`.
|
||||
* Must be contained by the `range`.
|
||||
*/
|
||||
SelectionRange Range `json:"selectionRange"`
|
||||
/**
|
||||
|
@ -2188,7 +2188,7 @@ type LocationLink struct {
|
|||
TargetRange Range `json:"targetRange"`
|
||||
/**
|
||||
* The range that should be selected and revealed when this link is being followed, e.g the name of a function.
|
||||
* Must be contained by the the `targetRange`. See also `DocumentSymbol#range`
|
||||
* Must be contained by the `targetRange`. See also `DocumentSymbol#range`
|
||||
*/
|
||||
TargetSelectionRange Range `json:"targetSelectionRange"`
|
||||
}
|
||||
|
|
|
@ -204,7 +204,7 @@ func (c *completer) packageNameCompletions(ctx context.Context, fileURI span.URI
|
|||
}
|
||||
|
||||
// packageSuggestions returns a list of packages from workspace packages that
|
||||
// have the given prefix and are used in the the same directory as the given
|
||||
// have the given prefix and are used in the same directory as the given
|
||||
// file. This also includes test packages for these packages (<pkg>_test) and
|
||||
// the directory name itself.
|
||||
func packageSuggestions(ctx context.Context, snapshot source.Snapshot, fileURI span.URI, prefix string) ([]candidate, error) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче