From 92778473c2e66cce9cca86de3a98d22b1c550dea Mon Sep 17 00:00:00 2001 From: Rebecca Stambler Date: Tue, 5 Jan 2021 23:05:35 -0500 Subject: [PATCH] all: add copyright notices to files that are missing them This was generated using this script: https://play.golang.org/p/Nbo3qsk1ADH. Change-Id: I94ab794b0874ad74a09bba5b3bb29d2c487a491b Reviewed-on: https://go-review.googlesource.com/c/tools/+/281853 Trust: Rebecca Stambler Run-TryBot: Rebecca Stambler gopls-CI: kokoro Reviewed-by: Robert Findley --- cmd/benchcmp/benchcmp_test.go | 4 ++++ cmd/eg/eg.go | 4 ++++ cmd/goimports/doc.go | 4 ++++ cmd/gorename/main.go | 4 ++++ go/analysis/analysis.go | 4 ++++ go/analysis/analysistest/analysistest.go | 4 ++++ go/analysis/analysistest/analysistest_test.go | 4 ++++ go/analysis/diagnostic.go | 4 ++++ go/analysis/doc.go | 4 ++++ go/analysis/internal/analysisflags/help.go | 4 ++++ go/analysis/internal/checker/checker_test.go | 4 ++++ go/analysis/multichecker/multichecker_test.go | 4 ++++ go/analysis/passes/fieldalignment/fieldalignment_test.go | 4 ++++ go/analysis/passes/findcall/cmd/findcall/main.go | 4 ++++ go/analysis/passes/internal/analysisutil/util.go | 4 ++++ go/analysis/passes/lostcancel/cmd/lostcancel/main.go | 4 ++++ go/analysis/passes/nilness/cmd/nilness/main.go | 4 ++++ go/analysis/passes/printf/printf_test.go | 4 ++++ go/analysis/passes/printf/types.go | 4 ++++ go/analysis/passes/shadow/cmd/shadow/main.go | 4 ++++ go/analysis/passes/shadow/shadow_test.go | 4 ++++ go/analysis/passes/sortslice/analyzer_test.go | 4 ++++ go/analysis/passes/unmarshal/cmd/unmarshal/main.go | 4 ++++ go/analysis/unitchecker/main.go | 4 ++++ go/analysis/unitchecker/unitchecker112.go | 4 ++++ go/analysis/validate.go | 4 ++++ go/ast/astutil/util.go | 4 ++++ go/ast/inspector/inspector_test.go | 4 ++++ go/ast/inspector/typeof.go | 4 ++++ go/buildutil/fakecontext.go | 4 ++++ go/buildutil/overlay_test.go | 4 ++++ go/buildutil/tags.go | 4 ++++ go/buildutil/tags_test.go | 4 ++++ go/callgraph/static/static.go | 4 ++++ go/gccgoexportdata/gccgoexportdata_test.go | 4 ++++ go/gcexportdata/gcexportdata_test.go | 4 ++++ go/packages/example_test.go | 4 ++++ go/packages/overlay_test.go | 4 ++++ go/packages/packagestest/modules_111.go | 4 ++++ go/packages/visit.go | 4 ++++ go/pointer/query.go | 4 ++++ go/pointer/query_test.go | 4 ++++ go/ssa/identical.go | 4 ++++ go/ssa/identical_17.go | 4 ++++ go/ssa/identical_test.go | 4 ++++ go/types/typeutil/ui_test.go | 4 ++++ gopls/internal/regtest/formatting_test.go | 4 ++++ gopls/internal/regtest/imports_test.go | 4 ++++ gopls/internal/regtest/vendor_test.go | 4 ++++ gopls/test/debug/debug_test.go | 4 ++++ imports/forward.go | 4 ++++ internal/apidiff/apidiff.go | 4 ++++ internal/apidiff/apidiff_test.go | 4 ++++ internal/apidiff/compatibility.go | 4 ++++ internal/apidiff/correspondence.go | 4 ++++ internal/apidiff/messageset.go | 4 ++++ internal/apidiff/report.go | 4 ++++ internal/event/bench_test.go | 4 ++++ internal/event/export/ocagent/metrics_test.go | 4 ++++ internal/event/export/ocagent/wire/metrics_test.go | 4 ++++ internal/imports/imports_test.go | 4 ++++ internal/imports/mkstdlib.go | 4 ++++ internal/imports/mod.go | 4 ++++ internal/imports/mod_cache.go | 4 ++++ internal/imports/mod_cache_test.go | 4 ++++ internal/imports/mod_test.go | 4 ++++ internal/lsp/cache/imports.go | 4 ++++ internal/lsp/cmd/capabilities_test.go | 4 ++++ internal/lsp/cmd/test/folding_range.go | 4 ++++ internal/lsp/cmd/test/highlight.go | 4 ++++ internal/lsp/completion_test.go | 4 ++++ internal/lsp/diff/diff_test.go | 4 ++++ internal/lsp/folding_range.go | 4 ++++ internal/lsp/helper/helper.go | 4 ++++ internal/lsp/mod/code_lens.go | 4 ++++ internal/lsp/mod/format.go | 4 ++++ internal/lsp/mod/hover.go | 4 ++++ internal/lsp/protocol/context.go | 4 ++++ internal/lsp/protocol/log.go | 4 ++++ internal/lsp/server_gen.go | 4 ++++ internal/lsp/source/comment.go | 4 ++++ internal/lsp/source/comment_test.go | 4 ++++ internal/lsp/source/folding_range.go | 4 ++++ internal/lsp/source/format_test.go | 4 ++++ internal/packagesinternal/packages.go | 4 ++++ present/html.go | 4 ++++ 86 files changed, 344 insertions(+) diff --git a/cmd/benchcmp/benchcmp_test.go b/cmd/benchcmp/benchcmp_test.go index b79bfaa86e..298dcba6bd 100644 --- a/cmd/benchcmp/benchcmp_test.go +++ b/cmd/benchcmp/benchcmp_test.go @@ -1,3 +1,7 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package main import ( diff --git a/cmd/eg/eg.go b/cmd/eg/eg.go index 18b0f09b10..9199f420b0 100644 --- a/cmd/eg/eg.go +++ b/cmd/eg/eg.go @@ -1,3 +1,7 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // The eg command performs example-based refactoring. // For documentation, run the command, or see Help in // golang.org/x/tools/refactor/eg. diff --git a/cmd/goimports/doc.go b/cmd/goimports/doc.go index 7033e4d4cf..f344d8014a 100644 --- a/cmd/goimports/doc.go +++ b/cmd/goimports/doc.go @@ -1,3 +1,7 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + /* Command goimports updates your Go import lines, diff --git a/cmd/gorename/main.go b/cmd/gorename/main.go index b1b895cf1c..03e9958346 100644 --- a/cmd/gorename/main.go +++ b/cmd/gorename/main.go @@ -1,3 +1,7 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // The gorename command performs precise type-safe renaming of // identifiers in Go source code. // diff --git a/go/analysis/analysis.go b/go/analysis/analysis.go index 8c3c2e7ab9..d11505a165 100644 --- a/go/analysis/analysis.go +++ b/go/analysis/analysis.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package analysis import ( diff --git a/go/analysis/analysistest/analysistest.go b/go/analysis/analysistest/analysistest.go index 8b752be94b..5e99afe11d 100644 --- a/go/analysis/analysistest/analysistest.go +++ b/go/analysis/analysistest/analysistest.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package analysistest provides utilities for testing analyzers. package analysistest diff --git a/go/analysis/analysistest/analysistest_test.go b/go/analysis/analysistest/analysistest_test.go index e1ce857985..cb9bdd2fd1 100644 --- a/go/analysis/analysistest/analysistest_test.go +++ b/go/analysis/analysistest/analysistest_test.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package analysistest_test import ( diff --git a/go/analysis/diagnostic.go b/go/analysis/diagnostic.go index 57eaf6faa2..cd462a0cb5 100644 --- a/go/analysis/diagnostic.go +++ b/go/analysis/diagnostic.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package analysis import "go/token" diff --git a/go/analysis/doc.go b/go/analysis/doc.go index 9fa3302dfb..94a3bd5d07 100644 --- a/go/analysis/doc.go +++ b/go/analysis/doc.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + /* Package analysis defines the interface between a modular static diff --git a/go/analysis/internal/analysisflags/help.go b/go/analysis/internal/analysisflags/help.go index c5a70f3b7d..ce92892c81 100644 --- a/go/analysis/internal/analysisflags/help.go +++ b/go/analysis/internal/analysisflags/help.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package analysisflags import ( diff --git a/go/analysis/internal/checker/checker_test.go b/go/analysis/internal/checker/checker_test.go index 7c0d0a9b5b..50c51a106c 100644 --- a/go/analysis/internal/checker/checker_test.go +++ b/go/analysis/internal/checker/checker_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package checker_test import ( diff --git a/go/analysis/multichecker/multichecker_test.go b/go/analysis/multichecker/multichecker_test.go index ca3dab5335..c7a2c464ac 100644 --- a/go/analysis/multichecker/multichecker_test.go +++ b/go/analysis/multichecker/multichecker_test.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // +build go1.12 package multichecker_test diff --git a/go/analysis/passes/fieldalignment/fieldalignment_test.go b/go/analysis/passes/fieldalignment/fieldalignment_test.go index 97cbfc1047..e4450884f6 100644 --- a/go/analysis/passes/fieldalignment/fieldalignment_test.go +++ b/go/analysis/passes/fieldalignment/fieldalignment_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package fieldalignment_test import ( diff --git a/go/analysis/passes/findcall/cmd/findcall/main.go b/go/analysis/passes/findcall/cmd/findcall/main.go index c933b2406f..e0ce9137d6 100644 --- a/go/analysis/passes/findcall/cmd/findcall/main.go +++ b/go/analysis/passes/findcall/cmd/findcall/main.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // The findcall command runs the findcall analyzer. package main diff --git a/go/analysis/passes/internal/analysisutil/util.go b/go/analysis/passes/internal/analysisutil/util.go index 80c9476fcd..ac37e4784e 100644 --- a/go/analysis/passes/internal/analysisutil/util.go +++ b/go/analysis/passes/internal/analysisutil/util.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package analysisutil defines various helper functions // used by two or more packages beneath go/analysis. package analysisutil diff --git a/go/analysis/passes/lostcancel/cmd/lostcancel/main.go b/go/analysis/passes/lostcancel/cmd/lostcancel/main.go index d48c290e69..0bba846524 100644 --- a/go/analysis/passes/lostcancel/cmd/lostcancel/main.go +++ b/go/analysis/passes/lostcancel/cmd/lostcancel/main.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // The lostcancel command applies the golang.org/x/tools/go/analysis/passes/lostcancel // analysis to the specified packages of Go source code. package main diff --git a/go/analysis/passes/nilness/cmd/nilness/main.go b/go/analysis/passes/nilness/cmd/nilness/main.go index bac26bd80d..136ac254a4 100644 --- a/go/analysis/passes/nilness/cmd/nilness/main.go +++ b/go/analysis/passes/nilness/cmd/nilness/main.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // The nilness command applies the golang.org/x/tools/go/analysis/passes/nilness // analysis to the specified packages of Go source code. package main diff --git a/go/analysis/passes/printf/printf_test.go b/go/analysis/passes/printf/printf_test.go index 68453269b3..fd22cf6d38 100644 --- a/go/analysis/passes/printf/printf_test.go +++ b/go/analysis/passes/printf/printf_test.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package printf_test import ( diff --git a/go/analysis/passes/printf/types.go b/go/analysis/passes/printf/types.go index bd8a594ef5..6a5fae44f4 100644 --- a/go/analysis/passes/printf/types.go +++ b/go/analysis/passes/printf/types.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package printf import ( diff --git a/go/analysis/passes/shadow/cmd/shadow/main.go b/go/analysis/passes/shadow/cmd/shadow/main.go index ccf7b5c9de..f9e36ecee9 100644 --- a/go/analysis/passes/shadow/cmd/shadow/main.go +++ b/go/analysis/passes/shadow/cmd/shadow/main.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // The shadow command runs the shadow analyzer. package main diff --git a/go/analysis/passes/shadow/shadow_test.go b/go/analysis/passes/shadow/shadow_test.go index c4d200a42d..4fcdc922ee 100644 --- a/go/analysis/passes/shadow/shadow_test.go +++ b/go/analysis/passes/shadow/shadow_test.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package shadow_test import ( diff --git a/go/analysis/passes/sortslice/analyzer_test.go b/go/analysis/passes/sortslice/analyzer_test.go index 9f81fe17e3..a14d6898c4 100644 --- a/go/analysis/passes/sortslice/analyzer_test.go +++ b/go/analysis/passes/sortslice/analyzer_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package sortslice_test import ( diff --git a/go/analysis/passes/unmarshal/cmd/unmarshal/main.go b/go/analysis/passes/unmarshal/cmd/unmarshal/main.go index 993bf7453e..1a17cd64de 100644 --- a/go/analysis/passes/unmarshal/cmd/unmarshal/main.go +++ b/go/analysis/passes/unmarshal/cmd/unmarshal/main.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // The unmarshal command runs the unmarshal analyzer. package main diff --git a/go/analysis/unitchecker/main.go b/go/analysis/unitchecker/main.go index a1fe3d38d5..7fa7c85556 100644 --- a/go/analysis/unitchecker/main.go +++ b/go/analysis/unitchecker/main.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // +build ignore // This file provides an example command for static checkers diff --git a/go/analysis/unitchecker/unitchecker112.go b/go/analysis/unitchecker/unitchecker112.go index 683b7e91d2..9051456e39 100644 --- a/go/analysis/unitchecker/unitchecker112.go +++ b/go/analysis/unitchecker/unitchecker112.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // +build go1.12 package unitchecker diff --git a/go/analysis/validate.go b/go/analysis/validate.go index ad0e7276c9..23e57bf02b 100644 --- a/go/analysis/validate.go +++ b/go/analysis/validate.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package analysis import ( diff --git a/go/ast/astutil/util.go b/go/ast/astutil/util.go index 7630629824..919d5305ab 100644 --- a/go/ast/astutil/util.go +++ b/go/ast/astutil/util.go @@ -1,3 +1,7 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package astutil import "go/ast" diff --git a/go/ast/inspector/inspector_test.go b/go/ast/inspector/inspector_test.go index 9b31e89f34..3e9d3bac4c 100644 --- a/go/ast/inspector/inspector_test.go +++ b/go/ast/inspector/inspector_test.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package inspector_test import ( diff --git a/go/ast/inspector/typeof.go b/go/ast/inspector/typeof.go index d61301b133..b6b00cf2e1 100644 --- a/go/ast/inspector/typeof.go +++ b/go/ast/inspector/typeof.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package inspector // This file defines func typeOf(ast.Node) uint64. diff --git a/go/buildutil/fakecontext.go b/go/buildutil/fakecontext.go index 8b7f066739..5fc672fd51 100644 --- a/go/buildutil/fakecontext.go +++ b/go/buildutil/fakecontext.go @@ -1,3 +1,7 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package buildutil import ( diff --git a/go/buildutil/overlay_test.go b/go/buildutil/overlay_test.go index 92e2258a37..4ee8817f42 100644 --- a/go/buildutil/overlay_test.go +++ b/go/buildutil/overlay_test.go @@ -1,3 +1,7 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package buildutil_test import ( diff --git a/go/buildutil/tags.go b/go/buildutil/tags.go index 486606f376..6da0ce4848 100644 --- a/go/buildutil/tags.go +++ b/go/buildutil/tags.go @@ -1,3 +1,7 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package buildutil // This logic was copied from stringsFlag from $GOROOT/src/cmd/go/build.go. diff --git a/go/buildutil/tags_test.go b/go/buildutil/tags_test.go index 0fc26180a9..f8234314fb 100644 --- a/go/buildutil/tags_test.go +++ b/go/buildutil/tags_test.go @@ -1,3 +1,7 @@ +// Copyright 2015 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package buildutil_test import ( diff --git a/go/callgraph/static/static.go b/go/callgraph/static/static.go index 709bb7b6bd..7c41c1283b 100644 --- a/go/callgraph/static/static.go +++ b/go/callgraph/static/static.go @@ -1,3 +1,7 @@ +// Copyright 2014 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package static computes the call graph of a Go program containing // only static call edges. package static // import "golang.org/x/tools/go/callgraph/static" diff --git a/go/gccgoexportdata/gccgoexportdata_test.go b/go/gccgoexportdata/gccgoexportdata_test.go index 1aa114cae3..0d04102499 100644 --- a/go/gccgoexportdata/gccgoexportdata_test.go +++ b/go/gccgoexportdata/gccgoexportdata_test.go @@ -1,3 +1,7 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package gccgoexportdata_test import ( diff --git a/go/gcexportdata/gcexportdata_test.go b/go/gcexportdata/gcexportdata_test.go index 69133db975..a0006c02d5 100644 --- a/go/gcexportdata/gcexportdata_test.go +++ b/go/gcexportdata/gcexportdata_test.go @@ -1,3 +1,7 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package gcexportdata_test import ( diff --git a/go/packages/example_test.go b/go/packages/example_test.go index 94cf8eb0c2..9e0e58fa37 100644 --- a/go/packages/example_test.go +++ b/go/packages/example_test.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package packages_test import ( diff --git a/go/packages/overlay_test.go b/go/packages/overlay_test.go index 8ce5a7c4c2..97193cfd59 100644 --- a/go/packages/overlay_test.go +++ b/go/packages/overlay_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package packages_test import ( diff --git a/go/packages/packagestest/modules_111.go b/go/packages/packagestest/modules_111.go index a116ae2174..61fa96983a 100644 --- a/go/packages/packagestest/modules_111.go +++ b/go/packages/packagestest/modules_111.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // +build go1.11 package packagestest diff --git a/go/packages/visit.go b/go/packages/visit.go index b13cb081fc..a1dcc40b72 100644 --- a/go/packages/visit.go +++ b/go/packages/visit.go @@ -1,3 +1,7 @@ +// Copyright 2018 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package packages import ( diff --git a/go/pointer/query.go b/go/pointer/query.go index b52cc9f3bc..58aa868b07 100644 --- a/go/pointer/query.go +++ b/go/pointer/query.go @@ -1,3 +1,7 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package pointer import ( diff --git a/go/pointer/query_test.go b/go/pointer/query_test.go index 2756fc0e05..4a3112a1f1 100644 --- a/go/pointer/query_test.go +++ b/go/pointer/query_test.go @@ -1,3 +1,7 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package pointer import ( diff --git a/go/ssa/identical.go b/go/ssa/identical.go index 53cbee107b..f3cc8ac6c6 100644 --- a/go/ssa/identical.go +++ b/go/ssa/identical.go @@ -1,3 +1,7 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // +build go1.8 package ssa diff --git a/go/ssa/identical_17.go b/go/ssa/identical_17.go index da89d3339a..faa124ff55 100644 --- a/go/ssa/identical_17.go +++ b/go/ssa/identical_17.go @@ -1,3 +1,7 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // +build !go1.8 package ssa diff --git a/go/ssa/identical_test.go b/go/ssa/identical_test.go index d194b70e91..2fd4ae988e 100644 --- a/go/ssa/identical_test.go +++ b/go/ssa/identical_test.go @@ -1,3 +1,7 @@ +// Copyright 2017 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // +build go1.8 package ssa_test diff --git a/go/types/typeutil/ui_test.go b/go/types/typeutil/ui_test.go index b5064acf1f..5986b043e8 100644 --- a/go/types/typeutil/ui_test.go +++ b/go/types/typeutil/ui_test.go @@ -1,3 +1,7 @@ +// Copyright 2016 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package typeutil_test import ( diff --git a/gopls/internal/regtest/formatting_test.go b/gopls/internal/regtest/formatting_test.go index c9c00da3eb..63fa0ce10b 100644 --- a/gopls/internal/regtest/formatting_test.go +++ b/gopls/internal/regtest/formatting_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package regtest import ( diff --git a/gopls/internal/regtest/imports_test.go b/gopls/internal/regtest/imports_test.go index 68e06b3ecb..1c52d59fc4 100644 --- a/gopls/internal/regtest/imports_test.go +++ b/gopls/internal/regtest/imports_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package regtest import ( diff --git a/gopls/internal/regtest/vendor_test.go b/gopls/internal/regtest/vendor_test.go index ec79e25aba..f9d43ee940 100644 --- a/gopls/internal/regtest/vendor_test.go +++ b/gopls/internal/regtest/vendor_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package regtest import ( diff --git a/gopls/test/debug/debug_test.go b/gopls/test/debug/debug_test.go index 72aaff48d5..1b51073d37 100644 --- a/gopls/test/debug/debug_test.go +++ b/gopls/test/debug/debug_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package debug_test // Provide 'static type checking' of the templates. This guards against changes is various diff --git a/imports/forward.go b/imports/forward.go index a4e40adba0..8be18a66b3 100644 --- a/imports/forward.go +++ b/imports/forward.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package imports implements a Go pretty-printer (like package "go/format") // that also adds or removes import statements as necessary. package imports // import "golang.org/x/tools/imports" diff --git a/internal/apidiff/apidiff.go b/internal/apidiff/apidiff.go index 76669d8b05..873ee85fbc 100644 --- a/internal/apidiff/apidiff.go +++ b/internal/apidiff/apidiff.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // TODO: test swap corresponding types (e.g. u1 <-> u2 and u2 <-> u1) // TODO: test exported alias refers to something in another package -- does correspondence work then? // TODO: CODE COVERAGE diff --git a/internal/apidiff/apidiff_test.go b/internal/apidiff/apidiff_test.go index 7910096577..b385b7cbba 100644 --- a/internal/apidiff/apidiff_test.go +++ b/internal/apidiff/apidiff_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package apidiff import ( diff --git a/internal/apidiff/compatibility.go b/internal/apidiff/compatibility.go index f78da8f3c9..6b5ba7582a 100644 --- a/internal/apidiff/compatibility.go +++ b/internal/apidiff/compatibility.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package apidiff import ( diff --git a/internal/apidiff/correspondence.go b/internal/apidiff/correspondence.go index bd14c094b5..0d7b4c5a5f 100644 --- a/internal/apidiff/correspondence.go +++ b/internal/apidiff/correspondence.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package apidiff import ( diff --git a/internal/apidiff/messageset.go b/internal/apidiff/messageset.go index 135479053d..895e5f878a 100644 --- a/internal/apidiff/messageset.go +++ b/internal/apidiff/messageset.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // TODO: show that two-non-empty dotjoin can happen, by using an anon struct as a field type // TODO: don't report removed/changed methods for both value and pointer method sets? diff --git a/internal/apidiff/report.go b/internal/apidiff/report.go index ce79e2790a..c3f08a9d39 100644 --- a/internal/apidiff/report.go +++ b/internal/apidiff/report.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package apidiff import ( diff --git a/internal/event/bench_test.go b/internal/event/bench_test.go index 138b236948..9ec7519b5d 100644 --- a/internal/event/bench_test.go +++ b/internal/event/bench_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package event_test import ( diff --git a/internal/event/export/ocagent/metrics_test.go b/internal/event/export/ocagent/metrics_test.go index 2ffdf74353..001e7f02db 100644 --- a/internal/event/export/ocagent/metrics_test.go +++ b/internal/event/export/ocagent/metrics_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package ocagent_test import ( diff --git a/internal/event/export/ocagent/wire/metrics_test.go b/internal/event/export/ocagent/wire/metrics_test.go index fe2497d0e9..34247ad633 100644 --- a/internal/event/export/ocagent/wire/metrics_test.go +++ b/internal/event/export/ocagent/wire/metrics_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package wire import ( diff --git a/internal/imports/imports_test.go b/internal/imports/imports_test.go index 6405ab57d0..198b940e99 100644 --- a/internal/imports/imports_test.go +++ b/internal/imports/imports_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package imports import ( diff --git a/internal/imports/mkstdlib.go b/internal/imports/mkstdlib.go index 85fbc2808a..82d8f51472 100644 --- a/internal/imports/mkstdlib.go +++ b/internal/imports/mkstdlib.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // +build ignore // mkstdlib generates the zstdlib.go file, containing the Go standard diff --git a/internal/imports/mod.go b/internal/imports/mod.go index ce3269a430..901449a820 100644 --- a/internal/imports/mod.go +++ b/internal/imports/mod.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package imports import ( diff --git a/internal/imports/mod_cache.go b/internal/imports/mod_cache.go index 5b4f03accd..18dada495c 100644 --- a/internal/imports/mod_cache.go +++ b/internal/imports/mod_cache.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package imports import ( diff --git a/internal/imports/mod_cache_test.go b/internal/imports/mod_cache_test.go index e7d3c73960..39c691e533 100644 --- a/internal/imports/mod_cache_test.go +++ b/internal/imports/mod_cache_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package imports import ( diff --git a/internal/imports/mod_test.go b/internal/imports/mod_test.go index c6bbe56c20..91863efaca 100644 --- a/internal/imports/mod_test.go +++ b/internal/imports/mod_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package imports import ( diff --git a/internal/lsp/cache/imports.go b/internal/lsp/cache/imports.go index cbad73ee8d..7896d1114c 100644 --- a/internal/lsp/cache/imports.go +++ b/internal/lsp/cache/imports.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package cache import ( diff --git a/internal/lsp/cmd/capabilities_test.go b/internal/lsp/cmd/capabilities_test.go index 66c7eb3bb5..ea0bfedb0f 100644 --- a/internal/lsp/cmd/capabilities_test.go +++ b/internal/lsp/cmd/capabilities_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package cmd import ( diff --git a/internal/lsp/cmd/test/folding_range.go b/internal/lsp/cmd/test/folding_range.go index 6edb58ee0c..4478687b54 100644 --- a/internal/lsp/cmd/test/folding_range.go +++ b/internal/lsp/cmd/test/folding_range.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package cmdtest import ( diff --git a/internal/lsp/cmd/test/highlight.go b/internal/lsp/cmd/test/highlight.go index c4efa0f79b..99e8b2c3fc 100644 --- a/internal/lsp/cmd/test/highlight.go +++ b/internal/lsp/cmd/test/highlight.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package cmdtest import ( diff --git a/internal/lsp/completion_test.go b/internal/lsp/completion_test.go index 55e4e8fda1..53d136fcac 100644 --- a/internal/lsp/completion_test.go +++ b/internal/lsp/completion_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package lsp import ( diff --git a/internal/lsp/diff/diff_test.go b/internal/lsp/diff/diff_test.go index 8c93c10283..dd9414e5d7 100644 --- a/internal/lsp/diff/diff_test.go +++ b/internal/lsp/diff/diff_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package diff_test import ( diff --git a/internal/lsp/folding_range.go b/internal/lsp/folding_range.go index ab91536afa..75f48a4498 100644 --- a/internal/lsp/folding_range.go +++ b/internal/lsp/folding_range.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package lsp import ( diff --git a/internal/lsp/helper/helper.go b/internal/lsp/helper/helper.go index 4d1dc419b4..59438f1033 100644 --- a/internal/lsp/helper/helper.go +++ b/internal/lsp/helper/helper.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Invoke with //go:generate helper/helper -t Server -d protocol/tsserver.go -u lsp -o server_gen.go // invoke in internal/lsp package main diff --git a/internal/lsp/mod/code_lens.go b/internal/lsp/mod/code_lens.go index ecd9c65c1b..4465637be2 100644 --- a/internal/lsp/mod/code_lens.go +++ b/internal/lsp/mod/code_lens.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package mod import ( diff --git a/internal/lsp/mod/format.go b/internal/lsp/mod/format.go index fe223000fb..c355766327 100644 --- a/internal/lsp/mod/format.go +++ b/internal/lsp/mod/format.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package mod import ( diff --git a/internal/lsp/mod/hover.go b/internal/lsp/mod/hover.go index a12b22c4f7..82ba20ff38 100644 --- a/internal/lsp/mod/hover.go +++ b/internal/lsp/mod/hover.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package mod import ( diff --git a/internal/lsp/protocol/context.go b/internal/lsp/protocol/context.go index 3a5b58cc5d..487e4dfe5d 100644 --- a/internal/lsp/protocol/context.go +++ b/internal/lsp/protocol/context.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package protocol import ( diff --git a/internal/lsp/protocol/log.go b/internal/lsp/protocol/log.go index 2c82c64a12..fdcbb7a8d8 100644 --- a/internal/lsp/protocol/log.go +++ b/internal/lsp/protocol/log.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package protocol import ( diff --git a/internal/lsp/server_gen.go b/internal/lsp/server_gen.go index 258e922928..275c7c8657 100644 --- a/internal/lsp/server_gen.go +++ b/internal/lsp/server_gen.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package lsp // code generated by helper. DO NOT EDIT. diff --git a/internal/lsp/source/comment.go b/internal/lsp/source/comment.go index 4b86245f10..1ad3aa581a 100644 --- a/internal/lsp/source/comment.go +++ b/internal/lsp/source/comment.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package source import ( diff --git a/internal/lsp/source/comment_test.go b/internal/lsp/source/comment_test.go index cc37464f8a..f1834223ae 100644 --- a/internal/lsp/source/comment_test.go +++ b/internal/lsp/source/comment_test.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package source import ( diff --git a/internal/lsp/source/folding_range.go b/internal/lsp/source/folding_range.go index 7061017059..05b1d60b78 100644 --- a/internal/lsp/source/folding_range.go +++ b/internal/lsp/source/folding_range.go @@ -1,3 +1,7 @@ +// Copyright 2019 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package source import ( diff --git a/internal/lsp/source/format_test.go b/internal/lsp/source/format_test.go index 52f8aaebe9..5d93a4e2b0 100644 --- a/internal/lsp/source/format_test.go +++ b/internal/lsp/source/format_test.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package source import ( diff --git a/internal/packagesinternal/packages.go b/internal/packagesinternal/packages.go index 1335a5eed8..d4ec6f9715 100644 --- a/internal/packagesinternal/packages.go +++ b/internal/packagesinternal/packages.go @@ -1,3 +1,7 @@ +// Copyright 2020 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + // Package packagesinternal exposes internal-only fields from go/packages. package packagesinternal diff --git a/present/html.go b/present/html.go index 0bb643830a..0c1548cf88 100644 --- a/present/html.go +++ b/present/html.go @@ -1,3 +1,7 @@ +// Copyright 2013 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + package present import (