SYMBOL INDEX (16875 symbols across 1738 files) FILE: benchmark/parse/parse.go constant NsPerOp (line 21) | NsPerOp = 1 << iota constant MBPerS (line 22) | MBPerS constant AllocedBytesPerOp (line 23) | AllocedBytesPerOp constant AllocsPerOp (line 24) | AllocsPerOp type Benchmark (line 28) | type Benchmark struct method parseMeasurement (line 64) | func (b *Benchmark) parseMeasurement(quant string, unit string) { method String (line 89) | func (b *Benchmark) String() string { function ParseLine (line 41) | func ParseLine(line string) (*Benchmark, error) { type Set (line 109) | type Set function ParseSet (line 114) | func ParseSet(r io.Reader) (Set, error) { FILE: benchmark/parse/parse_test.go function TestParseLine (line 13) | func TestParseLine(t *testing.T) { function TestParseSet (line 93) | func TestParseSet(t *testing.T) { function TestString (line 156) | func TestString(t *testing.T) { FILE: blog/atom/atom.go type Feed (line 15) | type Feed struct type Entry (line 25) | type Entry struct type Link (line 36) | type Link struct type Person (line 45) | type Person struct type Text (line 52) | type Text struct type TimeStr (line 57) | type TimeStr function Time (line 59) | func Time(t time.Time) TimeStr { FILE: blog/blog.go type Config (line 37) | type Config struct type Doc (line 56) | type Doc struct type Server (line 67) | type Server struct method loadDocs (line 192) | func (s *Server) loadDocs(root string) error { method renderAtomFeed (line 300) | func (s *Server) renderAtomFeed() error { method renderJSONFeed (line 372) | func (s *Server) renderJSONFeed() error { method ServeHTTP (line 428) | func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) { function NewServer (line 83) | func NewServer(cfg Config) (*Server, error) { function sectioned (line 151) | func sectioned(d *present.Doc) bool { function authors (line 156) | func authors(authors []present.Author) string { function authorName (line 176) | func authorName(a present.Author) string { type jsonItem (line 361) | type jsonItem struct function summary (line 397) | func summary(d *Doc) string { type rootData (line 418) | type rootData struct type docsByTime (line 492) | type docsByTime method Len (line 494) | func (s docsByTime) Len() int { return len(s) } method Swap (line 495) | func (s docsByTime) Swap(i, j int) { s[i], s[j] = s[j], s[i] } method Less (line 496) | func (s docsByTime) Less(i, j int) bool { return s[i].Time.After(s[j].... function notExist (line 499) | func notExist(path string) bool { FILE: blog/blog_test.go function TestLinkRewrite (line 12) | func TestLinkRewrite(t *testing.T) { FILE: cmd/benchcmp/benchcmp.go constant usageFooter (line 24) | usageFooter = ` function main (line 34) | func main() { function fatal (line 136) | func fatal(msg any) { function parseFile (line 141) | func parseFile(path string) parse.Set { function selectBest (line 157) | func selectBest(bs parse.Set) { function formatNs (line 176) | func formatNs(ns float64) string { FILE: cmd/benchcmp/benchcmp_test.go function TestSelectBest (line 14) | func TestSelectBest(t *testing.T) { function TestFormatNs (line 65) | func TestFormatNs(t *testing.T) { FILE: cmd/benchcmp/compare.go type BenchCmp (line 15) | type BenchCmp struct method Name (line 37) | func (c BenchCmp) Name() string { return c.Before.Name } method String (line 38) | func (c BenchCmp) String() string { return fmt.Sprintf("<%s, %... method Measured (line 39) | func (c BenchCmp) Measured(flag int) bool { return (c.Before.Measured ... method DeltaNsPerOp (line 40) | func (c BenchCmp) DeltaNsPerOp() Delta { return Delta{c.Before.NsPe... method DeltaMBPerS (line 41) | func (c BenchCmp) DeltaMBPerS() Delta { return Delta{c.Before.MBPe... method DeltaAllocedBytesPerOp (line 42) | func (c BenchCmp) DeltaAllocedBytesPerOp() Delta { method DeltaAllocsPerOp (line 45) | func (c BenchCmp) DeltaAllocsPerOp() Delta { function Correlate (line 21) | func Correlate(before, after parse.Set) (cmps []BenchCmp, warnings []str... type Delta (line 51) | type Delta struct method mag (line 58) | func (d Delta) mag() float64 { method Changed (line 74) | func (d Delta) Changed() bool { return d.Before != d.After } method Float64 (line 78) | func (d Delta) Float64() float64 { method Percent (line 90) | func (d Delta) Percent() string { method Multiple (line 95) | func (d Delta) Multiple() string { method String (line 99) | func (d Delta) String() string { type ByParseOrder (line 105) | type ByParseOrder method Len (line 107) | func (x ByParseOrder) Len() int { return len(x) } method Swap (line 108) | func (x ByParseOrder) Swap(i, j int) { x[i], x[j] = x[j], x[i] } method Less (line 109) | func (x ByParseOrder) Less(i, j int) bool { return x[i].Before.Ord < x... function lessByDelta (line 114) | func lessByDelta(i, j BenchCmp, calcDelta func(BenchCmp) Delta) bool { type ByDeltaNsPerOp (line 124) | type ByDeltaNsPerOp method Len (line 126) | func (x ByDeltaNsPerOp) Len() int { return len(x) } method Swap (line 127) | func (x ByDeltaNsPerOp) Swap(i, j int) { x[i], x[j] = x[j], x[i] } method Less (line 128) | func (x ByDeltaNsPerOp) Less(i, j int) bool { return lessByDelta(x[i],... type ByDeltaMBPerS (line 132) | type ByDeltaMBPerS method Len (line 134) | func (x ByDeltaMBPerS) Len() int { return len(x) } method Swap (line 135) | func (x ByDeltaMBPerS) Swap(i, j int) { x[i], x[j] = x[j], x[i] } method Less (line 136) | func (x ByDeltaMBPerS) Less(i, j int) bool { return lessByDelta(x[i], ... type ByDeltaAllocedBytesPerOp (line 140) | type ByDeltaAllocedBytesPerOp method Len (line 142) | func (x ByDeltaAllocedBytesPerOp) Len() int { return len(x) } method Swap (line 143) | func (x ByDeltaAllocedBytesPerOp) Swap(i, j int) { x[i], x[j] = x[j], ... method Less (line 144) | func (x ByDeltaAllocedBytesPerOp) Less(i, j int) bool { type ByDeltaAllocsPerOp (line 150) | type ByDeltaAllocsPerOp method Len (line 152) | func (x ByDeltaAllocsPerOp) Len() int { return len(x) } method Swap (line 153) | func (x ByDeltaAllocsPerOp) Swap(i, j int) { x[i], x[j] = x[j], x[i] } method Less (line 154) | func (x ByDeltaAllocsPerOp) Less(i, j int) bool { FILE: cmd/benchcmp/compare_test.go function TestDelta (line 16) | func TestDelta(t *testing.T) { function TestCorrelate (line 53) | func TestCorrelate(t *testing.T) { function TestBenchCmpSorting (line 111) | func TestBenchCmpSorting(t *testing.T) { FILE: cmd/bisect/go120.go function cmdInterrupt (line 13) | func cmdInterrupt(cmd *exec.Cmd) { FILE: cmd/bisect/main.go function usage (line 154) | func usage() { function main (line 160) | func main() { type Bisect (line 231) | type Bisect struct method Search (line 308) | func (b *Bisect) Search() bool { method Fatalf (line 420) | func (b *Bisect) Fatalf(format string, args ...any) { method Logf (line 430) | func (b *Bisect) Logf(format string, args ...any) { method search (line 473) | func (b *Bisect) search(r *Result) []string { method Run (line 564) | func (b *Bisect) Run(suffix string) *Result { method run (line 576) | func (b *Bisect) run(suffix string) *Result { type Result (line 290) | type Result struct function skipHexDigits (line 438) | func skipHexDigits(idY, idN []uint64) int { function replace (line 707) | func replace(x, pattern, random string) string { function commonSuffix (line 715) | func commonSuffix(list []uint64) string { FILE: cmd/bisect/main_test.go function Test (line 26) | func Test(t *testing.T) { function eval (line 124) | func eval(rnd *rand.Rand, z constraint.Expr, have map[string]bool) bool { FILE: cmd/bundle/main.go function init (line 101) | func init() { function addImportMap (line 105) | func addImportMap(s string) { function usage (line 117) | func usage() { function main (line 122) | func main() { function isStandardImportPath (line 164) | func isStandardImportPath(path string) bool { function bundle (line 175) | func bundle(src, dst, dstpkg, prefix, buildTags string) ([]byte, error) { function sourceRange (line 388) | func sourceRange(decl ast.Decl) (beg, end token.Pos) { function printComments (line 419) | func printComments(out *bytes.Buffer, comments []*ast.CommentGroup, pos,... constant infinity (line 430) | infinity = 1 << 30 function printLastComments (line 432) | func printLastComments(out *bytes.Buffer, comments []*ast.CommentGroup, ... function printSameLineComment (line 436) | func printSameLineComment(out *bytes.Buffer, comments []*ast.CommentGrou... function quoteArgs (line 449) | func quoteArgs(ss []string) []string { function containsSpace (line 469) | func containsSpace(s string) bool { type flagFunc (line 478) | type flagFunc method Set (line 480) | func (f flagFunc) Set(s string) error { method String (line 485) | func (f flagFunc) String() string { return "" } FILE: cmd/bundle/main_test.go function TestBundle (line 17) | func TestBundle(t *testing.T) { packagestest.TestAll(t, testBundle) } function testBundle (line 18) | func testBundle(t *testing.T, x packagestest.Exporter) { function diff (line 62) | func diff(a, b string) string { FILE: cmd/bundle/testdata/src/domain.name/importdecl/p.go function F (line 3) | func F() int { return 1 } FILE: cmd/bundle/testdata/src/initial/a.go function init (line 6) | func init() { foo() } type S (line 9) | type S struct function bar (line 23) | func bar(s *S) { FILE: cmd/bundle/testdata/src/initial/b.go type t (line 10) | type t constant c (line 13) | c = 1 function foo (line 15) | func foo() { constant z1 (line 21) | z1 = iota constant z2 (line 22) | z2 FILE: cmd/bundle/testdata/src/initial/c.go function baz (line 8) | func baz() { FILE: cmd/callgraph/main.go constant Usage (line 57) | Usage = `callgraph: display the call graph of a Go program. function init (line 147) | func init() { function main (line 156) | func main() { function doCallgraph (line 166) | func doCallgraph(dir, gopath, algo, format string, tests bool, args []st... function mainPackages (line 285) | func mainPackages(pkgs []*ssa.Package) ([]*ssa.Package, error) { type Edge (line 298) | type Edge struct method pos (line 307) | func (e *Edge) pos() *token.Position { method Filename (line 314) | func (e *Edge) Filename() string { return e.pos().Filename } method Column (line 315) | func (e *Edge) Column() int { return e.pos().Column } method Line (line 316) | func (e *Edge) Line() int { return e.pos().Line } method Offset (line 317) | func (e *Edge) Offset() int { return e.pos().Offset } method Dynamic (line 319) | func (e *Edge) Dynamic() string { method Description (line 326) | func (e *Edge) Description() string { return e.edge.Description() } FILE: cmd/callgraph/main_test.go function init (line 23) | func init() { function TestCallgraph (line 35) | func TestCallgraph(t *testing.T) { FILE: cmd/callgraph/testdata/src/pkg/pkg.go type I (line 3) | type I interface type C (line 7) | type C method f (line 9) | func (C) f() {} type D (line 11) | type D method f (line 13) | func (D) f() {} function main (line 15) | func main() { function main2 (line 22) | func main2() { FILE: cmd/callgraph/testdata/src/pkg/pkg_test.go function Example (line 6) | func Example() { FILE: cmd/compilebench/main.go type test (line 124) | type test struct type runner (line 129) | type runner interface function usage (line 153) | func usage() { function main (line 160) | func main() { function toolPath (line 234) | func toolPath(names ...string) (found, path string) { type Pkg (line 250) | type Pkg struct function goList (line 257) | func goList(dir string) (*Pkg, error) { function runCmd (line 269) | func runCmd(name string, cmd *exec.Cmd) error { type goBuild (line 279) | type goBuild struct method long (line 281) | func (goBuild) long() bool { return true } method run (line 283) | func (r goBuild) run(name string, count int) error { type size (line 294) | type size struct method long (line 300) | func (r size) long() bool { return r.isLong } method run (line 302) | func (r size) run(name string, count int) error { type compile (line 335) | type compile struct method long (line 337) | func (compile) long() bool { return false } method run (line 339) | func (c compile) run(name string, count int) error { type link (line 409) | type link struct method long (line 411) | func (link) long() bool { return false } method run (line 413) | func (r link) run(name string, count int) error { function runBuildCmd (line 479) | func runBuildCmd(name string, count int, dir, tool string, args []string... function checkCompilingRuntimeFlag (line 579) | func checkCompilingRuntimeFlag(assembler string) error { function genSymAbisFile (line 623) | func genSymAbisFile(pkg *Pkg, symAbisFile, incdir string) error { function genImportcfgFile (line 652) | func genImportcfgFile(dir string, flags string, full bool) (string, erro... FILE: cmd/deadcode/deadcode.go function usage (line 55) | func usage() { function main (line 66) | func main() { function prettyName (line 388) | func prettyName(fn *ssa.Function, qualified bool) string { function printObjects (line 423) | func printObjects(format string, objects []any) { function pathSearch (line 449) | func pathSearch(roots []*ssa.Function, res *rta.Result, targets map[*ssa... function isStaticCall (line 538) | func isStaticCall(edge *callgraph.Edge) bool { function toJSONPosition (line 544) | func toJSONPosition(posn token.Position) jsonPosition { function cond (line 554) | func cond[T any](cond bool, t, f T) T { function isMarkerMethod (line 565) | func isMarkerMethod(fn *ssa.Function, interfaceTypes []*types.Interface)... type jsonFunction (line 590) | type jsonFunction struct method String (line 597) | func (f jsonFunction) String() string { return f.Name } type jsonPackage (line 599) | type jsonPackage struct method String (line 605) | func (p jsonPackage) String() string { return p.Path } type jsonEdge (line 608) | type jsonEdge struct type jsonPosition (line 615) | type jsonPosition struct method String (line 620) | func (p jsonPosition) String() string { FILE: cmd/deadcode/deadcode_test.go function Test (line 24) | func Test(t *testing.T) { function buildDeadcode (line 147) | func buildDeadcode(t *testing.T) string { function words (line 161) | func words(s string) ([]string, error) { FILE: cmd/digraph/digraph.go function usage (line 29) | func usage() { function main (line 42) | func main() { type nodelist (line 57) | type nodelist method println (line 59) | func (l nodelist) println(sep string) { type nodeset (line 69) | type nodeset method sort (line 73) | func (s nodeset) sort() nodelist { method addAll (line 84) | func (s nodeset) addAll(x nodeset) { function singleton (line 71) | func singleton(x string) nodeset { return nodeset{x: true} } type graph (line 91) | type graph method addNode (line 93) | func (g graph) addNode(node string) nodeset { method addEdges (line 102) | func (g graph) addEdges(from string, to ...string) { method nodelist (line 110) | func (g graph) nodelist() nodelist { method reachableFrom (line 118) | func (g graph) reachableFrom(roots nodeset) nodeset { method transpose (line 135) | func (g graph) transpose() graph { method sccs (line 146) | func (g graph) sccs() []nodeset { method allpaths (line 196) | func (g graph) allpaths(from, to string) error { method somepath (line 228) | func (g graph) somepath(from, to string) error { method toDot (line 269) | func (g graph) toDot(w *bytes.Buffer) { function parse (line 283) | func parse(rd io.Reader) (graph, error) { function digraph (line 318) | func digraph(cmd string, args []string) error { function split (line 509) | func split(line string) ([]string, error) { function quotedLength (line 565) | func quotedLength(input string) (n int, ok bool) { FILE: cmd/digraph/digraph_test.go function TestDigraph (line 16) | func TestDigraph(t *testing.T) { function TestAllpaths (line 71) | func TestAllpaths(t *testing.T) { function TestSomepath (line 202) | func TestSomepath(t *testing.T) { function TestSplit (line 267) | func TestSplit(t *testing.T) { function TestQuotedLength (line 285) | func TestQuotedLength(t *testing.T) { function TestFocus (line 325) | func TestFocus(t *testing.T) { function TestToDot (line 386) | func TestToDot(t *testing.T) { FILE: cmd/eg/eg.go constant usage (line 37) | usage = `eg: an example-based refactoring tool. function main (line 51) | func main() { function doMain (line 58) | func doMain() error { type pkgsImporter (line 180) | type pkgsImporter method Import (line 182) | func (p pkgsImporter) Import(path string) (tpkg *types.Package, err er... FILE: cmd/file2fuzz/main.go function encodeByteSlice (line 36) | func encodeByteSlice(b []byte) []byte { function usage (line 40) | func usage() { function dirWriter (line 46) | func dirWriter(dir string) func([]byte) error { function convert (line 61) | func convert(inputArgs []string, outputArg string) error { function main (line 119) | func main() { FILE: cmd/file2fuzz/main_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function file2fuzz (line 33) | func file2fuzz(t *testing.T, dir string, args []string, stdin string) (s... function TestFile2Fuzz (line 56) | func TestFile2Fuzz(t *testing.T) { FILE: cmd/fiximports/main.go constant usage (line 104) | usage = `fiximports: rewrite import paths to use canonical package names. function main (line 120) | func main() { type canonicalName (line 132) | type canonicalName struct function fiximports (line 136) | func fiximports(packages ...string) bool { function rewritePackage (line 351) | func rewritePackage(client *listPackage, canonical map[string]canonicalN... function rewriteFile (line 394) | func rewriteFile(filename string, canonical map[string]canonicalName, us... type listPackage (line 453) | type listPackage struct type packageError (line 468) | type packageError struct method Error (line 474) | func (e packageError) Error() string { function list (line 483) | func list(args ...string) ([]*listPackage, error) { function shortPath (line 520) | func shortPath(path string) string { FILE: cmd/fiximports/main_test.go function init (line 40) | func init() { function TestFixImports (line 56) | func TestFixImports(t *testing.T) { function TestDryRun (line 249) | func TestDryRun(t *testing.T) { FILE: cmd/go-contrib-init/contrib.go function main (line 30) | func main() { function detectrepo (line 44) | func detectrepo() string { function checkCLA (line 67) | func checkCLA() { function expandUser (line 84) | func expandUser(s string) string { function cookiesFile (line 111) | func cookiesFile() string { function checkGoroot (line 125) | func checkGoroot() { function checkWorkingDir (line 148) | func checkWorkingDir() { function inGoPath (line 165) | func inGoPath(wd string) bool { function checkGitOrigin (line 180) | func checkGitOrigin() { function cmdErr (line 211) | func cmdErr(err error) string { function checkGitCodeReview (line 218) | func checkGitCodeReview() { FILE: cmd/go-contrib-init/contrib_test.go function TestExpandUser (line 15) | func TestExpandUser(t *testing.T) { function TestCmdErr (line 43) | func TestCmdErr(t *testing.T) { FILE: cmd/godex/gc.go function init (line 14) | func init() { FILE: cmd/godex/gccgo.go function init (line 15) | func init() { method printGccgoExtra (line 20) | func (p *printer) printGccgoExtra(pkg *types.Package) { FILE: cmd/godex/godex.go function usage (line 30) | func usage() { function report (line 36) | func report(msg string) { function main (line 41) | func main() { function logf (line 87) | func logf(format string, args ...any) { function splitPathIdent (line 95) | func splitPathIdent(arg string) (path, name string) { function tryPrefixes (line 111) | func tryPrefixes(prefixes chan string, path string, imp types.Importer) ... type tryImporters (line 134) | type tryImporters struct method Import (line 136) | func (t *tryImporters) Import(path string) (pkg *types.Package, err er... type protector (line 148) | type protector struct method Import (line 152) | func (p *protector) Import(path string) (pkg *types.Package, err error) { function protect (line 163) | func protect(imp types.Importer) types.Importer { function register (line 168) | func register(src string, imp types.Importer) { function lookup (line 177) | func lookup(src string) types.Importer { function genPrefixes (line 186) | func genPrefixes(out chan string, all bool) { function walkDir (line 198) | func walkDir(dirname, prefix string, out chan string) { FILE: cmd/godex/isAlias18.go function isAlias (line 11) | func isAlias(obj *types.TypeName) bool { FILE: cmd/godex/isAlias19.go function isAlias (line 11) | func isAlias(obj *types.TypeName) bool { FILE: cmd/godex/print.go function print (line 19) | func print(w io.Writer, pkg *types.Package, filter func(types.Object) bo... type printer (line 27) | type printer struct method print (line 34) | func (p *printer) print(s string) { method printf (line 51) | func (p *printer) printf(format string, args ...any) { method printPackage (line 76) | func (p *printer) printPackage(pkg *types.Package, filter func(types.O... method printDecl (line 198) | func (p *printer) printDecl(keyword string, n int, printGroup func()) { method printObj (line 317) | func (p *printer) printObj(obj types.Object) { method printFunc (line 335) | func (p *printer) printFunc(recvType types.Type, obj *types.Func) { function methodsFor (line 58) | func methodsFor(obj *types.TypeName) (*types.Named, []*types.Selection) { function absInt (line 216) | func absInt(v constant.Value) *big.Int { function floatString (line 232) | func floatString(v constant.Value) string { function valString (line 290) | func valString(v constant.Value, floatFmt bool) string { function combinedMethodSet (line 355) | func combinedMethodSet(T *types.Named) []*types.Selection { FILE: cmd/godex/source.go function init (line 11) | func init() { type sourceImporter (line 15) | type sourceImporter struct method Import (line 17) | func (sourceImporter) Import(path string) (*types.Package, error) { FILE: cmd/godex/writetype.go method writeType (line 20) | func (p *printer) writeType(this *types.Package, typ types.Type) { constant GcCompatibilityMode (line 25) | GcCompatibilityMode = false method writeTypeInternal (line 27) | func (p *printer) writeTypeInternal(this *types.Package, typ types.Type,... method writeTuple (line 203) | func (p *printer) writeTuple(this *types.Package, tup *types.Tuple, vari... method writeSignature (line 224) | func (p *printer) writeSignature(this *types.Package, sig *types.Signatu... method writeSignatureInternal (line 228) | func (p *printer) writeSignatureInternal(this *types.Package, sig *types... FILE: cmd/goimports/goimports.go function init (line 53) | func init() { function report (line 59) | func report(err error) { function usage (line 64) | func usage() { function isGoFile (line 70) | func isGoFile(f os.FileInfo) bool { type argumentType (line 77) | type argumentType constant fromStdin (line 81) | fromStdin argumentType = iota constant singleArg (line 85) | singleArg constant multipleArg (line 89) | multipleArg function processFile (line 92) | func processFile(filename string, in io.Reader, out io.Writer, argType a... function visitFile (line 187) | func visitFile(path string, f os.FileInfo, err error) error { function walkDir (line 197) | func walkDir(path string) { function main (line 201) | func main() { function bufferedFileWriter (line 223) | func bufferedFileWriter(dest string) (w io.Writer, close func()) { function gofmtMain (line 239) | func gofmtMain() { function writeTempFile (line 301) | func writeTempFile(dir, prefix string, data []byte) (string, error) { function diff (line 317) | func diff(b1, b2 []byte, filename string) (data []byte, err error) { function replaceTempFilename (line 353) | func replaceTempFilename(diff []byte, filename string) ([]byte, error) { function isFile (line 374) | func isFile(name string) bool { function isDir (line 380) | func isDir(name string) bool { FILE: cmd/goimports/goimports_gc.go function doTrace (line 16) | func doTrace() func() { FILE: cmd/goimports/goimports_not_gc.go function doTrace (line 9) | func doTrace() func() { FILE: cmd/gomvpkg/main.go function init (line 26) | func init() { constant Usage (line 30) | Usage = `gomvpkg: moves a package, updating import declarations function main (line 77) | func main() { FILE: cmd/gonew/main.go function usage (line 56) | func usage() { function main (line 62) | func main() { function fixGo (line 168) | func fixGo(data []byte, file string, srcMod, dstMod string, isRoot bool)... function fixGoMod (line 222) | func fixGoMod(data []byte, dstMod string) []byte { FILE: cmd/gonew/main_test.go function init (line 24) | func init() { function Test (line 31) | func Test(t *testing.T) { type Zip (line 158) | type Zip struct function writeProxyFiles (line 166) | func writeProxyFiles(t *testing.T, proxy string, ar *txtar.Archive) { FILE: cmd/gotype/gotype.go function initParserMode (line 128) | func initParserMode() { constant usageString (line 144) | usageString = `usage: gotype [flags] [path ...] function usage (line 171) | func usage() { function report (line 178) | func report(err error) { function parse (line 188) | func parse(filename string, src any) (*ast.File, error) { function parseStdin (line 199) | func parseStdin() (*ast.File, error) { function parseFiles (line 207) | func parseFiles(dir string, filenames []string) ([]*ast.File, error) { function parseDir (line 234) | func parseDir(dir string) ([]*ast.File, error) { function getPkgFiles (line 252) | func getPkgFiles(args []string) ([]*ast.File, error) { function checkPkgFiles (line 278) | func checkPkgFiles(files []*ast.File) { function printStats (line 308) | func printStats(d time.Duration) { function main (line 323) | func main() { FILE: cmd/gotype/sizesFor18.go constant defaultCompiler (line 14) | defaultCompiler = "gc" function SizesFor (line 31) | func SizesFor(compiler, arch string) types.Sizes { FILE: cmd/gotype/sizesFor19.go constant defaultCompiler (line 11) | defaultCompiler = "source" function SizesFor (line 13) | func SizesFor(compiler, arch string) types.Sizes { FILE: cmd/goyacc/yacc.go constant ACTSIZE (line 64) | ACTSIZE = 240000 constant NSTATES (line 65) | NSTATES = 16000 constant TEMPSIZE (line 66) | TEMPSIZE = 16000 constant SYMINC (line 68) | SYMINC = 50 constant RULEINC (line 69) | RULEINC = 50 constant PRODINC (line 70) | PRODINC = 100 constant WSETINC (line 71) | WSETINC = 50 constant STATEINC (line 72) | STATEINC = 200 constant PRIVATE (line 74) | PRIVATE = 0xE000 constant NTBASE (line 81) | NTBASE = 010000 constant ERRCODE (line 82) | ERRCODE = 8190 constant ACCEPTCODE (line 83) | ACCEPTCODE = 8191 constant YYLEXUNK (line 84) | YYLEXUNK = 3 constant TOKSTART (line 85) | TOKSTART = 4 constant NOASC (line 90) | NOASC = iota constant LASC (line 91) | LASC constant RASC (line 92) | RASC constant BASC (line 93) | BASC constant DONE (line 98) | DONE = iota constant MUSTDO (line 99) | MUSTDO constant MUSTLOOKAHEAD (line 100) | MUSTLOOKAHEAD constant ACTFLAG (line 105) | ACTFLAG = 1 << (iota + 2) constant REDFLAG (line 106) | REDFLAG constant yyFlag (line 110) | yyFlag = -1000 constant IDENTIFIER (line 114) | IDENTIFIER = PRIVATE + iota constant MARK (line 115) | MARK constant TERM (line 116) | TERM constant LEFT (line 117) | LEFT constant RIGHT (line 118) | RIGHT constant BINARY (line 119) | BINARY constant PREC (line 120) | PREC constant LCURLY (line 121) | LCURLY constant IDENTCOLON (line 122) | IDENTCOLON constant NUMBER (line 123) | NUMBER constant START (line 124) | START constant TYPEDEF (line 125) | TYPEDEF constant TYPENAME (line 126) | TYPENAME constant UNION (line 127) | UNION constant ERROR (line 128) | ERROR constant ENDFILE (line 131) | ENDFILE = 0 constant EMPTY (line 132) | EMPTY = 1 constant WHOKNOWS (line 133) | WHOKNOWS = 0 constant OK (line 134) | OK = 1 constant NOMORE (line 135) | NOMORE = -1000 function ASSOC (line 138) | func ASSOC(i int) int { return i & 3 } function PLEVEL (line 140) | func PLEVEL(i int) int { return (i >> 4) & 077 } function TYPE (line 142) | func TYPE(i int) int { return (i >> 10) & 077 } function SETASC (line 145) | func SETASC(i, j int) int { return i | j } function SETPLEV (line 147) | func SETPLEV(i, j int) int { return i | (j << 4) } function SETTYPE (line 149) | func SETTYPE(i, j int) int { return i | (j << 10) } function init (line 165) | func init() { type Lkset (line 181) | type Lkset type Pitem (line 183) | type Pitem struct type Item (line 190) | type Item struct type Symb (line 195) | type Symb struct type Wset (line 201) | type Wset struct type Resrv (line 308) | type Resrv struct type Error (line 328) | type Error struct type Row (line 336) | type Row struct constant EOF (line 345) | EOF = -1 function main (line 347) | func main() { function setup (line 373) | func setup() { function moreprod (line 746) | func moreprod() { function defin (line 766) | func defin(nt int, s string) int { function gettok (line 825) | func gettok() int { function getword (line 997) | func getword(c rune) { function fdtype (line 1007) | func fdtype(t int) int { function chfind (line 1024) | func chfind(t int, s string) int { function cpyunion (line 1047) | func cpyunion() { function cpycode (line 1083) | func cpycode() { function emitcode (line 1118) | func emitcode(code []rune, lineno int) { function isPackageClause (line 1132) | func isPackageClause(line []rune) bool { function skipspace (line 1174) | func skipspace(line []rune) []rune { function lines (line 1185) | func lines(code []rune) [][]rune { function writecode (line 1202) | func writecode(code []rune) { function skipcom (line 1210) | func skipcom() int { function cpyact (line 1250) | func cpyact(curprod []int, max int) { function openup (line 1441) | func openup() { function symnam (line 1468) | func symnam(i int) string { function aryfil (line 1480) | func aryfil(v []int, n, c int) { function cpres (line 1489) | func cpres() { function cempty (line 1528) | func cempty() { function cpfir (line 1611) | func cpfir() { function stagen (line 1677) | func stagen() { function closure (line 1767) | func closure(i int) { function state (line 1897) | func state(c int) int { function putitem (line 1986) | func putitem(p Pitem, set Lkset) { function writem (line 2010) | func writem(pp Pitem) string { function apack (line 2046) | func apack(p []int, n int) int { function output (line 2111) | func output() { function precftn (line 2203) | func precftn(r, t, s int) { function addActions (line 2235) | func addActions(act []int, i int) []int { function wrstate (line 2324) | func wrstate(i int) { function go2out (line 2394) | func go2out() { function go2gen (line 2457) | func go2gen(c int) { function hideprod (line 2512) | func hideprod() { function callopt (line 2531) | func callopt() { function nxti (line 2626) | func nxti() int { function gin (line 2647) | func gin(i int) { function stin (line 2693) | func stin(i int) { function aoutput (line 2764) | func aoutput() { function others (line 2773) | func others() { function runMachine (line 2895) | func runMachine(tokens []string) (state, token int) { function minMax (line 2948) | func minMax(v []int) (min, max int) { function minType (line 2966) | func minType(v []int, allowUnsigned bool) (typ string) { function arrayOutColumns (line 2987) | func arrayOutColumns(s string, v []int, columns int, allowUnsigned bool) { function arout (line 3003) | func arout(s string, v []int, n int) { function summary (line 3008) | func summary() { function osummary (line 3036) | func osummary() { function chcopy (line 3053) | func chcopy(q string) string { function usage (line 3068) | func usage() { function bitset (line 3073) | func bitset(set Lkset, bit int) int { return set[bit>>5] & (1 << uint(bi... function setbit (line 3075) | func setbit(set Lkset, bit int) { set[bit>>5] |= (1 << uint(bit&31)) } function mkset (line 3077) | func mkset() Lkset { return make([]int, tbitset) } function setunion (line 3081) | func setunion(a, b []int) int { function prlook (line 3094) | func prlook(p Lkset) { function isdigit (line 3111) | func isdigit(c rune) bool { return c >= '0' && c <= '9' } function isword (line 3113) | func isword(c rune) bool { function aryeq (line 3119) | func aryeq(a []int, b []int) int { function getrune (line 3132) | func getrune(f *bufio.Reader) rune { function ungetrune (line 3155) | func ungetrune(f *bufio.Reader, c rune) { function open (line 3165) | func open(s string) *bufio.Reader { function create (line 3174) | func create(s string) *bufio.Writer { function lerrorf (line 3184) | func lerrorf(lineno int, s string, v ...any) { function errorf (line 3194) | func errorf(s string, v ...any) { function exit (line 3198) | func exit(status int) { function gofmt (line 3215) | func gofmt() { FILE: cmd/html2article/conv.go function main (line 26) | func main() { function convert (line 35) | func convert(w io.Writer, r io.Reader) error { type Style (line 55) | type Style constant Bold (line 58) | Bold Style = "*" constant Italic (line 59) | Italic Style = "_" constant Code (line 60) | Code Style = "`" function parseStyles (line 65) | func parseStyles(style *html.Node) error { function limitNewlineRuns (line 107) | func limitNewlineRuns(s string) string { function makeHeadings (line 111) | func makeHeadings(body string) string { function isBoldTitle (line 128) | func isBoldTitle(s string) bool { function indent (line 134) | func indent(buf *bytes.Buffer, s string) { function unwrap (line 144) | func unwrap(buf *bytes.Buffer, s string) { function text (line 164) | func text(n *html.Node) string { function childText (line 249) | func childText(node *html.Node) string { function highlight (line 257) | func highlight(node *html.Node, char string) string { type selector (line 262) | type selector function isTag (line 264) | func isTag(a atom.Atom) selector { function hasClass (line 270) | func hasClass(name string) selector { function hasStyle (line 283) | func hasStyle(s Style) selector { function attr (line 300) | func attr(node *html.Node, key string) (value string) { function find (line 309) | func find(n *html.Node, fn selector) *html.Node { function walk (line 324) | func walk(n *html.Node, fn selector) { FILE: cmd/present/dir.go function init (line 22) | func init() { function dirHandler (line 27) | func dirHandler(w http.ResponseWriter, r *http.Request) { function isDoc (line 55) | func isDoc(path string) bool { function initTemplates (line 69) | func initTemplates(fsys fs.FS) error { function renderDoc (line 97) | func renderDoc(w io.Writer, docFile string) error { function parse (line 111) | func parse(name string, mode present.ParseMode) (*present.Doc, error) { function dirList (line 125) | func dirList(w io.Writer, name string) (isDir bool, err error) { function showFile (line 186) | func showFile(n string) bool { function showDir (line 198) | func showDir(n string) bool { type dirListData (line 205) | type dirListData struct type dirEntry (line 210) | type dirEntry struct type dirEntrySlice (line 214) | type dirEntrySlice method Len (line 216) | func (s dirEntrySlice) Len() int { return len(s) } method Swap (line 217) | func (s dirEntrySlice) Swap(i, j int) { s[i], s[j] = s[j], s[i] } method Less (line 218) | func (s dirEntrySlice) Less(i, j int) bool { return s[i].Name < s[j].N... FILE: cmd/present/main.go function main (line 33) | func main() { constant localhostWarning (line 112) | localhostWarning = ` FILE: cmd/present/play.go function playScript (line 31) | func playScript(fsys fs.FS, transport string) { function initPlayground (line 49) | func initPlayground(fsys fs.FS, origin *url.URL) { function playable (line 62) | func playable(c present.Code) bool { FILE: cmd/present/static/dir.js function bindEvent (line 7) | function bindEvent(el, e, fn) { function godocs_bindSearchEvents (line 15) | function godocs_bindSearchEvents() { FILE: cmd/present/static/jquery-ui.js function i (line 6) | function i(t,i){var a,n,r,o=t.nodeName.toLowerCase();return"area"===o?(a... function s (line 6) | function s(t){return e.expr.filters.visible(t)&&!e(t).parents().addBack(... function a (line 6) | function a(t,i,s,a){return e.each(n,function(){i-=parseFloat(e.css(t,"pa... function h (line 6) | function h(){return i||r.options.disabled!==!0&&!e(this).hasClass("ui-st... function i (line 6) | function i(){return("string"==typeof e?s[e]:e).apply(s,arguments)} function t (line 6) | function t(e){return parseInt(e,10)||0} function i (line 6) | function i(e){return!isNaN(parseInt(e,10))} FILE: cmd/present/static/jquery.js function G (line 2) | function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=... function J (line 2) | function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-... function K (line 2) | function K(a){var b;for(b in a){if(b==="data"&&p.isEmptyObject(a[b]))con... function ba (line 2) | function ba(){return!1} function bb (line 2) | function bb(){return!0} function bh (line 2) | function bh(a){return!a||!a.parentNode||a.parentNode.nodeType===11} function bi (line 2) | function bi(a,b){do a=a[b];while(a&&a.nodeType!==1);return a} function bj (line 2) | function bj(a,b,c){b=b||0;if(p.isFunction(b))return p.grep(a,function(a,... function bk (line 2) | function bk(a){var b=bl.split("|"),c=a.createDocumentFragment();if(c.cre... function bC (line 2) | function bC(a,b){return a.getElementsByTagName(b)[0]||a.appendChild(a.ow... function bD (line 2) | function bD(a,b){if(b.nodeType!==1||!p.hasData(a))return;var c,d,e,f=p._... function bE (line 2) | function bE(a,b){var c;if(b.nodeType!==1)return;b.clearAttributes&&b.cle... function bF (line 2) | function bF(a){return typeof a.getElementsByTagName!="undefined"?a.getEl... function bG (line 2) | function bG(a){bv.test(a.type)&&(a.defaultChecked=a.checked)} function bY (line 2) | function bY(a,b){if(b in a)return b;var c=b.charAt(0).toUpperCase()+b.sl... function bZ (line 2) | function bZ(a,b){return a=b||a,p.css(a,"display")==="none"||!p.contains(... function b$ (line 2) | function b$(a,b){var c,d,e=[],f=0,g=a.length;for(;f").appendTo(e.body)... function ci (line 2) | function ci(a,b,c,d){var e;if(p.isArray(b))p.each(b,function(b,e){c||ce.... function cz (line 2) | function cz(a){return function(b,c){typeof b!="string"&&(c=b,b="*");var ... function cA (line 2) | function cA(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h,i=a[f... function cB (line 2) | function cB(a,c){var d,e,f=p.ajaxSettings.flatOptions||{};for(d in c)c[d... function cC (line 2) | function cC(a,c,d){var e,f,g,h,i=a.contents,j=a.dataTypes,k=a.responseFi... function cD (line 2) | function cD(a,b){var c,d,e,f,g=a.dataTypes.slice(),h=g[0],i={},j=0;a.dat... function cL (line 2) | function cL(){try{return new a.XMLHttpRequest}catch(b){}} function cM (line 2) | function cM(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(... function cU (line 2) | function cU(){return setTimeout(function(){cN=b},0),cN=p.now()} function cV (line 2) | function cV(a,b){p.each(b,function(b,c){var d=(cT[b]||[]).concat(cT["*"]... function cW (line 2) | function cW(a,b,c){var d,e=0,f=0,g=cS.length,h=p.Deferred().always(funct... function cX (line 2) | function cX(a,b){var c,d,e,f,g;for(c in a){d=p.camelCase(c),e=b[d],f=a[c... function cY (line 2) | function cY(a,b,c){var d,e,f,g,h,i,j,k,l=this,m=a.style,n={},o=[],q=a.no... function cZ (line 2) | function cZ(a,b,c,d,e){return new cZ.prototype.init(a,b,c,d,e)} function c$ (line 2) | function c$(a,b){var c,d={height:a},e=0;b=b?1:0;for(;e<4;e+=2-b)c=bV[e],... function da (line 2) | function da(a){return p.isWindow(a)?a:a.nodeType===9?a.defaultView||a.pa... function bc (line 2) | function bc(a,b,c,d){c=c||[],b=b||r;var e,f,i,j,k=b.nodeType;if(!a||type... function bd (line 2) | function bd(a){return function(b){var c=b.nodeName.toLowerCase();return ... function be (line 2) | function be(a){return function(b){var c=b.nodeName.toLowerCase();return(... function bf (line 2) | function bf(a){return z(function(b){return b=+b,z(function(c,d){var e,f=... function bg (line 2) | function bg(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d==... function bh (line 2) | function bh(a,b){var c,d,f,g,h,i,j,k=C[o][a];if(k)return b?0:k.slice(0);... function bi (line 2) | function bi(a,b,d){var e=b.dir,f=d&&b.dir==="parentNode",g=u++;return b.... function bj (line 2) | function bj(a){return a.length>1?function(b,c,d){var e=a.length;while(e-... function bk (line 2) | function bk(a,b,c,d,e){var f,g=[],h=0,i=a.length,j=b!=null;for(;h0,f=a.length>0,g=function(h,i,j,k,m){var... function bo (line 2) | function bo(a,b,c,d){var e=0,f=b.length;for(;e>8&1 + _m>>16&1 + _m>>32&1) constant bitsPerBlock (line 55) | bitsPerBlock = 256 constant wordsPerBlock (line 56) | wordsPerBlock = bitsPerBlock / bitsPerWord constant MaxInt (line 61) | MaxInt = int(^uint(0) >> 1) constant MinInt (line 62) | MinInt = -MaxInt - 1 function popcount (line 66) | func popcount(x word) int { function nlz (line 76) | func nlz(x word) int { function ntz (line 86) | func ntz(x word) int { type block (line 106) | type block struct method insert (line 122) | func (b *block) insert(i uint) bool { method remove (line 134) | func (b *block) remove(i uint) bool { method has (line 144) | func (b *block) has(i uint) bool { method empty (line 150) | func (b *block) empty() bool { method len (line 160) | func (b *block) len() int { method max (line 170) | func (b *block) max() int { method min (line 186) | func (b *block) min(take bool) int { method lowerBound (line 202) | func (b *block) lowerBound(i uint) (int, bool) { method forEach (line 221) | func (b *block) forEach(f func(int)) { function wordMask (line 114) | func wordMask(i uint) (w uint, mask word) { function offsetAndBitIndex (line 236) | func offsetAndBitIndex(x int) (int, uint) { type to_copy_a_sparse_you_must_call_its_Copy_method (line 254) | type to_copy_a_sparse_you_must_call_its_Copy_method struct FILE: container/intsets/sparse_test.go function TestBasics (line 18) | func TestBasics(t *testing.T) { function TestMoreBasics (line 62) | func TestMoreBasics(t *testing.T) { function TestTakeMin (line 97) | func TestTakeMin(t *testing.T) { function TestMinAndMax (line 117) | func TestMinAndMax(t *testing.T) { function TestEquals (line 146) | func TestEquals(t *testing.T) { type pset (line 184) | type pset struct method add (line 193) | func (set *pset) add(n int) { method remove (line 205) | func (set *pset) remove(n int) { method check (line 217) | func (set *pset) check(t *testing.T, msg string) { function makePset (line 189) | func makePset() *pset { function randomPset (line 236) | func randomPset(prng *rand.Rand, maxSize int) *pset { function TestRandomMutations (line 250) | func TestRandomMutations(t *testing.T) { function TestLowerBound (line 278) | func TestLowerBound(t *testing.T) { function TestSetOperations (line 298) | func TestSetOperations(t *testing.T) { function TestUnionWithChanged (line 464) | func TestUnionWithChanged(t *testing.T) { function TestIntersectionWith (line 498) | func TestIntersectionWith(t *testing.T) { function TestIntersects (line 515) | func TestIntersects(t *testing.T) { function TestSubsetOf (line 554) | func TestSubsetOf(t *testing.T) { function TestBitString (line 591) | func TestBitString(t *testing.T) { function TestFailFastOnShallowCopy (line 613) | func TestFailFastOnShallowCopy(t *testing.T) { function benchmarkInsertProbeSparse (line 636) | func benchmarkInsertProbeSparse(b *testing.B, size, spread int) { function BenchmarkInsertProbeSparse_2_10 (line 668) | func BenchmarkInsertProbeSparse_2_10(b *testing.B) { function BenchmarkInsertProbeSparse_10_10 (line 672) | func BenchmarkInsertProbeSparse_10_10(b *testing.B) { function BenchmarkInsertProbeSparse_10_1000 (line 676) | func BenchmarkInsertProbeSparse_10_1000(b *testing.B) { function BenchmarkInsertProbeSparse_100_100 (line 680) | func BenchmarkInsertProbeSparse_100_100(b *testing.B) { function BenchmarkInsertProbeSparse_100_10000 (line 684) | func BenchmarkInsertProbeSparse_100_10000(b *testing.B) { function BenchmarkUnionDifferenceSparse (line 688) | func BenchmarkUnionDifferenceSparse(b *testing.B) { function BenchmarkUnionDifferenceHashTable (line 705) | func BenchmarkUnionDifferenceHashTable(b *testing.B) { function BenchmarkAppendTo (line 734) | func BenchmarkAppendTo(b *testing.B) { FILE: copyright/copyright.go function checkCopyright (line 20) | func checkCopyright(dir string) ([]string, error) { function checkFile (line 54) | func checkFile(toolsDir, filename string) (bool, error) { FILE: copyright/copyright_test.go function TestToolsCopyright (line 12) | func TestToolsCopyright(t *testing.T) { FILE: cover/profile.go type Profile (line 22) | type Profile struct method Boundaries (line 206) | func (p *Profile) Boundaries(src []byte) (boundaries []Boundary) { type ProfileBlock (line 29) | type ProfileBlock struct type byFileName (line 35) | type byFileName method Len (line 37) | func (p byFileName) Len() int { return len(p) } method Less (line 38) | func (p byFileName) Less(i, j int) bool { return p[i].FileName < p[j].... method Swap (line 39) | func (p byFileName) Swap(i, j int) { p[i], p[j] = p[j], p[i] } function ParseProfiles (line 43) | func ParseProfiles(fileName string) ([]*Profile, error) { function ParseProfilesFromReader (line 54) | func ParseProfilesFromReader(rd io.Reader) ([]*Profile, error) { function parseLine (line 129) | func parseLine(l string) (fileName string, block ProfileBlock, err error) { function seekBack (line 167) | func seekBack(l string, sep byte, end int, what string) (value int, next... type blocksByStart (line 185) | type blocksByStart method Len (line 187) | func (b blocksByStart) Len() int { return len(b) } method Swap (line 188) | func (b blocksByStart) Swap(i, j int) { b[i], b[j] = b[j], b[i] } method Less (line 189) | func (b blocksByStart) Less(i, j int) bool { type Boundary (line 197) | type Boundary struct type boundariesByPos (line 255) | type boundariesByPos method Len (line 257) | func (b boundariesByPos) Len() int { return len(b) } method Swap (line 258) | func (b boundariesByPos) Swap(i, j int) { b[i], b[j] = b[j], b[i] } method Less (line 259) | func (b boundariesByPos) Less(i, j int) bool { FILE: cover/profile_test.go function TestParseProfiles (line 15) | func TestParseProfiles(t *testing.T) { function stringifyProfileArray (line 233) | func stringifyProfileArray(profiles []*Profile) string { function BenchmarkParseLine (line 241) | func BenchmarkParseLine(b *testing.B) { FILE: go/analysis/analysis.go type Analyzer (line 18) | type Analyzer struct method String (line 80) | func (a *Analyzer) String() string { return a.Name } type Pass (line 91) | type Pass struct method Reportf (line 190) | func (pass *Pass) Reportf(pos token.Pos, format string, args ...any) { method ReportRangef (line 205) | func (pass *Pass) ReportRangef(rng Range, format string, args ...any) { method String (line 210) | func (pass *Pass) String() string { type PackageFact (line 177) | type PackageFact struct type ObjectFact (line 183) | type ObjectFact struct type Range (line 197) | type Range interface type Fact (line 248) | type Fact interface type Module (line 253) | type Module struct type ModuleError (line 267) | type ModuleError struct FILE: go/analysis/analysistest/analysistest.go function WriteFiles (line 48) | func WriteFiles(filemap map[string]string) (dir string, cleanup func(), ... type Testing (line 80) | type Testing interface function RunWithSuggestedFixes (line 145) | func RunWithSuggestedFixes(t Testing, dir string, a *analysis.Analyzer, ... function applyDiffsAndCompare (line 307) | func applyDiffsAndCompare(pkg *types.Package, filename string, original,... function Run (line 400) | func Run(t Testing, dir string, a *analysis.Analyzer, patterns ...string... type Result (line 471) | type Result struct function loadPackages (line 486) | func loadPackages(dir string, patterns ...string) ([]*packages.Package, ... function check (line 539) | func check(t Testing, gopath string, act *checker.Action) { type expectation (line 717) | type expectation struct method String (line 723) | func (ex expectation) String() string { function parseExpectations (line 730) | func parseExpectations(text string) (lineDelta int, expects []expectatio... function sanitize (line 791) | func sanitize(gopath, filename string) string { FILE: go/analysis/analysistest/analysistest_test.go function init (line 24) | func init() { function TestTheTest (line 33) | func TestTheTest(t *testing.T) { function TestNoEnd (line 164) | func TestNoEnd(t *testing.T) { function TestModule (line 207) | func TestModule(t *testing.T) { type errorfunc (line 263) | type errorfunc method Errorf (line 265) | func (f errorfunc) Errorf(format string, args ...any) { FILE: go/analysis/checker/checker.go type Options (line 53) | type Options struct type Graph (line 68) | type Graph struct method All (line 97) | func (g *Graph) All() iter.Seq[*Action] { type Action (line 115) | type Action struct method String (line 132) | func (act *Action) String() string { method exec (line 258) | func (act *Action) exec() { act.once.Do(act.execOnce) } method execOnce (line 260) | func (act *Action) execOnce() { method ObjectFact (line 511) | func (act *Action) ObjectFact(obj types.Object, ptr analysis.Fact) bool { method exportObjectFact (line 524) | func (act *Action) exportObjectFact(obj types.Object, fact analysis.Fa... method AllObjectFacts (line 547) | func (act *Action) AllObjectFacts() []analysis.ObjectFact { method PackageFact (line 559) | func (act *Action) PackageFact(pkg *types.Package, ptr analysis.Fact) ... method exportPackageFact (line 572) | func (act *Action) exportPackageFact(fact analysis.Fact) { method AllPackageFacts (line 597) | func (act *Action) AllPackageFacts() []analysis.PackageFact { function Analyze (line 147) | func Analyze(analyzers []*analysis.Analyzer, pkgs []*packages.Package, o... function init (line 224) | func init() { type objectFactKey (line 231) | type objectFactKey struct type packageFactKey (line 236) | type packageFactKey struct function execAll (line 241) | func execAll(actions []*Action) { function inheritFacts (line 387) | func inheritFacts(act, dep *Action) { function codeFact (line 452) | func codeFact(fact analysis.Fact) (analysis.Fact, error) { function exportedFrom (line 486) | func exportedFrom(obj types.Object, pkg *types.Package) bool { function factType (line 585) | func factType(fact analysis.Fact) reflect.Type { function forEach (line 609) | func forEach(roots []*Action, f func(*Action) error) error { function analysisModuleFromPackagesModule (line 629) | func analysisModuleFromPackagesModule(mod *packages.Module) *analysis.Mo... FILE: go/analysis/checker/checker_test.go function TestPassModule (line 21) | func TestPassModule(t *testing.T) { FILE: go/analysis/checker/example_test.go constant testdata (line 23) | testdata = ` function Example (line 60) | func Example() { type pkgdeclsFact (line 139) | type pkgdeclsFact struct method AFact (line 141) | func (*pkgdeclsFact) AFact() {} function run (line 143) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/checker/print.go method PrintText (line 25) | func (g *Graph) PrintText(w io.Writer, contextLines int) error { function writeTextDiagnostics (line 29) | func writeTextDiagnostics(w io.Writer, roots []*Action, contextLines int... method PrintJSON (line 73) | func (g *Graph) PrintJSON(w io.Writer) error { function writeJSONDiagnostics (line 77) | func writeJSONDiagnostics(w io.Writer, roots []*Action) error { FILE: go/analysis/diagnostic.go type Diagnostic (line 18) | type Diagnostic struct type RelatedInformation (line 59) | type RelatedInformation struct type SuggestedFix (line 72) | type SuggestedFix struct type TextEdit (line 83) | type TextEdit struct FILE: go/analysis/internal/analysisflags/flags.go function Parse (line 44) | func Parse(analyzers []*analysis.Analyzer, multi bool) []*analysis.Analy... function expand (line 149) | func expand(analyzers []*analysis.Analyzer) map[*analysis.Analyzer]bool { function printFlags (line 164) | func printFlags() { function addVersionFlag (line 197) | func addVersionFlag() { type versionFlag (line 204) | type versionFlag struct method IsBoolFlag (line 206) | func (versionFlag) IsBoolFlag() bool { return true } method Get (line 207) | func (versionFlag) Get() any { return nil } method String (line 208) | func (versionFlag) String() string { return "" } method Set (line 209) | func (versionFlag) Set(s string) error { type triState (line 248) | type triState method Get (line 258) | func (ts *triState) Get() any { method Set (line 262) | func (ts *triState) Set(value string) error { method String (line 277) | func (ts *triState) String() string { method IsBoolFlag (line 289) | func (ts triState) IsBoolFlag() bool { constant unset (line 251) | unset triState = iota constant setTrue (line 252) | setTrue constant setFalse (line 253) | setFalse FILE: go/analysis/internal/analysisflags/flags_test.go function main (line 19) | func main() { function TestExec (line 29) | func TestExec(t *testing.T) { FILE: go/analysis/internal/analysisflags/help.go constant help (line 18) | help = `PROGNAME is a tool for static analysis of Go programs. function Help (line 45) | func Help(progname string, analyzers []*analysis.Analyzer, args []string) { FILE: go/analysis/internal/checker/checker.go function RegisterFlags (line 57) | func RegisterFlags() { function Run (line 82) | func Run(args []string, analyzers []*analysis.Analyzer) (exitcode int) { function printDiagnostics (line 234) | func printDiagnostics(graph *checker.Graph) (exitcode int) { function load (line 301) | func load(patterns []string, allSyntax bool) ([]*packages.Package, error) { function needFacts (line 326) | func needFacts(analyzers []*analysis.Analyzer) bool { function dbg (line 344) | func dbg(b byte) bool { return strings.IndexByte(Debug, b) >= 0 } FILE: go/analysis/internal/checker/checker_test.go function TestApplyFixes (line 24) | func TestApplyFixes(t *testing.T) { function TestRunDespiteErrors (line 71) | func TestRunDespiteErrors(t *testing.T) { type EmptyFact (line 174) | type EmptyFact struct method AFact (line 176) | func (f *EmptyFact) AFact() {} function TestURL (line 178) | func TestURL(t *testing.T) { function TestPassReadFile (line 218) | func TestPassReadFile(t *testing.T) { FILE: go/analysis/internal/checker/fix_test.go function TestMain (line 36) | func TestMain(m *testing.M) { constant exitCodeSuccess (line 56) | exitCodeSuccess = 0 constant exitCodeFailed (line 57) | exitCodeFailed = 1 constant exitCodeDiagnostics (line 58) | exitCodeDiagnostics = 3 function TestReportInvalidDiagnostic (line 64) | func TestReportInvalidDiagnostic(t *testing.T) { function TestScript (line 198) | func TestScript(t *testing.T) { constant badMarker (line 383) | badMarker = "[bad marker]" function markerEdit (line 473) | func markerEdit(tokFile *token.File, content []byte, note *expect.Note) ... function panics (line 611) | func panics(t *testing.T, want string, f func()) { function section (line 625) | func section(ar *txtar.Archive, name string) *txtar.File { FILE: go/analysis/internal/checker/start_test.go function TestStartFixes (line 24) | func TestStartFixes(t *testing.T) { function commentRun (line 66) | func commentRun(pass *analysis.Pass) (any, error) { FILE: go/analysis/internal/versiontest/version_test.go function init (line 35) | func init() { function testDir (line 46) | func testDir(t *testing.T) (dir string) { function TestAnalysistest (line 59) | func TestAnalysistest(t *testing.T) { function TestMultichecker (line 63) | func TestMultichecker(t *testing.T) { function TestSinglechecker (line 79) | func TestSinglechecker(t *testing.T) { function TestVettool (line 95) | func TestVettool(t *testing.T) { FILE: go/analysis/multichecker/multichecker.go function Main (line 24) | func Main(analyzers ...*analysis.Analyzer) { FILE: go/analysis/multichecker/multichecker_test.go function main (line 22) | func main() { function TestExitCode (line 38) | func TestExitCode(t *testing.T) { FILE: go/analysis/passes/appends/appends.go function run (line 32) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/appends/appends_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/appends/testdata/src/a/a.go function badAppendSlice1 (line 9) | func badAppendSlice1() { function badAppendSlice2 (line 14) | func badAppendSlice2() { function goodAppendSlice1 (line 18) | func goodAppendSlice1() { function goodAppendSlice2 (line 23) | func goodAppendSlice2() { function goodAppendSlice3 (line 29) | func goodAppendSlice3() { FILE: go/analysis/passes/appends/testdata/src/b/b.go function append (line 9) | func append(args ...interface{}) []int { function userdefine (line 14) | func userdefine() { function localvar (line 20) | func localvar() { FILE: go/analysis/passes/asmdecl/asmdecl.go constant Doc (line 25) | Doc = "report mismatches between assembly files and Go declarations" type asmKind (line 36) | type asmKind constant asmString (line 40) | asmString asmKind = 100 + iota constant asmSlice (line 41) | asmSlice constant asmArray (line 42) | asmArray constant asmInterface (line 43) | asmInterface constant asmEmptyInterface (line 44) | asmEmptyInterface constant asmStruct (line 45) | asmStruct constant asmComplex (line 46) | asmComplex type asmArch (line 50) | type asmArch struct type asmFunc (line 70) | type asmFunc struct type asmVar (line 78) | type asmVar struct function init (line 121) | func init() { function run (line 153) | func run(pass *analysis.Pass) (any, error) { function asmKindForType (line 439) | func asmKindForType(t types.Type, size int) asmKind { type component (line 468) | type component struct function newComponent (line 477) | func newComponent(suffix string, kind asmKind, typ string, offset, size ... function componentsOfType (line 483) | func componentsOfType(arch *asmArch, t types.Type) []component { function appendComponentsRecursive (line 490) | func appendComponentsRecursive(arch *asmArch, t types.Type, cc []compone... function asmParseDecl (line 559) | func asmParseDecl(pass *analysis.Pass, decl *ast.FuncDecl) map[string]*a... function asmCheckVar (line 649) | func asmCheckVar(badf func(string, ...any), fn *asmFunc, line, expr stri... FILE: go/analysis/passes/asmdecl/asmdecl_test.go function Test (line 30) | func Test(t *testing.T) { FILE: go/analysis/passes/asmdecl/testdata/src/a/asm.go type S (line 9) | type S struct function arg1 (line 15) | func arg1(x int8, y uint8) function arg2 (line 16) | func arg2(x int16, y uint16) function arg4 (line 17) | func arg4(x int32, y uint32) function arg8 (line 18) | func arg8(x int64, y uint64) function argint (line 19) | func argint(x int, y uint) function argptr (line 20) | func argptr(x *byte, y *byte, c chan int, m map[int]int, f func()) function argstring (line 21) | func argstring(x, y string) function argslice (line 22) | func argslice(x, y []string) function argiface (line 23) | func argiface(x interface{}, y interface { function argcomplex (line 26) | func argcomplex(x complex64, y complex128) function argstruct (line 27) | func argstruct(x S, y struct{}) function argarray (line 28) | func argarray(x [2]S) function returnint (line 29) | func returnint() int function returnbyte (line 30) | func returnbyte(x int) byte function returnnamed (line 31) | func returnnamed(x byte) (r1 int, r2 int16, r3 string, r4 byte) function returnintmissing (line 32) | func returnintmissing() int function leaf (line 33) | func leaf(x, y int) int function noprof (line 35) | func noprof(x int) function dupok (line 36) | func dupok(x int) function nosplit (line 37) | func nosplit(x int) function rodata (line 38) | func rodata(x int) function noptr (line 39) | func noptr(x int) function wrapper (line 40) | func wrapper(x int) function f15271 (line 42) | func f15271() (x uint32) function f17584 (line 43) | func f17584(x float32, y complex64) function f29318 (line 44) | func f29318(x [2][2]uint64) function noframe1 (line 46) | func noframe1(x int32) function noframe2 (line 47) | func noframe2(x int32) function fvariadic (line 49) | func fvariadic(int, ...int) function pickStableABI (line 51) | func pickStableABI(x int) function pickInternalABI (line 52) | func pickInternalABI(x int) function pickFutureABI (line 53) | func pickFutureABI(x int) function returnABIInternal (line 55) | func returnABIInternal() int function returnmissingABIInternal (line 56) | func returnmissingABIInternal() int function returnsyscallABIInternal (line 57) | func returnsyscallABIInternal() int function retjmp (line 59) | func retjmp() int FILE: go/analysis/passes/assign/assign.go function run (line 38) | func run(pass *analysis.Pass) (any, error) { function isMapIndex (line 138) | func isMapIndex(info *types.Info, e ast.Expr) bool { FILE: go/analysis/passes/assign/assign_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/assign/testdata/src/a/a.go type ST (line 11) | type ST struct method SetX (line 16) | func (s *ST) SetX(x int, ch chan int) { function num (line 43) | func num() int { return 2 } function Index (line 45) | func Index() { FILE: go/analysis/passes/assign/testdata/src/typeparams/typeparams.go type ST (line 11) | type ST struct method SetX (line 16) | func (s *ST[T]) SetX(x T, ch chan T) { function num (line 31) | func num() int { return 2 } FILE: go/analysis/passes/atomic/atomic.go function run (line 33) | func run(pass *analysis.Pass) (any, error) { function checkAtomicAddAssignment (line 69) | func checkAtomicAddAssignment(pass *analysis.Pass, left ast.Expr, call *... FILE: go/analysis/passes/atomic/atomic_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/atomic/testdata/src/a/a.go type Counter (line 13) | type Counter function AtomicTests (line 15) | func AtomicTests() { type T (line 55) | type T struct method AddUint64 (line 57) | func (T) AddUint64(addr *uint64, delta uint64) uint64 { return 0 } function NonAtomic (line 59) | func NonAtomic() { FILE: go/analysis/passes/atomic/testdata/src/typeparams/typeparams.go type Subtractable (line 13) | type Subtractable interface function Sub (line 17) | func Sub[T Subtractable](addr *T, delta T) T { type _S (line 25) | type _S struct method AddInt64 (line 29) | func (v _S) AddInt64(_ *int64, delta int64) int64 { function NonAtomicInt64 (line 34) | func NonAtomicInt64() { FILE: go/analysis/passes/atomicalign/atomicalign.go constant Doc (line 24) | Doc = "check for non-64-bits-aligned arguments to sync/atomic functions" function run (line 34) | func run(pass *analysis.Pass) (any, error) { function check64BitAlignment (line 66) | func check64BitAlignment(pass *analysis.Pass, funcName string, arg ast.E... FILE: go/analysis/passes/atomicalign/atomicalign_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/atomicalign/testdata/src/a/a.go function intsAlignment (line 17) | func intsAlignment() { function floatAlignment (line 33) | func floatAlignment() { function uintptrAlignment (line 45) | func uintptrAlignment() { function runeAlignment (line 58) | func runeAlignment() { function complexAlignment (line 69) | func complexAlignment() { function channelAlignment (line 82) | func channelAlignment() { function arrayAlignment (line 94) | func arrayAlignment() { function anonymousFieldAlignment (line 110) | func anonymousFieldAlignment() { type ts (line 124) | type ts struct function typedStructAlignment (line 130) | func typedStructAlignment() { function aliasAlignment (line 136) | func aliasAlignment() { function stringAlignment (line 158) | func stringAlignment() { function sliceAlignment (line 167) | func sliceAlignment() { function interfaceAlignment (line 179) | func interfaceAlignment() { function pointerAlignment (line 194) | func pointerAlignment() { function nonStructFields (line 207) | func nonStructFields() { function embeddedStructFields (line 219) | func embeddedStructFields() { FILE: go/analysis/passes/atomicalign/testdata/src/b/b.go function nonAffectedArchs (line 13) | func nonAffectedArchs() { FILE: go/analysis/passes/bools/bools.go constant Doc (line 21) | Doc = "check for common mistakes involving boolean operators" function run (line 31) | func run(pass *analysis.Pass) (any, error) { type boolOp (line 64) | type boolOp struct method commutativeSets (line 80) | func (op boolOp) commutativeSets(info *types.Info, e *ast.BinaryExpr, ... method checkRedundant (line 104) | func (op boolOp) checkRedundant(pass *analysis.Pass, exprs []ast.Expr) { method checkSuspect (line 125) | func (op boolOp) checkSuspect(pass *analysis.Pass, exprs []ast.Expr) { method split (line 170) | func (op boolOp) split(e ast.Expr, seen map[*ast.BinaryExpr]bool) (exp... FILE: go/analysis/passes/bools/bools_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/bools/testdata/src/a/a.go type T (line 11) | type T method Foo (line 13) | func (t T) Foo() int { return int(t) } type FT (line 15) | type FT function RatherStupidConditions (line 19) | func RatherStupidConditions() { function RoyallySuspectConditions (line 97) | func RoyallySuspectConditions() { FILE: go/analysis/passes/bools/testdata/src/typeparams/typeparams.go type T (line 9) | type T struct method Foo (line 13) | func (t T[P]) Foo() int { return int(t.a) } type FT (line 15) | type FT function Sink (line 17) | func Sink[Elem any]() chan Elem { function RedundantConditions (line 21) | func RedundantConditions[P interface{ int }]() { function SuspectConditions (line 54) | func SuspectConditions[P interface{ ~int }, S interface{ ~string }]() { FILE: go/analysis/passes/buildssa/buildssa.go type SSA (line 38) | type SSA struct function run (line 43) | func run(pass *analysis.Pass) (any, error) { function allFunctions (line 101) | func allFunctions(pass *analysis.Pass) iter.Seq2[*ast.FuncDecl, *types.F... FILE: go/analysis/passes/buildssa/buildssa_test.go function Test (line 16) | func Test(t *testing.T) { function TestGenericDecls (line 31) | func TestGenericDecls(t *testing.T) { function TestImporting (line 46) | func TestImporting(t *testing.T) { FILE: go/analysis/passes/buildssa/testdata/src/a/a.go function Fib (line 3) | func Fib(x int) int { type T (line 10) | type T method fib (line 12) | func (T) fib(x int) int { return Fib(x) } function _ (line 14) | func _() { function _ (line 18) | func _() { FILE: go/analysis/passes/buildssa/testdata/src/b/b.go type Pointer (line 6) | type Pointer struct method Load (line 10) | func (x *Pointer[T]) Load() *T { function Load (line 14) | func Load[T any](x *Pointer[T]) *T { function LoadPointer (line 18) | func LoadPointer(addr *unsafe.Pointer) (val unsafe.Pointer) FILE: go/analysis/passes/buildssa/testdata/src/c/c.go function A (line 10) | func A() { function B (line 14) | func B() { FILE: go/analysis/passes/buildtag/buildtag.go constant Doc (line 20) | Doc = "check //go:build and // +build directives" function runBuildTag (line 29) | func runBuildTag(pass *analysis.Pass) (any, error) { function checkGoFile (line 55) | func checkGoFile(pass *analysis.Pass, f *ast.File) { function checkOtherFile (line 82) | func checkOtherFile(pass *analysis.Pass, filename string) error { type checker (line 98) | type checker struct method init (line 110) | func (check *checker) init(pass *analysis.Pass) { method file (line 117) | func (check *checker) file(pos token.Pos, text string) { method comment (line 200) | func (check *checker) comment(pos token.Pos, text string) { method goBuildLine (line 235) | func (check *checker) goBuildLine(pos token.Pos, line string) { method plusBuildLine (line 274) | func (check *checker) plusBuildLine(pos token.Pos, line string) { method finish (line 338) | func (check *checker) finish() { method tags (line 372) | func (check *checker) tags(pos token.Pos, e constraint.Expr) { function malformedGoTag (line 384) | func malformedGoTag(tag string) bool { function validGoVersion (line 403) | func validGoVersion(tag string) bool { FILE: go/analysis/passes/buildtag/buildtag_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/cgocall/cgocall.go constant debug (line 24) | debug = false constant Doc (line 26) | Doc = `detect some violations of the cgo pointer passing rules function run (line 43) | func run(pass *analysis.Pass) (any, error) { function checkCgo (line 58) | func checkCgo(fset *token.FileSet, f *ast.File, info *types.Info, report... function typeCheckCgoSourceFiles (line 173) | func typeCheckCgoSourceFiles(fset *token.FileSet, pkg *types.Package, fi... function cgoBaseType (line 291) | func cgoBaseType(info *types.Info, arg ast.Expr) types.Type { function typeOKForCgoCall (line 340) | func typeOKForCgoCall(t types.Type, m map[types.Type]bool) bool { function isUnsafePointer (line 362) | func isUnsafePointer(info *types.Info, e ast.Expr) bool { type importerFunc (line 367) | type importerFunc method Import (line 369) | func (f importerFunc) Import(path string) (*types.Package, error) { re... function imported (line 372) | func imported(info *types.Info, spec *ast.ImportSpec) *types.Package { FILE: go/analysis/passes/cgocall/cgocall_go120.go function setGoVersion (line 11) | func setGoVersion(tc *types.Config, pkg *types.Package) { FILE: go/analysis/passes/cgocall/cgocall_go121.go function setGoVersion (line 11) | func setGoVersion(tc *types.Config, pkg *types.Package) { FILE: go/analysis/passes/cgocall/cgocall_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/cgocall/testdata/src/a/cgo.go function CgoTests (line 14) | func CgoTests() { type S (line 69) | type S struct type S2 (line 71) | type S2 struct FILE: go/analysis/passes/cgocall/testdata/src/a/cgo3.go constant x (line 11) | x = 1 function F (line 15) | func F() { function FAD (line 18) | func FAD(int, string) bool { FILE: go/analysis/passes/cgocall/testdata/src/b/b.go function init (line 14) | func init() { FILE: go/analysis/passes/cgocall/testdata/src/typeparams/typeparams.go function CgoTest (line 14) | func CgoTest[T any]() { type S (line 35) | type S struct FILE: go/analysis/passes/composite/composite.go constant Doc (line 21) | Doc = `check for unkeyed composite literals function init (line 48) | func init() { function run (line 54) | func run(pass *analysis.Pass) (any, error) { function isLocalType (line 147) | func isLocalType(pass *analysis.Pass, typ types.Type) bool { FILE: go/analysis/passes/composite/composite_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/composite/testdata/src/a/a.go type MyStruct (line 48) | type MyStruct struct FILE: go/analysis/passes/composite/testdata/src/a/a_fuzz_test.go function Fuzz (line 13) | func Fuzz(f *testing.F) {} FILE: go/analysis/passes/composite/testdata/src/typeparams/lib/lib.go type Struct (line 7) | type Struct struct type Slice (line 8) | type Slice type Map (line 9) | type Map FILE: go/analysis/passes/composite/testdata/src/typeparams/typeparams.go type localStruct (line 9) | type localStruct struct function F (line 11) | func F[ FILE: go/analysis/passes/copylock/copylock.go constant Doc (line 25) | Doc = `check for locks erroneously passed by value function run (line 40) | func run(pass *analysis.Pass) (any, error) { function checkCopyLocksAssign (line 86) | func checkCopyLocksAssign(pass *analysis.Pass, assign *ast.AssignStmt, g... function checkCopyLocksGenDecl (line 115) | func checkCopyLocksGenDecl(pass *analysis.Pass, gd *ast.GenDecl) { function checkCopyLocksCompositeLit (line 130) | func checkCopyLocksCompositeLit(pass *analysis.Pass, cl *ast.CompositeLi... function checkCopyLocksReturnStmt (line 142) | func checkCopyLocksReturnStmt(pass *analysis.Pass, rs *ast.ReturnStmt) { function checkCopyLocksCallExpr (line 151) | func checkCopyLocksCallExpr(pass *analysis.Pass, ce *ast.CallExpr) { function checkCopyLocksFunc (line 179) | func checkCopyLocksFunc(pass *analysis.Pass, name string, recv *ast.Fiel... function checkCopyLocksRange (line 205) | func checkCopyLocksRange(pass *analysis.Pass, r *ast.RangeStmt) { function checkCopyLocksRangeVar (line 210) | func checkCopyLocksRangeVar(pass *analysis.Pass, rtok token.Token, e ast... type typePath (line 241) | type typePath method String (line 244) | func (path typePath) String() string { function lockPathRhs (line 257) | func lockPathRhs(pass *analysis.Pass, x ast.Expr) typePath { function lockPath (line 283) | func lockPath(tpkg *types.Package, typ types.Type, seen map[types.Type]b... function parent (line 374) | func parent(stack []ast.Node) ast.Node { function init (line 384) | func init() { FILE: go/analysis/passes/copylock/copylock_test.go function Test (line 16) | func Test(t *testing.T) { function TestVersions22 (line 21) | func TestVersions22(t *testing.T) { function TestVersions21 (line 26) | func TestVersions21(t *testing.T) { FILE: go/analysis/passes/copylock/main.go function main (line 16) | func main() { singlechecker.Main(copylock.Analyzer) } FILE: go/analysis/passes/copylock/testdata/src/a/copylock.go function OkFunc (line 11) | func OkFunc() { type Tlock (line 42) | type Tlock struct function BadFunc (line 46) | func BadFunc() { function LenAndCapOnLockArrays (line 105) | func LenAndCapOnLockArrays() { function SizeofMutex (line 119) | func SizeofMutex() { function OffsetofMutex (line 130) | func OffsetofMutex() { function AlignofMutex (line 140) | func AlignofMutex() { function SyncTypesCheck (line 151) | func SyncTypesCheck() { function AtomicTypesCheck (line 207) | func AtomicTypesCheck() { function PointerRhsCheck (line 223) | func PointerRhsCheck() { FILE: go/analysis/passes/copylock/testdata/src/a/copylock_func.go function OkFunc (line 17) | func OkFunc(*sync.Mutex) {} function BadFunc (line 18) | func BadFunc(sync.Mutex) {} function BadFunc2 (line 19) | func BadFunc2(sync.Map) {} function OkRet (line 20) | func OkRet() *sync.Mutex {} function BadRet (line 21) | func BadRet() sync.Mutex {} type EmbeddedRWMutex (line 29) | type EmbeddedRWMutex struct method OkMeth (line 33) | func (*EmbeddedRWMutex) OkMeth() {} method BadMeth (line 34) | func (EmbeddedRWMutex) BadMeth() {} function OkFunc (line 35) | func OkFunc(e *EmbeddedRWMutex) {} function BadFunc (line 36) | func BadFunc(EmbeddedRWMutex) {} function OkRet (line 37) | func OkRet() *EmbeddedRWMutex {} function BadRet (line 38) | func BadRet() EmbeddedRWMutex {} type FieldMutex (line 40) | type FieldMutex struct method OkMeth (line 44) | func (*FieldMutex) OkMeth() {} method BadMeth (line 45) | func (FieldMutex) BadMeth() {} function OkFunc (line 46) | func OkFunc(*FieldMutex) {} function BadFunc (line 47) | func BadFunc(FieldMutex, int) {} type L0 (line 49) | type L0 struct method Ok (line 61) | func (*L0) Ok() {} method Bad (line 62) | func (L0) Bad() {} type L1 (line 53) | type L1 struct type L2 (line 57) | type L2 struct type EmbeddedMutexPointer (line 64) | type EmbeddedMutexPointer struct method Ok (line 68) | func (*EmbeddedMutexPointer) Ok() {} method AlsoOk (line 69) | func (EmbeddedMutexPointer) AlsoOk() {} function StillOk (line 70) | func StillOk(EmbeddedMutexPointer) {} function LookinGood (line 71) | func LookinGood() EmbeddedMutexPointer {} type EmbeddedLocker (line 73) | type EmbeddedLocker struct method Ok (line 77) | func (*EmbeddedLocker) Ok() {} method AlsoOk (line 78) | func (EmbeddedLocker) AlsoOk() {} type CustomLock (line 80) | type CustomLock struct method Lock (line 82) | func (*CustomLock) Lock() {} method Unlock (line 83) | func (*CustomLock) Unlock() {} function Ok (line 85) | func Ok(*CustomLock) {} function Bad (line 86) | func Bad(CustomLock) {} function FuncCallInterfaceArg (line 89) | func FuncCallInterfaceArg(f func(a int, b interface{})) { function ReturnViaInterface (line 103) | func ReturnViaInterface(x int) (int, interface{}) { function AcceptedCases (line 121) | func AcceptedCases() { FILE: go/analysis/passes/copylock/testdata/src/a/copylock_range.go function rangeMutex (line 12) | func rangeMutex() { FILE: go/analysis/passes/copylock/testdata/src/a/issue61678.go type A (line 11) | type A struct type B (line 16) | type B struct function okay (line 22) | func okay(x A) {} function sure (line 23) | func sure() { var x A; nop(x) } function what (line 27) | func what(x B) {} function bad (line 28) | func bad() { var x B; nop(x) } function good (line 29) | func good() { nop(B{}) } function stillgood (line 30) | func stillgood() { nop(B{b: B{b: B{b: B{}}}}) } function nope (line 31) | func nope() { nop(B{}.b) } function nop (line 33) | func nop(any) {} FILE: go/analysis/passes/copylock/testdata/src/a/newexpr_go126.go function _ (line 11) | func _(ptr *sync.Mutex) FILE: go/analysis/passes/copylock/testdata/src/issue67787/issue67787.go type T (line 5) | type T struct type T1 (line 6) | type T1 struct function NewT1 (line 8) | func NewT1() *T1 { return &T1{T} } FILE: go/analysis/passes/copylock/testdata/src/typeparams/typeparams.go type R (line 11) | type R struct function TestNoRecursion (line 13) | func TestNoRecursion(r R) {} function TestNoTypeParamRecursion (line 17) | func TestNoTypeParamRecursion[T1 ~[]T2, T2 ~[]T1 | string, T3 ~struct{ F... function OkFunc1 (line 20) | func OkFunc1[Struct ~*struct{ mu sync.Mutex }](s Struct) { function BadFunc1 (line 23) | func BadFunc1[Struct ~struct{ mu sync.Mutex }](s Struct) { // want `pass... function OkFunc2 (line 26) | func OkFunc2[MutexPtr *sync.Mutex](m MutexPtr) { function BadFunc2 (line 39) | func BadFunc2[Mutex sync.Mutex](m Mutex) { // want `passes lock by value... function ApproximationError (line 52) | func ApproximationError[Mutex interface { FILE: go/analysis/passes/copylock/testdata/src/unfortunate/local_go123.go type LocalOnce (line 16) | type LocalOnce method Bad (line 18) | func (LocalOnce) Bad() {} type LocalMutex (line 23) | type LocalMutex method Bad (line 25) | func (LocalMutex) Bad() {} FILE: go/analysis/passes/copylock/testdata/src/unfortunate/local_go124.go type LocalOnce (line 13) | type LocalOnce method Bad (line 15) | func (LocalOnce) Bad() {} type LocalMutex (line 17) | type LocalMutex method Bad (line 19) | func (LocalMutex) Bad() {} FILE: go/analysis/passes/ctrlflow/ctrlflow.go type noReturn (line 36) | type noReturn struct method AFact (line 38) | func (*noReturn) AFact() {} method String (line 40) | func (*noReturn) String() string { return "noReturn" } type CFGs (line 44) | type CFGs struct method NoReturn (line 61) | func (c *CFGs) NoReturn(fn *types.Func) bool { method FuncDecl (line 84) | func (c *CFGs) FuncDecl(decl *ast.FuncDecl) *cfg.CFG { method FuncLit (line 93) | func (c *CFGs) FuncLit(lit *ast.FuncLit) *cfg.CFG { method buildDecl (line 169) | func (c *CFGs) buildDecl(fn *types.Func, di *declInfo) { method callMayReturn (line 203) | func (c *CFGs) callMayReturn(call *ast.CallExpr) (r bool) { type declInfo (line 71) | type declInfo struct type litInfo (line 77) | type litInfo struct function run (line 97) | func run(pass *analysis.Pass) (any, error) { function knownIntrinsic (line 242) | func knownIntrinsic(fn *types.Func) (noreturn, known bool) { FILE: go/analysis/passes/ctrlflow/ctrlflow_test.go function Test (line 15) | func Test(t *testing.T) { FILE: go/analysis/passes/ctrlflow/testdata/src/a/a.go function a (line 22) | func a() { // want a:"noReturn" function b (line 31) | func b() { // want b:"noReturn" function f (line 35) | func f(x int) { // no fact here type T (line 45) | type T method method1 (line 47) | func (T) method1() { // want method1:"noReturn" method method2 (line 51) | func (T) method2() { // (may return) function standardFunctions (line 59) | func standardFunctions(x int) { // want standardFunctions:"noReturn" function panicRecover (line 97) | func panicRecover() { function noBody (line 102) | func noBody() function g (line 104) | func g() { function h (line 108) | func h() { // want h:"noReturn" function returns (line 112) | func returns() { function nobody (line 118) | func nobody() function hasPanic (line 120) | func hasPanic() { // want hasPanic:"noReturn" function hasSelect (line 126) | func hasSelect() { // want hasSelect:"noReturn" function infiniteLoop (line 132) | func infiniteLoop() { // want infiniteLoop:"noReturn" function ifElse (line 139) | func ifElse(cond bool) { // want ifElse:"noReturn" function swtch (line 149) | func swtch(x int) { // want swtch:"noReturn" function _if (line 165) | func _if(cond bool) { function logFatal (line 173) | func logFatal() { // want logFatal:"noReturn" function testFatal (line 179) | func testFatal(t *testing.T) { // want testFatal:"noReturn" function goexit (line 185) | func goexit() { // want goexit:"noReturn" function osexit (line 191) | func osexit() { // want osexit:"noReturn" function intrinsic (line 197) | func intrinsic() { // (no fact) FILE: go/analysis/passes/ctrlflow/testdata/src/lib/lib.go function CanReturn (line 7) | func CanReturn() {} function NoReturn (line 9) | func NoReturn() { FILE: go/analysis/passes/ctrlflow/testdata/src/typeparams/typeparams.go function a (line 13) | func a[A any]() { // want a:"noReturn" function b (line 23) | func b[B any]() { // want b:"noReturn" function c (line 27) | func c[A, B any]() { // want c:"noReturn" function d (line 35) | func d[A, B any]() { // want d:"noReturn" type I (line 39) | type I interface function e (line 43) | func e[T any](i I[T], t T) T { function k (line 47) | func k[T any](i I[T], t T) T { // want k:"noReturn" type T (line 52) | type T method method1 (line 54) | func (T[X]) method1() { // want method1:"noReturn" method method2 (line 58) | func (T[X]) method2() { // (may return) FILE: go/analysis/passes/deepequalerrors/deepequalerrors.go constant Doc (line 20) | Doc = `check for calls of reflect.DeepEqual on error values function run (line 37) | func run(pass *analysis.Pass) (any, error) { function hasError (line 61) | func hasError(pass *analysis.Pass, e ast.Expr) bool { function containsError (line 74) | func containsError(typ types.Type) bool { FILE: go/analysis/passes/deepequalerrors/deepequalerrors_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/deepequalerrors/testdata/src/a/a.go type myError (line 15) | type myError method Error (line 17) | func (myError) Error() string { return "" } function bad (line 19) | func bad() error { return nil } type s1 (line 21) | type s1 struct type myError2 (line 26) | type myError2 type s2 (line 28) | type s2 struct function hasError (line 33) | func hasError() { function notHasError (line 50) | func notHasError() { FILE: go/analysis/passes/deepequalerrors/testdata/src/typeparams/typeparams.go type myError (line 15) | type myError method Error (line 17) | func (myError) Error() string { return "" } function bad (line 19) | func bad[T any]() T { type s1 (line 24) | type s1 struct type myError2 (line 29) | type myError2 type s2 (line 31) | type s2 struct function hasError (line 36) | func hasError() { function notHasError (line 53) | func notHasError() { FILE: go/analysis/passes/defers/cmd/defers/main.go function main (line 13) | func main() { singlechecker.Main(defers.Analyzer) } FILE: go/analysis/passes/defers/defers.go function run (line 31) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/defers/defers_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/defers/testdata/src/a/a.go function Since (line 12) | func Since() (t time.Duration) { function x (line 16) | func x(time.Duration) {} function x2 (line 17) | func x2(float64) {} function good (line 19) | func good() { type y (line 33) | type y struct method A (line 35) | func (y) A(float64) {} method B (line 36) | func (*y) B(float64) {} method C (line 37) | func (y) C(time.Duration) {} method D (line 38) | func (*y) D(time.Duration) {} function bad (line 40) | func bad() { function ugly (line 55) | func ugly() { FILE: go/analysis/passes/directive/directive.go constant Doc (line 20) | Doc = `check Go toolchain directives such as //go:debug function runDirective (line 43) | func runDirective(pass *analysis.Pass) (any, error) { function checkGoFile (line 69) | func checkGoFile(pass *analysis.Pass, f *ast.File) { function checkOtherFile (line 86) | func checkOtherFile(pass *analysis.Pass, filename string) error { type checker (line 99) | type checker struct method nonGoFile (line 115) | func (check *checker) nonGoFile(pos token.Pos, fullText string) { method comment (line 160) | func (check *checker) comment(pos token.Pos, line string) { function newChecker (line 106) | func newChecker(pass *analysis.Pass, filename string, file *ast.File) *c... function stringsCutPrefix (line 199) | func stringsCutPrefix(s, prefix string) (after string, found bool) { FILE: go/analysis/passes/directive/directive_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/errorsas/errorsas.go constant Doc (line 19) | Doc = `report passing non-pointer or non-error values to errors.As function run (line 32) | func run(pass *analysis.Pass) (any, error) { function checkAsTarget (line 61) | func checkAsTarget(info *types.Info, e ast.Expr) error { FILE: go/analysis/passes/errorsas/errorsas_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/errorsas/main.go function main (line 16) | func main() { singlechecker.Main(errorsas.Analyzer) } FILE: go/analysis/passes/errorsas/testdata/src/a/a.go type myError (line 11) | type myError method Error (line 13) | func (myError) Error() string { return "" } function perr (line 15) | func perr() *error { return nil } type iface (line 17) | type iface interface function two (line 21) | func two() (error, interface{}) { return nil, nil } function _ (line 23) | func _() { FILE: go/analysis/passes/errorsas/testdata/src/typeparams/typeparams.go type myError (line 11) | type myError struct method Error (line 13) | func (myError[T]) Error() string { return "" } type twice (line 15) | type twice struct function perr (line 19) | func perr[T any]() *T { return nil } function two (line 21) | func two[T any]() (error, *T) { return nil, nil } function _ (line 23) | func _[E error](e E) { FILE: go/analysis/passes/fieldalignment/cmd/fieldalignment/main.go function main (line 11) | func main() { singlechecker.Main(fieldalignment.Analyzer) } FILE: go/analysis/passes/fieldalignment/fieldalignment.go constant Doc (line 24) | Doc = `find structs that would use less memory if their fields were sorted function run (line 69) | func run(pass *analysis.Pass) (any, error) { function fieldalignment (line 89) | func fieldalignment(pass *analysis.Pass, node *ast.StructType, typ *type... function optimalOrder (line 166) | func optimalOrder(str *types.Struct, sizes *gcSizes) (*types.Struct, []i... type gcSizes (line 245) | type gcSizes struct method Alignof (line 250) | func (s *gcSizes) Alignof(T types.Type) int64 { method Sizeof (line 297) | func (s *gcSizes) Sizeof(T types.Type) int64 { method ptrdata (line 345) | func (s *gcSizes) ptrdata(T types.Type) int64 { function align (line 340) | func align(x, a int64) int64 { FILE: go/analysis/passes/fieldalignment/fieldalignment_test.go function TestTest (line 14) | func TestTest(t *testing.T) { FILE: go/analysis/passes/fieldalignment/testdata/src/a/a.go type Good (line 3) | type Good struct type Bad (line 9) | type Bad struct type ZeroGood (line 15) | type ZeroGood struct type ZeroBad (line 20) | type ZeroBad struct type NoNameGood (line 25) | type NoNameGood struct type NoNameBad (line 32) | type NoNameBad struct type WithComments (line 39) | type WithComments struct FILE: go/analysis/passes/fieldalignment/testdata/src/a/a_386.go type PointerGood (line 3) | type PointerGood struct type PointerBad (line 8) | type PointerBad struct type PointerSorta (line 13) | type PointerSorta struct type PointerSortaBad (line 24) | type PointerSortaBad struct type MultiField (line 35) | type MultiField struct FILE: go/analysis/passes/fieldalignment/testdata/src/a/a_amd64.go type PointerGood (line 3) | type PointerGood struct type PointerBad (line 8) | type PointerBad struct type PointerSorta (line 13) | type PointerSorta struct type PointerSortaBad (line 24) | type PointerSortaBad struct type MultiField (line 35) | type MultiField struct type Issue43233 (line 42) | type Issue43233 struct FILE: go/analysis/passes/findcall/cmd/findcall/main.go function main (line 13) | func main() { singlechecker.Main(findcall.Analyzer) } FILE: go/analysis/passes/findcall/findcall.go constant Doc (line 21) | Doc = `find calls to a particular function function init (line 37) | func init() { function run (line 41) | func run(pass *analysis.Pass) (any, error) { type foundFact (line 96) | type foundFact struct method String (line 98) | func (*foundFact) String() string { return "found" } method AFact (line 99) | func (*foundFact) AFact() {} FILE: go/analysis/passes/findcall/findcall_test.go function init (line 14) | func init() { function TestFromStringLiterals (line 22) | func TestFromStringLiterals(t *testing.T) { function TestFromFileSystem (line 63) | func TestFromFileSystem(t *testing.T) { FILE: go/analysis/passes/findcall/testdata/src/a/a.go function main (line 3) | func main() { function println (line 8) | func println(s string) {} FILE: go/analysis/passes/framepointer/framepointer.go constant Doc (line 19) | Doc = "report assembly that clobbers the frame pointer before saving it" type arch (line 30) | type arch struct function hasAnyPrefix (line 38) | func hasAnyPrefix(s string, prefixes ...string) bool { function run (line 83) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/framepointer/framepointer_test.go function Test (line 15) | func Test(t *testing.T) { FILE: go/analysis/passes/gofix/gofix.go function run (line 29) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/gofix/gofix_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/gofix/testdata/src/a/a.go constant one (line 9) | one = 1 constant in3 (line 13) | in3 = one constant in4 (line 14) | in4 = one constant bad1 (line 15) | bad1 = 1 constant in5 (line 19) | in5, constant a (line 26) | a = iota constant b (line 27) | b constant in7 (line 28) | in7 = one function shadow (line 31) | func shadow() { type A (line 44) | type A FILE: go/analysis/passes/hostport/hostport.go constant Doc (line 24) | Doc = `check format of addresses passed to net.Dial function run (line 51) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/hostport/hostport_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/hostport/main.go function main (line 14) | func main() { singlechecker.Main(hostport.Analyzer) } FILE: go/analysis/passes/hostport/testdata/src/a/a.go function direct (line 8) | func direct(host string, port int, portStr string) { function indirect (line 18) | func indirect(host string, port int) { function _ (line 50) | func _() { FILE: go/analysis/passes/httpmux/cmd/httpmux/main.go function main (line 13) | func main() { singlechecker.Main(httpmux.Analyzer) } FILE: go/analysis/passes/httpmux/httpmux.go constant Doc (line 23) | Doc = `report using Go 1.22 enhanced ServeMux patterns in older Go versions function run (line 41) | func run(pass *analysis.Pass) (any, error) { function isServeMuxRegisterCall (line 76) | func isServeMuxRegisterCall(pass *analysis.Pass, call *ast.CallExpr) bool { function isMethodNamed (line 96) | func isMethodNamed(f *types.Func, pkgPath string, names ...string) bool { function stringConstantExpr (line 113) | func stringConstantExpr(pass *analysis.Pass, expr ast.Expr) (string, boo... function likelyEnhancedPattern (line 127) | func likelyEnhancedPattern(pat string) bool { function goVersionAfter121 (line 135) | func goVersionAfter121(goVersion string) bool { function goVersion (line 143) | func goVersion(pkg *types.Package) string { function versionFromGoVersion (line 162) | func versionFromGoVersion(goVersion string) string { FILE: go/analysis/passes/httpmux/httpmux_test.go function Test (line 13) | func Test(t *testing.T) { function TestGoVersion (line 20) | func TestGoVersion(t *testing.T) { FILE: go/analysis/passes/httpmux/testdata/src/a/a.go function _ (line 11) | func _() { function Handle (line 41) | func Handle(pat string, x any) {} function HandleFunc (line 42) | func HandleFunc(pat string, x any) {} type ServeMux (line 44) | type ServeMux struct method Handle (line 46) | func (*ServeMux) Handle(pat string, x any) {} method HandleFunc (line 47) | func (*ServeMux) HandleFunc(pat string, x any) {} FILE: go/analysis/passes/httpresponse/httpresponse.go constant Doc (line 19) | Doc = `check for mistakes using HTTP responses function run (line 43) | func run(pass *analysis.Pass) (any, error) { function isHTTPFuncOrMethodOnClient (line 108) | func isHTTPFuncOrMethodOnClient(info *types.Info, expr *ast.CallExpr) bo... function restOfBlock (line 145) | func restOfBlock(stack []ast.Node) ([]ast.Stmt, int) { function rootIdent (line 165) | func rootIdent(n ast.Node) *ast.Ident { FILE: go/analysis/passes/httpresponse/httpresponse_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/httpresponse/testdata/src/a/a.go function goodHTTPGet (line 8) | func goodHTTPGet() { function badHTTPGet (line 16) | func badHTTPGet() { function badHTTPHead (line 24) | func badHTTPHead() { function goodClientGet (line 32) | func goodClientGet() { function badClientPtrGet (line 41) | func badClientPtrGet() { function badClientGet (line 50) | func badClientGet() { function badClientPtrDo (line 59) | func badClientPtrDo() { function badClientDo (line 73) | func badClientDo() { function goodUnwrapResp (line 87) | func goodUnwrapResp() { function badUnwrapResp (line 100) | func badUnwrapResp() { type i66259 (line 114) | type i66259 struct method Foo (line 116) | func (_ *i66259) Foo() (*int, int) { return nil, 1 } function issue66259 (line 118) | func issue66259() { FILE: go/analysis/passes/httpresponse/testdata/src/typeparams/typeparams.go function badHTTPGet (line 14) | func badHTTPGet[T any](url string) { function mkClient (line 22) | func mkClient[T any]() *T { function badClientHTTPGet (line 26) | func badClientHTTPGet() { type S (line 33) | type S struct function unmatchedClientTypeName (line 37) | func unmatchedClientTypeName(client S[string]) { type C (line 43) | type C interface function userDefinedClientType (line 47) | func userDefinedClientType(client C[http.Response]) { FILE: go/analysis/passes/ifaceassert/cmd/ifaceassert/main.go function main (line 13) | func main() { singlechecker.Main(ifaceassert.Analyzer) } FILE: go/analysis/passes/ifaceassert/ifaceassert.go function assertableTo (line 32) | func assertableTo(free *typeparams.Free, v, t types.Type) *types.Func { function run (line 55) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/ifaceassert/ifaceassert_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/ifaceassert/testdata/src/a/a.go function InterfaceAssertionTest (line 11) | func InterfaceAssertionTest() { FILE: go/analysis/passes/ifaceassert/testdata/src/typeparams/typeparams.go type SourceReader (line 9) | type SourceReader interface function GenericInterfaceAssertionTest (line 13) | func GenericInterfaceAssertionTest[T io.Reader]() { type Float (line 39) | type Float interface type Doer (line 43) | type Doer interface function Underlying (line 47) | func Underlying[F Float](v Doer[F]) string { function DoIf (line 58) | func DoIf[F Float]() { function IsASwitch (line 67) | func IsASwitch[F Float, U Float](v Doer[F]) bool { function IsA (line 75) | func IsA[F Float, U Float](v Doer[F]) bool { function LayeredTypes (line 80) | func LayeredTypes[F Float]() { type X (line 94) | type X struct method m (line 96) | func (x X[T]) m(T) {} function InstancesOfGenericMethods (line 98) | func InstancesOfGenericMethods() { FILE: go/analysis/passes/inline/cmd/inline/main.go function main (line 28) | func main() { singlechecker.Main(inline.Analyzer) } FILE: go/analysis/passes/inline/inline.go function init (line 57) | func init() { type analyzer (line 65) | type analyzer struct method HandleFunc (line 93) | func (a *analyzer) HandleFunc(decl *ast.FuncDecl) { method HandleAlias (line 110) | func (a *analyzer) HandleAlias(spec *ast.TypeSpec) { method HandleConst (line 124) | func (a *analyzer) HandleConst(nameIdent, rhsIdent *ast.Ident) { method inline (line 146) | func (a *analyzer) inline() { method inlineCall (line 164) | func (a *analyzer) inlineCall(call *ast.CallExpr, cur inspector.Cursor) { method withinTestOf (line 258) | func (a *analyzer) withinTestOf(cur inspector.Cursor, target *types.Fu... method inlineAlias (line 294) | func (a *analyzer) inlineAlias(tn *types.TypeName, curId inspector.Cur... method inlineConst (line 479) | func (a *analyzer) inlineConst(con *types.Const, cur inspector.Cursor) { method reportInline (line 539) | func (a *analyzer) reportInline(kind, capKind string, ident ast.Expr, ... method readFile (line 557) | func (a *analyzer) readFile(node ast.Node) ([]byte, error) { function run (line 77) | func run(pass *analysis.Pass) (any, error) { function typenames (line 409) | func typenames(t types.Type) []*types.TypeName { type goFixInlineFuncFact (line 573) | type goFixInlineFuncFact struct method String (line 575) | func (f *goFixInlineFuncFact) String() string { return "goFixInline " ... method AFact (line 576) | func (*goFixInlineFuncFact) AFact() {} type goFixInlineConstFact (line 580) | type goFixInlineConstFact struct method String (line 588) | func (c *goFixInlineConstFact) String() string { method AFact (line 592) | func (*goFixInlineConstFact) AFact() {} type goFixInlineAliasFact (line 596) | type goFixInlineAliasFact struct method String (line 598) | func (c *goFixInlineAliasFact) String() string { return "goFixInline a... method AFact (line 599) | func (*goFixInlineAliasFact) AFact() {} function discard (line 601) | func discard(string, ...any) {} FILE: go/analysis/passes/inline/inline_test.go function TestAnalyzer (line 23) | func TestAnalyzer(t *testing.T) { function TestAllowBindingDeclFlag (line 41) | func TestAllowBindingDeclFlag(t *testing.T) { function TestTypesWithNames (line 56) | func TestTypesWithNames(t *testing.T) { FILE: go/analysis/passes/inline/issue77844_test.go function TestIssue77844 (line 13) | func TestIssue77844(t *testing.T) { FILE: go/analysis/passes/inline/testdata/src/a/a.go function f (line 7) | func f() { type T (line 13) | type T struct method Two (line 21) | func (T) Two() int { return 2 } function One (line 16) | func One() int { return one } constant one (line 18) | one = 1 constant Uno (line 25) | Uno = 1 constant In1 (line 28) | In1 = Uno constant no1 (line 31) | no1 = one constant In2 (line 34) | In2 = one constant in3 (line 39) | in3 = one constant in4 (line 40) | in4 = one constant bad1 (line 41) | bad1 = 1 constant in5 (line 45) | in5, constant a (line 54) | a = iota constant b (line 55) | b constant in7 (line 56) | in7 = one function _ (line 59) | func _() { constant x (line 75) | x = 1 constant in8 (line 77) | in8 = x constant D (line 81) | D = internal.D function shadow (line 83) | func shadow() { function _ (line 150) | func _() { function _ (line 159) | func _[P any]() { function _ (line 190) | func _[V any]() { FILE: go/analysis/passes/inline/testdata/src/a/internal/d.go constant D (line 5) | D = 1 type T (line 7) | type T FILE: go/analysis/passes/inline/testdata/src/b/b.go function f (line 6) | func f() { constant in2 (line 13) | in2 = a.Uno constant in3 (line 16) | in3 = C function g (line 18) | func g() { constant d (line 32) | d = a.D FILE: go/analysis/passes/inline/testdata/src/binding_false/a.go function f (line 4) | func f(x, y int) int { // want f:`goFixInline a.f` function g (line 8) | func g() { function h (line 14) | func h(int) int FILE: go/analysis/passes/inline/testdata/src/binding_true/a.go function f (line 4) | func f(x, y int) int { // want f:`goFixInline a.f` function g (line 8) | func g() { function h (line 14) | func h(int) int FILE: go/analysis/passes/inline/testdata/src/c/c.go constant C (line 7) | C = 1 FILE: go/analysis/passes/inline/testdata/src/directive/directive.go function f (line 5) | func f() { type T (line 11) | type T struct method Two (line 19) | func (T) Two() int { return 2 } function One (line 14) | func One() int { return one } constant one (line 16) | one = 1 constant Uno (line 23) | Uno = 1 constant In1 (line 26) | In1 = Uno constant no1 (line 29) | no1 = one constant In2 (line 32) | In2 = one constant bad1 (line 36) | bad1 = 1 constant in5 (line 39) | in5, constant a (line 48) | a = iota constant b (line 49) | b constant in7 (line 50) | in7 = one constant x (line 54) | x = 1 constant in8 (line 56) | in8 = x constant in9 (line 60) | in9 = iota FILE: go/analysis/passes/inline/testdata/src/rmimport/rmimport.go function _ (line 8) | func _() { FILE: go/analysis/passes/inspect/inspect.go function run (line 47) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/internal/gofixdirective/gofixdirective.go type Handler (line 27) | type Handler interface function Find (line 36) | func Find(pass *analysis.Pass, root inspector.Cursor, h Handler) { function findFunc (line 61) | func findFunc(decl *ast.FuncDecl, h Handler) { function findAlias (line 70) | func findAlias(pass *analysis.Pass, spec *ast.TypeSpec, declInline bool,... function findConst (line 102) | func findConst(pass *analysis.Pass, spec *ast.ValueSpec, declInline bool... function hasFixInline (line 134) | func hasFixInline(cg *ast.CommentGroup) bool { FILE: go/analysis/passes/loopclosure/loopclosure.go function run (line 32) | func run(pass *analysis.Pass) (any, error) { function reportCaptured (line 136) | func reportCaptured(pass *analysis.Pass, vars []types.Object, checkStmt ... function forEachLastStmt (line 159) | func forEachLastStmt(stmts []ast.Stmt, onLast func(last ast.Stmt)) { function litStmts (line 208) | func litStmts(fun ast.Expr) []ast.Stmt { function goInvoke (line 225) | func goInvoke(info *types.Info, call *ast.CallExpr) ast.Expr { function parallelSubtest (line 258) | func parallelSubtest(info *types.Info, call *ast.CallExpr) []ast.Stmt { function unlabel (line 337) | func unlabel(stmt ast.Stmt) (ast.Stmt, bool) { function isMethodCall (line 349) | func isMethodCall(info *types.Info, call *ast.CallExpr, pkgPath, typeNam... FILE: go/analysis/passes/loopclosure/loopclosure_test.go function TestVersions (line 16) | func TestVersions(t *testing.T) { FILE: go/analysis/passes/loopclosure/testdata/src/a/a.go function _ (line 18) | func _() { function _ (line 115) | func _() { type Group (line 180) | type Group struct method Go (line 182) | func (g *Group) Go(func() error) {} function _ (line 184) | func _() { function _ (line 222) | func _() { FILE: go/analysis/passes/loopclosure/testdata/src/golang.org/x/sync/errgroup/errgroup.go type Group (line 5) | type Group struct method Go (line 8) | func (g *Group) Go(f func() error) { FILE: go/analysis/passes/loopclosure/testdata/src/subtests/subtest.go type T (line 17) | type T struct method Run (line 22) | func (t *T) Run(string, func(*testing.T)) { method Parallel (line 25) | func (t *T) Parallel() {} function _ (line 27) | func _(t *testing.T) { function _ (line 153) | func _(t *testing.T) { function _ (line 166) | func _(t *T) { function _ (line 182) | func _(t *testing.T) { FILE: go/analysis/passes/loopclosure/testdata/src/typeparams/typeparams.go function f (line 14) | func f[T any](data T) { function _ (line 18) | func _[T any]() { function loop (line 28) | func loop[P interface{ Go(func() error) }](grp P) { function _ (line 40) | func _() { type T (line 45) | type T struct method Go (line 49) | func (t T[P]) Go(func() error) {} function _ (line 51) | func _(g T[errgroup.Group]) { FILE: go/analysis/passes/lostcancel/cmd/lostcancel/main.go function main (line 14) | func main() { singlechecker.Main(lostcancel.Analyzer) } FILE: go/analysis/passes/lostcancel/lostcancel.go constant debug (line 36) | debug = false function run (line 50) | func run(pass *analysis.Pass) (any, error) { function runFunc (line 68) | func runFunc(pass *analysis.Pass, node ast.Node) { function isCall (line 184) | func isCall(n ast.Node) bool { _, ok := n.(*ast.CallExpr); return ok } function isContextWithCancel (line 188) | func isContextWithCancel(info *types.Info, n ast.Node) bool { function lostCancelPath (line 215) | func lostCancelPath(pass *analysis.Pass, g *cfg.CFG, v *types.Var, stmt ... function tupleContains (line 317) | func tupleContains(tuple *types.Tuple, v *types.Var) bool { FILE: go/analysis/passes/lostcancel/lostcancel_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/lostcancel/testdata/src/a/a.go function _ (line 19) | func _() { function _ (line 26) | func _() { function _ (line 33) | func _() { function _ (line 41) | func _() { function _ (line 48) | func _() { function _ (line 53) | func _() { function _ (line 61) | func _() { function _ (line 73) | func _() { function _ (line 84) | func _() { function _ (line 102) | func _() { function _ (line 118) | func _(ch chan int) { function _ (line 132) | func _(ch chan int) { function _ (line 144) | func _() { function _ (line 158) | func _() { function _ (line 164) | func _() (ctx context.Context, cancel func()) { function _ (line 176) | func _() { function _ (line 189) | func _() { FILE: go/analysis/passes/lostcancel/testdata/src/b/b.go function main (line 11) | func main() { function notMain (line 18) | func notMain() { FILE: go/analysis/passes/lostcancel/testdata/src/typeparams/typeparams.go function _ (line 21) | func _[T any]() { function _ (line 28) | func _[T any]() { type C1 (line 34) | type C1 interface function _ (line 41) | func _(bg C1[bool, interface{}]) { type C2 (line 48) | type C2 interface function _ (line 52) | func _(c C2[interface{}]) { function _ (line 58) | func _() { function withCancelCause (line 64) | func withCancelCause(maybe bool) { FILE: go/analysis/passes/modernize/any.go function runAny (line 25) | func runAny(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/modernize/atomictypes.go function init (line 40) | func init() { function runAtomic (line 67) | func runAtomic(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/modernize/bloop.go function bloop (line 46) | func bloop(pass *analysis.Pass) (any, error) { function uses (line 164) | func uses(index *typeindex.Index, cur inspector.Cursor, obj types.Object... function enclosingFunc (line 175) | func enclosingFunc(c inspector.Cursor) (inspector.Cursor, bool) { function usesBenchmarkNOnce (line 189) | func usesBenchmarkNOnce(c inspector.Cursor, info *types.Info) bool { function isBenchmarkFunc (line 222) | func isBenchmarkFunc(f *ast.FuncDecl) bool { function isIncrementLoop (line 233) | func isIncrementLoop(info *types.Info, loop *ast.ForStmt) *types.Var { FILE: go/analysis/passes/modernize/cmd/modernize/main.go function main (line 16) | func main() { multichecker.Main(modernize.Suite...) } FILE: go/analysis/passes/modernize/errorsastype.go function init (line 35) | func init() { function errorsastype (line 80) | func errorsastype(pass *analysis.Pass) (any, error) { function canUseErrorsAsType (line 180) | func canUseErrorsAsType(info *types.Info, index *typeindex.Index, curCal... FILE: go/analysis/passes/modernize/fmtappendf.go function fmtappendf (line 38) | func fmtappendf(pass *analysis.Pass) (any, error) { function mayFormatEmpty (line 131) | func mayFormatEmpty(formatStr string) bool { FILE: go/analysis/passes/modernize/forvar.go function forvar (line 54) | func forvar(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/modernize/maps.go function mapsloop (line 54) | func mapsloop(pass *analysis.Pass) (any, error) { function assignableToIterSeq2 (line 274) | func assignableToIterSeq2(t types.Type) (k, v types.Type, ok bool) { FILE: go/analysis/passes/modernize/minmax.go function minmax (line 57) | func minmax(pass *analysis.Pass) (any, error) { function allComments (line 245) | func allComments(file *ast.File, start, end token.Pos) string { function isInequality (line 255) | func isInequality(tok token.Token) int { function isAssignBlock (line 266) | func isAssignBlock(b *ast.BlockStmt) bool { function isSimpleAssign (line 275) | func isSimpleAssign(n ast.Node) bool { function maybeNaN (line 284) | func maybeNaN(t types.Type) bool { function checkUserDefinedMinMax (line 300) | func checkUserDefinedMinMax(pass *analysis.Pass) { function canUseBuiltinMinMax (line 339) | func canUseBuiltinMinMax(fn *types.Func, body *ast.BlockStmt) bool { function hasMinMaxLogic (line 368) | func hasMinMaxLogic(body *ast.BlockStmt, funcName string) bool { function checkMinMaxPattern (line 397) | func checkMinMaxPattern(ifStmt *ast.IfStmt, falseResult ast.Expr, funcNa... function is (line 440) | func is[T any](x any) bool { function cond (line 445) | func cond[T any](cond bool, t, f T) T { FILE: go/analysis/passes/modernize/modernize.go function formatExprs (line 66) | func formatExprs(fset *token.FileSet, exprs []ast.Expr) string { function isZeroIntConst (line 78) | func isZeroIntConst(info *types.Info, e ast.Expr) bool { function isIntLiteral (line 83) | func isIntLiteral(info *types.Info, e ast.Expr, n int64) bool { function filesUsingGoVersion (line 96) | func filesUsingGoVersion(pass *analysis.Pass, version string) iter.Seq[i... function within (line 111) | func within(pass *analysis.Pass, pkgs ...string) bool { function unparenEnclosing (line 119) | func unparenEnclosing(cur inspector.Cursor) inspector.Cursor { function lookup (line 143) | func lookup(info *types.Info, cur inspector.Cursor, name string) types.O... function first (line 149) | func first[T any](x T, _ any) T { return x } function freshName (line 159) | func freshName(info *types.Info, index *typeindex.Index, scope *types.Sc... function isLocal (line 176) | func isLocal(obj types.Object) bool { FILE: go/analysis/passes/modernize/modernize_test.go function TestAppendClipped (line 16) | func TestAppendClipped(t *testing.T) { function TestAtomicTypes (line 20) | func TestAtomicTypes(t *testing.T) { function TestBloop (line 23) | func TestBloop(t *testing.T) { function TestAny (line 27) | func TestAny(t *testing.T) { function TestErrorsAsType (line 32) | func TestErrorsAsType(t *testing.T) { function TestFmtAppendf (line 36) | func TestFmtAppendf(t *testing.T) { function TestForVar (line 40) | func TestForVar(t *testing.T) { function TestStdIterators (line 44) | func TestStdIterators(t *testing.T) { function TestMapsLoop (line 48) | func TestMapsLoop(t *testing.T) { function TestMinMax (line 52) | func TestMinMax(t *testing.T) { function TestNewExpr (line 56) | func TestNewExpr(t *testing.T) { function TestOmitZero (line 60) | func TestOmitZero(t *testing.T) { function TestRangeInt (line 64) | func TestRangeInt(t *testing.T) { function TestPlusBuild (line 68) | func TestPlusBuild(t *testing.T) { function TestReflectTypeFor (line 85) | func TestReflectTypeFor(t *testing.T) { function TestSlicesContains (line 90) | func TestSlicesContains(t *testing.T) { function TestSlicesDelete (line 94) | func TestSlicesDelete(t *testing.T) { function TestSlicesSort (line 98) | func TestSlicesSort(t *testing.T) { function TestStringsBuilder (line 102) | func TestStringsBuilder(t *testing.T) { function TestStringsCut (line 106) | func TestStringsCut(t *testing.T) { function TestStringsCutPrefix (line 110) | func TestStringsCutPrefix(t *testing.T) { function TestStringsSeq (line 116) | func TestStringsSeq(t *testing.T) { function TestTestingContext (line 120) | func TestTestingContext(t *testing.T) { function TestUnsafeFuncs (line 124) | func TestUnsafeFuncs(t *testing.T) { function TestWaitGroupGo (line 128) | func TestWaitGroupGo(t *testing.T) { FILE: go/analysis/passes/modernize/newexpr.go function run (line 33) | func run(pass *analysis.Pass) (any, error) { type newLike (line 200) | type newLike struct method AFact (line 202) | func (*newLike) AFact() {} method String (line 203) | func (*newLike) String() string { return "newlike" } FILE: go/analysis/passes/modernize/omitzero.go function omitzero (line 34) | func omitzero(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/modernize/plusbuild.go function init (line 25) | func init() { function plusbuild (line 30) | func plusbuild(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/modernize/rangeint.go function rangeint (line 67) | func rangeint(pass *analysis.Pass) (any, error) { function isScalarLvalue (line 322) | func isScalarLvalue(info *types.Info, curId inspector.Cursor) bool { function enclosingSignature (line 366) | func enclosingSignature(cur inspector.Cursor, info *types.Info) *types.S... FILE: go/analysis/passes/modernize/reflect.go function reflecttypefor (line 37) | func reflecttypefor(pass *analysis.Pass) (any, error) { function isComplicatedType (line 168) | func isComplicatedType(t types.Type) bool { FILE: go/analysis/passes/modernize/slices.go function appendclipped (line 57) | func appendclipped(pass *analysis.Pass) (any, error) { function clippedSlice (line 255) | func clippedSlice(info *types.Info, e ast.Expr) (res ast.Expr, empty boo... FILE: go/analysis/passes/modernize/slicescontains.go function slicescontains (line 67) | func slicescontains(pass *analysis.Pass) (any, error) { function isReturnTrueOrFalse (line 427) | func isReturnTrueOrFalse(info *types.Info, stmt ast.Stmt) int { function isTrueOrFalse (line 435) | func isTrueOrFalse(info *types.Info, expr ast.Expr) int { FILE: go/analysis/passes/modernize/slicesdelete.go function slicesdelete (line 35) | func slicesdelete(pass *analysis.Pass) (any, error) { function increasingSliceIndices (line 154) | func increasingSliceIndices(info *types.Info, a, b ast.Expr) bool { FILE: go/analysis/passes/modernize/sortslice.go function slicessort (line 53) | func slicessort(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/modernize/stditerators.go function init (line 35) | func init() { function stditerators (line 107) | func stditerators(pass *analysis.Pass) (any, error) { function methodGoVersion (line 382) | func methodGoVersion(pkgpath, recvtype, method string) (stdlib.Version, ... FILE: go/analysis/passes/modernize/stringsbuilder.go function stringsbuilder (line 40) | func stringsbuilder(pass *analysis.Pass) (any, error) { function isEmptyString (line 378) | func isEmptyString(info *types.Info, e ast.Expr) bool { FILE: go/analysis/passes/modernize/stringscut.go function init (line 42) | func init() { function stringscut (line 116) | func stringscut(pass *analysis.Pass) (any, error) { function indexArgValid (line 377) | func indexArgValid(info *types.Info, index *typeindex.Index, expr ast.Ex... function checkIdxUses (line 426) | func checkIdxUses(info *types.Info, uses iter.Seq[inspector.Cursor], s, ... function hasModifyingUses (line 490) | func hasModifyingUses(info *types.Info, uses iter.Seq[inspector.Cursor],... function checkIdxComparison (line 522) | func checkIdxComparison(info *types.Info, check *ast.BinaryExpr, iObj ty... function flip (line 558) | func flip(op token.Token) token.Token { function isBeforeSlice (line 575) | func isBeforeSlice(info *types.Info, ek edge.Kind, slice *ast.SliceExpr)... function constSubstrLen (line 580) | func constSubstrLen(info *types.Info, substr ast.Expr) int { function isAfterSlice (line 606) | func isAfterSlice(info *types.Info, ek edge.Kind, slice *ast.SliceExpr, ... function isSliceIndexGuarded (line 661) | func isSliceIndexGuarded(info *types.Info, cur inspector.Cursor, iObj ty... function condChecksIdx (line 694) | func condChecksIdx(info *types.Info, cond ast.Expr, iObj types.Object) i... function bodyTerminates (line 704) | func bodyTerminates(block *ast.BlockStmt) bool { function sameObject (line 717) | func sameObject(info *types.Info, expr1, expr2 ast.Expr) bool { FILE: go/analysis/passes/modernize/stringscutprefix.go function stringscutprefix (line 56) | func stringscutprefix(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/modernize/stringsseq.go function stringsseq (line 48) | func stringsseq(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/modernize/testdata/src/any/any.go function _ (line 3) | func _(x interface{}) {} function _ (line 5) | func _() { FILE: go/analysis/passes/modernize/testdata/src/any/generated.go function _ (line 5) | func _(x interface{}) {} function _ (line 7) | func _() { FILE: go/analysis/passes/modernize/testdata/src/appendclipped/appendclipped.go type Bytes (line 9) | type Bytes type Bytes2 (line 10) | type Bytes2 function _ (line 13) | func _(s, other []string) { FILE: go/analysis/passes/modernize/testdata/src/appendclipped/bytesclone.go function _ (line 9) | func _(b []byte) { FILE: go/analysis/passes/modernize/testdata/src/atomictypes/atomic.go type X (line 8) | type X struct type Z (line 12) | type Z struct method fix (line 17) | func (wrapper *Z) fix() { type Y (line 43) | type Y method dontfix (line 45) | func (y Y) dontfix(x int32) (result int32) { FILE: go/analysis/passes/modernize/testdata/src/atomictypes/atomic_shadow.go function _ (line 5) | func _() { FILE: go/analysis/passes/modernize/testdata/src/atomictypes/go118/atomic_go118.go function _ (line 7) | func _() { FILE: go/analysis/passes/modernize/testdata/src/atomictypes/go120/atomic_go120.go function _ (line 7) | func _() { FILE: go/analysis/passes/modernize/testdata/src/atomictypes/ignored/atomic.go function _ (line 9) | func _() { FILE: go/analysis/passes/modernize/testdata/src/atomictypes/ignored/atomic_ignored.go function _ (line 7) | func _() { FILE: go/analysis/passes/modernize/testdata/src/bloop/bloop_test.go function BenchmarkA (line 10) | func BenchmarkA(b *testing.B) { function BenchmarkB (line 18) | func BenchmarkB(b *testing.B) { function BenchmarkC (line 34) | func BenchmarkC(b *testing.B) { function BenchmarkD (line 50) | func BenchmarkD(b *testing.B) { function BenchmarkE (line 56) | func BenchmarkE(b *testing.B) { function BenchmarkF (line 74) | func BenchmarkF(b *testing.B) { function BenchmarkG (line 85) | func BenchmarkG(b *testing.B) { function BenchmarkH (line 99) | func BenchmarkH(b *testing.B) { function BenchmarkI (line 110) | func BenchmarkI(b *testing.B) { function BenchmarkJ (line 117) | func BenchmarkJ(b *testing.B) { FILE: go/analysis/passes/modernize/testdata/src/errorsastype/dotimport/a.go function _ (line 8) | func _(err error) { FILE: go/analysis/passes/modernize/testdata/src/errorsastype/errorsastype.go function _ (line 8) | func _(err error) { FILE: go/analysis/passes/modernize/testdata/src/fieldsseq/fieldsseq.go function _ (line 10) | func _() { FILE: go/analysis/passes/modernize/testdata/src/fmtappendf/fmtappendf.go function two (line 7) | func two() string { function bye (line 11) | func bye() { function funcsandvars (line 15) | func funcsandvars() { function typealias (line 20) | func typealias() { function otherprints (line 27) | func otherprints() { function comma (line 32) | func comma() { function emptystring (line 46) | func emptystring() { function multiline (line 61) | func multiline() []byte { function getString (line 70) | func getString() string { FILE: go/analysis/passes/modernize/testdata/src/forvar/forvar.go function _ (line 3) | func _(m map[int]int, s []int) { function f (line 101) | func f(n int) {} FILE: go/analysis/passes/modernize/testdata/src/mapsloop/mapsloop.go type M (line 12) | type M function useCopy (line 16) | func useCopy(dst, src map[int]string) { function useCopyRetrieveMap (line 24) | func useCopyRetrieveMap(x map[int]int) { function useCopyGeneric (line 35) | func useCopyGeneric[K comparable, V any, M ~map[K]V](dst, src M) { function useCopyNotClone (line 43) | func useCopyNotClone(src map[int]string) { function useCopyParen (line 65) | func useCopyParen(src map[int]string) { function useCopy_typesDiffer (line 81) | func useCopy_typesDiffer(src M) { function useCopy_typesDiffer2 (line 90) | func useCopy_typesDiffer2(src map[int]string) { function useClone_typesDiffer3 (line 99) | func useClone_typesDiffer3(src map[int]string) { function useClone_typesDiffer4 (line 112) | func useClone_typesDiffer4(src map[int]string) { function useClone_generic (line 125) | func useClone_generic[Map ~map[K]V, K comparable, V any](src Map) { function useInsert_assignableToSeq2 (line 138) | func useInsert_assignableToSeq2(dst map[int]string, src func(yield func(... function useCollect (line 145) | func useCollect(src iter.Seq2[int, string]) { function useInsert_typesDifferAssign (line 156) | func useInsert_typesDifferAssign(src iter.Seq2[int, string]) { function useInsert_typesDifferDeclare (line 168) | func useInsert_typesDifferDeclare(src iter.Seq2[int, string]) { type isomerOfSeq2 (line 179) | type isomerOfSeq2 function nopeInsertRequiresAssignableToSeq2 (line 181) | func nopeInsertRequiresAssignableToSeq2(dst map[int]string, src isomerOf... function nopeSingleVarRange (line 187) | func nopeSingleVarRange(dst map[int]bool, src map[int]string) { function nopeBodyNotASingleton (line 193) | func nopeBodyNotASingleton(src map[int]string) { function nopeAssignmentHasIncrementOperator (line 202) | func nopeAssignmentHasIncrementOperator(src map[int]int) { function nopeNotAMap (line 209) | func nopeNotAMap(src map[int]string) { function nopeNotAMapGeneric (line 216) | func nopeNotAMapGeneric[E any, M ~map[int]E, S ~[]E](src M) { function nopeHasImplicitValueWidening (line 223) | func nopeHasImplicitValueWidening(src map[string]int) { function nopeHasImplicitKeyWidening (line 230) | func nopeHasImplicitKeyWidening(src map[string]string) { function nopeMapExprUsesLoopVars (line 239) | func nopeMapExprUsesLoopVars(x map[int]int, y []map[int]int) { function nopeExtraKeyValueUsage (line 245) | func nopeExtraKeyValueUsage(x map[int]int, y []map[int]int) { function nope2LhsAssigment (line 260) | func nope2LhsAssigment(x map[int]int, y map[int]int) { FILE: go/analysis/passes/modernize/testdata/src/mapsloop/mapsloop_dot.go function useCopyDot (line 9) | func useCopyDot(dst, src map[int]string) { function useCloneDot (line 16) | func useCloneDot(src map[int]string) { FILE: go/analysis/passes/modernize/testdata/src/minmax/go120/minmax_go120.go function min (line 5) | func min(a, b int) int { // can't be removed because we don't have at le... FILE: go/analysis/passes/modernize/testdata/src/minmax/minmax.go function ifmin (line 3) | func ifmin(a, b int) { function ifmax (line 14) | func ifmax(a, b int) { function ifminvariant (line 22) | func ifminvariant(a, b int) { function ifmaxvariant (line 30) | func ifmaxvariant(a, b int) { function ifelsemin (line 38) | func ifelsemin(a, b int) { function ifelsemax (line 53) | func ifelsemax(a, b int) { function shadowed (line 68) | func shadowed() int { function nopeIfStmtHasInitStmt (line 80) | func nopeIfStmtHasInitStmt() { function oops (line 89) | func oops() { function nopeAssignHasIncrementOperator (line 99) | func nopeAssignHasIncrementOperator() { function nopeNotAMinimum (line 110) | func nopeNotAMinimum(x, y int) int { function nopeHasElseBlock (line 121) | func nopeHasElseBlock(x int) int { function fix72727 (line 132) | func fix72727(a, b int) { type myfloat (line 140) | type myfloat function nopeFloat (line 144) | func nopeFloat(a, b myfloat) (res myfloat) { function underscoreAssign (line 154) | func underscoreAssign(a, b int) { function nopeIfElseIf (line 161) | func nopeIfElseIf(a int) int { function selectComm (line 174) | func selectComm(ch chan int) int { FILE: go/analysis/passes/modernize/testdata/src/minmax/nonstrict/nonstrict.go function min (line 4) | func min(a, b int) int { // want "user-defined min function is equivalen... function max (line 13) | func max(a, b int) int { // want "user-defined max function is equivalen... FILE: go/analysis/passes/modernize/testdata/src/minmax/userdefined/userdefined.go function minFloat (line 4) | func minFloat(a, b float64) float64 { function maxFloat (line 13) | func maxFloat(a, b float64) float64 { function minimum (line 22) | func minimum(a, b int) int { function minDifferent (line 31) | func minDifferent(a, b int) int { type MyType (line 36) | type MyType struct method min (line 38) | func (m MyType) min(a, b int) int { function minWrongSig (line 47) | func minWrongSig(a int) int { function minComplex (line 52) | func minComplex(a, b int) int { function min (line 62) | func min(a, b int) int { // want "user-defined min function is equivalen... function max (line 71) | func max(a, b int) int { // want "user-defined max function is equivalen... FILE: go/analysis/passes/modernize/testdata/src/minmax/wrongoperators/wrongoperators.go function min (line 4) | func min(a, b int) int { function max (line 13) | func max(a, b int) int { FILE: go/analysis/passes/modernize/testdata/src/minmax/wrongreturn/wrongreturn.go function min (line 4) | func min(x, y int) int { function max (line 13) | func max(x, y int) int { FILE: go/analysis/passes/modernize/testdata/src/newexpr/newexpr.go function intVar (line 6) | func intVar(i int) *int { return &i } function int64Var (line 8) | func int64Var(i int64) *int64 { return &i } function stringVar (line 10) | func stringVar(s string) *string { return &s } function varOf (line 12) | func varOf[T any](x T) *T { return &x } function alreadyAnnotated (line 15) | func alreadyAnnotated[T any](x T) *T { return &x } FILE: go/analysis/passes/modernize/testdata/src/omitzero/kube/kube.go type Foo (line 3) | type Foo struct type Other (line 8) | type Other struct FILE: go/analysis/passes/modernize/testdata/src/omitzero/omitzero.go type Foo (line 3) | type Foo struct type Bar (line 7) | type Bar struct type C (line 11) | type C struct type R (line 15) | type R struct type A (line 19) | type A struct type X (line 24) | type X struct type Y (line 28) | type Y struct FILE: go/analysis/passes/modernize/testdata/src/rangeint/a/a.go type ID (line 3) | type ID FILE: go/analysis/passes/modernize/testdata/src/rangeint/rangeint.go function _ (line 9) | func _(i int, s struct{ i int }, slice []int) { function f (line 160) | func f() int { return 0 } function _ (line 163) | func _(s string) { function nopePostconditionDiffers (line 175) | func nopePostconditionDiffers() { function issue71847d (line 184) | func issue71847d() { function issue72726 (line 198) | func issue72726() { function todo (line 219) | func todo() { type T (line 225) | type T function Fn (line 228) | func Fn(a int) T { function issue73037 (line 232) | func issue73037() { function issue75289 (line 251) | func issue75289() { function _ (line 279) | func _() (i int) { function issue74687 (line 285) | func issue74687() { function issue76470 (line 295) | func issue76470() { function issue77034 (line 313) | func issue77034() { function issue77034_define_inner (line 320) | func issue77034_define_inner() { type C (line 328) | type C function issue77891 (line 332) | func issue77891() { FILE: go/analysis/passes/modernize/testdata/src/reflecttypefor/reflecttypefor.go type A (line 9) | type A type B (line 11) | type B function _ (line 43) | func _() { type T (line 57) | type T struct type S (line 65) | type S struct type R (line 73) | type R type M (line 77) | type M type P (line 79) | type P struct function f (line 91) | func f(t *T, r R, m *M[struct{ F int }], s *S, p *P) { FILE: go/analysis/passes/modernize/testdata/src/slicescontains/slicescontains.go function nopeNoBreak (line 10) | func nopeNoBreak(slice []int, needle int) { function rangeIndex (line 18) | func rangeIndex(slice []int, needle int) { function rangeValue (line 27) | func rangeValue(slice []int, needle int) { function returns (line 36) | func returns(slice []int, needle int) { function assignTrueBreak (line 45) | func assignTrueBreak(slice []int, needle int) { function assignFalseBreak (line 56) | func assignFalseBreak(slice []int, needle int) { function assignFalseBreakInSelectSwitch (line 67) | func assignFalseBreakInSelectSwitch(slice []int, needle int) { function returnTrue (line 93) | func returnTrue(slice []int, needle int) bool { function returnFalse (line 102) | func returnFalse(slice []int, needle int) bool { function containsFunc (line 111) | func containsFunc(slice []int, needle int) bool { function nopeLoopBodyHasFreeContinuation (line 120) | func nopeLoopBodyHasFreeContinuation(slice []int, needle int) bool { function generic (line 132) | func generic[T any](slice []T, f func(T) bool) bool { function predicate (line 141) | func predicate(int) bool function nopeNeedleHaystackDifferentTypes (line 146) | func nopeNeedleHaystackDifferentTypes(x any, args []error) { function nopeNeedleHaystackDifferentTypes2 (line 154) | func nopeNeedleHaystackDifferentTypes2(x error, args []any) { function nopeVariadicNamedContainsFunc (line 162) | func nopeVariadicNamedContainsFunc(slice []int) bool { function variadicPredicate (line 171) | func variadicPredicate(int, ...any) bool function nopeVariadicContainsFunc (line 173) | func nopeVariadicContainsFunc(slice []int) bool { type I (line 186) | type I interface type C (line 187) | type C method F (line 189) | func (C) F() {} function nopeImplicitConversionContainsFunc (line 191) | func nopeImplicitConversionContainsFunc(slice []C, f func(I) bool) bool { function nopeTypeParamWidening (line 200) | func nopeTypeParamWidening[T any](slice []T, f func(any) bool) bool { function issue76210 (line 209) | func issue76210(haystack []string, needle string) bool { function issue76210negation (line 220) | func issue76210negation(haystack []string, needle string) bool { function issue77677emptybody (line 231) | func issue77677emptybody(slice []int, needle int) { type Object (line 239) | type Object struct method Do (line 241) | func (o Object) Do() Object { return Object{} } method Print (line 242) | func (o Object) Print() { fmt.Println("Hello, World!") } function issue78149nonboolassign (line 244) | func issue78149nonboolassign(obj Object, opts ...string) { FILE: go/analysis/passes/modernize/testdata/src/slicesdelete/slicesdelete.go function h (line 5) | func h() []int { return []int{} } function slicesdelete (line 9) | func slicesdelete(test, other []byte, i int) { function issue73663 (line 46) | func issue73663(test, other []byte, i int32) { FILE: go/analysis/passes/modernize/testdata/src/slicessort/slicessort.go type myint (line 5) | type myint function _ (line 7) | func _(s []myint) { function _ (line 11) | func _(x *struct{ s []int }) { function _ (line 15) | func _(s []int) { function _ (line 19) | func _(s []int) { function _ (line 23) | func _(sense bool, s2 []struct{ x int }) { FILE: go/analysis/passes/modernize/testdata/src/slicessort/slicessort_dot.go function _ (line 8) | func _(s []myint) { function _ (line 12) | func _(x *struct{ s []int }) { function _ (line 16) | func _(s []int) { function _ (line 20) | func _(s []int) { function _ (line 24) | func _(s2 []struct{ x int }) { function _ (line 28) | func _() { Clip([]int{}) } FILE: go/analysis/passes/modernize/testdata/src/splitseq/splitseq.go function _ (line 10) | func _() { FILE: go/analysis/passes/modernize/testdata/src/stditerators/stditerators.go function _ (line 8) | func _(tuple *types.Tuple) { function _ (line 14) | func _(scope *types.Scope) { function _ (line 48) | func _(union, union2 *types.Union) { function _ (line 67) | func _(tuple *types.Tuple) { function _ (line 95) | func _(t reflect.Type) { function _ (line 110) | func _(v reflect.Value) { FILE: go/analysis/passes/modernize/testdata/src/stringsbuilder/stringsbuilder.go function _ (line 6) | func _() { function _ (line 18) | func _() { function _ (line 27) | func _() { function _ (line 36) | func _() { function _ (line 45) | func _() { function _ (line 54) | func _() { function _ (line 63) | func _() { function _ (line 73) | func _() { function _ (line 85) | func _(x string) string { function issue75318 (line 95) | func issue75318(slice []string) string { function _ (line 108) | func _(slice []string) string { function _ (line 120) | func _(slice []string) string { function stringDeclaredWithVarDecl (line 135) | func stringDeclaredWithVarDecl() { function nopeStringIsNotLastValueSpecInVarDecl (line 146) | func nopeStringIsNotLastValueSpecInVarDecl() { function _ (line 159) | func _() { function _ (line 170) | func _() { FILE: go/analysis/passes/modernize/testdata/src/stringscut/stringscut.go function basic (line 8) | func basic(s string) bool { function basic_contains (line 17) | func basic_contains(s string) bool { function contains_variety (line 23) | func contains_variety(s, sub string) { function basic_contains_bytes (line 36) | func basic_contains_bytes(s string) bool { function basic_contains_bytes_byte (line 41) | func basic_contains_bytes_byte(s []byte) bool { function skip_var_decl (line 46) | func skip_var_decl(s string) bool { function basic_substr_arg (line 53) | func basic_substr_arg(s string, substr string) bool { function wrong_len_arg (line 61) | func wrong_len_arg(s string, substr string) bool { function basic_strings_byte (line 67) | func basic_strings_byte(s string) bool { function basic_strings_byte_int (line 75) | func basic_strings_byte_int(s string) bool { function basic_strings_byte_var (line 83) | func basic_strings_byte_var(s string) bool { function basic_bytes (line 92) | func basic_bytes(b []byte) []byte { function basic_index_bytes (line 101) | func basic_index_bytes(b []byte) string { function const_substr_len (line 110) | func const_substr_len(s string) bool { function const_for_len (line 119) | func const_for_len(s string) bool { function index (line 128) | func index(s string) bool { function index_flipped (line 140) | func index_flipped(s string) bool { function invalid_index (line 152) | func invalid_index(s string) bool { function invalid_slice (line 163) | func invalid_slice(s string) string { function index_and_before_after (line 171) | func index_and_before_after(s string) string { function idx_var_init (line 192) | func idx_var_init(s string) (string, string) { function idx_reassigned (line 197) | func idx_reassigned(s string) string { function idx_printed (line 203) | func idx_printed(s string) string { function idx_aliased (line 209) | func idx_aliased(s string) string { function idx_aliased_var (line 215) | func idx_aliased_var(s string) string { function s_modified (line 222) | func s_modified(s string) string { function s_modified_no_params (line 228) | func s_modified_no_params() string { function s_in_func_call (line 235) | func s_in_func_call() string { function s_pointer (line 243) | func s_pointer() string { function s_pointer_before_call (line 251) | func s_pointer_before_call() string { function idx_used_before (line 259) | func idx_used_before(s string, sub string) string { function idx_used_other_substr (line 270) | func idx_used_other_substr(s string, sub string) string { function idx_gtr_zero_invalid (line 281) | func idx_gtr_zero_invalid(s string, sub string) string { function idx_gtreq_one_invalid (line 289) | func idx_gtreq_one_invalid(s string, sub string) string { function idx_gtr_negone (line 297) | func idx_gtr_negone(s string, sub string) string { function idx_call (line 309) | func idx_call() { function multipleCallsSameScope (line 315) | func multipleCallsSameScope(s string) (bool, bool) { function shadowing (line 327) | func shadowing(s string) string { function foreshadowing (line 341) | func foreshadowing(s string) string { function b (line 357) | func b() []byte { function function (line 361) | func function(s string) {} function reference_str (line 363) | func reference_str(s *string) {} function reference_int (line 365) | func reference_int(i *int) {} function blank (line 367) | func blank() {} function unguarded_after_slice (line 372) | func unguarded_after_slice(s string) (int, string) { function unguarded_after_slice_negcheck (line 381) | func unguarded_after_slice_negcheck(s string) string { function guarded_both_slices (line 390) | func guarded_both_slices(s string) (string, string) { function guarded_early_return (line 399) | func guarded_early_return(s string) (string, string) { function guarded_neg_else (line 408) | func guarded_neg_else(s string) (string, string) { FILE: go/analysis/passes/modernize/testdata/src/stringscutprefix/bytescutprefix/bytescutprefix.go function _ (line 7) | func _() { FILE: go/analysis/passes/modernize/testdata/src/stringscutprefix/bytescutprefix/bytescutprefix_dot.go function _ (line 10) | func _() { FILE: go/analysis/passes/modernize/testdata/src/stringscutprefix/stringscutprefix.go function _ (line 12) | func _() { function _ (line 43) | func _() { function _ (line 54) | func _() { function _ (line 80) | func _() { function _ (line 90) | func _() { function _ (line 141) | func _() { function _ (line 151) | func _() { function _ (line 164) | func _() { FILE: go/analysis/passes/modernize/testdata/src/stringscutprefix/stringscutprefix_dot.go function _ (line 8) | func _() { function _ (line 16) | func _() { function _ (line 24) | func _() { function _ (line 34) | func _() { FILE: go/analysis/passes/modernize/testdata/src/testingcontext/testingcontext_test.go function Test (line 9) | func Test(t *testing.T) { function TestAlt (line 50) | func TestAlt(t2 *testing.T) { function Testnot (line 56) | func Testnot(t *testing.T) { function Benchmark (line 62) | func Benchmark(b *testing.B) { function Fuzz (line 74) | func Fuzz(f *testing.F) { FILE: go/analysis/passes/modernize/testdata/src/unsafefuncs/unsafefuncs.go function _ (line 5) | func _(ptr unsafe.Pointer) unsafe.Pointer { function _ (line 11) | func _(ptr uP) uP { function _ (line 15) | func _(ptr unsafe.Pointer, n int) unsafe.Pointer { function _ (line 19) | func _(ptr *byte, len int) *byte { type namedUP (line 23) | type namedUP function _ (line 25) | func _(ptr namedUP) namedUP { FILE: go/analysis/passes/modernize/testdata/src/waitgroupgo/waitgroup.go function _ (line 9) | func _() { function _ (line 32) | func _() { function _ (line 55) | func _() { function _ (line 80) | func _() { function _ (line 133) | func _() { type Server (line 167) | type Server struct type ServerContainer (line 171) | type ServerContainer struct function _ (line 175) | func _() { FILE: go/analysis/passes/modernize/testdata/src/waitgroupgo/waitgroup_alias.go function _ (line 8) | func _() { FILE: go/analysis/passes/modernize/testdata/src/waitgroupgo/waitgroup_dot.go function _ (line 9) | func _() { FILE: go/analysis/passes/modernize/testingcontext.go function testingContext (line 57) | func testingContext(pass *analysis.Pass) (any, error) { function soleUseIs (line 162) | func soleUseIs(index *typeindex.Index, obj types.Object, id *ast.Ident) ... function isTestFn (line 183) | func isTestFn(info *types.Info, fn *ast.FuncDecl) types.Object { function testKind (line 227) | func testKind(name string) string { FILE: go/analysis/passes/modernize/unsafefuncs.go function init (line 40) | func init() { function unsafefuncs (line 45) | func unsafefuncs(pass *analysis.Pass) (any, error) { function deleteConv (line 169) | func deleteConv(cur inspector.Cursor) []analysis.TextEdit { function isInteger (line 207) | func isInteger(t types.Type) bool { FILE: go/analysis/passes/modernize/waitgroupgo.go function waitgroup (line 62) | func waitgroup(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/nilfunc/nilfunc.go function run (line 33) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/nilfunc/nilfunc_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/nilfunc/testdata/src/a/a.go function F (line 7) | func F() {} type T (line 9) | type T struct method M (line 13) | func (T) M() {} function Comparison (line 17) | func Comparison() { FILE: go/analysis/passes/nilfunc/testdata/src/typeparams/typeparams.go function f (line 9) | func f[P any]() {} function g (line 11) | func g[P1 any, P2 any](x P1) {} type T1 (line 15) | type T1 struct type T2 (line 19) | type T2 struct function Comparison (line 23) | func Comparison[P any](f2 func() T1[P]) { function Index (line 41) | func Index[P any](a [](func() P)) { FILE: go/analysis/passes/nilness/cmd/nilness/main.go function main (line 14) | func main() { singlechecker.Main(nilness.Analyzer) } FILE: go/analysis/passes/nilness/nilness.go function run (line 31) | func run(pass *analysis.Pass) (any, error) { function runFunc (line 39) | func runFunc(pass *analysis.Pass, fn *ssa.Function) { type fact (line 262) | type fact struct method negate (line 267) | func (f fact) negate() fact { return fact{f.value, -f.nilness} } type nilness (line 269) | type nilness method String (line 279) | func (n nilness) String() string { return nilnessStrings[n+1] } constant isnonnil (line 272) | isnonnil = -1 constant unknown (line 273) | unknown nilness = 0 constant isnil (line 274) | isnil = 1 function nilnessOf (line 283) | func nilnessOf(stack []fact, v ssa.Value) nilness { function slice2ArrayPtrLen (line 375) | func slice2ArrayPtrLen(v *ssa.SliceToArrayPointer) int64 { function eq (line 381) | func eq(b *ssa.BasicBlock) (op *ssa.BinOp, tsucc, fsucc *ssa.BasicBlock) { function expandFacts (line 413) | func expandFacts(f fact) []fact { type facts (line 430) | type facts method negate (line 432) | func (ff facts) negate() facts { function is (line 440) | func is[T any](x any) bool { function isNillable (line 445) | func isNillable(t types.Type) bool { function isRangeIndex (line 468) | func isRangeIndex(instr *ssa.IndexAddr) bool { FILE: go/analysis/passes/nilness/nilness_test.go function Test (line 14) | func Test(t *testing.T) { function TestNilness (line 19) | func TestNilness(t *testing.T) { function TestInstantiated (line 24) | func TestInstantiated(t *testing.T) { function TestTypeSet (line 29) | func TestTypeSet(t *testing.T) { FILE: go/analysis/passes/nilness/testdata/src/a/a.go type X (line 8) | type X struct function f (line 10) | func f(x, y *X) { function f2 (line 37) | func f2(ptr *[3]int, i interface{}) { function g (line 62) | func g() error { return nil } function f3 (line 64) | func f3() error { function h (line 82) | func h(err error, b bool) { function i (line 90) | func i(*int) error { function f4 (line 98) | func f4(x *X) { function f5 (line 104) | func f5(x *X) { function f6 (line 108) | func f6(x *X) { function f7 (line 113) | func f7() { function bad (line 123) | func bad() (*X, error) { function f8 (line 127) | func f8() { function f9 (line 133) | func f9(x interface { function f10 (line 162) | func f10() { function unknown (line 178) | func unknown() bool { function f11 (line 182) | func f11(a interface{}) { function f12 (line 193) | func f12(a interface{}) { type Y (line 205) | type Y struct type innerY (line 209) | type innerY struct function f13 (line 213) | func f13() { function f14 (line 218) | func f14() { function f15 (line 225) | func f15(x any) { function f16 (line 233) | func f16(x any) { function f18 (line 242) | func f18(x any) { function f19 (line 254) | func f19(slice []int, array *[2]int, m map[string]int, ch chan int) { function f20 (line 312) | func f20() { FILE: go/analysis/passes/nilness/testdata/src/b/b.go function f (line 3) | func f() { function g (line 15) | func g() { function h (line 21) | func h() { function i (line 27) | func i(x []int) { function _ (line 34) | func _(err error) { FILE: go/analysis/passes/nilness/testdata/src/c/c.go function instantiated (line 3) | func instantiated[X any](x *X) int { function init (line 12) | func init() { type Empty1 (line 18) | type Empty1 type Empty2 (line 19) | type Empty2 function TypeParamInterface (line 22) | func TypeParamInterface[T error](x T) { function TypeParamTypeSetWithInt (line 29) | func TypeParamTypeSetWithInt[T interface { function TypeParamUnionEmptyEmpty (line 38) | func TypeParamUnionEmptyEmpty[T Empty1 | Empty2](x T) { function TypeParamUnionEmptyInt (line 44) | func TypeParamUnionEmptyInt[T Empty1 | int](x T) { function TypeParamUnionStringInt (line 50) | func TypeParamUnionStringInt[T string | int](x T) { FILE: go/analysis/passes/nilness/testdata/src/d/d.go type message (line 3) | type message interface function noparam (line 5) | func noparam() { function paramNonnil (line 10) | func paramNonnil[T message]() { function instance (line 15) | func instance() { function param (line 20) | func param[T interface { type nilMsg (line 28) | type nilMsg method PR (line 30) | func (m nilMsg) PR() { function allNillable (line 38) | func allNillable[T ~*int | ~chan int]() { function notAll (line 45) | func notAll[T ~*int | ~chan int | ~int]() { function noninvoke (line 52) | func noninvoke[T ~func()]() { FILE: go/analysis/passes/pkgfact/pkgfact.go type pairsFact (line 51) | type pairsFact method AFact (line 53) | func (f *pairsFact) AFact() {} method String (line 54) | func (f *pairsFact) String() string { return "pairs(" + strings.Join(*... function run (line 56) | func run(pass *analysis.Pass) (any, error) { function imported (line 122) | func imported(info *types.Info, spec *ast.ImportSpec) *types.Package { FILE: go/analysis/passes/pkgfact/pkgfact_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/pkgfact/testdata/src/a/a.go constant _greeting_ (line 3) | _greeting_ = "hello" constant _audience_ (line 4) | _audience_ = "world" FILE: go/analysis/passes/pkgfact/testdata/src/b/b.go constant _pi_ (line 5) | _pi_ = 3.14159 FILE: go/analysis/passes/printf/main.go function main (line 20) | func main() { singlechecker.Main(printf.Analyzer) } FILE: go/analysis/passes/printf/printf.go function init (line 33) | func init() { type Kind (line 51) | type Kind method String (line 60) | func (kind Kind) String() string { constant KindNone (line 54) | KindNone Kind = iota constant KindPrint (line 55) | KindPrint constant KindPrintf (line 56) | KindPrintf constant KindErrorf (line 57) | KindErrorf type Result (line 74) | type Result struct method Kind (line 79) | func (r *Result) Kind(fn *types.Func) Kind { type isWrapper (line 97) | type isWrapper struct method AFact (line 99) | func (f *isWrapper) AFact() {} method String (line 101) | func (f *isWrapper) String() string { function run (line 114) | func run(pass *analysis.Pass) (any, error) { type wrapper (line 132) | type wrapper struct type printfCaller (line 141) | type printfCaller struct function formatArgsParams (line 149) | func formatArgsParams(sig *types.Signature) (format, args *types.Var) { function findPrintLike (line 177) | func findPrintLike(pass *analysis.Pass, res *Result) { function methodImplementations (line 376) | func methodImplementations(pass *analysis.Pass) map[*types.Func]map[*typ... function match (line 413) | func match(info *types.Info, arg ast.Expr, param *types.Var) bool { function propagate (line 420) | func propagate(pass *analysis.Pass, w *wrapper, call *ast.CallExpr, kind... function checkForward (line 456) | func checkForward(pass *analysis.Pass, w *wrapper, call *ast.CallExpr, k... function origin (line 490) | func origin(obj types.Object) types.Object { function formatStringIndex (line 570) | func formatStringIndex(pass *analysis.Pass, call *ast.CallExpr) int { function stringConstantExpr (line 596) | func stringConstantExpr(pass *analysis.Pass, expr ast.Expr) (string, boo... function checkCalls (line 606) | func checkCalls(pass *analysis.Pass, res *Result) { function fullname (line 633) | func fullname(obj types.Object) string { function callKind (line 644) | func callKind(pass *analysis.Pass, obj types.Object, res *Result) Kind { function isFormatter (line 678) | func isFormatter(typ types.Type) bool { function checkPrintf (line 701) | func checkPrintf(pass *analysis.Pass, fileVersion string, kind Kind, cal... function opRange (line 803) | func opRange(formatArg ast.Expr, op *fmtstr.Operation) analysis.Range { type printfArgType (line 814) | type printfArgType constant argBool (line 817) | argBool printfArgType = 1 << iota constant argByte (line 818) | argByte constant argInt (line 819) | argInt constant argRune (line 820) | argRune constant argString (line 821) | argString constant argFloat (line 822) | argFloat constant argComplex (line 823) | argComplex constant argPointer (line 824) | argPointer constant argError (line 825) | argError constant anyType (line 826) | anyType printfArgType = ^0 type printVerb (line 829) | type printVerb struct constant noFlag (line 837) | noFlag = "" constant numFlag (line 838) | numFlag = " -+.0" constant sharpNumFlag (line 839) | sharpNumFlag = " -+.0#" constant allFlags (line 840) | allFlags = " -+.0#" function okPrintfArg (line 877) | func okPrintfArg(pass *analysis.Pass, fileVersion string, call *ast.Call... function recursiveStringer (line 1002) | func recursiveStringer(pass *analysis.Pass, e ast.Expr) (string, bool) { function isStringer (line 1052) | func isStringer(sig *types.Signature) bool { function isFunctionValue (line 1060) | func isFunctionValue(pass *analysis.Pass, e ast.Expr) bool { function argCanBeChecked (line 1073) | func argCanBeChecked(pass *analysis.Pass, call *ast.CallExpr, rng analys... constant flagsRE (line 1100) | flagsRE = `[+\-#]*` constant indexOptRE (line 1101) | indexOptRE = `(\[[0-9]+\])?` constant numOptRE (line 1102) | numOptRE = `([0-9]+|` + indexOptRE + `\*)?` constant verbRE (line 1103) | verbRE = `[bcdefgopqstvxEFGTUX]` function checkPrint (line 1107) | func checkPrint(pass *analysis.Pass, call *ast.CallExpr, name string) { function count (line 1185) | func count(n int, what string) string { type stringSet (line 1194) | type stringSet method String (line 1196) | func (ss stringSet) String() string { method Set (line 1205) | func (ss stringSet) Set(flag string) error { function isHex (line 1219) | func isHex(b byte) bool { FILE: go/analysis/passes/printf/printf_test.go function Test (line 17) | func Test(t *testing.T) { function TestNonConstantFmtString_Go123 (line 25) | func TestNonConstantFmtString_Go123(t *testing.T) { function TestNonConstantFmtString_Go124 (line 32) | func TestNonConstantFmtString_Go124(t *testing.T) { FILE: go/analysis/passes/printf/testdata/src/a/a.go function UnsafePointerPrintfTest (line 22) | func UnsafePointerPrintfTest() { type errorTest1 (line 28) | type errorTest1 method Error (line 30) | func (errorTest1) Error(...interface{}) string { type errorTest2 (line 34) | type errorTest2 method Error (line 35) | func (errorTest2) Error(...interface{}) { type errorTest3 (line 38) | type errorTest3 method Error (line 40) | func (errorTest3) Error() { // No return value. type errorTest4 (line 43) | type errorTest4 method Error (line 45) | func (errorTest4) Error() int { // Different return type. type errorTest5 (line 49) | type errorTest5 method error (line 51) | func (errorTest5) error() { // niladic; don't complain if no args (was... type errorTestOK (line 54) | type errorTestOK method Error (line 56) | func (errorTestOK) Error() string { return "" } function PrintfTests (line 60) | func PrintfTests() { function someString (line 372) | func someString() string { return "X" } type someStruct (line 374) | type someStruct struct method Log (line 379) | func (ss *someStruct) Log(f func(), s string) {} method Error (line 384) | func (ss *someStruct) Error(args ...func()) {} method Println (line 388) | func (ss *someStruct) Println(args ...interface{}) {} method log (line 392) | func (ss *someStruct) log(f func(), args ...interface{}) {} function someFunction (line 395) | func someFunction() {} function Printf (line 398) | func Printf(format string, args ...interface{}) { // want Printf:"printf... function Println (line 403) | func Println(args ...interface{}) { // want Println:"printWrapper" function printf (line 408) | func printf(format string, args ...interface{}) { // want printf:"printf... function Errorf (line 414) | func Errorf(i int, format string, args ...interface{}) { // want Errorf:... function errorf (line 420) | func errorf(level, format string, args ...interface{}) { // want errorf:... type errorfStruct (line 424) | type errorfStruct struct method Errorf (line 427) | func (errorfStruct) Errorf(format string, args ...interface{}) { // wa... type errorfStringStruct (line 431) | type errorfStringStruct struct method Errorf (line 435) | func (errorfStringStruct) Errorf(level, format string, args ...interfa... type errorfIntStruct (line 439) | type errorfIntStruct struct method Errorf (line 443) | func (errorfIntStruct) Errorf(i int, format string, args ...interface{... function multi (line 448) | func multi() []interface{} { type stringer (line 452) | type stringer method String (line 454) | func (stringer) String() string { return "string" } type ptrStringer (line 456) | type ptrStringer method String (line 460) | func (*ptrStringer) String() string { method Warn2 (line 464) | func (p *ptrStringer) Warn2(x int, args ...interface{}) string { // wa... method Warnf2 (line 468) | func (p *ptrStringer) Warnf2(x int, format string, args ...interface{}... method Warn (line 473) | func (*ptrStringer) Warn(x int, args ...interface{}) string { method Warnf (line 478) | func (*ptrStringer) Warnf(x int, format string, args ...interface{}) s... method Wrap2 (line 482) | func (p *ptrStringer) Wrap2(x int, args ...interface{}) string { // wa... method Wrapf2 (line 486) | func (p *ptrStringer) Wrapf2(x int, format string, args ...interface{}... method Wrap (line 490) | func (*ptrStringer) Wrap(x int, args ...interface{}) string { // want ... method Wrapf (line 494) | func (*ptrStringer) Wrapf(x int, format string, args ...interface{}) s... method BadWrap (line 498) | func (*ptrStringer) BadWrap(x int, args ...interface{}) string { method BadWrapf (line 502) | func (*ptrStringer) BadWrapf(x int, format string, args ...interface{}... method WrapfFalsePositive (line 506) | func (*ptrStringer) WrapfFalsePositive(x int, arg1 string, arg2 ...int... type embeddedStringer (line 510) | type embeddedStringer struct type notstringer (line 518) | type notstringer struct type stringerarray (line 524) | type stringerarray method String (line 526) | func (stringerarray) String() string { type notstringerarray (line 532) | type notstringerarray type percentDStruct (line 541) | type percentDStruct struct type notPercentDStruct (line 550) | type notPercentDStruct struct type percentSStruct (line 559) | type percentSStruct struct type recursiveStringer (line 567) | type recursiveStringer method String (line 569) | func (s recursiveStringer) String() string { type recursivePtrStringer (line 584) | type recursivePtrStringer method String (line 586) | func (p *recursivePtrStringer) String() string { type recursiveError (line 592) | type recursiveError method Error (line 594) | func (s recursiveError) Error() string { type recursivePtrError (line 609) | type recursivePtrError method Error (line 611) | func (p *recursivePtrError) Error() string { type recursiveStringerAndError (line 617) | type recursiveStringerAndError method String (line 619) | func (s recursiveStringerAndError) String() string { method Error (line 634) | func (s recursiveStringerAndError) Error() string { type recursivePtrStringerAndError (line 649) | type recursivePtrStringerAndError method String (line 651) | func (p *recursivePtrStringerAndError) String() string { method Error (line 657) | func (p *recursivePtrStringerAndError) Error() string { type nonStringerWrongReturn (line 664) | type nonStringerWrongReturn method String (line 666) | func (s nonStringerWrongReturn) String() (string, error) { type nonStringerWrongArgs (line 671) | type nonStringerWrongArgs method String (line 673) | func (s nonStringerWrongArgs) String(i int) string { type cons (line 677) | type cons struct method String (line 682) | func (cons *cons) String() string { type BoolFormatter (line 690) | type BoolFormatter method Format (line 692) | func (*BoolFormatter) Format(fmt.State, rune) { type FormatterVal (line 696) | type FormatterVal method Format (line 698) | func (FormatterVal) Format(fmt.State, rune) { type RecursiveSlice (line 701) | type RecursiveSlice type RecursiveMap (line 705) | type RecursiveMap type RecursiveStruct (line 709) | type RecursiveStruct struct type RecursiveStruct1 (line 715) | type RecursiveStruct1 struct type RecursiveStruct2 (line 719) | type RecursiveStruct2 struct type unexportedInterface (line 725) | type unexportedInterface struct type unexportedStringer (line 730) | type unexportedStringer struct type unexportedStringerOtherFields (line 734) | type unexportedStringerOtherFields struct type unexportedError (line 741) | type unexportedError struct type unexportedErrorOtherFields (line 745) | type unexportedErrorOtherFields struct type errorer (line 751) | type errorer struct method Error (line 753) | func (e errorer) Error() string { return "errorer" } type unexportedCustomError (line 755) | type unexportedCustomError struct type errorInterface (line 759) | type errorInterface interface type unexportedErrorInterface (line 764) | type unexportedErrorInterface struct function UnexportedStringerOrError (line 768) | func UnexportedStringerOrError() { function DisableErrorForFlag0 (line 821) | func DisableErrorForFlag0() { function dbg (line 826) | func dbg(format string, args ...interface{}) { function PointersToCompoundTypes (line 833) | func PointersToCompoundTypes() { function externalPackage (line 868) | func externalPackage() { function PointerVerbs (line 875) | func PointerVerbs() { function _ (line 952) | func _() { function _ (line 963) | func _() { function _ (line 981) | func _() { function _ (line 989) | func _() { function _ (line 999) | func _() { function _ (line 1007) | func _() { FILE: go/analysis/passes/printf/testdata/src/a/a2.go type myLogger (line 10) | type myLogger method Logf (line 12) | func (myLogger) Logf(format string, args ...any) { // want Logf:"print... type Logger (line 18) | type Logger interface function _ (line 24) | func _(log Logger) { type Logger2 (line 30) | type Logger2 interface function _ (line 34) | func _(log Logger2) { FILE: go/analysis/passes/printf/testdata/src/b/b.go function Wrapf (line 6) | func Wrapf(format string, args ...interface{}) { // want Wrapf:"printfWr... function Wrap (line 11) | func Wrap(args ...interface{}) { // want Wrap:"printWrapper" function NoWrap (line 16) | func NoWrap(format string, args ...interface{}) { function Wrapf2 (line 20) | func Wrapf2(format string, args ...interface{}) string { // want Wrapf2:... function init (line 56) | func init() { FILE: go/analysis/passes/printf/testdata/src/issue68744/issue68744.go function wrapf (line 7) | func wrapf(format string, args ...any) { // want wrapf:"printfWrapper" function _ (line 11) | func _() { FILE: go/analysis/passes/printf/testdata/src/issue70572/issue70572.go type A (line 8) | type A struct method Printf (line 10) | func (v A) Printf(format string, values ...any) { // want Printf:"prin... type B (line 14) | type B struct method Printf (line 16) | func (v B[T]) Printf(format string, values ...any) { // want Printf:"pri... function main (line 20) | func main() { FILE: go/analysis/passes/printf/testdata/src/issue76616/issue76616.go function _ (line 3) | func _() { FILE: go/analysis/passes/printf/testdata/src/nofmt/nofmt.go function formatBigInt (line 8) | func formatBigInt(t *testing.T) { FILE: go/analysis/passes/printf/testdata/src/nonconst/nonconst.go function nonConstantFormat (line 18) | func nonConstantFormat(s string) { FILE: go/analysis/passes/printf/testdata/src/typeparams/diagnostics.go function TestBasicTypeParams (line 9) | func TestBasicTypeParams[T interface{ ~int }, E error, F fmt.Formatter, ... type Constraint (line 28) | type Constraint interface function TestNamedConstraints_Issue49597 (line 32) | func TestNamedConstraints_Issue49597[T Constraint](t T) { function TestNestedTypeParams (line 37) | func TestNestedTypeParams[T interface{ ~int }, S interface{ ~string }]() { type R (line 58) | type R struct function TestRecursiveTypeDefinition (line 62) | func TestRecursiveTypeDefinition() { function TestRecursiveTypeParams (line 67) | func TestRecursiveTypeParams[T1 ~[]T2, T2 ~[]T1 | string, T3 ~struct{ F ... function TestRecusivePointers (line 74) | func TestRecusivePointers[T1 ~*T2, T2 ~*T1](t1 T1, t2 T2) { function TestEmptyTypeSet (line 80) | func TestEmptyTypeSet[T interface { function TestPointerRules (line 87) | func TestPointerRules[T ~*[]int | *[2]int](t T) { function TestInterfacePromotion (line 95) | func TestInterfacePromotion[E interface { type myInt (line 110) | type myInt function TestTermReduction (line 112) | func TestTermReduction[T1 interface{ ~int | string }, T2 interface { type U (line 122) | type U struct method String (line 124) | func (u U[T]) String() string { type S (line 129) | type S struct method String (line 133) | func (s S[T]) String() T { function TestInstanceStringer (line 138) | func TestInstanceStringer() { FILE: go/analysis/passes/printf/testdata/src/typeparams/wrappers.go type N (line 9) | type N method Wrapf (line 11) | func (N[P]) Wrapf(p P, format string, args ...interface{}) { // want Wra... method PtrWrapf (line 15) | func (*N[P]) PtrWrapf(p P, format string, args ...interface{}) { // want... function Printf (line 19) | func Printf[P any](p P, format string, args ...interface{}) { // want Pr... FILE: go/analysis/passes/printf/types.go function matchArgType (line 23) | func matchArgType(pass *analysis.Pass, t printfArgType, arg ast.Expr) (r... type argMatcher (line 48) | type argMatcher struct method match (line 59) | func (m *argMatcher) match(typ types.Type, topLevel bool) bool { function isConvertibleToString (line 279) | func isConvertibleToString(typ types.Type) bool { FILE: go/analysis/passes/reflectvaluecompare/cmd/reflectvaluecompare/main.go function main (line 18) | func main() { singlechecker.Main(reflectvaluecompare.Analyzer) } FILE: go/analysis/passes/reflectvaluecompare/reflectvaluecompare.go function run (line 31) | func run(pass *analysis.Pass) (any, error) { function isReflectValue (line 62) | func isReflectValue(pass *analysis.Pass, e ast.Expr) bool { FILE: go/analysis/passes/reflectvaluecompare/reflectvaluecompare_test.go function TestReflectValueCompare (line 14) | func TestReflectValueCompare(t *testing.T) { FILE: go/analysis/passes/reflectvaluecompare/testdata/src/a/a.go function f (line 13) | func f() { function g (line 26) | func g() { function h (line 39) | func h() { FILE: go/analysis/passes/shadow/cmd/shadow/main.go function main (line 13) | func main() { singlechecker.Main(shadow.Analyzer) } FILE: go/analysis/passes/shadow/shadow.go function init (line 35) | func init() { function run (line 39) | func run(pass *analysis.Pass) (any, error) { type span (line 102) | type span struct method contains (line 108) | func (s span) contains(pos token.Pos) bool { function growSpan (line 113) | func growSpan(spans map[types.Object]span, obj types.Object, pos, end to... function checkShadowAssignment (line 132) | func checkShadowAssignment(pass *analysis.Pass, spans map[types.Object]s... function idiomaticShortRedecl (line 151) | func idiomaticShortRedecl(pass *analysis.Pass, a *ast.AssignStmt) bool { function idiomaticRedecl (line 187) | func idiomaticRedecl(d *ast.ValueSpec) bool { function checkShadowDecl (line 205) | func checkShadowDecl(pass *analysis.Pass, spans map[types.Object]span, d... function checkShadowing (line 227) | func checkShadowing(pass *analysis.Pass, spans map[types.Object]span, id... FILE: go/analysis/passes/shadow/shadow_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/shadow/testdata/src/a/a.go function ShadowRead (line 13) | func ShadowRead(f *os.File, buf []byte) (err error) { function one (line 57) | func one() int { function issue26725 (line 63) | func issue26725(x interface{}) int { function shadowTypeSwitch (line 77) | func shadowTypeSwitch(a interface{}) { function shadowBlock (line 93) | func shadowBlock() { FILE: go/analysis/passes/shift/dead.go function updateDead (line 17) | func updateDead(info *types.Info, dead map[ast.Node]bool, node ast.Node) { FILE: go/analysis/passes/shift/shift.go constant Doc (line 27) | Doc = "check for shifts that equal or exceed the width of the integer" function run (line 37) | func run(pass *analysis.Pass) (any, error) { function checkLongShift (line 80) | func checkLongShift(pass *analysis.Pass, node ast.Node, x, y ast.Expr) { FILE: go/analysis/passes/shift/shift_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/shift/testdata/src/a/a.go function ShiftTest (line 13) | func ShiftTest() { function ShiftDeadCode (line 113) | func ShiftDeadCode() { function issue65939 (line 157) | func issue65939() { FILE: go/analysis/passes/shift/testdata/src/typeparams/typeparams.go function GenericShiftTest (line 9) | func GenericShiftTest[DifferentSize ~int8|int16|int64, SameSize int8|byt... FILE: go/analysis/passes/sigchanyzer/sigchanyzer.go function run (line 38) | func run(pass *analysis.Pass) (any, error) { function isSignalNotify (line 102) | func isSignalNotify(info *types.Info, call *ast.CallExpr) bool { function findDecl (line 120) | func findDecl(arg *ast.Ident) ast.Node { function isBuiltinMake (line 151) | func isBuiltinMake(info *types.Info, call *ast.CallExpr) bool { FILE: go/analysis/passes/sigchanyzer/sigchanyzer_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/sigchanyzer/testdata/src/a/a.go function f (line 12) | func f() { function g (line 18) | func g() { function h (line 24) | func h() { function i (line 30) | func i() { function j (line 34) | func j() { function k (line 40) | func k() { function l (line 44) | func l() { function m (line 48) | func m() { function n (line 52) | func n() { FILE: go/analysis/passes/slog/slog.go type position (line 41) | type position constant key (line 45) | key position = iota constant value (line 47) | value constant unknown (line 49) | unknown function run (line 52) | func run(pass *analysis.Pass) (any, error) { function isAttr (line 160) | func isAttr(t types.Type) bool { function shortName (line 169) | func shortName(fn *types.Func) string { function kvFuncSkipArgs (line 186) | func kvFuncSkipArgs(fn *types.Func) (int, bool) { function isMethodExpr (line 237) | func isMethodExpr(info *types.Info, c *ast.CallExpr) bool { FILE: go/analysis/passes/slog/slog_test.go function Test (line 13) | func Test(t *testing.T) { FILE: go/analysis/passes/slog/testdata/src/a/a.go function F (line 18) | func F() { function All (line 124) | func All() { FILE: go/analysis/passes/slog/testdata/src/b/b.go function Imported (line 13) | func Imported() { FILE: go/analysis/passes/sortslice/analyzer.go constant Doc (line 23) | Doc = `check the argument type of sort.Slice function run (line 36) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/sortslice/analyzer_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/sortslice/testdata/src/a/a.go function IncorrectSort (line 6) | func IncorrectSort() { function CorrectSort (line 15) | func CorrectSort() { function CorrectInterface (line 25) | func CorrectInterface() { type slicecompare (line 34) | type slicecompare interface type intslice (line 38) | type intslice method compare (line 40) | func (s intslice) compare(i, j int) bool { function UnderlyingInterface (line 46) | func UnderlyingInterface() { type mySlice (line 54) | type mySlice function UnderlyingSlice (line 58) | func UnderlyingSlice() { function FunctionResultsAsArguments (line 68) | func FunctionResultsAsArguments() { function less (line 74) | func less(s []string) ([]string, func(i, j int) bool) { function lessPtr (line 80) | func lessPtr(s []string) (*[]string, func(i, j int) bool) { FILE: go/analysis/passes/stdmethods/stdmethods.go function run (line 69) | func run(pass *analysis.Pass) (any, error) { function canonicalMethod (line 93) | func canonicalMethod(pass *analysis.Pass, id *ast.Ident) { function typeString (line 155) | func typeString(typ types.Type) string { function argjoin (line 159) | func argjoin(x []string) string { function matchParams (line 171) | func matchParams(expect []string, actual *types.Tuple, prefix string) bo... function matchParamType (line 190) | func matchParamType(expect string, actual types.Type) bool { function implementsError (line 200) | func implementsError(actual types.Type) bool { FILE: go/analysis/passes/stdmethods/stdmethods_test.go function Test (line 14) | func Test(t *testing.T) { function TestAnalyzeEncodingXML (line 19) | func TestAnalyzeEncodingXML(t *testing.T) { FILE: go/analysis/passes/stdmethods/testdata/src/a/a.go type T (line 13) | type T method Scan (line 15) | func (T) Scan(x fmt.ScanState, c byte) {} method Format (line 17) | func (T) Format(fmt.State, byte) {} method WriteTo (line 34) | func (T) WriteTo(w io.Writer, more, args int) {} type U (line 19) | type U method Format (line 21) | func (U) Format(byte) {} method GobDecode (line 23) | func (U) GobDecode() {} method MarshalXML (line 26) | func (U) MarshalXML(*xml.Encoder) {} method UnmarshalXML (line 28) | func (U) UnmarshalXML(*xml.Decoder, xml.StartElement) error { // no er... method WriteTo (line 32) | func (U) WriteTo(w io.Writer) {} type I (line 36) | type I interface type V (line 40) | type V method As (line 42) | func (V) As() T { return 0 } method Is (line 43) | func (V) Is() bool { return false } method Unwrap (line 44) | func (V) Unwrap() int { return 0 } type E (line 46) | type E method Error (line 48) | func (E) Error() string { return "" } method As (line 50) | func (E) As() {} method Is (line 51) | func (E) Is() {} method Unwrap (line 52) | func (E) Unwrap() {} type F (line 54) | type F method Error (line 56) | func (F) Error() string { return "" } method As (line 58) | func (*F) As() {} method Is (line 59) | func (*F) Is() {} method Unwrap (line 60) | func (*F) Unwrap() {} type G (line 62) | type G method As (line 64) | func (G) As(interface{}) bool type W (line 66) | type W method Error (line 68) | func (W) Error() string { return "" } method Unwrap (line 69) | func (W) Unwrap() error { return nil } type M (line 71) | type M method Error (line 73) | func (M) Error() string { return "" } method Unwrap (line 74) | func (M) Unwrap() []error { return nil } FILE: go/analysis/passes/stdmethods/testdata/src/a/b.go type H (line 7) | type H method As (line 9) | func (H) As(any) bool FILE: go/analysis/passes/stdmethods/testdata/src/typeparams/typeparams.go type T (line 9) | type T method Scan (line 11) | func (T[_]) Scan(x fmt.ScanState, c byte) {} method Format (line 13) | func (T[_]) Format(fmt.State, byte) {} type U (line 15) | type U method Format (line 17) | func (U[_]) Format(byte) {} method GobDecode (line 19) | func (U[P]) GobDecode(P) {} type V (line 21) | type V method As (line 23) | func (V[_]) As() T[int] { return 0 } method Is (line 24) | func (V[_]) Is() bool { return false } method Unwrap (line 25) | func (V[_]) Unwrap() int { return 0 } type E (line 27) | type E method Error (line 29) | func (E[_]) Error() string { return "" } method As (line 31) | func (E[P]) As() {} method Is (line 32) | func (E[_]) Is() {} method Unwrap (line 33) | func (E[_]) Unwrap() {} type F (line 35) | type F method Error (line 37) | func (F[_]) Error() string { return "" } method As (line 39) | func (*F[_]) As() {} method Is (line 40) | func (*F[_]) Is() {} method Unwrap (line 41) | func (*F[_]) Unwrap() {} FILE: go/analysis/passes/stdversion/main.go function main (line 14) | func main() { singlechecker.Main(stdversion.Analyzer) } FILE: go/analysis/passes/stdversion/stdversion.go constant Doc (line 22) | Doc = `report uses of too-new standard library symbols function run (line 45) | func run(pass *analysis.Pass) (any, error) { function origin (line 124) | func origin(obj types.Object) types.Object { FILE: go/analysis/passes/stdversion/stdversion_test.go function Test (line 17) | func Test(t *testing.T) { FILE: go/analysis/passes/stringintconv/cmd/stringintconv/main.go function main (line 13) | func main() { singlechecker.Main(stringintconv.Analyzer) } FILE: go/analysis/passes/stringintconv/string.go function describe (line 38) | func describe(typ, inType types.Type, inName string) string { function typeName (line 63) | func typeName(t types.Type) string { function run (line 73) | func run(pass *analysis.Pass) (any, error) { function structuralTypes (line 248) | func structuralTypes(t types.Type) ([]types.Type, error) { FILE: go/analysis/passes/stringintconv/string_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/stringintconv/testdata/src/a/a.go type A (line 9) | type A type C (line 13) | type C function StringTest (line 17) | func StringTest() { FILE: go/analysis/passes/stringintconv/testdata/src/fix/fix.go function _ (line 3) | func _(x uint64) { FILE: go/analysis/passes/stringintconv/testdata/src/fix/fixdot.go function _ (line 5) | func _(x uint64) { FILE: go/analysis/passes/stringintconv/testdata/src/fix/fixnamed.go type mystring (line 3) | type mystring function _ (line 5) | func _(x int16) mystring { FILE: go/analysis/passes/stringintconv/testdata/src/typeparams/typeparams.go type Int (line 8) | type Int type String (line 10) | type String function _ (line 13) | func _[AllString ~string, MaybeString ~string | ~int, NotString ~int | b... FILE: go/analysis/passes/structtag/structtag.go constant Doc (line 27) | Doc = `check that struct field tags conform to reflect.StructTag.Get function run (line 40) | func run(pass *analysis.Pass) (any, error) { type namesSeen (line 66) | type namesSeen method Get (line 74) | func (s *namesSeen) Get(key, name string, level int) (token.Pos, bool) { method Set (line 82) | func (s *namesSeen) Set(key, name string, level int, pos token.Pos) { type uniqueName (line 68) | type uniqueName struct function checkCanonicalFieldTag (line 93) | func checkCanonicalFieldTag(pass *analysis.Pass, field *types.Var, tag s... function checkTagDuplicates (line 144) | func checkTagDuplicates(pass *analysis.Pass, tag, key string, nearest, f... function validateStructTag (line 224) | func validateStructTag(tag string) error { FILE: go/analysis/passes/structtag/structtag_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/structtag/testdata/src/a/a.go type StructTagTest (line 14) | type StructTagTest struct type UnexportedEncodingTagTest (line 31) | type UnexportedEncodingTagTest struct type unexp (line 40) | type unexp struct type JSONEmbeddedField (line 42) | type JSONEmbeddedField struct type AnonymousJSON (line 47) | type AnonymousJSON struct type AnonymousXML (line 48) | type AnonymousXML struct type AnonymousJSONField (line 50) | type AnonymousJSONField struct type AnonymousJSONField2 (line 58) | type AnonymousJSONField2 struct type AnonymousJSONField3 (line 61) | type AnonymousJSONField3 struct type DuplicateJSONFields (line 65) | type DuplicateJSONFields struct type UnexpectedSpacetest (line 107) | type UnexpectedSpacetest struct type ShadowingJsonFieldName (line 132) | type ShadowingJsonFieldName struct type DuplicateWithAnotherPackage (line 137) | type DuplicateWithAnotherPackage struct FILE: go/analysis/passes/structtag/testdata/src/a/b/b.go type AnonymousJSONField (line 7) | type AnonymousJSONField struct FILE: go/analysis/passes/testinggoroutine/testdata/src/a/a.go function TestBadFatalf (line 13) | func TestBadFatalf(t *testing.T) { function TestOKErrorf (line 26) | func TestOKErrorf(t *testing.T) { function TestBadFatal (line 39) | func TestBadFatal(t *testing.T) { function f (line 52) | func f(t *testing.T, _ string) { function g (line 56) | func g() {} function TestBadFatalIssue47470 (line 58) | func TestBadFatalIssue47470(t *testing.T) { function BenchmarkBadFatalf (line 67) | func BenchmarkBadFatalf(b *testing.B) { function BenchmarkBadFatal (line 80) | func BenchmarkBadFatal(b *testing.B) { function BenchmarkOKErrorf (line 93) | func BenchmarkOKErrorf(b *testing.B) { function BenchmarkBadFatalGoGo (line 106) | func BenchmarkBadFatalGoGo(b *testing.B) { function BenchmarkBadSkip (line 153) | func BenchmarkBadSkip(b *testing.B) { function TestBadSkip (line 168) | func TestBadSkip(t *testing.T) { function BenchmarkBadFailNow (line 183) | func BenchmarkBadFailNow(b *testing.B) { function TestBadFailNow (line 198) | func TestBadFailNow(t *testing.T) { function TestBadWithLoopCond (line 213) | func TestBadWithLoopCond(ty *testing.T) { type customType (line 231) | type customType method Fatalf (line 233) | func (ct *customType) Fatalf(fmtSpec string, args ...interface{}) { method FailNow (line 239) | func (ct *customType) FailNow() {} method Skip (line 240) | func (ct *customType) Skip() {} function TestWithLogFatalf (line 242) | func TestWithLogFatalf(t *testing.T) { function TestWithCustomType (line 258) | func TestWithCustomType(t *testing.T) { function helpTB (line 278) | func helpTB(tb testing.TB) { function TestTB (line 282) | func TestTB(t *testing.T) { function TestIssue48124 (line 286) | func TestIssue48124(t *testing.T) { function TestEachCall (line 290) | func TestEachCall(t *testing.T) { function TestWithSubtest (line 295) | func TestWithSubtest(t *testing.T) { function TestMultipleVariables (line 321) | func TestMultipleVariables(t *testing.T) { function BadIgnoresMultipleAssignments (line 351) | func BadIgnoresMultipleAssignments(t *testing.T) { function TestGoDoesNotDescendIntoSubtest (line 376) | func TestGoDoesNotDescendIntoSubtest(t *testing.T) { function TestFreeVariableAssignedWithinEnclosing (line 387) | func TestFreeVariableAssignedWithinEnclosing(t *testing.T) { function TestWithUnusedSelection (line 410) | func TestWithUnusedSelection(t *testing.T) { function TestMethodExprsAreIgnored (line 419) | func TestMethodExprsAreIgnored(t *testing.T) { function TestRecursive (line 425) | func TestRecursive(t *testing.T) { function TestMethodSelection (line 433) | func TestMethodSelection(t *testing.T) { type helperType (line 440) | type helperType struct method help (line 442) | func (h *helperType) help(t *testing.T) { t.SkipNow() } function TestIssue63799a (line 444) | func TestIssue63799a(t *testing.T) { function TestIssue63799b (line 455) | func TestIssue63799b(t *testing.T) { function TestIssue63849 (line 481) | func TestIssue63849(t *testing.T) { FILE: go/analysis/passes/testinggoroutine/testdata/src/a/b.go function helper (line 9) | func helper(t *testing.T) { FILE: go/analysis/passes/testinggoroutine/testdata/src/typeparams/typeparams.go function f (line 11) | func f[P any](t *testing.T) { function TestBadFatalf (line 15) | func TestBadFatalf[P any](t *testing.T) { FILE: go/analysis/passes/testinggoroutine/testinggoroutine.go function init (line 27) | func init() { function run (line 39) | func run(pass *analysis.Pass) (any, error) { function hasBenchmarkOrTestParams (line 134) | func hasBenchmarkOrTestParams(fnDecl *ast.FuncDecl) bool { function typeIsTestingDotTOrB (line 147) | func typeIsTestingDotTOrB(expr ast.Expr) (string, bool) { type asyncCall (line 169) | type asyncCall struct function withinScope (line 177) | func withinScope(scope ast.Node, x *types.Var) bool { function goAsyncCall (line 185) | func goAsyncCall(info *types.Info, goStmt *ast.GoStmt, toDecl func(*type... function tRunAsyncCall (line 206) | func tRunAsyncCall(info *types.Info, call *ast.CallExpr) *asyncCall { function forbiddenMethod (line 243) | func forbiddenMethod(info *types.Info, call *ast.CallExpr) (*types.Var, ... function formatMethod (line 270) | func formatMethod(sel *types.Selection, fn *types.Func) string { FILE: go/analysis/passes/testinggoroutine/testinggoroutine_test.go function init (line 14) | func init() { function Test (line 18) | func Test(t *testing.T) { FILE: go/analysis/passes/testinggoroutine/util.go function localFunctionDecls (line 16) | func localFunctionDecls(info *types.Info, files []*ast.File) func(*types... function isMethodNamed (line 40) | func isMethodNamed(f *types.Func, pkgPath string, names ...string) bool { function funcLitInScope (line 56) | func funcLitInScope(id *ast.Ident) *ast.FuncLit { FILE: go/analysis/passes/tests/testdata/src/a/a.go function Foo (line 3) | func Foo() {} FILE: go/analysis/passes/tests/testdata/src/a/a_test.go type Buf (line 8) | type Buf method Append (line 11) | func (*Buf) Append([]byte) {} method Reset (line 13) | func (Buf) Reset() {} method Len (line 15) | func (Buf) Len() int { return 0 } method TesthasReceiver (line 98) | func (Buf) TesthasReceiver() {} function Example (line 20) | func Example() {} function Example_goodSuffix (line 22) | func Example_goodSuffix() {} function Example_BadSuffix (line 24) | func Example_BadSuffix() {} function ExampleBuf (line 26) | func ExampleBuf() {} function ExampleBuf_Append (line 28) | func ExampleBuf_Append() {} function ExampleBuf_Clear (line 30) | func ExampleBuf_Clear() {} function ExampleBuf_suffix (line 32) | func ExampleBuf_suffix() {} function ExampleBuf_Append_Bad (line 34) | func ExampleBuf_Append_Bad() {} function ExampleBuf_Append_suffix (line 36) | func ExampleBuf_Append_suffix() {} function ExampleDefaultBuf (line 38) | func ExampleDefaultBuf() {} function ExampleBuf_Reset (line 40) | func ExampleBuf_Reset() bool { return true } function ExampleBuf_Len (line 42) | func ExampleBuf_Len(i int) {} function ExamplePuffer (line 46) | func ExamplePuffer() {} function ExamplePuffer_Append (line 48) | func ExamplePuffer_Append() {} function ExamplePuffer_suffix (line 50) | func ExamplePuffer_suffix() {} function ExampleFoo (line 52) | func ExampleFoo() {} function ExampleBar (line 54) | func ExampleBar() {} function Example_withOutput (line 56) | func Example_withOutput() { function Example_withBadOutput (line 61) | func Example_withBadOutput() { function Example_withBadUnorderedOutput (line 68) | func Example_withBadUnorderedOutput() { function Example_withCommentAfterFunc (line 75) | func Example_withCommentAfterFunc() { function Example_withOutputCommentAfterFunc (line 80) | func Example_withOutputCommentAfterFunc() { function Example_withMultipleOutputs (line 85) | func Example_withMultipleOutputs() { function nonTest (line 96) | func nonTest() {} function TestOKSuffix (line 100) | func TestOKSuffix(*testing.T) {} function TestÜnicodeWorks (line 102) | func TestÜnicodeWorks(*testing.T) {} function TestbadSuffix (line 104) | func TestbadSuffix(*testing.T) {} function TestemptyImportBadSuffix (line 106) | func TestemptyImportBadSuffix(*testing.T) {} function Test (line 108) | func Test(*testing.T) {} function Testify (line 110) | func Testify() {} function TesttooManyParams (line 112) | func TesttooManyParams(*testing.T, string) {} function TesttooManyNames (line 114) | func TesttooManyNames(a, b *testing.T) {} function TestnoTParam (line 116) | func TestnoTParam(string) {} function BenchmarkbadSuffix (line 118) | func BenchmarkbadSuffix(*testing.B) {} FILE: go/analysis/passes/tests/testdata/src/a/ax_test.go function ExampleFoo (line 5) | func ExampleFoo() {} function ExampleBar (line 7) | func ExampleBar() {} FILE: go/analysis/passes/tests/testdata/src/a/go118_test.go function Fuzzfoo (line 7) | func Fuzzfoo(*testing.F) {} function FuzzBoo (line 9) | func FuzzBoo(*testing.F) {} function FuzzCallDifferentFunc (line 11) | func FuzzCallDifferentFunc(f *testing.F) { function FuzzFunc (line 15) | func FuzzFunc(f *testing.F) { function FuzzFuncWithArgs (line 19) | func FuzzFuncWithArgs(f *testing.F) { function FuzzArgFunc (line 33) | func FuzzArgFunc(f *testing.F) { function FuzzFuncWithReturn (line 37) | func FuzzFuncWithReturn(f *testing.F) { function FuzzFuncNoArg (line 41) | func FuzzFuncNoArg(f *testing.F) { function FuzzFuncFirstArgNotTesting (line 45) | func FuzzFuncFirstArgNotTesting(f *testing.F) { function FuzzFuncFirstArgTestingNotT (line 49) | func FuzzFuncFirstArgTestingNotT(f *testing.F) { function FuzzFuncSecondArgNotAllowed (line 53) | func FuzzFuncSecondArgNotAllowed(f *testing.F) { function FuzzFuncSecondArgArrNotAllowed (line 57) | func FuzzFuncSecondArgArrNotAllowed(f *testing.F) { function FuzzFuncConsecutiveArgNotAllowed (line 61) | func FuzzFuncConsecutiveArgNotAllowed(f *testing.F) { function FuzzFuncInner (line 65) | func FuzzFuncInner(f *testing.F) { function FuzzArrayOfFunc (line 70) | func FuzzArrayOfFunc(f *testing.F) { type GenericSlice (line 75) | type GenericSlice function FuzzGenericFunc (line 77) | func FuzzGenericFunc(f *testing.F) { type F (line 82) | type F type myType (line 84) | type myType struct function FuzzObjectMethod (line 88) | func FuzzObjectMethod(f *testing.F) { function FuzzIssue56505 (line 96) | func FuzzIssue56505(f *testing.F) { FILE: go/analysis/passes/tests/testdata/src/b/b.go type Foo (line 3) | type Foo struct method F (line 6) | func (f *Foo) F() { FILE: go/analysis/passes/tests/testdata/src/b_x_test/b_test.go function ExampleFoo_F (line 8) | func ExampleFoo_F() { function ExampleFoo_G (line 14) | func ExampleFoo_G() { // want "ExampleFoo_G refers to unknown field or m... function ExampleBar_F (line 18) | func ExampleBar_F() { // want "ExampleBar_F refers to unknown identifier... FILE: go/analysis/passes/tests/testdata/src/divergent/buf.go type Buf (line 7) | type Buf method Append (line 10) | func (*Buf) Append([]byte) {} method Reset (line 12) | func (Buf) Reset() {} method Len (line 14) | func (Buf) Len() int { return 0 } FILE: go/analysis/passes/tests/testdata/src/divergent/buf_test.go function Example (line 5) | func Example() {} function Example_suffix (line 7) | func Example_suffix() {} function Example_BadSuffix (line 9) | func Example_BadSuffix() {} function ExampleBuf (line 11) | func ExampleBuf() {} function ExampleBuf_Append (line 13) | func ExampleBuf_Append() {} function ExampleBuf_Clear (line 15) | func ExampleBuf_Clear() {} function ExampleBuf_suffix (line 17) | func ExampleBuf_suffix() {} function ExampleBuf_Append_Bad (line 19) | func ExampleBuf_Append_Bad() {} function ExampleBuf_Append_suffix (line 21) | func ExampleBuf_Append_suffix() {} function ExampleDefaultBuf (line 23) | func ExampleDefaultBuf() {} function ExampleBuf_Reset (line 25) | func ExampleBuf_Reset() bool { return true } function ExampleBuf_Len (line 27) | func ExampleBuf_Len(i int) {} function ExamplePuffer (line 31) | func ExamplePuffer() {} function ExamplePuffer_Append (line 33) | func ExamplePuffer_Append() {} function ExamplePuffer_suffix (line 35) | func ExamplePuffer_suffix() {} FILE: go/analysis/passes/tests/testdata/src/typeparams/typeparams.go function Zero (line 7) | func Zero[T any]() T { FILE: go/analysis/passes/tests/testdata/src/typeparams/typeparams_test.go function Test (line 9) | func Test(*testing.T) { function TesttypeParam (line 16) | func TesttypeParam[T any](*testing.T) {} function BenchmarktypeParam (line 17) | func BenchmarktypeParam[T any](*testing.B) {} function ExampleZero (line 19) | func ExampleZero[T any]() { // want "ExampleZero should not have type pa... FILE: go/analysis/passes/tests/tests.go function run (line 51) | func run(pass *analysis.Pass) (any, error) { function checkFuzz (line 80) | func checkFuzz(pass *analysis.Pass, fn *ast.FuncDecl) { function checkFuzzCall (line 99) | func checkFuzzCall(pass *analysis.Pass, fn *ast.FuncDecl) (params *types... function checkAddCalls (line 159) | func checkAddCalls(pass *analysis.Pass, fn *ast.FuncDecl, params *types.... function isFuzzTargetDotFuzz (line 202) | func isFuzzTargetDotFuzz(pass *analysis.Pass, call *ast.CallExpr) bool { function isFuzzTargetDotAdd (line 207) | func isFuzzTargetDotAdd(pass *analysis.Pass, call *ast.CallExpr) bool { function isFuzzTargetDot (line 212) | func isFuzzTargetDot(pass *analysis.Pass, call *ast.CallExpr, name strin... function validateFuzzArgs (line 225) | func validateFuzzArgs(pass *analysis.Pass, params *types.Tuple, expr ast... function isTestingType (line 255) | func isTestingType(typ types.Type, testingType string) bool { function isAcceptedFuzzType (line 266) | func isAcceptedFuzzType(paramType types.Type) bool { function formatAcceptedFuzzType (line 275) | func formatAcceptedFuzzType() string { function isExampleSuffix (line 284) | func isExampleSuffix(s string) bool { function isTestSuffix (line 289) | func isTestSuffix(name string) bool { function isTestParam (line 298) | func isTestParam(typ ast.Expr, wantType string) bool { function lookup (line 315) | func lookup(pkg *types.Package, name string) []types.Object { type commentMetadata (line 339) | type commentMetadata struct function checkExampleOutput (line 344) | func checkExampleOutput(pass *analysis.Pass, fn *ast.FuncDecl, fileComme... function checkExampleName (line 388) | func checkExampleName(pass *analysis.Pass, fn *ast.FuncDecl) { function checkTest (line 451) | func checkTest(pass *analysis.Pass, fn *ast.FuncDecl, prefix string) { FILE: go/analysis/passes/tests/tests_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/timeformat/testdata/src/a/a.go function hasError (line 15) | func hasError() { function notHasError (line 24) | func notHasError() { function badFormat (line 48) | func badFormat() string { FILE: go/analysis/passes/timeformat/testdata/src/b/b.go type B (line 3) | type B struct method Format (line 10) | func (b B) Format(string) { function Parse (line 6) | func Parse(string, string) B { FILE: go/analysis/passes/timeformat/timeformat.go constant badFormat (line 25) | badFormat = "2006-02-01" constant goodFormat (line 26) | goodFormat = "2006-01-02" function run (line 39) | func run(pass *analysis.Pass) (any, error) { function badFormatAt (line 90) | func badFormatAt(info *types.Info, e ast.Expr) int { FILE: go/analysis/passes/timeformat/timeformat_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/unmarshal/cmd/unmarshal/main.go function main (line 13) | func main() { singlechecker.Main(unmarshal.Analyzer) } FILE: go/analysis/passes/unmarshal/testdata/src/a/a.go function _ (line 17) | func _() { FILE: go/analysis/passes/unmarshal/testdata/src/typeparams/typeparams.go function unmarshalT (line 8) | func unmarshalT[T any](data []byte) T { function unmarshalT2 (line 14) | func unmarshalT2[T any](data []byte, t T) { function main (line 18) | func main() { FILE: go/analysis/passes/unmarshal/unmarshal.go function run (line 31) | func run(pass *analysis.Pass) (any, error) { FILE: go/analysis/passes/unmarshal/unmarshal_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/unreachable/testdata/src/a/a.go type T (line 10) | type T function external (line 15) | func external() int function _ (line 17) | func _() int { function _ (line 20) | func _() int { function _ (line 24) | func _() int { function _ (line 30) | func _() int { function _ (line 37) | func _() int { function _ (line 44) | func _() int { function _ (line 51) | func _() int { function _ (line 60) | func _() int { function _ (line 68) | func _() int { function _ (line 78) | func _() int { function _ (line 87) | func _() int { function _ (line 94) | func _() int { function _ (line 102) | func _() int { function _ (line 110) | func _() int { function _ (line 117) | func _() int { function _ (line 125) | func _() int { function _ (line 132) | func _() int { function _ (line 141) | func _() int { function _ (line 151) | func _() int { function _ (line 160) | func _() int { function _ (line 169) | func _() int { function _ (line 179) | func _() int { function _ (line 188) | func _() int { function _ (line 198) | func _() int { function _ (line 209) | func _() int { function _ (line 227) | func _() int { function _ (line 237) | func _() int { function _ (line 245) | func _() int { function _ (line 258) | func _() int { function _ (line 265) | func _() int { function _ (line 274) | func _() int { function _ (line 283) | func _() int { function _ (line 292) | func _() int { function _ (line 302) | func _() int { function _ (line 310) | func _() int { function _ (line 319) | func _() int { function _ (line 329) | func _() int { function _ (line 336) | func _() int { function _ (line 345) | func _() int { function _ (line 355) | func _() int { function _ (line 362) | func _() int { function _ (line 371) | func _() int { function _ (line 381) | func _() int { function _ (line 387) | func _() int { function _ (line 397) | func _() int { function _ (line 407) | func _() int { function _ (line 418) | func _() int { function _ (line 429) | func _() int { function _ (line 444) | func _() int { function _ (line 458) | func _() int { function _ (line 471) | func _() int { function _ (line 483) | func _() int { function _ (line 492) | func _() int { function _ (line 506) | func _() int { function _ (line 518) | func _() int { function _ (line 527) | func _() int { function _ (line 538) | func _() int { function _ (line 551) | func _() int { function _ (line 565) | func _() int { function _ (line 578) | func _() int { function _ (line 591) | func _() int { function _ (line 603) | func _() int { function _ (line 616) | func _() int { function _ (line 628) | func _() int { function _ (line 640) | func _() int { function _ (line 652) | func _() int { function _ (line 659) | func _() int { function _ (line 671) | func _() int { function _ (line 683) | func _() int { function _ (line 695) | func _() int { function _ (line 705) | func _() int { function _ (line 719) | func _() int { function _ (line 732) | func _() int { function _ (line 747) | func _() int { function _ (line 760) | func _() int { function _ (line 772) | func _() int { function _ (line 785) | func _() int { function _ (line 797) | func _() int { function _ (line 809) | func _() int { function _ (line 821) | func _() int { function _ (line 828) | func _() int { function _ (line 840) | func _() int { function _ (line 852) | func _() int { function _ (line 864) | func _() int { function _ (line 874) | func _() int { function _ (line 888) | func _() int { function _ (line 901) | func _() int { function _ (line 919) | func _() int { function _ (line 923) | func _() int { function _ (line 928) | func _() int { function _ (line 934) | func _() int { function _ (line 940) | func _() int { function _ (line 946) | func _() int { function _ (line 953) | func _() int { function _ (line 960) | func _() int { function _ (line 968) | func _() int { function _ (line 976) | func _() int { function _ (line 983) | func _() int { function _ (line 990) | func _() int { function _ (line 997) | func _() int { function _ (line 1005) | func _() int { function _ (line 1012) | func _() int { function _ (line 1021) | func _() int { function _ (line 1031) | func _() int { function _ (line 1040) | func _() int { function _ (line 1049) | func _() int { function _ (line 1059) | func _() int { function _ (line 2121) | func _() int { FILE: go/analysis/passes/unreachable/unreachable.go function run (line 34) | func run(pass *analysis.Pass) (any, error) { type deadState (line 65) | type deadState struct method findLabels (line 77) | func (d *deadState) findLabels(stmt ast.Stmt) { method findDead (line 175) | func (d *deadState) findDead(stmt ast.Stmt) { FILE: go/analysis/passes/unreachable/unreachable_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/unsafeptr/testdata/src/a/a.go function f (line 12) | func f() { type V (line 56) | type V interface type StringHeader (line 61) | type StringHeader struct type SliceHeader (line 65) | type SliceHeader struct FILE: go/analysis/passes/unsafeptr/testdata/src/a/issue40701.go function _ (line 13) | func _(p *byte, n int) []byte { function _ (line 22) | func _(p *byte, n int) []byte { function _ (line 31) | func _(p *byte, n int) []byte { function _ (line 40) | func _() { FILE: go/analysis/passes/unsafeptr/testdata/src/typeparams/typeparams.go function _ (line 9) | func _[IntPtr ~uintptr, RealPtr *T, AnyPtr uintptr | *T, T any]() { FILE: go/analysis/passes/unsafeptr/unsafeptr.go function run (line 33) | func run(pass *analysis.Pass) (any, error) { function isSafeUintptr (line 68) | func isSafeUintptr(info *types.Info, x ast.Expr) bool { function isSafeArith (line 120) | func isSafeArith(info *types.Info, x ast.Expr) bool { function hasBasicType (line 145) | func hasBasicType(info *types.Info, x ast.Expr, kind types.BasicKind) bo... function isReflectHeader (line 155) | func isReflectHeader(t types.Type) bool { FILE: go/analysis/passes/unsafeptr/unsafeptr_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/unusedresult/cmd/unusedresult/main.go function main (line 14) | func main() { singlechecker.Main(unusedresult.Analyzer) } FILE: go/analysis/passes/unusedresult/testdata/src/a/a.go function _ (line 14) | func _() { FILE: go/analysis/passes/unusedresult/testdata/src/typeparams/typeparams.go function _ (line 14) | func _[T any]() { FILE: go/analysis/passes/unusedresult/testdata/src/typeparams/userdefs/userdefs.go function MustUse (line 7) | func MustUse[T interface{ ~int }](v T) T { type SingleTypeParam (line 11) | type SingleTypeParam struct method String (line 15) | func (_ *SingleTypeParam[T]) String() string { type MultiTypeParam (line 19) | type MultiTypeParam struct method String (line 24) | func (_ *MultiTypeParam[T, U]) String() string { FILE: go/analysis/passes/unusedresult/unusedresult.go function init (line 46) | func init() { function run (line 128) | func run(pass *analysis.Pass) (any, error) { type stringSetFlag (line 177) | type stringSetFlag method String (line 179) | func (ss *stringSetFlag) String() string { method Set (line 188) | func (ss *stringSetFlag) Set(s string) error { FILE: go/analysis/passes/unusedresult/unusedresult_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/unusedwrite/main.go function main (line 16) | func main() { singlechecker.Main(unusedwrite.Analyzer) } FILE: go/analysis/passes/unusedwrite/testdata/src/a/unusedwrite.go type T1 (line 3) | type T1 struct method BadValueReceiverWrite (line 44) | func (t T1) BadValueReceiverWrite(v T2) { method GoodPointerReceiverWrite (line 81) | func (t *T1) GoodPointerReceiverWrite(v *T2) { type T2 (line 5) | type T2 struct type T3 (line 10) | type T3 struct function BadWrites (line 12) | func BadWrites() { function GoodWrites (line 49) | func GoodWrites(m map[int]int) { FILE: go/analysis/passes/unusedwrite/testdata/src/importsunsafe/i.go type S (line 5) | type S struct function _ (line 9) | func _() { FILE: go/analysis/passes/unusedwrite/unusedwrite.go function run (line 31) | func run(pass *analysis.Pass) (any, error) { function checkStores (line 59) | func checkStores(fn *ssa.Function) []*ssa.Store { function isDeadStore (line 86) | func isDeadStore(store *ssa.Store, obj ssa.Value, addr ssa.Instruction) ... function isStructOrArray (line 133) | func isStructOrArray(tp types.Type) bool { function hasStructOrArrayType (line 144) | func hasStructOrArrayType(v ssa.Value) bool { FILE: go/analysis/passes/unusedwrite/unusedwrite_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/usesgenerics/testdata/src/a/a.go type T (line 5) | type T function F (line 7) | func F[P any]() {} FILE: go/analysis/passes/usesgenerics/testdata/src/b/b.go type Constraint (line 5) | type Constraint interface FILE: go/analysis/passes/usesgenerics/testdata/src/c/c.go type T (line 13) | type T FILE: go/analysis/passes/usesgenerics/testdata/src/d/d.go type myInt (line 5) | type myInt function _ (line 7) | func _() { FILE: go/analysis/passes/usesgenerics/usesgenerics.go constant GenericTypeDecls (line 34) | GenericTypeDecls = genericfeatures.GenericTypeDecls constant GenericFuncDecls (line 35) | GenericFuncDecls = genericfeatures.GenericFuncDecls constant EmbeddedTypeSets (line 36) | EmbeddedTypeSets = genericfeatures.EmbeddedTypeSets constant TypeInstantiation (line 37) | TypeInstantiation = genericfeatures.TypeInstantiation constant FuncInstantiation (line 38) | FuncInstantiation = genericfeatures.FuncInstantiation type Result (line 45) | type Result struct type featuresFact (line 49) | type featuresFact struct method AFact (line 53) | func (f *featuresFact) AFact() {} method String (line 54) | func (f *featuresFact) String() string { return f.Features.String() } function run (line 56) | func run(pass *analysis.Pass) (any, error) { function importedTransitiveFeatures (line 74) | func importedTransitiveFeatures(pass *analysis.Pass) Features { FILE: go/analysis/passes/usesgenerics/usesgenerics_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/passes/waitgroup/main.go function main (line 16) | func main() { singlechecker.Main(waitgroup.Analyzer) } FILE: go/analysis/passes/waitgroup/testdata/src/a/a.go function f (line 5) | func f() { FILE: go/analysis/passes/waitgroup/waitgroup.go function run (line 33) | func run(pass *analysis.Pass) (any, error) { function hasSuffix (line 75) | func hasSuffix(stack, suffix []ast.Node) bool { function backindex (line 89) | func backindex[T any](slice []T, i int) T { FILE: go/analysis/passes/waitgroup/waitgroup_test.go function Test (line 14) | func Test(t *testing.T) { FILE: go/analysis/singlechecker/singlechecker.go function Main (line 39) | func Main(a *analysis.Analyzer) { FILE: go/analysis/unitchecker/export_test.go function SetTypeImportExport (line 20) | func SetTypeImportExport( FILE: go/analysis/unitchecker/main.go function main (line 53) | func main() { FILE: go/analysis/unitchecker/separate_test.go function TestExampleSeparateAnalysis (line 57) | func TestExampleSeparateAnalysis(t *testing.T) { function worker (line 236) | func worker() { function makeTypesImporter (line 260) | func makeTypesImporter(cfg *unitchecker.Config, fset *token.FileSet) typ... function exportTypes (line 286) | func exportTypes(cfg *unitchecker.Config, fset *token.FileSet, pkg *type... type importerFunc (line 297) | type importerFunc method Import (line 299) | func (f importerFunc) Import(path string) (*types.Package, error) { re... FILE: go/analysis/unitchecker/unitchecker.go type Config (line 60) | type Config struct function Main (line 94) | func Main(analyzers ...*analysis.Analyzer) { function Run (line 133) | func Run(configFile string, analyzers []*analysis.Analyzer) { function readConfig (line 164) | func readConfig(filename string) (*Config, error) { function processResults (line 182) | func processResults(fset *token.FileSet, id, fixArchive string, results ... function run (line 324) | func run(fset *token.FileSet, cfg *Config, analyzers []*analysis.Analyze... type result (line 536) | type result struct type importerFunc (line 544) | type importerFunc method Import (line 546) | func (f importerFunc) Import(path string) (*types.Package, error) { re... FILE: go/analysis/unitchecker/unitchecker_test.go function TestMain (line 27) | func TestMain(m *testing.M) { function minivet (line 47) | func minivet() { function TestIntegration (line 58) | func TestIntegration(t *testing.T) { FILE: go/analysis/unitchecker/vet_std_test.go function vet (line 53) | func vet() { function TestVetStdlib (line 95) | func TestVetStdlib(t *testing.T) { FILE: go/analysis/validate.go function Validate (line 24) | func Validate(analyzers []*Analyzer) error { function validIdent (line 116) | func validIdent(name string) bool { type CycleInRequiresGraphError (line 125) | type CycleInRequiresGraphError struct method Error (line 129) | func (e *CycleInRequiresGraphError) Error() string { FILE: go/analysis/validate_test.go function TestValidate (line 12) | func TestValidate(t *testing.T) { function TestCycleInRequiresGraphErrorMessage (line 121) | func TestCycleInRequiresGraphErrorMessage(t *testing.T) { function TestValidateEmptyDoc (line 130) | func TestValidateEmptyDoc(t *testing.T) { function TestValidateNoRun (line 143) | func TestValidateNoRun(t *testing.T) { FILE: go/ast/astutil/enclosing.go function PathEnclosingInterval (line 60) | func PathEnclosingInterval(root *ast.File, start, end token.Pos) (path [... type tokenNode (line 176) | type tokenNode struct method Pos (line 181) | func (n tokenNode) Pos() token.Pos { method End (line 185) | func (n tokenNode) End() token.Pos { function tok (line 189) | func tok(pos token.Pos, len int) ast.Node { function childrenOf (line 196) | func childrenOf(n ast.Node) []ast.Node { type byPos (line 493) | type byPos method Len (line 495) | func (sl byPos) Len() int { method Less (line 498) | func (sl byPos) Less(i, j int) bool { method Swap (line 501) | func (sl byPos) Swap(i, j int) { function NodeDescription (line 511) | func NodeDescription(n ast.Node) string { function is (line 660) | func is[T any](x any) bool { FILE: go/ast/astutil/enclosing_test.go function pathToString (line 26) | func pathToString(path []ast.Node) string { function findInterval (line 42) | func findInterval(t *testing.T, fset *token.FileSet, input, substr strin... constant input (line 61) | input = ` function TestPathEnclosingInterval_Exact (line 82) | func TestPathEnclosingInterval_Exact(t *testing.T) { function TestPathEnclosingInterval_Paths (line 174) | func TestPathEnclosingInterval_Paths(t *testing.T) { FILE: go/ast/astutil/imports.go function AddImport (line 19) | func AddImport(fset *token.FileSet, f *ast.File, path string) (added boo... function AddNamedImport (line 33) | func AddNamedImport(fset *token.FileSet, f *ast.File, name, path string)... function isThirdParty (line 198) | func isThirdParty(importPath string) bool { function DeleteImport (line 206) | func DeleteImport(fset *token.FileSet, f *ast.File, path string) (delete... function DeleteNamedImport (line 212) | func DeleteNamedImport(fset *token.FileSet, f *ast.File, name, path stri... function RewriteImport (line 316) | func RewriteImport(fset *token.FileSet, f *ast.File, oldPath, newPath st... function UsesImport (line 332) | func UsesImport(f *ast.File, path string) (used bool) { type visitFn (line 367) | type visitFn method Visit (line 369) | func (fn visitFn) Visit(node ast.Node) ast.Visitor { function imports (line 375) | func imports(f *ast.File, name, path string) bool { function importSpec (line 386) | func importSpec(f *ast.File, path string) *ast.ImportSpec { function importName (line 397) | func importName(s *ast.ImportSpec) string { function importPath (line 406) | func importPath(s *ast.ImportSpec) string { function declImports (line 415) | func declImports(gen *ast.GenDecl, path string) bool { function matchLen (line 429) | func matchLen(x, y string) int { function isTopName (line 440) | func isTopName(n ast.Expr, name string) bool { function Imports (line 446) | func Imports(fset *token.FileSet, f *ast.File) [][]*ast.ImportSpec { function updateBasicLitPos (line 478) | func updateBasicLitPos(lit *ast.BasicLit, pos token.Pos) { FILE: go/ast/astutil/imports_test.go function parse (line 20) | func parse(t *testing.T, name, in string) *ast.File { function print (line 28) | func print(t *testing.T, name string, f *ast.File) string { type test (line 36) | type test struct function TestAddImport (line 774) | func TestAddImport(t *testing.T) { function TestDoubleAddImport (line 802) | func TestDoubleAddImport(t *testing.T) { function TestDoubleAddNamedImport (line 818) | func TestDoubleAddNamedImport(t *testing.T) { function TestDoubleAddImportWithDeclComment (line 835) | func TestDoubleAddImportWithDeclComment(t *testing.T) { function TestDeleteImport (line 1687) | func TestDeleteImport(t *testing.T) { function TestDeleteImportAfterAddImport (line 1715) | func TestDeleteImportAfterAddImport(t *testing.T) { type rewriteTest (line 1728) | type rewriteTest struct function TestRewriteImport (line 1847) | func TestRewriteImport(t *testing.T) { function unquote (line 1926) | func unquote(s string) string { function TestImports (line 1934) | func TestImports(t *testing.T) { function TestUsesImport (line 2115) | func TestUsesImport(t *testing.T) { FILE: go/ast/astutil/rewrite.go type ApplyFunc (line 20) | type ApplyFunc function Apply (line 42) | func Apply(root ast.Node, pre, post ApplyFunc) (result ast.Node) { type Cursor (line 74) | type Cursor struct method Node (line 82) | func (c *Cursor) Node() ast.Node { return c.node } method Parent (line 85) | func (c *Cursor) Parent() ast.Node { return c.parent } method Name (line 90) | func (c *Cursor) Name() string { return c.name } method Index (line 96) | func (c *Cursor) Index() int { method field (line 104) | func (c *Cursor) field() reflect.Value { method Replace (line 110) | func (c *Cursor) Replace(n ast.Node) { method Delete (line 131) | func (c *Cursor) Delete() { method InsertAfter (line 152) | func (c *Cursor) InsertAfter(n ast.Node) { method InsertBefore (line 168) | func (c *Cursor) InsertBefore(n ast.Node) { type application (line 182) | type application struct method apply (line 188) | func (a *application) apply(parent ast.Node, name string, iter *iterat... method applyList (line 468) | func (a *application) applyList(parent ast.Node, name string) { type iterator (line 464) | type iterator struct FILE: go/ast/astutil/rewrite_test.go type rewriteTest (line 18) | type rewriteTest struct function valspec (line 231) | func valspec(name, typ string) *ast.ValueSpec { function vardecl (line 237) | func vardecl(name, typ string) *ast.GenDecl { function TestRewrite (line 244) | func TestRewrite(t *testing.T) { function BenchmarkRewrite (line 270) | func BenchmarkRewrite(b *testing.B) { FILE: go/ast/astutil/util.go function Unparen (line 13) | func Unparen(e ast.Expr) ast.Expr { return ast.Unparen(e) } FILE: go/ast/edge/edge.go type Kind (line 16) | type Kind method String (line 19) | func (k Kind) String() string { method NodeType (line 28) | func (k Kind) NodeType() reflect.Type { return fieldInfos[k].nodeType } method FieldName (line 31) | func (k Kind) FieldName() string { return fieldInfos[k].name } method FieldType (line 34) | func (k Kind) FieldType() reflect.Type { return fieldInfos[k].fieldType } method Get (line 39) | func (k Kind) Get(n ast.Node, idx int) ast.Node { constant Invalid (line 53) | Invalid Kind = iota constant ArrayType_Elt (line 60) | ArrayType_Elt constant ArrayType_Len (line 61) | ArrayType_Len constant AssignStmt_Lhs (line 62) | AssignStmt_Lhs constant AssignStmt_Rhs (line 63) | AssignStmt_Rhs constant BinaryExpr_X (line 64) | BinaryExpr_X constant BinaryExpr_Y (line 65) | BinaryExpr_Y constant BlockStmt_List (line 66) | BlockStmt_List constant BranchStmt_Label (line 67) | BranchStmt_Label constant CallExpr_Args (line 68) | CallExpr_Args constant CallExpr_Fun (line 69) | CallExpr_Fun constant CaseClause_Body (line 70) | CaseClause_Body constant CaseClause_List (line 71) | CaseClause_List constant ChanType_Value (line 72) | ChanType_Value constant CommClause_Body (line 73) | CommClause_Body constant CommClause_Comm (line 74) | CommClause_Comm constant CommentGroup_List (line 75) | CommentGroup_List constant CompositeLit_Elts (line 76) | CompositeLit_Elts constant CompositeLit_Type (line 77) | CompositeLit_Type constant DeclStmt_Decl (line 78) | DeclStmt_Decl constant DeferStmt_Call (line 79) | DeferStmt_Call constant Ellipsis_Elt (line 80) | Ellipsis_Elt constant ExprStmt_X (line 81) | ExprStmt_X constant FieldList_List (line 82) | FieldList_List constant Field_Comment (line 83) | Field_Comment constant Field_Doc (line 84) | Field_Doc constant Field_Names (line 85) | Field_Names constant Field_Tag (line 86) | Field_Tag constant Field_Type (line 87) | Field_Type constant File_Decls (line 88) | File_Decls constant File_Doc (line 89) | File_Doc constant File_Name (line 90) | File_Name constant ForStmt_Body (line 91) | ForStmt_Body constant ForStmt_Cond (line 92) | ForStmt_Cond constant ForStmt_Init (line 93) | ForStmt_Init constant ForStmt_Post (line 94) | ForStmt_Post constant FuncDecl_Body (line 95) | FuncDecl_Body constant FuncDecl_Doc (line 96) | FuncDecl_Doc constant FuncDecl_Name (line 97) | FuncDecl_Name constant FuncDecl_Recv (line 98) | FuncDecl_Recv constant FuncDecl_Type (line 99) | FuncDecl_Type constant FuncLit_Body (line 100) | FuncLit_Body constant FuncLit_Type (line 101) | FuncLit_Type constant FuncType_Params (line 102) | FuncType_Params constant FuncType_Results (line 103) | FuncType_Results constant FuncType_TypeParams (line 104) | FuncType_TypeParams constant GenDecl_Doc (line 105) | GenDecl_Doc constant GenDecl_Specs (line 106) | GenDecl_Specs constant GoStmt_Call (line 107) | GoStmt_Call constant IfStmt_Body (line 108) | IfStmt_Body constant IfStmt_Cond (line 109) | IfStmt_Cond constant IfStmt_Else (line 110) | IfStmt_Else constant IfStmt_Init (line 111) | IfStmt_Init constant ImportSpec_Comment (line 112) | ImportSpec_Comment constant ImportSpec_Doc (line 113) | ImportSpec_Doc constant ImportSpec_Name (line 114) | ImportSpec_Name constant ImportSpec_Path (line 115) | ImportSpec_Path constant IncDecStmt_X (line 116) | IncDecStmt_X constant IndexExpr_Index (line 117) | IndexExpr_Index constant IndexExpr_X (line 118) | IndexExpr_X constant IndexListExpr_Indices (line 119) | IndexListExpr_Indices constant IndexListExpr_X (line 120) | IndexListExpr_X constant InterfaceType_Methods (line 121) | InterfaceType_Methods constant KeyValueExpr_Key (line 122) | KeyValueExpr_Key constant KeyValueExpr_Value (line 123) | KeyValueExpr_Value constant LabeledStmt_Label (line 124) | LabeledStmt_Label constant LabeledStmt_Stmt (line 125) | LabeledStmt_Stmt constant MapType_Key (line 126) | MapType_Key constant MapType_Value (line 127) | MapType_Value constant ParenExpr_X (line 128) | ParenExpr_X constant RangeStmt_Body (line 129) | RangeStmt_Body constant RangeStmt_Key (line 130) | RangeStmt_Key constant RangeStmt_Value (line 131) | RangeStmt_Value constant RangeStmt_X (line 132) | RangeStmt_X constant ReturnStmt_Results (line 133) | ReturnStmt_Results constant SelectStmt_Body (line 134) | SelectStmt_Body constant SelectorExpr_Sel (line 135) | SelectorExpr_Sel constant SelectorExpr_X (line 136) | SelectorExpr_X constant SendStmt_Chan (line 137) | SendStmt_Chan constant SendStmt_Value (line 138) | SendStmt_Value constant SliceExpr_High (line 139) | SliceExpr_High constant SliceExpr_Low (line 140) | SliceExpr_Low constant SliceExpr_Max (line 141) | SliceExpr_Max constant SliceExpr_X (line 142) | SliceExpr_X constant StarExpr_X (line 143) | StarExpr_X constant StructType_Fields (line 144) | StructType_Fields constant SwitchStmt_Body (line 145) | SwitchStmt_Body constant SwitchStmt_Init (line 146) | SwitchStmt_Init constant SwitchStmt_Tag (line 147) | SwitchStmt_Tag constant TypeAssertExpr_Type (line 148) | TypeAssertExpr_Type constant TypeAssertExpr_X (line 149) | TypeAssertExpr_X constant TypeSpec_Comment (line 150) | TypeSpec_Comment constant TypeSpec_Doc (line 151) | TypeSpec_Doc constant TypeSpec_Name (line 152) | TypeSpec_Name constant TypeSpec_Type (line 153) | TypeSpec_Type constant TypeSpec_TypeParams (line 154) | TypeSpec_TypeParams constant TypeSwitchStmt_Assign (line 155) | TypeSwitchStmt_Assign constant TypeSwitchStmt_Body (line 156) | TypeSwitchStmt_Body constant TypeSwitchStmt_Init (line 157) | TypeSwitchStmt_Init constant UnaryExpr_X (line 158) | UnaryExpr_X constant ValueSpec_Comment (line 159) | ValueSpec_Comment constant ValueSpec_Doc (line 160) | ValueSpec_Doc constant ValueSpec_Names (line 161) | ValueSpec_Names constant ValueSpec_Type (line 162) | ValueSpec_Type constant ValueSpec_Values (line 163) | ValueSpec_Values constant maxKind (line 165) | maxKind type fieldInfo (line 173) | type fieldInfo struct function info (line 180) | func info[N ast.Node](fieldName string) fieldInfo { FILE: go/ast/inspector/cursor.go type Cursor (line 38) | type Cursor struct method Valid (line 71) | func (c Cursor) Valid() bool { method Inspector (line 77) | func (c Cursor) Inspector() *Inspector { return c.in } method Index (line 86) | func (c Cursor) Index() int32 { method Node (line 95) | func (c Cursor) Node() ast.Node { method String (line 103) | func (c Cursor) String() string { method indices (line 114) | func (c Cursor) indices() (int32, int32) { method Preorder (line 135) | func (c Cursor) Preorder(types ...ast.Node) iter.Seq[Cursor] { method Inspect (line 172) | func (c Cursor) Inspect(types []ast.Node, f func(c Cursor) (descend bo... method Enclosing (line 201) | func (c Cursor) Enclosing(types ...ast.Node) iter.Seq[Cursor] { method Parent (line 221) | func (c Cursor) Parent() Cursor { method ParentEdge (line 239) | func (c Cursor) ParentEdge() (edge.Kind, int) { method ParentEdgeKind (line 249) | func (c Cursor) ParentEdgeKind() edge.Kind { method ParentEdgeIndex (line 255) | func (c Cursor) ParentEdgeIndex() int { method ChildAt (line 268) | func (c Cursor) ChildAt(k edge.Kind, idx int) Cursor { method Child (line 290) | func (c Cursor) Child(n ast.Node) Cursor { method NextSibling (line 323) | func (c Cursor) NextSibling() (Cursor, bool) { method PrevSibling (line 346) | func (c Cursor) PrevSibling() (Cursor, bool) { method FirstChild (line 363) | func (c Cursor) FirstChild() (Cursor, bool) { method LastChild (line 374) | func (c Cursor) LastChild() (Cursor, bool) { method Children (line 417) | func (c Cursor) Children() iter.Seq[Cursor] { method Contains (line 430) | func (c Cursor) Contains(c2 Cursor) bool { method FindNode (line 440) | func (c Cursor) FindNode(n ast.Node) (Cursor, bool) { method FindByPos (line 488) | func (c Cursor) FindByPos(start, end token.Pos) (Cursor, bool) { method Root (line 47) | func (in *Inspector) Root() Cursor { method At (line 54) | func (in *Inspector) At(index int32) Cursor { FILE: go/ast/inspector/cursor_test.go function TestCursor_Preorder (line 23) | func TestCursor_Preorder(t *testing.T) { function TestCursor_nestedTraversal (line 46) | func TestCursor_nestedTraversal(t *testing.T) { function TestCursor_Children (line 132) | func TestCursor_Children(t *testing.T) { function TestCursor_Inspect (line 183) | func TestCursor_Inspect(t *testing.T) { function TestCursor_FindNode (line 224) | func TestCursor_FindNode(t *testing.T) { function TestCursor_FindByPos_order (line 267) | func TestCursor_FindByPos_order(t *testing.T) { function TestCursor_Edge (line 291) | func TestCursor_Edge(t *testing.T) { function TestCursor_FindByPos_Boundary (line 383) | func TestCursor_FindByPos_Boundary(t *testing.T) { function TestCursor_FindByPos (line 436) | func TestCursor_FindByPos(t *testing.T) { function is (line 545) | func is[T any](x any) bool { function sliceTypes (line 551) | func sliceTypes[T any](slice []T) string { function BenchmarkInspectCalls (line 564) | func BenchmarkInspectCalls(b *testing.B) { function BenchmarkCursor_FindNode (line 618) | func BenchmarkCursor_FindNode(b *testing.B) { function iterlen (line 682) | func iterlen[T any](seq iter.Seq[T]) (len int) { FILE: go/ast/inspector/inspector.go type Inspector (line 55) | type Inspector struct method Preorder (line 103) | func (in *Inspector) Preorder(types []ast.Node, f func(ast.Node)) { method Nodes (line 154) | func (in *Inspector) Nodes(types []ast.Node, f func(n ast.Node, push b... method WithStack (line 196) | func (in *Inspector) WithStack(types []ast.Node, f func(n ast.Node, pu... function packEdgeKindAndIndex (line 59) | func packEdgeKindAndIndex(ek edge.Kind, index int) int32 { function unpackEdgeKindAndIndex (line 65) | func unpackEdgeKindAndIndex(x int32) (edge.Kind, int) { function New (line 73) | func New(files []*ast.File) *Inspector { type event (line 79) | type event struct function traverse (line 230) | func traverse(files []*ast.File) []event { type visitor (line 253) | type visitor struct method push (line 265) | func (v *visitor) push(ek edge.Kind, eindex int, node ast.Node) { method pop (line 293) | func (v *visitor) pop(node ast.Node) { type item (line 258) | type item struct FILE: go/ast/inspector/inspector_test.go function init (line 29) | func init() { function parseNetFiles (line 38) | func parseNetFiles() ([]*ast.File, error) { function TestInspectAllNodes (line 56) | func TestInspectAllNodes(t *testing.T) { function TestInspectGenericNodes (line 78) | func TestInspectGenericNodes(t *testing.T) { function TestInspectPruning (line 142) | func TestInspectPruning(t *testing.T) { function compare (line 169) | func compare[N comparable](t *testing.T, nodesA, nodesB []N) { function TestTypeFiltering (line 181) | func TestTypeFiltering(t *testing.T) { function typeOf (line 240) | func typeOf(n ast.Node) string { function BenchmarkNewInspector (line 254) | func BenchmarkNewInspector(b *testing.B) { function BenchmarkInspect (line 261) | func BenchmarkInspect(b *testing.B) { function BenchmarkInspectFilter (line 279) | func BenchmarkInspectFilter(b *testing.B) { function BenchmarkASTInspect (line 298) | func BenchmarkASTInspect(b *testing.B) { FILE: go/ast/inspector/iter.go method PreorderSeq (line 40) | func (in *Inspector) PreorderSeq(types ...ast.Node) iter.Seq[ast.Node] { function All (line 84) | func All[N interface { FILE: go/ast/inspector/iter_test.go function TestPreorderSeq (line 17) | func TestPreorderSeq(t *testing.T) { function TestAll (line 38) | func TestAll(t *testing.T) { function firstN (line 57) | func firstN[T any](n int, seq iter.Seq[T]) (res []T) { function BenchmarkAllCalls (line 70) | func BenchmarkAllCalls(b *testing.B) { FILE: go/ast/inspector/typeof.go constant nArrayType (line 18) | nArrayType = iota constant nAssignStmt (line 19) | nAssignStmt constant nBadDecl (line 20) | nBadDecl constant nBadExpr (line 21) | nBadExpr constant nBadStmt (line 22) | nBadStmt constant nBasicLit (line 23) | nBasicLit constant nBinaryExpr (line 24) | nBinaryExpr constant nBlockStmt (line 25) | nBlockStmt constant nBranchStmt (line 26) | nBranchStmt constant nCallExpr (line 27) | nCallExpr constant nCaseClause (line 28) | nCaseClause constant nChanType (line 29) | nChanType constant nCommClause (line 30) | nCommClause constant nComment (line 31) | nComment constant nCommentGroup (line 32) | nCommentGroup constant nCompositeLit (line 33) | nCompositeLit constant nDeclStmt (line 34) | nDeclStmt constant nDeferStmt (line 35) | nDeferStmt constant nEllipsis (line 36) | nEllipsis constant nEmptyStmt (line 37) | nEmptyStmt constant nExprStmt (line 38) | nExprStmt constant nField (line 39) | nField constant nFieldList (line 40) | nFieldList constant nFile (line 41) | nFile constant nForStmt (line 42) | nForStmt constant nFuncDecl (line 43) | nFuncDecl constant nFuncLit (line 44) | nFuncLit constant nFuncType (line 45) | nFuncType constant nGenDecl (line 46) | nGenDecl constant nGoStmt (line 47) | nGoStmt constant nIdent (line 48) | nIdent constant nIfStmt (line 49) | nIfStmt constant nImportSpec (line 50) | nImportSpec constant nIncDecStmt (line 51) | nIncDecStmt constant nIndexExpr (line 52) | nIndexExpr constant nIndexListExpr (line 53) | nIndexListExpr constant nInterfaceType (line 54) | nInterfaceType constant nKeyValueExpr (line 55) | nKeyValueExpr constant nLabeledStmt (line 56) | nLabeledStmt constant nMapType (line 57) | nMapType constant nPackage (line 58) | nPackage constant nParenExpr (line 59) | nParenExpr constant nRangeStmt (line 60) | nRangeStmt constant nReturnStmt (line 61) | nReturnStmt constant nSelectStmt (line 62) | nSelectStmt constant nSelectorExpr (line 63) | nSelectorExpr constant nSendStmt (line 64) | nSendStmt constant nSliceExpr (line 65) | nSliceExpr constant nStarExpr (line 66) | nStarExpr constant nStructType (line 67) | nStructType constant nSwitchStmt (line 68) | nSwitchStmt constant nTypeAssertExpr (line 69) | nTypeAssertExpr constant nTypeSpec (line 70) | nTypeSpec constant nTypeSwitchStmt (line 71) | nTypeSwitchStmt constant nUnaryExpr (line 72) | nUnaryExpr constant nValueSpec (line 73) | nValueSpec function typeOf (line 94) | func typeOf(n ast.Node) uint64 { function maskOf (line 218) | func maskOf(nodes []ast.Node) uint64 { FILE: go/ast/inspector/walk.go function walkList (line 19) | func walkList[N ast.Node](v *visitor, ek edge.Kind, list []N) { function walk (line 25) | func walk(v *visitor, ek edge.Kind, index int, node ast.Node) { FILE: go/buildutil/allpackages.go function AllPackages (line 31) | func AllPackages(ctxt *build.Context) []string { function ForEachPackage (line 50) | func ForEachPackage(ctxt *build.Context, found func(importPath string, e... type item (line 72) | type item struct function allPackages (line 81) | func allPackages(ctxt *build.Context, root string, ch chan<- item) { function ExpandPatterns (line 138) | func ExpandPatterns(ctxt *build.Context, patterns []string) map[string]b... FILE: go/buildutil/allpackages_test.go function TestAllPackages (line 22) | func TestAllPackages(t *testing.T) { function TestExpandPatterns (line 63) | func TestExpandPatterns(t *testing.T) { FILE: go/buildutil/fakecontext.go function FakeContext (line 32) | func FakeContext(pkgs map[string]map[string]string) *build.Context { type byName (line 89) | type byName method Len (line 91) | func (s byName) Len() int { return len(s) } method Swap (line 92) | func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] } method Less (line 93) | func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() } type fakeFileInfo (line 95) | type fakeFileInfo method Name (line 97) | func (fi fakeFileInfo) Name() string { return string(fi) } method Sys (line 98) | func (fakeFileInfo) Sys() any { return nil } method ModTime (line 99) | func (fakeFileInfo) ModTime() time.Time { return time.Time{} } method IsDir (line 100) | func (fakeFileInfo) IsDir() bool { return false } method Size (line 101) | func (fakeFileInfo) Size() int64 { return 0 } method Mode (line 102) | func (fakeFileInfo) Mode() os.FileMode { return 0644 } type fakeDirInfo (line 104) | type fakeDirInfo method Name (line 106) | func (fd fakeDirInfo) Name() string { return string(fd) } method Sys (line 107) | func (fakeDirInfo) Sys() any { return nil } method ModTime (line 108) | func (fakeDirInfo) ModTime() time.Time { return time.Time{} } method IsDir (line 109) | func (fakeDirInfo) IsDir() bool { return true } method Size (line 110) | func (fakeDirInfo) Size() int64 { return 0 } method Mode (line 111) | func (fakeDirInfo) Mode() os.FileMode { return 0755 } FILE: go/buildutil/overlay.go function OverlayContext (line 31) | func OverlayContext(orig *build.Context, overlay map[string][]byte) *bui... function ParseOverlayArchive (line 67) | func ParseOverlayArchive(archive io.Reader) (map[string][]byte, error) { FILE: go/buildutil/overlay_test.go function TestParseOverlayArchive (line 17) | func TestParseOverlayArchive(t *testing.T) { function TestOverlay (line 54) | func TestOverlay(t *testing.T) { FILE: go/buildutil/tags.go constant TagsFlagDoc (line 17) | TagsFlagDoc = "a list of `build tags` to consider satisfied during the b... type TagsFlag (line 30) | type TagsFlag method Set (line 32) | func (v *TagsFlag) Set(s string) error { method Get (line 54) | func (v *TagsFlag) Get() any { return *v } method String (line 92) | func (v *TagsFlag) String() string { function splitQuotedFields (line 56) | func splitQuotedFields(s string) ([]string, error) { function isSpaceByte (line 96) | func isSpaceByte(c byte) bool { FILE: go/buildutil/tags_test.go function TestTags (line 20) | func TestTags(t *testing.T) { FILE: go/buildutil/util.go function ParseFile (line 31) | func ParseFile(fset *token.FileSet, ctxt *build.Context, displayPath fun... function ContainingPackage (line 53) | func ContainingPackage(ctxt *build.Context, dir, filename string) (*buil... function HasSubdir (line 85) | func HasSubdir(ctxt *build.Context, root, dir string) (rel string, ok bo... function hasSubdir (line 110) | func hasSubdir(root, dir string) (rel string, ok bool) { function FileExists (line 127) | func FileExists(ctxt *build.Context, path string) bool { function OpenFile (line 142) | func OpenFile(ctxt *build.Context, path string) (io.ReadCloser, error) { function IsAbsPath (line 151) | func IsAbsPath(ctxt *build.Context, path string) bool { function JoinPath (line 160) | func JoinPath(ctxt *build.Context, path ...string) string { function IsDir (line 169) | func IsDir(ctxt *build.Context, path string) bool { function ReadDir (line 179) | func ReadDir(ctxt *build.Context, path string) ([]os.FileInfo, error) { function SplitPathList (line 188) | func SplitPathList(ctxt *build.Context, s string) []string { function sameFile (line 197) | func sameFile(x, y string) bool { FILE: go/buildutil/util_test.go function TestContainingPackage (line 19) | func TestContainingPackage(t *testing.T) { FILE: go/buildutil/util_windows_test.go function testContainingPackageCaseFold (line 18) | func testContainingPackageCaseFold(file, want string) error { function TestContainingPackageCaseFold (line 29) | func TestContainingPackageCaseFold(t *testing.T) { FILE: go/callgraph/callgraph.go type Graph (line 49) | type Graph struct method CreateNode (line 63) | func (g *Graph) CreateNode(fn *ssa.Function) *Node { function New (line 55) | func New(root *ssa.Function) *Graph { type Node (line 73) | type Node struct method String (line 80) | func (n *Node) String() string { type Edge (line 88) | type Edge struct method String (line 94) | func (e Edge) String() string { method Description (line 98) | func (e Edge) Description() string { method Pos (line 111) | func (e Edge) Pos() token.Pos { function AddEdge (line 120) | func AddEdge(caller *Node, site ssa.CallInstruction, callee *Node) { FILE: go/callgraph/callgraph_test.go constant httpEx (line 50) | httpEx = ` function example (line 77) | func example(t testing.TB) (*ssa.Program, *ssa.Function) { function logStats (line 89) | func logStats(b *testing.B, cnd bool, name string, cg *callgraph.Graph, ... function BenchmarkStatic (line 100) | func BenchmarkStatic(b *testing.B) { function BenchmarkCHA (line 110) | func BenchmarkCHA(b *testing.B) { function BenchmarkRTA (line 120) | func BenchmarkRTA(b *testing.B) { function BenchmarkVTA (line 131) | func BenchmarkVTA(b *testing.B) { function BenchmarkVTA2 (line 141) | func BenchmarkVTA2(b *testing.B) { function BenchmarkVTA3 (line 152) | func BenchmarkVTA3(b *testing.B) { function BenchmarkVTAAlt (line 164) | func BenchmarkVTAAlt(b *testing.B) { function BenchmarkVTAAlt2 (line 175) | func BenchmarkVTAAlt2(b *testing.B) { function reaches (line 190) | func reaches(source *ssa.Function, cg *callgraph.Graph, refs bool) map[*... FILE: go/callgraph/cha/cha.go function CallGraph (line 36) | func CallGraph(prog *ssa.Program) *callgraph.Graph { FILE: go/callgraph/cha/cha_test.go function expectation (line 40) | func expectation(f *ast.File) (string, token.Pos) { function TestCHA (line 53) | func TestCHA(t *testing.T) { function TestCHAGenerics (line 73) | func TestCHAGenerics(t *testing.T) { function TestCHAUnexported (line 91) | func TestCHAUnexported(t *testing.T) { function loadFile (line 156) | func loadFile(t testing.TB, filename string, mode ssa.BuilderMode) (*pac... function printGraph (line 188) | func printGraph(cg *callgraph.Graph, from *types.Package, edgeMatch stri... FILE: go/callgraph/cha/testdata/func.go function A (line 5) | func A(int) {} function f (line 12) | func f() { FILE: go/callgraph/cha/testdata/generics.go type I (line 5) | type I interface type A (line 9) | type A struct method Foo (line 11) | func (a A) Foo() {} type B (line 13) | type B struct method Foo (line 15) | func (b B) Foo() {} function instantiated (line 17) | func instantiated[X I](x X) { function Bar (line 21) | func Bar() {} function f (line 23) | func f(h func(), g func(I), k func(A), a A, b B) { FILE: go/callgraph/cha/testdata/iface.go type I (line 6) | type I interface type J (line 10) | type J interface type C (line 15) | type C method f (line 17) | func (*C) f() type D (line 19) | type D method f (line 21) | func (*D) f() method g (line 22) | func (*D) g() function one (line 24) | func one(i I, j J) { function two (line 28) | func two(i I, j J) { function three (line 32) | func three(i I, j J) { function four (line 36) | func four(i I, j J) { function five (line 44) | func five(i I, j J) { FILE: go/callgraph/cha/testdata/issue23925.go type stringFlagImpl (line 5) | type stringFlagImpl method Set (line 7) | func (*stringFlagImpl) Set(s string) error { return nil } type boolFlagImpl (line 9) | type boolFlagImpl method Set (line 11) | func (*boolFlagImpl) Set(s string) error { return nil } method extra (line 12) | func (*boolFlagImpl) extra() {} type boolFlag (line 16) | type boolFlag interface type flagValue (line 22) | type flagValue interface function main (line 26) | func main() { FILE: go/callgraph/cha/testdata/recv.go type I (line 3) | type I interface type J (line 7) | type J interface type C (line 11) | type C method f (line 13) | func (C) f() method g (line 14) | func (*C) g() type D (line 16) | type D method f (line 18) | func (*D) f() method g (line 19) | func (*D) g() function f (line 21) | func f(i I) { function g (line 25) | func g(j J) { FILE: go/callgraph/internal/chautil/lazy.go function LazyCallees (line 22) | func LazyCallees(fns map[*ssa.Function]bool) func(site ssa.CallInstructi... FILE: go/callgraph/rta/rta.go type Result (line 52) | type Result struct type rta (line 79) | type rta struct method addReachable (line 131) | func (r *rta) addReachable(f *ssa.Function, addrTaken bool) { method addEdge (line 148) | func (r *rta) addEdge(caller *ssa.Function, site ssa.CallInstruction, ... method visitAddrTakenFunc (line 164) | func (r *rta) visitAddrTakenFunc(f *ssa.Function) { method visitDynCall (line 213) | func (r *rta) visitDynCall(site ssa.CallInstruction) { method addInvokeEdge (line 231) | func (r *rta) addInvokeEdge(site ssa.CallInstruction, C types.Type) { method visitInvoke (line 239) | func (r *rta) visitInvoke(site ssa.CallInstruction) { method visitFunc (line 256) | func (r *rta) visitFunc(f *ssa.Function) { method interfaces (line 358) | func (r *rta) interfaces(C types.Type) []*types.Interface { method implementations (line 387) | func (r *rta) implementations(I *types.Interface) []types.Type { method addRuntimeType (line 417) | func (r *rta) addRuntimeType(T types.Type, skip bool) { type concreteTypeInfo (line 115) | type concreteTypeInfo struct type interfaceTypeInfo (line 122) | type interfaceTypeInfo struct function Analyze (line 308) | func Analyze(roots []*ssa.Function, buildCallGraph bool) *Result { function fingerprint (line 541) | func fingerprint(mset *types.MethodSet) uint64 { function implements (line 558) | func implements(cinfo *concreteTypeInfo, iinfo *interfaceTypeInfo) (got ... FILE: go/callgraph/rta/rta_test.go function TestRTA (line 31) | func TestRTA(t *testing.T) { function check (line 101) | func check(t *testing.T, f *ast.File, pkg *ssa.Package, res *rta.Result) { FILE: go/callgraph/static/static.go function CallGraph (line 25) | func CallGraph(prog *ssa.Program) *callgraph.Graph { FILE: go/callgraph/static/static_test.go constant input (line 21) | input = ` constant genericsInput (line 62) | genericsInput = ` function TestStatic (line 98) | func TestStatic(t *testing.T) { FILE: go/callgraph/util.go function CalleesOf (line 14) | func CalleesOf(caller *Node) map[*Node]bool { function GraphVisitEdges (line 26) | func GraphVisitEdges(g *Graph, edge func(*Edge) error) error { function PathSearch (line 55) | func PathSearch(start *Node, isEnd func(*Node) bool) []*Edge { method DeleteSyntheticNodes (line 85) | func (g *Graph) DeleteSyntheticNodes() { function isInit (line 122) | func isInit(fn *ssa.Function) bool { method DeleteNode (line 128) | func (g *Graph) DeleteNode(n *Node) { method deleteIns (line 135) | func (n *Node) deleteIns() { method deleteOuts (line 143) | func (n *Node) deleteOuts() { function removeOutEdge (line 151) | func removeOutEdge(edge *Edge) { function removeInEdge (line 167) | func removeInEdge(edge *Edge) { FILE: go/callgraph/vta/graph.go type node (line 19) | type node interface type constant (line 25) | type constant struct method Type (line 29) | func (c constant) Type() types.Type { method String (line 33) | func (c constant) String() string { type pointer (line 38) | type pointer struct method Type (line 42) | func (p pointer) Type() types.Type { method String (line 46) | func (p pointer) String() string { type mapKey (line 51) | type mapKey struct method Type (line 55) | func (mk mapKey) Type() types.Type { method String (line 59) | func (mk mapKey) String() string { type mapValue (line 64) | type mapValue struct method Type (line 68) | func (mv mapValue) Type() types.Type { method String (line 72) | func (mv mapValue) String() string { type sliceElem (line 77) | type sliceElem struct method Type (line 81) | func (s sliceElem) Type() types.Type { method String (line 85) | func (s sliceElem) String() string { type channelElem (line 90) | type channelElem struct method Type (line 94) | func (c channelElem) Type() types.Type { method String (line 98) | func (c channelElem) String() string { type field (line 103) | type field struct method Type (line 108) | func (f field) Type() types.Type { method String (line 113) | func (f field) String() string { type global (line 119) | type global struct method Type (line 123) | func (g global) Type() types.Type { method String (line 127) | func (g global) String() string { type local (line 133) | type local struct method Type (line 137) | func (l local) Type() types.Type { method String (line 141) | func (l local) String() string { type indexedLocal (line 147) | type indexedLocal struct method Type (line 153) | func (i indexedLocal) Type() types.Type { method String (line 157) | func (i indexedLocal) String() string { type function (line 162) | type function struct method Type (line 166) | func (f function) Type() types.Type { method String (line 170) | func (f function) String() string { type resultVar (line 177) | type resultVar struct method Type (line 182) | func (o resultVar) Type() types.Type { method String (line 186) | func (o resultVar) String() string { type nestedPtrInterface (line 203) | type nestedPtrInterface struct method Type (line 207) | func (l nestedPtrInterface) Type() types.Type { method String (line 211) | func (l nestedPtrInterface) String() string { type nestedPtrFunction (line 223) | type nestedPtrFunction struct method Type (line 227) | func (p nestedPtrFunction) Type() types.Type { method String (line 231) | func (p nestedPtrFunction) String() string { type panicArg (line 236) | type panicArg struct method Type (line 238) | func (p panicArg) Type() types.Type { method String (line 242) | func (p panicArg) String() string { type recoverReturn (line 247) | type recoverReturn struct method Type (line 249) | func (r recoverReturn) Type() types.Type { method String (line 253) | func (r recoverReturn) String() string { type idx (line 260) | type idx type vtaGraph (line 264) | type vtaGraph struct method numNodes (line 270) | func (g *vtaGraph) numNodes() int { method successors (line 274) | func (g *vtaGraph) successors(x idx) iter.Seq[idx] { method addEdge (line 285) | func (g *vtaGraph) addEdge(x, y node) { function typePropGraph (line 312) | func typePropGraph(funcs map[*ssa.Function]bool, callees calleesFunc) (*... type builder (line 321) | type builder struct method visit (line 335) | func (b *builder) visit(funcs map[*ssa.Function]bool) { method fun (line 346) | func (b *builder) fun(f *ssa.Function) { method instr (line 354) | func (b *builder) instr(instr ssa.Instruction) { method unop (line 435) | func (b *builder) unop(u *ssa.UnOp) { method phi (line 448) | func (b *builder) phi(p *ssa.Phi) { method tassert (line 454) | func (b *builder) tassert(a *ssa.TypeAssert) { method extract (line 472) | func (b *builder) extract(e *ssa.Extract) { method field (line 480) | func (b *builder) field(f *ssa.Field) { method fieldAddr (line 485) | func (b *builder) fieldAddr(f *ssa.FieldAddr) { method send (line 494) | func (b *builder) send(s *ssa.Send) { method selekt (line 506) | func (b *builder) selekt(s *ssa.Select) { method index (line 525) | func (b *builder) index(i *ssa.Index) { method indexAddr (line 534) | func (b *builder) indexAddr(i *ssa.IndexAddr) { method lookup (line 543) | func (b *builder) lookup(l *ssa.Lookup) { method mapUpdate (line 561) | func (b *builder) mapUpdate(u *ssa.MapUpdate) { method next (line 575) | func (b *builder) next(n *ssa.Next) { method addInFlowAliasEdges (line 591) | func (b *builder) addInFlowAliasEdges(l, r node) { method closure (line 599) | func (b *builder) closure(c *ssa.MakeClosure) { method panic (line 616) | func (b *builder) panic(p *ssa.Panic) { method call (line 628) | func (b *builder) call(c ssa.CallInstruction) { method rtrn (line 702) | func (b *builder) rtrn(r *ssa.Return) { method multiconvert (line 708) | func (b *builder) multiconvert(c *ssa.MultiConvert) { method addInFlowEdge (line 776) | func (b *builder) addInFlowEdge(s, d node) { method nodeFromVal (line 783) | func (b *builder) nodeFromVal(val ssa.Value) node { method representative (line 816) | func (b *builder) representative(n node) node { function addArgumentFlows (line 660) | func addArgumentFlows(b *builder, c ssa.CallInstruction, f *ssa.Function) { function canonicalize (line 854) | func canonicalize(t types.Type, canon *typeutil.Map) types.Type { FILE: go/callgraph/vta/graph_test.go function TestNodeInterface (line 20) | func TestNodeInterface(t *testing.T) { function removeModulePrefix (line 85) | func removeModulePrefix(s string) string { function TestVtaGraph (line 89) | func TestVtaGraph(t *testing.T) { function vtaGraphStr (line 164) | func vtaGraphStr(g *vtaGraph) []string { function setdiff (line 180) | func setdiff(X, Y []string) []string { function TestVTAGraphConstruction (line 196) | func TestVTAGraphConstruction(t *testing.T) { FILE: go/callgraph/vta/helpers_test.go function want (line 28) | func want(f *ast.File) []string { function testProg (line 41) | func testProg(t testing.TB, path string, mode ssa.BuilderMode) (*ssa.Pro... function loadFile (line 51) | func loadFile(t testing.TB, filename string, mode ssa.BuilderMode) (*pac... function firstRegInstr (line 86) | func firstRegInstr(f *ssa.Function) ssa.Value { function funcName (line 99) | func funcName(f *ssa.Function) string { function callGraphStr (line 115) | func callGraphStr(g *callgraph.Graph) []string { function logFns (line 139) | func logFns(t testing.TB, prog *ssa.Program) { FILE: go/callgraph/vta/initial.go type calleesFunc (line 15) | type calleesFunc function makeCalleesFunc (line 20) | func makeCalleesFunc(fs map[*ssa.Function]bool, c *callgraph.Graph) call... FILE: go/callgraph/vta/internal/trie/bits.go type key (line 17) | type key type bitpos (line 27) | type bitpos type prefix (line 41) | type prefix function branchingBit (line 45) | func branchingBit(x, y prefix) bitpos { function zeroBit (line 54) | func zeroBit(k prefix, b bitpos) bool { function matchPrefix (line 59) | func matchPrefix(k prefix, p prefix, b bitpos) bool { function mask (line 77) | func mask(k prefix, b bitpos) prefix { function ord (line 82) | func ord(m, n bitpos) bool { function prefixesOverlap (line 94) | func prefixesOverlap(p prefix, m bitpos, q prefix, n bitpos) bool { FILE: go/callgraph/vta/internal/trie/bits_test.go function TestMask (line 14) | func TestMask(t *testing.T) { function TestMaskImpotent (line 72) | func TestMaskImpotent(t *testing.T) { function TestMatchPrefix (line 90) | func TestMatchPrefix(t *testing.T) { function TestNotMatchPrefix (line 136) | func TestNotMatchPrefix(t *testing.T) { function TestBranchingBit (line 158) | func TestBranchingBit(t *testing.T) { function TestZeroBit (line 189) | func TestZeroBit(t *testing.T) { function TestZeroBitFails (line 210) | func TestZeroBitFails(t *testing.T) { function TestOrd (line 235) | func TestOrd(t *testing.T) { function TestPrefixesOverlapLemma (line 252) | func TestPrefixesOverlapLemma(t *testing.T) { FILE: go/callgraph/vta/internal/trie/builder.go type Collision (line 17) | type Collision function TakeLhs (line 20) | func TakeLhs(lhs, rhs any) any { return lhs } function TakeRhs (line 23) | func TakeRhs(lhs, rhs any) any { return rhs } type Builder (line 31) | type Builder struct method Scope (line 54) | func (b *Builder) Scope() Scope { return b.scope } method Rescope (line 62) | func (b *Builder) Rescope() { method Empty (line 71) | func (b *Builder) Empty() Map { return Map{b.Scope(), b.empty} } method InsertWith (line 81) | func (b *Builder) InsertWith(c Collision, m Map, k uint64, v any) Map { method Insert (line 95) | func (b *Builder) Insert(m Map, k uint64, v any) Map { method Update (line 103) | func (b *Builder) Update(m Map, key uint64, val any) Map { method MergeWith (line 111) | func (b *Builder) MergeWith(c Collision, lhs, rhs Map) Map { method Merge (line 120) | func (b *Builder) Merge(lhs, rhs Map) Map { method Clone (line 127) | func (b *Builder) Clone(m Map) Map { method clone (line 135) | func (b *Builder) clone(n node) node { method Remove (line 149) | func (b *Builder) Remove(m Map, k uint64) Map { method Intersect (line 158) | func (b *Builder) Intersect(lhs, rhs Map) Map { method IntersectWith (line 169) | func (b *Builder) IntersectWith(c Collision, lhs, rhs Map) Map { method MutEmpty (line 182) | func (b *Builder) MutEmpty() MutMap { method Create (line 224) | func (b *Builder) Create(m map[uint64]any) Map { method create (line 241) | func (b *Builder) create(leaves []*leaf) node { method mkLeaf (line 262) | func (b *Builder) mkLeaf(k key, v any) *leaf { method mkBranch (line 276) | func (b *Builder) mkBranch(p prefix, bp bitpos, left node, right node)... method join (line 294) | func (b *Builder) join(p0 prefix, t0 node, p1 prefix, t1 node) *branch { method collide (line 308) | func (b *Builder) collide(c Collision, left, right *leaf) *leaf { method insert (line 329) | func (b *Builder) insert(c Collision, m node, l *leaf, lhs bool) node { method merge (line 363) | func (b *Builder) merge(c Collision, lhs, rhs node) node { method remove (line 414) | func (b *Builder) remove(m node, k key) node { method intersect (line 452) | func (b *Builder) intersect(c Collision, l, r node) node { function NewBuilder (line 44) | func NewBuilder() *Builder { type MutMap (line 176) | type MutMap struct method Insert (line 188) | func (mm *MutMap) Insert(k uint64, v any) bool { method Update (line 195) | func (mm *MutMap) Update(k uint64, v any) bool { method Remove (line 202) | func (mm *MutMap) Remove(k uint64) bool { method Merge (line 210) | func (mm *MutMap) Merge(other Map) bool { method Intersect (line 218) | func (mm *MutMap) Intersect(other Map) bool { method MergeWith (line 234) | func (mm *MutMap) MergeWith(c Collision, other Map) bool { FILE: go/callgraph/vta/internal/trie/op_test.go type mapCollection (line 24) | type mapCollection interface type opCode (line 42) | type opCode method String (line 57) | func (op opCode) String() string { constant deepEqualsOp (line 45) | deepEqualsOp opCode = iota constant lookupOp (line 46) | lookupOp constant insert (line 47) | insert constant update (line 48) | update constant remove (line 49) | remove constant merge (line 50) | merge constant intersect (line 51) | intersect constant clear (line 52) | clear constant takeAverage (line 53) | takeAverage constant assign (line 54) | assign type trieCollection (line 85) | type trieCollection struct method Elements (line 90) | func (c *trieCollection) Elements() []map[uint64]any { method Eq (line 97) | func (c *trieCollection) Eq(id int, m map[uint64]any) bool { method Lookup (line 102) | func (c *trieCollection) Lookup(id int, k uint64) (any, bool) { method DeepEqual (line 105) | func (c *trieCollection) DeepEqual(l, r int) bool { method Add (line 109) | func (c *trieCollection) Add() { method Insert (line 113) | func (c *trieCollection) Insert(id int, k uint64, v any) { method Update (line 117) | func (c *trieCollection) Update(id int, k uint64, v any) { method Remove (line 121) | func (c *trieCollection) Remove(id int, k uint64) { method Intersect (line 125) | func (c *trieCollection) Intersect(l int, r int) { method Merge (line 129) | func (c *trieCollection) Merge(l int, r int) { method Average (line 133) | func (c *trieCollection) Average(l int, r int) { method Clear (line 137) | func (c *trieCollection) Clear(id int) { method Assign (line 140) | func (c *trieCollection) Assign(l, r int) { function average (line 144) | func average(x any, y any) any { type builtinCollection (line 153) | type builtinCollection method Elements (line 155) | func (c builtinCollection) Elements() []map[uint64]any { method Lookup (line 159) | func (c builtinCollection) Lookup(id int, k uint64) (any, bool) { method DeepEqual (line 163) | func (c builtinCollection) DeepEqual(l, r int) bool { method Insert (line 167) | func (c builtinCollection) Insert(id int, k uint64, v any) { method Update (line 173) | func (c builtinCollection) Update(id int, k uint64, v any) { method Remove (line 177) | func (c builtinCollection) Remove(id int, k uint64) { method Intersect (line 181) | func (c builtinCollection) Intersect(l int, r int) { method Merge (line 191) | func (c builtinCollection) Merge(l int, r int) { method Average (line 198) | func (c builtinCollection) Average(l int, r int) { method Assign (line 215) | func (c builtinCollection) Assign(l, r int) { method Clear (line 221) | func (c builtinCollection) Clear(id int) { function newTriesCollection (line 225) | func newTriesCollection(size int) *trieCollection { function newMapsCollection (line 236) | func newMapsCollection(size int) *builtinCollection { type operation (line 245) | type operation struct method Apply (line 253) | func (op operation) Apply(maps mapCollection) any { function distribution (line 285) | func distribution(dist map[opCode]int) []opCode { type options (line 296) | type options struct function randOperator (line 304) | func randOperator(r *rand.Rand, opts options) operation { function randOperators (line 322) | func randOperators(r *rand.Rand, numops int, opts options) []operation { function TestOperations (line 332) | func TestOperations(t *testing.T) { function run (line 388) | func run(b *testing.B, opts options, seed int64, mk func(int) mapCollect... function BenchmarkTrieStandard (line 415) | func BenchmarkTrieStandard(b *testing.B) { function BenchmarkMapsStandard (line 421) | func BenchmarkMapsStandard(b *testing.B) { function BenchmarkTrieSmallWide (line 445) | func BenchmarkTrieSmallWide(b *testing.B) { function BenchmarkMapsSmallWide (line 451) | func BenchmarkMapsSmallWide(b *testing.B) { FILE: go/callgraph/vta/internal/trie/scope.go type Scope (line 15) | type Scope struct method String (line 26) | func (s Scope) String() string { function newScope (line 21) | func newScope() Scope { FILE: go/callgraph/vta/internal/trie/trie.go type Map (line 44) | type Map struct method Scope (line 49) | func (m Map) Scope() Scope { method Size (line 52) | func (m Map) Size() int { method Lookup (line 58) | func (m Map) Lookup(k uint64) (any, bool) { method String (line 69) | func (m Map) String() string { method Range (line 81) | func (m Map) Range(cb func(uint64, any) bool) bool { method DeepEqual (line 92) | func (m Map) DeepEqual(other Map) bool { function Elems (line 103) | func Elems(m Map) map[uint64]any { type node (line 114) | type node interface type empty (line 135) | type empty struct method nodeImpl (line 168) | func (*empty) nodeImpl() {} method find (line 172) | func (*empty) find(k key) *leaf { return nil } method size (line 190) | func (*empty) size() int { return 0 } method deepEqual (line 194) | func (*empty) deepEqual(m node) bool { method visit (line 218) | func (*empty) visit(cb func(uint64, any) bool) bool { type leaf (line 140) | type leaf struct method nodeImpl (line 169) | func (*leaf) nodeImpl() {} method find (line 173) | func (l *leaf) find(k key) *leaf { method size (line 191) | func (*leaf) size() int { return 1 } method deepEqual (line 198) | func (l *leaf) deepEqual(m node) bool { method visit (line 221) | func (l *leaf) visit(cb func(uint64, any) bool) bool { type branch (line 150) | type branch struct method nodeImpl (line 170) | func (*branch) nodeImpl() {} method find (line 179) | func (br *branch) find(k key) *leaf { method size (line 192) | func (br *branch) size() int { return br.sz } method deepEqual (line 205) | func (br *branch) deepEqual(m node) bool { method visit (line 224) | func (br *branch) visit(cb func(uint64, any) bool) bool { FILE: go/callgraph/vta/internal/trie/trie_test.go function TestScope (line 15) | func TestScope(t *testing.T) { function TestCollision (line 36) | func TestCollision(t *testing.T) { function TestDefault (line 48) | func TestDefault(t *testing.T) { function TestBuilders (line 83) | func TestBuilders(t *testing.T) { function TestEmpty (line 102) | func TestEmpty(t *testing.T) { function TestCreate (line 128) | func TestCreate(t *testing.T) { function TestElems (line 159) | func TestElems(t *testing.T) { function TestRange (line 175) | func TestRange(t *testing.T) { function TestDeepEqual (line 197) | func TestDeepEqual(t *testing.T) { function TestNotDeepEqual (line 211) | func TestNotDeepEqual(t *testing.T) { function TestMerge (line 249) | func TestMerge(t *testing.T) { function TestIntersect (line 363) | func TestIntersect(t *testing.T) { function TestIntersectWith (line 452) | func TestIntersectWith(t *testing.T) { function TestRemove (line 477) | func TestRemove(t *testing.T) { function TestRescope (line 508) | func TestRescope(t *testing.T) { function TestSharing (line 527) | func TestSharing(t *testing.T) { FILE: go/callgraph/vta/propagation.go function scc (line 25) | func scc(g *vtaGraph) (sccs [][]idx, idxToSccID []int) { function slicesLastIndex (line 85) | func slicesLastIndex[S ~[]E, E comparable](s S, v E) int { type propType (line 100) | type propType struct type propTypeMap (line 107) | type propTypeMap method propTypes (line 111) | func (ptm propTypeMap) propTypes(n node) iter.Seq[propType] { function propagate (line 126) | func propagate(graph *vtaGraph, canon *typeutil.Map) propTypeMap { function hasInitialTypes (line 183) | func hasInitialTypes(n node) bool { function getPropType (line 195) | func getPropType(node node, canon *typeutil.Map) propType { FILE: go/callgraph/vta/propagation_test.go type val (line 28) | type val struct method String (line 33) | func (v val) String() string { method Name (line 37) | func (v val) Name() string { method Type (line 41) | func (v val) Type() types.Type { method Parent (line 45) | func (v val) Parent() *ssa.Function { method Referrers (line 49) | func (v val) Referrers() *[]ssa.Instruction { method Pos (line 53) | func (v val) Pos() token.Pos { function newLocal (line 59) | func newLocal(name string, t types.Type) local { function sccString (line 66) | func sccString(sccs [][]idx, g *vtaGraph) []string { function nodeToTypeString (line 84) | func nodeToTypeString(pMap propTypeMap) map[string]string { function sccEqual (line 111) | func sccEqual(sccs1 []string, sccs2 []string) bool { function isRevTopSorted (line 124) | func isRevTopSorted(g *vtaGraph, idxToScc []int) bool { function sccMapsConsistent (line 135) | func sccMapsConsistent(sccs [][]idx, idxToSccID []int) bool { function testSuite (line 188) | func testSuite(t *testing.T) map[string]*vtaGraph { function TestSCC (line 267) | func TestSCC(t *testing.T) { function TestPropagation (line 301) | func TestPropagation(t *testing.T) { function testLastIndex (line 368) | func testLastIndex[S ~[]E, E comparable](t *testing.T, s S, e E, want in... function TestLastIndex (line 374) | func TestLastIndex(t *testing.T) { FILE: go/callgraph/vta/testdata/src/arrays_generics.go type F (line 9) | type F function set (line 11) | func set[T [1]F | [2]F](arr *T, i int) { function bar (line 17) | func bar() { function Foo (line 21) | func Foo() { FILE: go/callgraph/vta/testdata/src/callgraph_collections.go type I (line 9) | type I interface type A (line 13) | type A struct method Foo (line 15) | func (a A) Foo() {} type B (line 17) | type B struct method Foo (line 19) | func (b B) Foo() {} function Do (line 21) | func Do(a A, b B) map[I]I { function Baz (line 28) | func Baz(a A, b B) { FILE: go/callgraph/vta/testdata/src/callgraph_comma_maps.go type I (line 9) | type I interface function init (line 16) | func init() { function register (line 21) | func register(i I) { type A (line 25) | type A struct method Foo (line 27) | func (a A) Foo() {} method Name (line 28) | func (a A) Name() string { return "a" } type B (line 30) | type B struct method Foo (line 32) | func (b B) Foo() {} method Name (line 33) | func (b B) Name() string { return "b" } function Do (line 35) | func Do(n string) { function Go (line 43) | func Go(n string) { function To (line 51) | func To(n string) { function Ro (line 61) | func Ro(n string) { FILE: go/callgraph/vta/testdata/src/callgraph_field_funcs.go type WrappedFunc (line 9) | type WrappedFunc struct function callWrappedFunc (line 13) | func callWrappedFunc(f WrappedFunc) { function foo (line 17) | func foo() complex64 { function Foo (line 22) | func Foo(b bool) { FILE: go/callgraph/vta/testdata/src/callgraph_fields.go type I (line 9) | type I interface type A (line 13) | type A struct method Do (line 17) | func (a *A) Do() { type B (line 21) | type B struct method Foo (line 23) | func (b B) Foo() {} function NewA (line 25) | func NewA(b B) *A { function Baz (line 29) | func Baz(b B) { FILE: go/callgraph/vta/testdata/src/callgraph_generics.go function instantiated (line 9) | func instantiated[X any](x *X) int { type I (line 14) | type I interface function interfaceInstantiated (line 18) | func interfaceInstantiated[X I](x X) { type A (line 22) | type A struct method Bar (line 24) | func (a A) Bar() {} type B (line 26) | type B struct method Bar (line 28) | func (b B) Bar() {} function Foo (line 30) | func Foo(a A, b B) { FILE: go/callgraph/vta/testdata/src/callgraph_ho.go function Foo (line 9) | func Foo() {} function Do (line 11) | func Do(b bool) func() { function Finish (line 18) | func Finish(h func()) { function Baz (line 22) | func Baz(b bool) { FILE: go/callgraph/vta/testdata/src/callgraph_interfaces.go type I (line 9) | type I interface type A (line 13) | type A struct method Foo (line 15) | func (a A) Foo() {} type B (line 17) | type B struct method Foo (line 19) | func (b B) Foo() {} type C (line 21) | type C struct method Foo (line 23) | func (c C) Foo() {} function NewB (line 25) | func NewB() B { function Do (line 29) | func Do(b bool) I { function Baz (line 40) | func Baz(b bool) { FILE: go/callgraph/vta/testdata/src/callgraph_issue_57756.go type H (line 13) | type H method Do (line 15) | func (h H) Do() { type I (line 19) | type I interface function Bar (line 23) | func Bar() I { function For (line 27) | func For(g G) { type G (line 35) | type G method Goo (line 37) | func (g G) Goo() { FILE: go/callgraph/vta/testdata/src/callgraph_nested_ptr.go type I (line 9) | type I interface type A (line 13) | type A struct method Foo (line 15) | func (a A) Foo() {} type B (line 17) | type B struct method Foo (line 19) | func (b B) Foo() {} function Do (line 21) | func Do(i **I) { function Bar (line 25) | func Bar(i **I) { function Baz (line 29) | func Baz(i **I) { FILE: go/callgraph/vta/testdata/src/callgraph_pointers.go type I (line 9) | type I interface type A (line 13) | type A struct method Foo (line 17) | func (a A) Foo() {} type B (line 19) | type B struct method Foo (line 21) | func (b B) Foo() {} function Do (line 23) | func Do(a A, i I, c bool) *I { function Baz (line 33) | func Baz(a A, b B, c bool) { FILE: go/callgraph/vta/testdata/src/callgraph_range_over_func.go type I (line 9) | type I interface type A (line 13) | type A struct method Foo (line 15) | func (a A) Foo() {} type B (line 17) | type B struct method Foo (line 19) | func (b B) Foo() {} type C (line 21) | type C struct method Foo (line 23) | func (c C) Foo() {} type iset (line 25) | type iset method All (line 27) | func (i iset) All() func(func(I) bool) { function X (line 39) | func X() { function Y (line 45) | func Y() I { function Bar (line 52) | func Bar() { FILE: go/callgraph/vta/testdata/src/callgraph_recursive_types.go type I (line 9) | type I interface type A (line 13) | type A struct method Foo (line 18) | func (a *A) Foo() I { type B (line 22) | type B type C (line 24) | type C type D (line 25) | type D function Bar (line 27) | func Bar(a *A, b *B, c *C, d *D) { function Baz (line 36) | func Baz(i I) { function sink (line 40) | func sink(i interface{}) { FILE: go/callgraph/vta/testdata/src/callgraph_static.go type A (line 9) | type A struct method foo (line 11) | func (a A) foo() {} function Bar (line 13) | func Bar() {} function Baz (line 15) | func Baz(a A) { FILE: go/callgraph/vta/testdata/src/callgraph_type_aliases.go type I (line 12) | type I interface type A (line 16) | type A struct method Foo (line 18) | func (a A) Foo() {} type B (line 20) | type B struct method Foo (line 22) | func (b B) Foo() {} type C (line 24) | type C struct method Foo (line 26) | func (c C) Foo() {} function NewY (line 33) | func NewY() Y { function Do (line 37) | func Do(b bool) J { function Baz (line 48) | func Baz(b bool) { FILE: go/callgraph/vta/testdata/src/channels.go function foo (line 9) | func foo(c chan interface{}, j int) { function Baz (line 13) | func Baz(i int) { FILE: go/callgraph/vta/testdata/src/closures.go type I (line 9) | type I interface function Do (line 13) | func Do(i I) { i.Foo() } function Baz (line 15) | func Baz(b bool, h func(I)) { FILE: go/callgraph/vta/testdata/src/d/d.go function D (line 3) | func D(i int) int { type Data (line 7) | type Data struct method Do (line 11) | func (d Data) Do() int { FILE: go/callgraph/vta/testdata/src/dynamic_calls.go type I (line 9) | type I interface type A (line 13) | type A struct method foo (line 15) | func (a A) foo(ai I) {} type B (line 17) | type B struct method foo (line 19) | func (b B) foo(bi I) {} function doWork (line 21) | func doWork() I { return nil } function close (line 22) | func close() I { return nil } function Baz (line 24) | func Baz(x B, h func() I, i I) I { FILE: go/callgraph/vta/testdata/src/fields.go type I (line 9) | type I interface type J (line 13) | type J interface type A (line 18) | type A struct method Foo (line 20) | func (a A) Foo() {} method Bar (line 21) | func (a A) Bar() {} type B (line 23) | type B struct function Do (line 28) | func Do() B { function Baz (line 33) | func Baz(b B) { FILE: go/callgraph/vta/testdata/src/function_alias.go type Doer (line 9) | type Doer type A (line 11) | type A struct function Baz (line 16) | func Baz(f func()) { FILE: go/callgraph/vta/testdata/src/generic_channels.go type I1 (line 9) | type I1 interface type I2 (line 10) | type I2 interface type I3 (line 11) | type I3 interface function Foo (line 13) | func Foo[C interface{ ~chan I1 | ~chan<- I1 }](c C, j int) { function Bar (line 17) | func Bar[C interface{ ~chan I2 | ~<-chan I2 }](c C) { function Baz (line 22) | func Baz[C interface{ ~chan I3 | ~<-chan I3 }](c C) { FILE: go/callgraph/vta/testdata/src/go117.go type J (line 9) | type J interface type B (line 14) | type B struct method Foo (line 18) | func (b B) Foo() {} method Bar (line 19) | func (b B) Bar() {} function Wobble (line 21) | func Wobble(b *B, s []J) { FILE: go/callgraph/vta/testdata/src/issue63146.go type embedded (line 3) | type embedded struct type S (line 5) | type S struct method M (line 7) | func (_ S) M() {} type C (line 9) | type C interface function G (line 14) | func G[T C]() { function F (line 19) | func F() { FILE: go/callgraph/vta/testdata/src/maps.go type I (line 9) | type I interface type J (line 13) | type J interface type B (line 18) | type B struct method Foo (line 22) | func (b B) Foo() string { return b.p } method Bar (line 23) | func (b B) Bar() {} function Baz (line 25) | func Baz(m map[I]I, b1, b2 B, n map[string]*J) *J { FILE: go/callgraph/vta/testdata/src/node_uniqueness.go type I (line 14) | type I interface type A (line 18) | type A struct method Foo (line 20) | func (a A) Foo() {} function Baz (line 22) | func Baz(a *A) (I, I, interface{}, interface{}) { FILE: go/callgraph/vta/testdata/src/panic.go type I (line 9) | type I interface type A (line 13) | type A struct method foo (line 15) | func (a A) foo() {} function recover1 (line 17) | func recover1() { function recover2 (line 24) | func recover2() { function Baz (line 28) | func Baz(a A) { FILE: go/callgraph/vta/testdata/src/phi.go type A (line 9) | type A struct method foo (line 14) | func (a A) foo() {} type B (line 10) | type B struct method foo (line 15) | func (b B) foo() {} type I (line 12) | type I interface function Baz (line 17) | func Baz(b B, c bool) { FILE: go/callgraph/vta/testdata/src/phi_alias.go type I (line 9) | type I interface type B (line 13) | type B struct method Foo (line 17) | func (b B) Foo() {} function Baz (line 19) | func Baz(i, j *I, b, c bool) { FILE: go/callgraph/vta/testdata/src/ranges.go type I (line 9) | type I interface type B (line 13) | type B struct method Foo (line 17) | func (b B) Foo() string { return b.p } function Baz (line 19) | func Baz(m map[I]*I) { FILE: go/callgraph/vta/testdata/src/returns.go type I (line 9) | type I interface function Bar (line 11) | func Bar(ii I) (I, I) { function Foo (line 15) | func Foo(iii I) (I, I) { function Do (line 19) | func Do(j I) *I { function Baz (line 23) | func Baz(i I) *I { FILE: go/callgraph/vta/testdata/src/select.go type I (line 9) | type I interface type J (line 13) | type J interface type B (line 17) | type B struct method Foo (line 21) | func (b B) Foo() string { return b.p } function Baz (line 23) | func Baz(b1, b2 B, c1 chan I, c2 chan J) { FILE: go/callgraph/vta/testdata/src/simple.go type X (line 9) | type X struct function main (line 14) | func main() { function foo (line 18) | func foo() (r int) { return gl } FILE: go/callgraph/vta/testdata/src/static_calls.go type I (line 9) | type I interface function foo (line 11) | func foo(i I) (I, I) { function doWork (line 15) | func doWork(ii I) {} function close (line 17) | func close(iii I) {} function Baz (line 19) | func Baz(inp I) { FILE: go/callgraph/vta/testdata/src/store.go type A (line 14) | type A struct method foo (line 18) | func (a A) foo() {} type I (line 16) | type I interface function main (line 20) | func main() { FILE: go/callgraph/vta/testdata/src/store_load_alias.go type A (line 9) | type A struct method foo (line 11) | func (a A) foo() {} type I (line 13) | type I interface function Baz (line 15) | func Baz(i I) { FILE: go/callgraph/vta/testdata/src/stores_arrays.go type I (line 9) | type I interface type J (line 13) | type J interface type B (line 18) | type B struct method Foo (line 22) | func (b B) Foo() {} method Bar (line 23) | func (b B) Bar() {} function Baz (line 25) | func Baz(b *B, S []*I, s []J) { FILE: go/callgraph/vta/testdata/src/t/t.go function t (line 5) | func t(i int) int { FILE: go/callgraph/vta/testdata/src/type_assertions.go type I (line 13) | type I interface type J (line 17) | type J interface type A (line 22) | type A struct method Foo (line 26) | func (a A) Foo() {} method Bar (line 27) | func (a A) Bar() {} function Baz (line 29) | func Baz(i I) { FILE: go/callgraph/vta/testdata/src/type_conversions.go type Y (line 9) | type Y interface type Z (line 14) | type Z type W (line 16) | type W interface type A (line 20) | type A struct method Foo (line 22) | func (a A) Foo() { print("A:Foo") } method Bar (line 23) | func (a A) Bar(f float64) { print(uint(f)) } type B (line 25) | type B struct method Foo (line 27) | func (b B) Foo() { print("B:Foo") } method Bar (line 28) | func (b B) Bar(f float64) { print(uint(f) + 1) } type X (line 30) | type X interface function Baz (line 34) | func Baz(y Y) { FILE: go/callgraph/vta/utils.go function canAlias (line 15) | func canAlias(n1, n2 node) bool { function isReferenceNode (line 19) | func isReferenceNode(n node) bool { function hasInFlow (line 43) | func hasInFlow(n node) bool { function isFunction (line 63) | func isFunction(t types.Type) bool { function interfaceUnderPtr (line 71) | func interfaceUnderPtr(t types.Type) types.Type { function functionUnderPtr (line 97) | func functionUnderPtr(t types.Type) types.Type { function sliceArrayElem (line 123) | func sliceArrayElem(t types.Type) types.Type { function siteCallees (line 152) | func siteCallees(c ssa.CallInstruction, callees calleesFunc) iter.Seq[*s... function canHaveMethods (line 162) | func canHaveMethods(t types.Type) bool { function calls (line 178) | func calls(f *ssa.Function) []ssa.CallInstruction { FILE: go/callgraph/vta/vta.go function CallGraph (line 76) | func CallGraph(funcs map[*ssa.Function]bool, initial *callgraph.Graph) *... type constructor (line 88) | type constructor struct method construct (line 94) | func (c *constructor) construct(funcs map[*ssa.Function]bool) *callgra... method constrct (line 104) | func (c *constructor) constrct(g *callgraph.Graph, f *ssa.Function) { method resolves (line 115) | func (c *constructor) resolves(call ssa.CallInstruction) []*ssa.Functi... function resolve (line 139) | func resolve(c ssa.CallInstruction, types propTypeMap, cache methodCache... function propFunc (line 152) | func propFunc(p propType, c ssa.CallInstruction, cache methodCache) []*s... type methodCache (line 169) | type methodCache method methods (line 174) | func (mc methodCache) methods(t types.Type, name string, prog *ssa.Pro... FILE: go/callgraph/vta/vta_test.go function TestVTACallGraph (line 21) | func TestVTACallGraph(t *testing.T) { function TestVTAProgVsFuncSet (line 77) | func TestVTAProgVsFuncSet(t *testing.T) { function TestVTAPanicMissingDefinitions (line 118) | func TestVTAPanicMissingDefinitions(t *testing.T) { function TestVTACallGraphGenerics (line 146) | func TestVTACallGraphGenerics(t *testing.T) { function TestVTACallGraphGo117 (line 173) | func TestVTACallGraphGo117(t *testing.T) { FILE: go/cfg/builder.go type builder (line 15) | type builder struct method stmt (line 23) | func (b *builder) stmt(_s ast.Stmt) { method stmtList (line 127) | func (b *builder) stmtList(list []ast.Stmt) { method branchStmt (line 133) | func (b *builder) branchStmt(s *ast.BranchStmt) { method switchStmt (line 175) | func (b *builder) switchStmt(s *ast.SwitchStmt, label *lblock) { method typeSwitchStmt (line 249) | func (b *builder) typeSwitchStmt(s *ast.TypeSwitchStmt, label *lblock) { method typeCaseBody (line 291) | func (b *builder) typeCaseBody(cc *ast.CaseClause, done *Block) { method selectStmt (line 301) | func (b *builder) selectStmt(s *ast.SelectStmt, label *lblock) { method forStmt (line 353) | func (b *builder) forStmt(s *ast.ForStmt, label *lblock) { method rangeStmt (line 406) | func (b *builder) rangeStmt(s *ast.RangeStmt, label *lblock) { method labeledBlock (line 471) | func (b *builder) labeledBlock(label *ast.Ident, stmt *ast.LabeledStmt... method newBlock (line 492) | func (b *builder) newBlock(kind BlockKind, stmt ast.Stmt) *Block { method add (line 503) | func (b *builder) add(n ast.Node) { method jump (line 509) | func (b *builder) jump(target *Block) { method ifelse (line 516) | func (b *builder) ifelse(t, f *Block) { type targets (line 453) | type targets struct type lblock (line 463) | type lblock struct FILE: go/cfg/cfg.go type CFG (line 55) | type CFG struct method NoReturn (line 61) | func (cfg *CFG) NoReturn() bool { return cfg.noreturn } method Format (line 221) | func (g *CFG) Format(fset *token.FileSet) string { method Dot (line 246) | func (g *CFG) Dot(fset *token.FileSet) string { type Block (line 73) | type Block struct method String (line 188) | func (b *Block) String() string { method comment (line 192) | func (b *Block) comment(fset *token.FileSet) string { method Return (line 213) | func (b *Block) Return() (ret *ast.ReturnStmt) { type BlockKind (line 87) | type BlockKind method String (line 113) | func (kind BlockKind) String() string { constant KindInvalid (line 90) | KindInvalid BlockKind = iota constant KindUnreachable (line 92) | KindUnreachable constant KindBody (line 93) | KindBody constant KindForBody (line 94) | KindForBody constant KindForDone (line 95) | KindForDone constant KindForLoop (line 96) | KindForLoop constant KindForPost (line 97) | KindForPost constant KindIfDone (line 98) | KindIfDone constant KindIfElse (line 99) | KindIfElse constant KindIfThen (line 100) | KindIfThen constant KindLabel (line 101) | KindLabel constant KindRangeBody (line 102) | KindRangeBody constant KindRangeDone (line 103) | KindRangeDone constant KindRangeLoop (line 104) | KindRangeLoop constant KindSelectCaseBody (line 105) | KindSelectCaseBody constant KindSelectDone (line 106) | KindSelectDone constant KindSelectAfterCase (line 107) | KindSelectAfterCase constant KindSwitchCaseBody (line 108) | KindSwitchCaseBody constant KindSwitchDone (line 109) | KindSwitchDone constant KindSwitchNextCase (line 110) | KindSwitchNextCase function New (line 146) | func New(body *ast.BlockStmt, mayReturn func(*ast.CallExpr) bool) *CFG { function formatNode (line 268) | func formatNode(fset *token.FileSet, n ast.Node) string { FILE: go/cfg/cfg_test.go constant src (line 21) | src = `package main function TestDeadCode (line 132) | func TestDeadCode(t *testing.T) { function TestSmoke (line 170) | func TestSmoke(t *testing.T) { function mayReturn (line 219) | func mayReturn(call *ast.CallExpr) bool { function formatNode (line 229) | func formatNode(fset *token.FileSet, n ast.Node) string { FILE: go/cfg/main.go function main (line 29) | func main() { function mayReturn (line 59) | func mayReturn(call *ast.CallExpr) bool { FILE: go/gccgoexportdata/gccgoexportdata.go function CompilerInfo (line 34) | func CompilerInfo(gccgo string, args ...string) (version, triple string,... function NewReader (line 47) | func NewReader(r io.Reader) (io.Reader, error) { function firstSection (line 78) | func firstSection(a []byte) ([]byte, error) { function Read (line 126) | func Read(in io.Reader, _ *token.FileSet, imports map[string]*types.Pack... FILE: go/gccgoexportdata/gccgoexportdata_test.go function Test (line 32) | func Test(t *testing.T) { FILE: go/gcexportdata/example_test.go function ExampleRead (line 26) | func ExampleRead() { function ExampleNewImporter (line 83) | func ExampleNewImporter() { function slashify (line 129) | func slashify(posn token.Position) token.Position { FILE: go/gcexportdata/gcexportdata.go function Find (line 89) | func Find(importPath, srcDir string) (filename, path string) { function NewReader (line 107) | func NewReader(r io.Reader) (io.Reader, error) { function readAll (line 127) | func readAll(r io.Reader) ([]byte, error) { function Read (line 157) | func Read(in io.Reader, fset *token.FileSet, imports map[string]*types.P... function Write (line 205) | func Write(out io.Writer, fset *token.FileSet, pkg *types.Package) error { function ReadBundle (line 222) | func ReadBundle(in io.Reader, fset *token.FileSet, imports map[string]*t... function WriteBundle (line 234) | func WriteBundle(out io.Writer, fset *token.FileSet, pkgs []*types.Packa... FILE: go/gcexportdata/importer.go function NewImporter (line 28) | func NewImporter(fset *token.FileSet, imports map[string]*types.Package)... type importer (line 32) | type importer struct method Import (line 37) | func (imp importer) Import(importPath string) (*types.Package, error) { method ImportFrom (line 41) | func (imp importer) ImportFrom(importPath, srcDir string, mode types.I... FILE: go/gcexportdata/main.go function main (line 25) | func main() { FILE: go/internal/cgo/cgo.go function ProcessFiles (line 70) | func ProcessFiles(bp *build.Package, fset *token.FileSet, DisplayPath fu... function Run (line 118) | func Run(bp *build.Package, pkgdir, tmpdir string, useabs bool) (files, ... function cflags (line 181) | func cflags(p *build.Package, def bool) (cppflags, cflags, cxxflags, ldf... function envList (line 196) | func envList(key, def string) []string { function stringList (line 206) | func stringList(args ...any) []string { FILE: go/internal/cgo/cgo_pkgconfig.go function pkgConfig (line 16) | func pkgConfig(mode string, pkgs []string) (flags []string, err error) { function pkgConfigFlags (line 37) | func pkgConfigFlags(p *build.Package) (cflags []string, err error) { FILE: go/internal/gccgoimporter/ar.go constant armag (line 22) | armag = "!\n" constant armagt (line 23) | armagt = "!\n" constant armagb (line 24) | armagb = "\n" constant arNameOff (line 29) | arNameOff = 0 constant arNameSize (line 30) | arNameSize = 16 constant arDateOff (line 31) | arDateOff = arNameOff + arNameSize constant arDateSize (line 32) | arDateSize = 12 constant arUIDOff (line 33) | arUIDOff = arDateOff + arDateSize constant arUIDSize (line 34) | arUIDSize = 6 constant arGIDOff (line 35) | arGIDOff = arUIDOff + arUIDSize constant arGIDSize (line 36) | arGIDSize = 6 constant arModeOff (line 37) | arModeOff = arGIDOff + arGIDSize constant arModeSize (line 38) | arModeSize = 8 constant arSizeOff (line 39) | arSizeOff = arModeOff + arModeSize constant arSizeSize (line 40) | arSizeSize = 10 constant arFmagOff (line 41) | arFmagOff = arSizeOff + arSizeSize constant arFmagSize (line 42) | arFmagSize = 2 constant arHdrSize (line 44) | arHdrSize = arFmagOff + arFmagSize constant arfmag (line 48) | arfmag = "`\n" function arExportData (line 55) | func arExportData(archive io.ReadSeeker) (io.ReadSeeker, error) { function standardArExportData (line 78) | func standardArExportData(archive io.ReadSeeker) (io.ReadSeeker, error) { function elfFromAr (line 120) | func elfFromAr(member *io.SectionReader) (io.ReadSeeker, error) { function readerAtFromSeeker (line 135) | func readerAtFromSeeker(rs io.ReadSeeker) io.ReaderAt { type seekerReadAt (line 142) | type seekerReadAt struct method ReadAt (line 146) | func (sra seekerReadAt) ReadAt(p []byte, off int64) (int, error) { FILE: go/internal/gccgoimporter/backdoor.go function Parse (line 16) | func Parse(in io.Reader, imports map[string]*types.Package, path string)... FILE: go/internal/gccgoimporter/gccgoinstallation.go type GccgoInstallation (line 20) | type GccgoInstallation struct method InitFromDriver (line 33) | func (inst *GccgoInstallation) InitFromDriver(gccgoPath string, args .... method SearchPaths (line 74) | func (inst *GccgoInstallation) SearchPaths() (paths []string) { method GetImporter (line 98) | func (inst *GccgoInstallation) GetImporter(incpaths []string, initmap ... FILE: go/internal/gccgoimporter/gccgoinstallation_test.go function TestInstallationImporter (line 154) | func TestInstallationImporter(t *testing.T) { FILE: go/internal/gccgoimporter/importer.go type PackageInit (line 22) | type PackageInit struct type InitData (line 29) | type InitData struct function findExportFile (line 43) | func findExportFile(searchpaths []string, pkgpath string) (string, error) { constant gccgov1Magic (line 66) | gccgov1Magic = "v1;\n" constant gccgov2Magic (line 67) | gccgov2Magic = "v2;\n" constant gccgov3Magic (line 68) | gccgov3Magic = "v3;\n" constant goimporterMagic (line 69) | goimporterMagic = "\n$$ " constant archiveMagic (line 70) | archiveMagic = "!> x } function main (line 12) | func main() { function wantPanic (line 36) | func wantPanic(fn func(), s string) { FILE: go/ssa/interp/testdata/coverage.go function init (line 15) | func init() { type empty (line 22) | type empty interface type I (line 24) | type I interface type T (line 28) | type T struct method f (line 30) | func (t T) f() int { return t.z } function use (line 32) | func use(interface{}) {} function init (line 38) | func init() { function init (line 44) | func init() { function fib (line 51) | func fib(x int) int { function fibgen (line 58) | func fibgen(ch chan int) { function init (line 66) | func init() { function init (line 82) | func init() { function main (line 116) | func main() { type mybool (line 245) | type mybool method f (line 247) | func (mybool) f() {} function init (line 249) | func init() { function init (line 262) | func init() { function init (line 269) | func init() { function init (line 288) | func init() { function init (line 300) | func init() { function init (line 316) | func init() { function init (line 324) | func init() { type VT (line 340) | type VT method f (line 344) | func (VT) f(x int, y ...string) { type VS (line 354) | type VS struct type VI (line 358) | type VI interface function init (line 362) | func init() { function multipleLabels (line 380) | func multipleLabels() { function init (line 402) | func init() { function init (line 406) | func init() { function init (line 416) | func init() { function init (line 436) | func init() { function init (line 451) | func init() { function init (line 464) | func init() { function init (line 485) | func init() { function init (line 504) | func init() { function init (line 523) | func init() { FILE: go/ssa/interp/testdata/deepequal.go function assert (line 9) | func assert(cond bool) { type X (line 15) | type X type Y (line 16) | type Y struct function init (line 32) | func init() { function main (line 37) | func main() { FILE: go/ssa/interp/testdata/defer.go function deferMutatesResults (line 7) | func deferMutatesResults(noArgReturn bool) (a, b int) { function init (line 21) | func init() { function init (line 36) | func init() { function init (line 44) | func init() { function main (line 52) | func main() { FILE: go/ssa/interp/testdata/fieldprom.go type A (line 5) | type A struct type B (line 10) | type B struct type C (line 15) | type C struct type D (line 20) | type D struct function assert (line 25) | func assert(cond bool) { function f1 (line 31) | func f1(c C) { function f2 (line 48) | func f2(c *C) { function f3 (line 65) | func f3(d D) { function f4 (line 82) | func f4(d *D) { function main (line 99) | func main() { FILE: go/ssa/interp/testdata/fixedbugs/issue52342.go function main (line 3) | func main() { FILE: go/ssa/interp/testdata/fixedbugs/issue52835.go type I (line 5) | type I interface type A (line 9) | type A struct method Foo (line 11) | func (a A) Foo() { function lambda (line 15) | func lambda[X I]() func() func() { function main (line 22) | func main() { FILE: go/ssa/interp/testdata/fixedbugs/issue55086.go function a (line 7) | func a() (r string) { function b (line 19) | func b() (r string) { function c (line 31) | func c() (r string) { function d (line 43) | func d() (r string) { function e (line 56) | func e() (r string) { function f (line 69) | func f() (r string) { function g (line 81) | func g() (r string) { function h (line 93) | func h() (r string) { function main (line 113) | func main() { FILE: go/ssa/interp/testdata/fixedbugs/issue55115.go function main (line 9) | func main() { FILE: go/ssa/interp/testdata/fixedbugs/issue66783.go function Fn (line 5) | func Fn[N any]() (any, any, any) { function main (line 19) | func main() { FILE: go/ssa/interp/testdata/fixedbugs/issue69298.go type Seq (line 11) | type Seq function AppendSeq (line 13) | func AppendSeq[Slice ~[]E, E any](s Slice, seq Seq[E]) Slice { function main (line 20) | func main() { FILE: go/ssa/interp/testdata/fixedbugs/issue69929.go function main (line 42) | func main() { type node (line 49) | type node struct function insert (line 51) | func insert() { function print (line 62) | func print(order int, ptr *node) { FILE: go/ssa/interp/testdata/forvarlifetime_go122.go function main (line 11) | func main() { function test_init (line 36) | func test_init() { function bound (line 47) | func bound() { function manyvars (line 64) | func manyvars() { function nocond (line 76) | func nocond() { function nopost (line 100) | func nopost() { function address_sequences (line 119) | func address_sequences() { function post_escapes (line 154) | func post_escapes() { function for_complicated_esc_address (line 173) | func for_complicated_esc_address() { function experiment (line 185) | func experiment(x int) (int, int) { function private (line 214) | func private(x int) (int, int) { function shared (line 247) | func shared(x int) (int, int) { function for_esc_address (line 276) | func for_esc_address() { function for_esc_closure (line 314) | func for_esc_closure() { type I (line 358) | type I method method (line 360) | func (x *I) method() int { function for_esc_method (line 364) | func for_esc_method() { FILE: go/ssa/interp/testdata/forvarlifetime_old.go function main (line 15) | func main() { function test_init (line 40) | func test_init() { function bound (line 58) | func bound() { function manyvars (line 75) | func manyvars() { function nocond (line 87) | func nocond() { function nopost (line 111) | func nopost() { function address_sequences (line 130) | func address_sequences() { function post_escapes (line 165) | func post_escapes() { function for_complicated_esc_address (line 184) | func for_complicated_esc_address() { function experiment (line 196) | func experiment(x int) (int, int) { function private (line 225) | func private(x int) (int, int) { function shared (line 258) | func shared(x int) (int, int) { function for_esc_address (line 287) | func for_esc_address() { function for_esc_closure (line 325) | func for_esc_closure() { type I (line 368) | type I method method (line 370) | func (x *I) method() int { function for_esc_method (line 374) | func for_esc_method() { FILE: go/ssa/interp/testdata/ifaceconv.go type I0 (line 5) | type I0 interface type I1 (line 7) | type I1 interface type I2 (line 10) | type I2 interface type C0 (line 15) | type C0 struct type C1 (line 16) | type C1 struct method f (line 18) | func (C1) f() {} type C2 (line 20) | type C2 struct method f (line 22) | func (C2) f() {} method g (line 23) | func (C2) g() {} function main (line 25) | func main() { FILE: go/ssa/interp/testdata/ifaceprom.go type I (line 7) | type I interface type S (line 12) | type S struct type impl (line 16) | type impl struct method one (line 18) | func (impl) one() int { method two (line 22) | func (impl) two() string { function main (line 26) | func main() { FILE: go/ssa/interp/testdata/initorder.go function next (line 9) | func next() int { function next2 (line 15) | func next2() (x int, y int) { function makeOrder (line 21) | func makeOrder() int { function main (line 26) | func main() { function create (line 58) | func create(x int, name string) int { function init (line 67) | func init() { FILE: go/ssa/interp/testdata/methprom.go type A (line 5) | type A struct method x (line 7) | func (a A) x() { method y (line 12) | func (a *A) y() *A { type B (line 16) | type B struct method p (line 18) | func (b B) p() { method q (line 23) | func (b *B) q() { type I (line 29) | type I interface type impl (line 33) | type impl struct method f (line 35) | func (i impl) f() { type C (line 41) | type C struct function assert (line 47) | func assert(cond bool) { function addr (line 59) | func addr() *C { function value (line 63) | func value() C { function main (line 67) | func main() { FILE: go/ssa/interp/testdata/minmax.go function main (line 12) | func main() { function errorf (line 20) | func errorf(format string, args ...any) { panic(fmt.Sprintf(format, args... function fatalf (line 21) | func fatalf(format string, args ...any) { panic(fmt.Sprintf(format, args... function eq (line 46) | func eq(x, y float64) bool { function TestMinFloat (line 50) | func TestMinFloat() { function TestMaxFloat (line 69) | func TestMaxFloat() { function testMinMax (line 92) | func testMinMax[T int | uint8 | string](vals ...T) { function TestMinMaxInt (line 116) | func TestMinMaxInt() { testMinMax[int](-7, 0, 9) } function TestMinMaxUint8 (line 117) | func TestMinMaxUint8() { testMinMax[uint8](0, 1, 2, 4, 7) } function TestMinMaxString (line 118) | func TestMinMaxString() { testMinMax[string]("a", "b", "c") } FILE: go/ssa/interp/testdata/mrvchain.go function assert (line 6) | func assert(actual, expected int) { function g (line 12) | func g() (int, int) { function g2 (line 16) | func g2() (float64, float64) { function f1v (line 20) | func f1v(x int, v ...int) { function f2 (line 25) | func f2(x, y int) { function f2v (line 30) | func f2v(x, y int, v ...int) { function complexArgs (line 36) | func complexArgs() (float64, float64) { function appendArgs (line 40) | func appendArgs() ([]string, string) { function h (line 44) | func h() (i interface{}, ok bool) { function h2 (line 50) | func h2() (i interface{}, ok bool) { function main (line 57) | func main() { FILE: go/ssa/interp/testdata/newexpr_go126.go function main (line 9) | func main() { FILE: go/ssa/interp/testdata/range.go function init (line 8) | func init() { function init (line 42) | func init() { function main (line 54) | func main() { FILE: go/ssa/interp/testdata/rangefunc.go function main (line 14) | func main() { type testingT (line 57) | type testingT method Log (line 59) | func (t testingT) Log(args ...any) { method Error (line 64) | func (t testingT) Error(args ...any) { function slicesEqual (line 70) | func slicesEqual[S ~[]E, E comparable](s1, s2 S) bool { type Seq (line 82) | type Seq type Seq2 (line 83) | type Seq2 function OfSliceIndex (line 87) | func OfSliceIndex[T any, S ~[]T](s S) Seq2[int, T] { function BadOfSliceIndex (line 100) | func BadOfSliceIndex[T any, S ~[]T](s S) Seq2[int, T] { function VeryBadOfSliceIndex (line 112) | func VeryBadOfSliceIndex[T any, S ~[]T](s S) Seq2[int, T] { function SwallowPanicOfSliceIndex (line 127) | func SwallowPanicOfSliceIndex[T any, S ~[]T](s S) Seq2[int, T] { function PanickyOfSliceIndex (line 148) | func PanickyOfSliceIndex[T any, S ~[]T](s S) Seq2[int, T] { function CooperativeBadOfSliceIndex (line 161) | func CooperativeBadOfSliceIndex[T any, S ~[]T](s S, proceed chan any) Se... type TrickyIterator (line 183) | type TrickyIterator struct method iterEcho (line 187) | func (ti *TrickyIterator) iterEcho(s []int) Seq2[int, int] { method iterAll (line 203) | func (ti *TrickyIterator) iterAll(s []int) Seq2[int, int] { method iterOne (line 214) | func (ti *TrickyIterator) iterOne(s []int) Seq2[int, int] { method iterZero (line 223) | func (ti *TrickyIterator) iterZero(s []int) Seq2[int, int] { method fail (line 230) | func (ti *TrickyIterator) fail() { function matchError (line 236) | func matchError(r any, x string) bool { function matchErrorHelper (line 254) | func matchErrorHelper(t testingT, r any, x string) { constant DONE (line 262) | DONE = 0 constant READY (line 263) | READY = 1 constant PANIC (line 264) | PANIC = 2 constant EXHAUSTED (line 265) | EXHAUSTED = 3 constant MISSING_PANIC (line 266) | MISSING_PANIC = 4 type errorString (line 269) | type errorString method Error (line 271) | func (e errorString) Error() string { constant RERR_DONE (line 277) | RERR_DONE = "yield function called after range loop exit" constant RERR_PANIC (line 278) | RERR_PANIC = "range function continued iteration after loop body panic" constant RERR_EXHAUSTED (line 279) | RERR_EXHAUSTED = "yield function called after range loop exit" constant RERR_MISSING (line 280) | RERR_MISSING = "iterator call did not preserve panic" constant CERR_PFX (line 283) | CERR_PFX = "checked rangefunc error: " constant CERR_DONE (line 284) | CERR_DONE = CERR_PFX + "loop iteration after body done" constant CERR_PANIC (line 285) | CERR_PANIC = CERR_PFX + "loop iteration after panic" constant CERR_EXHAUSTED (line 286) | CERR_EXHAUSTED = CERR_PFX + "loop iteration after iterator exit" constant CERR_MISSING (line 287) | CERR_MISSING = CERR_PFX + "loop iterator swallowed panic" function Check (line 304) | func Check[U, V any](forall Seq2[U, V]) Seq2[U, V] { function TestCheck (line 327) | func TestCheck(t testingT) { function TestCooperativeBadOfSliceIndex (line 341) | func TestCooperativeBadOfSliceIndex(t testingT) { function TestCooperativeBadOfSliceIndexCheck (line 360) | func TestCooperativeBadOfSliceIndexCheck(t testingT) { function TestTrickyIterAll (line 380) | func TestTrickyIterAll(t testingT) { function TestTrickyIterOne (line 400) | func TestTrickyIterOne(t testingT) { function TestTrickyIterZero (line 420) | func TestTrickyIterZero(t testingT) { function TestTrickyIterZeroCheck (line 437) | func TestTrickyIterZeroCheck(t testingT) { function TestTrickyIterEcho (line 454) | func TestTrickyIterEcho(t testingT) { function TestTrickyIterEcho2 (line 486) | func TestTrickyIterEcho2(t testingT) { function TestBreak1 (line 514) | func TestBreak1(t testingT) { function TestBreak2 (line 537) | func TestBreak2(t testingT) { function TestContinue (line 561) | func TestContinue(t testingT) { function TestBreak3 (line 586) | func TestBreak3(t testingT) { function TestBreak1BadA (line 622) | func TestBreak1BadA(t testingT) { function TestBreak1BadB (line 648) | func TestBreak1BadB(t testingT) { function TestMultiCont0 (line 674) | func TestMultiCont0(t testingT) { function TestMultiCont1 (line 708) | func TestMultiCont1(t testingT) { function TestMultiCont2 (line 748) | func TestMultiCont2(t testingT) { function TestMultiCont3 (line 788) | func TestMultiCont3(t testingT) { function TestMultiBreak0 (line 828) | func TestMultiBreak0(t testingT) { function TestMultiBreak1 (line 868) | func TestMultiBreak1(t testingT) { function TestMultiBreak2 (line 908) | func TestMultiBreak2(t testingT) { function TestMultiBreak3 (line 948) | func TestMultiBreak3(t testingT) { function TestPanickyIterator1 (line 986) | func TestPanickyIterator1(t testingT) { function TestPanickyIterator1Check (line 1003) | func TestPanickyIterator1Check(t testingT) { function TestPanickyIterator2 (line 1020) | func TestPanickyIterator2(t testingT) { function TestPanickyIterator2Check (line 1047) | func TestPanickyIterator2Check(t testingT) { function TestPanickyIterator3 (line 1074) | func TestPanickyIterator3(t testingT) { function TestPanickyIterator3Check (line 1103) | func TestPanickyIterator3Check(t testingT) { function TestPanickyIterator4 (line 1132) | func TestPanickyIterator4(t testingT) { function TestPanickyIterator4Check (line 1150) | func TestPanickyIterator4Check(t testingT) { function veryBad (line 1172) | func veryBad(s []int) []int { function veryBadCheck (line 1194) | func veryBadCheck(s []int) []int { function okay (line 1215) | func okay(s []int) []int { function TestVeryBad1 (line 1235) | func TestVeryBad1(t testingT) { function TestVeryBad2 (line 1245) | func TestVeryBad2(t testingT) { function TestVeryBadCheck (line 1256) | func TestVeryBadCheck(t testingT) { function TestOk (line 1266) | func TestOk(t testingT) { function testBreak1BadDefer (line 1278) | func testBreak1BadDefer(t testingT) (result []int) { function TestBreak1BadDefer (line 1304) | func TestBreak1BadDefer(t testingT) { function testReturn1 (line 1315) | func testReturn1() (result []int, err any) { function testReturn2 (line 1339) | func testReturn2() (result []int, err any) { function testReturn3 (line 1363) | func testReturn3() (result []int, err any) { function testReturn4 (line 1388) | func testReturn4(t testingT) (_ []int, _ []int, err any) { function TestReturns (line 1414) | func TestReturns(t testingT) { function testGotoA1 (line 1462) | func testGotoA1() (result []int, err any) { function testGotoA2 (line 1487) | func testGotoA2() (result []int, err any) { function testGotoA3 (line 1512) | func testGotoA3() (result []int, err any) { function TestGotoA (line 1535) | func TestGotoA(t testingT) { function testGotoB1 (line 1571) | func testGotoB1() (result []int, err any) { function testGotoB2 (line 1597) | func testGotoB2() (result []int, err any) { function testGotoB3 (line 1623) | func testGotoB3() (result []int, err any) { function TestGotoB (line 1648) | func TestGotoB(t testingT) { function once (line 1685) | func once[T any](x T) Seq[T] { function terrify (line 1694) | func terrify[T any](s string, forall Seq[T]) Seq[T] { function use (line 1705) | func use[T any](T) { function f (line 1710) | func f() string { function g (line 1721) | func g() string { function h (line 1732) | func h() (hashS string) { function j (line 1742) | func j() (hashS string) { function k (line 1755) | func k() (hashS string) { function m (line 1766) | func m() (hashS string) { function n (line 1777) | func n() string { type terrifyTestCase (line 1791) | type terrifyTestCase struct function TestPanicReturns (line 1796) | func TestPanicReturns(t testingT) { FILE: go/ssa/interp/testdata/rangeoverint.go function f (line 7) | func f() { function valueSequence (line 62) | func valueSequence(x int, b, c bool) []int { function main (line 84) | func main() { f() } FILE: go/ssa/interp/testdata/rangevarlifetime_go122.go function main (line 9) | func main() { function test_init (line 27) | func test_init() { function range_esc_address (line 38) | func range_esc_address() { function range_esc_closure (line 78) | func range_esc_closure() { type I (line 123) | type I method method (line 125) | func (x *I) method() int { function range_esc_method (line 129) | func range_esc_method() { FILE: go/ssa/interp/testdata/rangevarlifetime_old.go function main (line 11) | func main() { function test_init (line 29) | func test_init() { function range_esc_address (line 47) | func range_esc_address() { function range_esc_closure (line 87) | func range_esc_closure() { type I (line 132) | type I method method (line 134) | func (x *I) method() int { function range_esc_method (line 138) | func range_esc_method() { FILE: go/ssa/interp/testdata/recover.go function fortyTwo (line 7) | func fortyTwo() (r int) { function zero (line 14) | func zero() int { function zeroEmpty (line 19) | func zeroEmpty() (int, string) { function main (line 24) | func main() { FILE: go/ssa/interp/testdata/reflect.go function main (line 5) | func main() { FILE: go/ssa/interp/testdata/slice2array.go function main (line 10) | func main() { function emptyToEmptyDoesNotPanic (line 50) | func emptyToEmptyDoesNotPanic() (raised bool) { function threeToFourDoesPanic (line 61) | func threeToFourDoesPanic() (raised bool) { function fourPanicsWhileOneDoesNot (line 72) | func fourPanicsWhileOneDoesNot[T [1]int | [4]int]() (raised bool) { function fourPanicsWhileZeroDoesNot (line 83) | func fourPanicsWhileZeroDoesNot[T [0]int | [4]int]() (raised bool) { FILE: go/ssa/interp/testdata/slice2arrayptr.go function main (line 10) | func main() { type arr (line 39) | type arr function f (line 41) | func f() { function wantPanic (line 46) | func wantPanic(fn func(), s string) { FILE: go/ssa/interp/testdata/src/encoding/encoding.go type BinaryMarshaler (line 3) | type BinaryMarshaler interface type BinaryUnmarshaler (line 6) | type BinaryUnmarshaler interface type TextMarshaler (line 10) | type TextMarshaler interface type TextUnmarshaler (line 13) | type TextUnmarshaler interface FILE: go/ssa/interp/testdata/src/errors/errors.go function New (line 3) | func New(text string) error { return errorString{text} } type errorString (line 5) | type errorString struct method Error (line 7) | func (e errorString) Error() string { return e.s } FILE: go/ssa/interp/testdata/src/fmt/fmt.go function Sprint (line 8) | func Sprint(args ...interface{}) string function Sprintln (line 10) | func Sprintln(args ...interface{}) string { function Print (line 14) | func Print(args ...interface{}) (int, error) { function Println (line 28) | func Println(args ...interface{}) { function Printf (line 36) | func Printf(format string, args ...interface{}) (int, error) { function Sprintf (line 42) | func Sprintf(format string, args ...interface{}) string { function Errorf (line 57) | func Errorf(format string, args ...interface{}) error { FILE: go/ssa/interp/testdata/src/log/log.go function Println (line 8) | func Println(v ...interface{}) { function Printf (line 11) | func Printf(format string, v ...interface{}) { function Fatalln (line 15) | func Fatalln(v ...interface{}) { function Fatalf (line 20) | func Fatalf(format string, v ...interface{}) { FILE: go/ssa/interp/testdata/src/math/math.go function Copysign (line 3) | func Copysign(float64, float64) float64 function NaN (line 5) | func NaN() float64 function Inf (line 7) | func Inf(int) float64 function IsNaN (line 9) | func IsNaN(float64) bool function Float64bits (line 11) | func Float64bits(float64) uint64 function Signbit (line 13) | func Signbit(x float64) bool { function Sqrt (line 17) | func Sqrt(x float64) float64 FILE: go/ssa/interp/testdata/src/os/os.go function Getenv (line 3) | func Getenv(string) string function Exit (line 5) | func Exit(int) FILE: go/ssa/interp/testdata/src/reflect/deepequal.go function DeepEqual (line 9) | func DeepEqual(x, y interface{}) bool { type visit (line 20) | type visit struct function deepValueEqual (line 25) | func deepValueEqual(v1, v2 Value, visited map[visit]bool) bool { FILE: go/ssa/interp/testdata/src/reflect/reflect.go type Type (line 3) | type Type interface type Value (line 9) | type Value struct method String (line 12) | func (Value) String() string method Elem (line 14) | func (Value) Elem() Value method Kind (line 15) | func (Value) Kind() Kind method Int (line 16) | func (Value) Int() int64 method IsValid (line 17) | func (Value) IsValid() bool method IsNil (line 18) | func (Value) IsNil() bool method Len (line 19) | func (Value) Len() int method Pointer (line 20) | func (Value) Pointer() uintptr method Index (line 21) | func (Value) Index(i int) Value method Type (line 22) | func (Value) Type() Type method Field (line 23) | func (Value) Field(int) Value method MapIndex (line 24) | func (Value) MapIndex(Value) Value method MapKeys (line 25) | func (Value) MapKeys() []Value method NumField (line 26) | func (Value) NumField() int method Interface (line 27) | func (Value) Interface() interface{} function SliceOf (line 29) | func SliceOf(Type) Type function TypeOf (line 31) | func TypeOf(interface{}) Type function ValueOf (line 33) | func ValueOf(interface{}) Value type Kind (line 35) | type Kind constant Invalid (line 39) | Invalid Kind = iota constant Bool (line 40) | Bool constant Int (line 41) | Int constant Int8 (line 42) | Int8 constant Int16 (line 43) | Int16 constant Int32 (line 44) | Int32 constant Int64 (line 45) | Int64 constant Uint (line 46) | Uint constant Uint8 (line 47) | Uint8 constant Uint16 (line 48) | Uint16 constant Uint32 (line 49) | Uint32 constant Uint64 (line 50) | Uint64 constant Uintptr (line 51) | Uintptr constant Float32 (line 52) | Float32 constant Float64 (line 53) | Float64 constant Complex64 (line 54) | Complex64 constant Complex128 (line 55) | Complex128 constant Array (line 56) | Array constant Chan (line 57) | Chan constant Func (line 58) | Func constant Interface (line 59) | Interface constant Map (line 60) | Map constant Pointer (line 61) | Pointer constant Slice (line 62) | Slice constant String (line 63) | String constant Struct (line 64) | Struct constant UnsafePointer (line 65) | UnsafePointer constant Ptr (line 68) | Ptr = Pointer FILE: go/ssa/interp/testdata/src/runtime/runtime.go type errorString (line 4) | type errorString method RuntimeError (line 6) | func (e errorString) RuntimeError() {} method Error (line 8) | func (e errorString) Error() string { function Breakpoint (line 12) | func Breakpoint() type Error (line 14) | type Error interface function GC (line 19) | func GC() FILE: go/ssa/interp/testdata/src/sort/sort.go function Strings (line 3) | func Strings(x []string) function Ints (line 4) | func Ints(x []int) function Float64s (line 5) | func Float64s(x []float64) FILE: go/ssa/interp/testdata/src/strconv/strconv.go function Itoa (line 3) | func Itoa(i int) string function Atoi (line 4) | func Atoi(s string) (int, error) function FormatFloat (line 6) | func FormatFloat(float64, byte, int, int) string FILE: go/ssa/interp/testdata/src/strings/strings.go function Replace (line 3) | func Replace(s, old, new string, n int) string function Index (line 5) | func Index(haystack, needle string) int function Contains (line 7) | func Contains(haystack, needle string) bool { function HasPrefix (line 11) | func HasPrefix(s, prefix string) bool { function EqualFold (line 15) | func EqualFold(s, t string) bool function ToLower (line 16) | func ToLower(s string) string type Builder (line 18) | type Builder struct method WriteString (line 22) | func (b *Builder) WriteString(s string) (int, error) { method String (line 26) | func (b *Builder) String() string { return b.s } FILE: go/ssa/interp/testdata/src/sync/sync.go type Mutex (line 4) | type Mutex struct method Lock (line 8) | func (m *Mutex) Lock() { method Unlock (line 13) | func (m *Mutex) Unlock() { function init (line 21) | func init() { function ch (line 26) | func ch(m *Mutex) chan int { FILE: go/ssa/interp/testdata/src/time/time.go type Duration (line 3) | type Duration function Sleep (line 5) | func Sleep(Duration) FILE: go/ssa/interp/testdata/src/unicode/utf8/utf8.go function DecodeRuneInString (line 3) | func DecodeRuneInString(string) (rune, int) function DecodeRune (line 5) | func DecodeRune(b []byte) (rune, int) { constant RuneError (line 9) | RuneError = '\uFFFD' FILE: go/ssa/interp/testdata/static.go function init (line 6) | func init() { function bug7840 (line 34) | func bug7840() bool { function bug7022 (line 41) | func bug7022() int { function init (line 53) | func init() { function main (line 58) | func main() {} FILE: go/ssa/interp/testdata/typeassert.go type fooer (line 5) | type fooer interface type X (line 7) | type X method foo (line 9) | func (_ X) foo() string { return "x" } function f (line 11) | func f[T fooer](x T) func() string { function main (line 15) | func main() { FILE: go/ssa/interp/testdata/width32.go function main (line 9) | func main() { function mapSize (line 13) | func mapSize() { function wantPanic (line 31) | func wantPanic(fn func(), s string) { FILE: go/ssa/interp/testdata/zeros.go function assert (line 8) | func assert(cond bool, msg string) { function tp0 (line 14) | func tp0[T int | string | float64]() T { return T(0) } function tpFalse (line 16) | func tpFalse[T ~bool]() T { return T(false) } function tpEmptyString (line 18) | func tpEmptyString[T string | []byte]() T { return T("") } function tpNil (line 20) | func tpNil[T *int | []byte]() T { return T(nil) } function main (line 22) | func main() { FILE: go/ssa/interp/value.go type value (line 50) | type value type tuple (line 52) | type tuple type array (line 54) | type array method eq (line 122) | func (x array) eq(t types.Type, _y any) bool { method hash (line 133) | func (x array) hash(t types.Type) int { type iface (line 56) | type iface struct method eq (line 174) | func (x iface) eq(t types.Type, _y any) bool { method hash (line 179) | func (x iface) hash(outer types.Type) int { type structure (line 61) | type structure method eq (line 142) | func (x structure) eq(t types.Type, _y any) bool { method hash (line 155) | func (x structure) hash(t types.Type) int { type iter (line 64) | type iter interface type closure (line 70) | type closure struct type bad (line 75) | type bad struct type rtype (line 77) | type rtype struct method hash (line 183) | func (x rtype) hash(_ types.Type) int { method eq (line 187) | func (x rtype) eq(_ types.Type, y any) bool { function hashString (line 84) | func hashString(s string) int { function hashType (line 97) | func hashType(t types.Type) int { function usesBuiltinMap (line 110) | func usesBuiltinMap(t types.Type) bool { function sameType (line 167) | func sameType(x, y types.Type) bool { function equals (line 195) | func equals(t types.Type, x, y value) bool { function hash (line 253) | func hash(outer, t types.Type, x value) int { function load (line 316) | func load(T types.Type, addr *value) value { function store (line 338) | func store(T types.Type, addr *value, v value) { function writeValue (line 360) | func writeValue(buf *bytes.Buffer, v value) { function toString (line 460) | func toString(v value) string { type stringIter (line 469) | type stringIter struct method next (line 474) | func (it *stringIter) next() tuple { type mapIter (line 487) | type mapIter struct method next (line 492) | func (it *mapIter) next() tuple { type hashmapIter (line 501) | type hashmapIter struct method next (line 507) | func (it *hashmapIter) next() tuple { FILE: go/ssa/lift.go constant debugLifting (line 53) | debugLifting = false type domFrontier (line 66) | type domFrontier method add (line 68) | func (df domFrontier) add(u, v *BasicBlock) { method build (line 79) | func (df domFrontier) build(u *BasicBlock) { function buildDomFrontier (line 99) | func buildDomFrontier(fn *Function) domFrontier { function removeInstr (line 108) | func removeInstr(refs []Instruction, instr Instruction) []Instruction { function lift (line 120) | func lift(fn *Function) { function removeDeadPhis (line 289) | func removeDeadPhis(blocks []*BasicBlock, newPhis newPhiMap) { function markLivePhi (line 338) | func markLivePhi(livePhis map[*Phi]bool, phi *Phi) { function phiHasDirectReferrer (line 352) | func phiHasDirectReferrer(phi *Phi) bool { type blockSet (line 361) | type blockSet struct method add (line 364) | func (s *blockSet) add(b *BasicBlock) bool { method take (line 375) | func (s *blockSet) take() int { type newPhi (line 388) | type newPhi struct type newPhiMap (line 395) | type newPhiMap function liftAlloc (line 402) | func liftAlloc(df domFrontier, alloc *Alloc, newPhis newPhiMap, fresh *i... function replaceAll (line 501) | func replaceAll(x, y Value) { function renamed (line 523) | func renamed(renaming []Value, alloc *Alloc) Value { function rename (line 541) | func rename(u *BasicBlock, renaming []Value, newPhis newPhiMap) { function deferstackPreamble (line 660) | func deferstackPreamble(fn *Function) (*Alloc, *Call) { FILE: go/ssa/lvalue.go type lvalue (line 21) | type lvalue interface type address (line 29) | type address struct method load (line 35) | func (a *address) load(fn *Function) Value { method store (line 41) | func (a *address) store(fn *Function, v Value) { method address (line 49) | func (a *address) address(fn *Function) Value { method typ (line 56) | func (a *address) typ() types.Type { type element (line 64) | type element struct method load (line 70) | func (e *element) load(fn *Function) Value { method store (line 80) | func (e *element) store(fn *Function, v Value) { method address (line 90) | func (e *element) address(fn *Function) Value { method typ (line 94) | func (e *element) typ() types.Type { type lazyAddress (line 103) | type lazyAddress struct method load (line 110) | func (l *lazyAddress) load(fn *Function) Value { method store (line 116) | func (l *lazyAddress) store(fn *Function, v Value) { method address (line 124) | func (l *lazyAddress) address(fn *Function) Value { method typ (line 132) | func (l *lazyAddress) typ() types.Type { return l.t } type blank (line 136) | type blank struct method load (line 138) | func (bl blank) load(fn *Function) Value { method store (line 142) | func (bl blank) store(fn *Function, v Value) { method address (line 146) | func (bl blank) address(fn *Function) Value { method typ (line 150) | func (bl blank) typ() types.Type { FILE: go/ssa/methods.go method MethodValue (line 26) | func (prog *Program) MethodValue(sel *types.Selection) *Function { method objectMethod (line 94) | func (prog *Program) objectMethod(obj *types.Func, b *builder) *Function { method LookupMethod (line 136) | func (prog *Program) LookupMethod(T types.Type, pkg *types.Package, name... type methodSet (line 145) | type methodSet struct method RuntimeTypes (line 162) | func (prog *Program) RuntimeTypes() []types.Type { FILE: go/ssa/methods_test.go function TestMethodValue (line 19) | func TestMethodValue(t *testing.T) { FILE: go/ssa/mode.go type BuilderMode (line 20) | type BuilderMode method String (line 47) | func (m BuilderMode) String() string { method Set (line 80) | func (m *BuilderMode) Set(s string) error { method Get (line 111) | func (m BuilderMode) Get() any { return m } constant PrintPackages (line 23) | PrintPackages BuilderMode = 1 << iota constant PrintFunctions (line 24) | PrintFunctions constant LogSource (line 25) | LogSource constant SanityCheckFunctions (line 26) | SanityCheckFunctions constant NaiveForm (line 27) | NaiveForm constant BuildSerially (line 28) | BuildSerially constant GlobalDebug (line 29) | GlobalDebug constant BareInits (line 30) | BareInits constant InstantiateGenerics (line 31) | InstantiateGenerics constant BuilderModeDoc (line 34) | BuilderModeDoc = `Options controlling the SSA builder. FILE: go/ssa/print.go function relName (line 28) | func relName(v Value, i Instruction) string { function relType (line 42) | func relType(t types.Type, from *types.Package) string { function relTerm (line 46) | func relTerm(term *types.Term, from *types.Package) string { function relString (line 54) | func relString(m Member, from *types.Package) string { method String (line 68) | func (v *Parameter) String() string { method String (line 73) | func (v *FreeVar) String() string { method String (line 78) | func (v *Builtin) String() string { method String (line 84) | func (v *Alloc) String() string { method String (line 93) | func (v *Phi) String() string { function printCall (line 124) | func printCall(v *CallCommon, prefix string, instr Instruction) string { method String (line 146) | func (c *CallCommon) String() string { method String (line 150) | func (v *Call) String() string { method String (line 154) | func (v *BinOp) String() string { method String (line 158) | func (v *UnOp) String() string { function printConv (line 162) | func printConv(prefix string, v, x Value) string { method String (line 171) | func (v *ChangeType) String() string { return printConv("change... method String (line 172) | func (v *Convert) String() string { return printConv("conver... method String (line 173) | func (v *ChangeInterface) String() string { return printConv("change... method String (line 174) | func (v *SliceToArrayPointer) String() string { return printConv("slice ... method String (line 175) | func (v *MakeInterface) String() string { return printConv("make",... method String (line 177) | func (v *MultiConvert) String() string { method String (line 195) | func (v *MakeClosure) String() string { method String (line 211) | func (v *MakeSlice) String() string { method String (line 219) | func (v *Slice) String() string { method String (line 239) | func (v *MakeMap) String() string { method String (line 248) | func (v *MakeChan) String() string { method String (line 253) | func (v *FieldAddr) String() string { method String (line 262) | func (v *Field) String() string { method String (line 271) | func (v *IndexAddr) String() string { method String (line 275) | func (v *Index) String() string { method String (line 279) | func (v *Lookup) String() string { method String (line 283) | func (v *Range) String() string { method String (line 287) | func (v *Next) String() string { method String (line 291) | func (v *TypeAssert) String() string { method String (line 296) | func (v *Extract) String() string { method String (line 300) | func (s *Jump) String() string { method String (line 309) | func (s *If) String() string { method String (line 319) | func (s *Go) String() string { method String (line 323) | func (s *Panic) String() string { method String (line 327) | func (s *Return) String() string { method String (line 341) | func (*RunDefers) String() string { method String (line 345) | func (s *Send) String() string { method String (line 349) | func (s *Defer) String() string { method String (line 358) | func (s *Select) String() string { method String (line 380) | func (s *Store) String() string { method String (line 384) | func (s *MapUpdate) String() string { method String (line 388) | func (s *DebugRef) String() string { method String (line 403) | func (p *Package) String() string { method WriteTo (line 409) | func (p *Package) WriteTo(w io.Writer) (int64, error) { function WritePackage (line 417) | func WritePackage(buf *bytes.Buffer, p *Package) { function commaOk (line 457) | func commaOk(x bool) string { FILE: go/ssa/sanity.go type sanity (line 21) | type sanity struct method diagnostic (line 53) | func (s *sanity) diagnostic(prefix, format string, args ...any) { method errorf (line 63) | func (s *sanity) errorf(format string, args ...any) { method warnf (line 68) | func (s *sanity) warnf(format string, args ...any) { method checkInstr (line 92) | func (s *sanity) checkInstr(idx int, instr Instruction) { method checkFinalInstr (line 217) | func (s *sanity) checkFinalInstr(instr Instruction) { method checkBlock (line 255) | func (s *sanity) checkBlock(b *BasicBlock, index int) { method checkReferrerList (line 381) | func (s *sanity) checkReferrerList(v Value) { method checkFunctionParams (line 394) | func (s *sanity) checkFunctionParams() { method checkTransientFields (line 426) | func (s *sanity) checkTransientFields() { method checkFunction (line 469) | func (s *sanity) checkFunction(fn *Function) bool { function sanityCheck (line 37) | func sanityCheck(fn *Function, reporter io.Writer) bool { function mustSanityCheck (line 46) | func mustSanityCheck(fn *Function, reporter io.Writer) { function findDuplicate (line 74) | func findDuplicate(blocks []*BasicBlock) *BasicBlock { function sanityCheckPackage (line 590) | func sanityCheckPackage(pkg *Package) { FILE: go/ssa/source.go function EnclosingFunction (line 30) | func EnclosingFunction(pkg *Package, path []ast.Node) *Function { function HasEnclosingFunction (line 67) | func HasEnclosingFunction(pkg *Package, path []ast.Node) bool { function findEnclosingPackageLevelFunction (line 73) | func findEnclosingPackageLevelFunction(pkg *Package, path []ast.Node) *F... function findNamedFunc (line 107) | func findNamedFunc(pkg *Package, pos token.Pos) *Function { method ValueForExpr (line 154) | func (f *Function) ValueForExpr(e ast.Expr) (value Value, isAddr bool) { method Package (line 175) | func (prog *Program) Package(pkg *types.Package) *Package { method packageLevelMember (line 186) | func (prog *Program) packageLevelMember(obj types.Object) Member { method FuncValue (line 197) | func (prog *Program) FuncValue(obj *types.Func) *Function { method ConstValue (line 203) | func (prog *Program) ConstValue(obj *types.Const) *Const { method VarValue (line 253) | func (prog *Program) VarValue(obj *types.Var, pkg *Package, ref []ast.No... FILE: go/ssa/source_test.go function TestObjValueLookup (line 25) | func TestObjValueLookup(t *testing.T) { function checkFuncValue (line 129) | func checkFuncValue(t *testing.T, prog *ssa.Program, obj *types.Func) { function checkConstValue (line 149) | func checkConstValue(t *testing.T, prog *ssa.Program, obj *types.Const) { function checkVarValue (line 169) | func checkVarValue(t *testing.T, pkg *ssa.Package, ref []ast.Node, obj *... function TestValueForExpr (line 210) | func TestValueForExpr(t *testing.T) { function TestValueForExprStructConv (line 214) | func TestValueForExprStructConv(t *testing.T) { function testValueForExpr (line 218) | func testValueForExpr(t *testing.T, testfile string) { function TestEnclosingFunction (line 305) | func TestEnclosingFunction(t *testing.T) { FILE: go/ssa/ssa.go type Program (line 23) | type Program struct type Package (line 60) | type Package struct method Func (line 1657) | func (p *Package) Func(name string) (f *Function) { method Var (line 1664) | func (p *Package) Var(name string) (g *Global) { method Const (line 1671) | func (p *Package) Const(name string) (c *NamedConst) { method Type (line 1678) | func (p *Package) Type(name string) (t *Type) { type Member (line 82) | type Member interface type Type (line 94) | type Type struct method Name (line 1635) | func (t *Type) Name() string { return t.object... method Pos (line 1636) | func (t *Type) Pos() token.Pos { return t.object... method Type (line 1637) | func (t *Type) Type() types.Type { return t.object... method Token (line 1638) | func (t *Type) Token() token.Token { return token.TY... method Object (line 1639) | func (t *Type) Object() types.Object { return t.object } method String (line 1640) | func (t *Type) String() string { return t.RelStr... method Package (line 1641) | func (t *Type) Package() *Package { return t.pkg } method RelString (line 1642) | func (t *Type) RelString(from *types.Package) string { return relStrin... type NamedConst (line 107) | type NamedConst struct method Name (line 1644) | func (c *NamedConst) Name() string { return c.... method Pos (line 1645) | func (c *NamedConst) Pos() token.Pos { return c.... method String (line 1646) | func (c *NamedConst) String() string { return c.... method Type (line 1647) | func (c *NamedConst) Type() types.Type { return c.... method Token (line 1648) | func (c *NamedConst) Token() token.Token { return to... method Object (line 1649) | func (c *NamedConst) Object() types.Object { return c.... method Package (line 1650) | func (c *NamedConst) Package() *Package { return c.... method RelString (line 1651) | func (c *NamedConst) RelString(from *types.Package) string { return re... type Value (line 114) | type Value interface type Instruction (line 182) | type Instruction interface type Node (line 258) | type Node interface type Function (line 337) | type Function struct method Name (line 1558) | func (v *Function) Name() string { return v.name } method Type (line 1559) | func (v *Function) Type() types.Type { return v.Signature } method Pos (line 1560) | func (v *Function) Pos() token.Pos { return v.pos } method Token (line 1561) | func (v *Function) Token() token.Token { return token.FUNC } method Object (line 1562) | func (v *Function) Object() types.Object { method String (line 1568) | func (v *Function) String() string { return v.RelString(nil) } method Package (line 1569) | func (v *Function) Package() *Package { return v.Pkg } method Parent (line 1570) | func (v *Function) Parent() *Function { return v.parent } method Referrers (line 1571) | func (v *Function) Referrers() *[]Instruction { method TypeParams (line 1580) | func (fn *Function) TypeParams() *types.TypeParamList { method TypeArgs (line 1586) | func (fn *Function) TypeArgs() []types.Type { return fn.typeargs } method Origin (line 1590) | func (fn *Function) Origin() *Function { method Operands (line 1871) | func (v *Function) Operands(rands []*Value) []*Value { return rands } type BasicBlock (line 407) | type BasicBlock struct type FreeVar (line 436) | type FreeVar struct method Type (line 1541) | func (v *FreeVar) Type() types.Type { return v.typ } method Name (line 1542) | func (v *FreeVar) Name() string { return v.name } method Referrers (line 1543) | func (v *FreeVar) Referrers() *[]Instruction { return &v.referrers } method Pos (line 1544) | func (v *FreeVar) Pos() token.Pos { return v.pos } method Parent (line 1545) | func (v *FreeVar) Parent() *Function { return v.parent } method Operands (line 1869) | func (v *FreeVar) Operands(rands []*Value) []*Value { return rands } type Parameter (line 448) | type Parameter struct method Type (line 1611) | func (v *Parameter) Type() types.Type { return v.typ } method Name (line 1612) | func (v *Parameter) Name() string { return v.name } method Object (line 1613) | func (v *Parameter) Object() types.Object { return v.object } method Referrers (line 1614) | func (v *Parameter) Referrers() *[]Instruction { return &v.referrers } method Pos (line 1615) | func (v *Parameter) Pos() token.Pos { return v.object.Pos() } method Parent (line 1616) | func (v *Parameter) Parent() *Function { return v.parent } method Operands (line 1873) | func (v *Parameter) Operands(rands []*Value) []*Value { return rands } type Const (line 478) | type Const struct method Operands (line 1870) | func (v *Const) Operands(rands []*Value) []*Value { return rands } type Global (line 488) | type Global struct method Type (line 1547) | func (v *Global) Type() types.Type { return v.typ } method Name (line 1548) | func (v *Global) Name() string { return v.name } method Parent (line 1549) | func (v *Global) Parent() *Function { return nil } method Pos (line 1550) | func (v *Global) Pos() token.Pos { return v.pos } method Referrers (line 1551) | func (v *Global) Referrers() *[]Instruction { return nil } method Token (line 1552) | func (v *Global) Token() token.Token { return token.... method Object (line 1553) | func (v *Global) Object() types.Object { return v.obje... method String (line 1554) | func (v *Global) String() string { return v.RelS... method Package (line 1555) | func (v *Global) Package() *Package { return v.Pkg } method RelString (line 1556) | func (v *Global) RelString(from *types.Package) string { return relStr... method Operands (line 1872) | func (v *Global) Operands(rands []*Value) []*Value { return rands } type Builtin (line 515) | type Builtin struct method Type (line 1534) | func (v *Builtin) Type() types.Type { return v.sig } method Name (line 1535) | func (v *Builtin) Name() string { return v.name } method Referrers (line 1536) | func (*Builtin) Referrers() *[]Instruction { return nil } method Pos (line 1537) | func (v *Builtin) Pos() token.Pos { return token.NoPos } method Object (line 1538) | func (v *Builtin) Object() types.Object { return types.Universe.Loo... method Parent (line 1539) | func (v *Builtin) Parent() *Function { return nil } method Operands (line 1868) | func (v *Builtin) Operands(rands []*Value) []*Value { return rands } type Alloc (line 549) | type Alloc struct method Type (line 1618) | func (v *Alloc) Type() types.Type { return v.typ } method Referrers (line 1619) | func (v *Alloc) Referrers() *[]Instruction { return &v.referrers } method Pos (line 1620) | func (v *Alloc) Pos() token.Pos { return v.pos } method Operands (line 1698) | func (v *Alloc) Operands(rands []*Value) []*Value { type Phi (line 568) | type Phi struct method Operands (line 1818) | func (v *Phi) Operands(rands []*Value) []*Value { type Call (line 589) | type Call struct method Common (line 1526) | func (s *Call) Common() *CallCommon { return &s.Call } method Value (line 1530) | func (s *Call) Value() *Call { return s } method Pos (line 1683) | func (v *Call) Pos() token.Pos { return v.Call.pos } method Operands (line 1718) | func (s *Call) Operands(rands []*Value) []*Value { type BinOp (line 601) | type BinOp struct method Operands (line 1702) | func (v *BinOp) Operands(rands []*Value) []*Value { type UnOp (line 633) | type UnOp struct method Operands (line 1863) | func (v *UnOp) Operands(rands []*Value) []*Value { type ChangeType (line 666) | type ChangeType struct method Operands (line 1730) | func (v *ChangeType) Operands(rands []*Value) []*Value { type Convert (line 700) | type Convert struct method Operands (line 1734) | func (v *Convert) Operands(rands []*Value) []*Value { type MultiConvert (line 722) | type MultiConvert struct method Operands (line 1738) | func (v *MultiConvert) Operands(rands []*Value) []*Value { type ChangeInterface (line 740) | type ChangeInterface struct method Operands (line 1726) | func (v *ChangeInterface) Operands(rands []*Value) []*Value { type SliceToArrayPointer (line 762) | type SliceToArrayPointer struct method Operands (line 1742) | func (v *SliceToArrayPointer) Operands(rands []*Value) []*Value { type MakeInterface (line 784) | type MakeInterface struct method Operands (line 1794) | func (v *MakeInterface) Operands(rands []*Value) []*Value { type MakeClosure (line 801) | type MakeClosure struct method Operands (line 1786) | func (v *MakeClosure) Operands(rands []*Value) []*Value { type MakeMap (line 819) | type MakeMap struct method Operands (line 1798) | func (v *MakeMap) Operands(rands []*Value) []*Value { type MakeChan (line 836) | type MakeChan struct method Operands (line 1782) | func (v *MakeChan) Operands(rands []*Value) []*Value { type MakeSlice (line 858) | type MakeSlice struct method Operands (line 1802) | func (v *MakeSlice) Operands(rands []*Value) []*Value { type Slice (line 880) | type Slice struct method Operands (line 1851) | func (v *Slice) Operands(rands []*Value) []*Value { type FieldAddr (line 905) | type FieldAddr struct method Operands (line 1758) | func (v *FieldAddr) Operands(rands []*Value) []*Value { type Field (line 924) | type Field struct method Operands (line 1754) | func (v *Field) Operands(rands []*Value) []*Value { type IndexAddr (line 947) | type IndexAddr struct method Operands (line 1770) | func (v *IndexAddr) Operands(rands []*Value) []*Value { type Index (line 963) | type Index struct method Operands (line 1766) | func (v *Index) Operands(rands []*Value) []*Value { type Lookup (line 982) | type Lookup struct method Operands (line 1778) | func (v *Lookup) Operands(rands []*Value) []*Value { type SelectState (line 991) | type SelectState struct type Select (line 1036) | type Select struct method Operands (line 1840) | func (v *Select) Operands(rands []*Value) []*Value { type Range (line 1054) | type Range struct method Operands (line 1825) | func (v *Range) Operands(rands []*Value) []*Value { type Next (line 1077) | type Next struct method Operands (line 1810) | func (v *Next) Operands(rands []*Value) []*Value { type TypeAssert (line 1122) | type TypeAssert struct method Operands (line 1859) | func (v *TypeAssert) Operands(rands []*Value) []*Value { type Extract (line 1138) | type Extract struct method Operands (line 1750) | func (v *Extract) Operands(rands []*Value) []*Value { type Jump (line 1156) | type Jump struct method Pos (line 1692) | func (s *Jump) Pos() token.Pos { return token.NoPos } method Operands (line 1774) | func (*Jump) Operands(rands []*Value) []*Value { type If (line 1172) | type If struct method Pos (line 1691) | func (s *If) Pos() token.Pos { return token.NoPos } method Operands (line 1762) | func (s *If) Operands(rands []*Value) []*Value { type Return (line 1199) | type Return struct method Pos (line 1688) | func (s *Return) Pos() token.Pos { return s.pos } method Operands (line 1829) | func (s *Return) Operands(rands []*Value) []*Value { type RunDefers (line 1217) | type RunDefers struct method Pos (line 1693) | func (s *RunDefers) Pos() token.Pos { return token.NoPos } method Operands (line 1836) | func (*RunDefers) Operands(rands []*Value) []*Value { type Panic (line 1235) | type Panic struct method Pos (line 1687) | func (s *Panic) Pos() token.Pos { return s.pos } method Operands (line 1814) | func (s *Panic) Operands(rands []*Value) []*Value { type Go (line 1253) | type Go struct method Common (line 1528) | func (s *Go) Common() *CallCommon { return &s.Call } method Value (line 1532) | func (s *Go) Value() *Call { return nil } method Pos (line 1685) | func (s *Go) Pos() token.Pos { return s.pos } method Operands (line 1714) | func (s *Go) Operands(rands []*Value) []*Value { type Defer (line 1277) | type Defer struct method Common (line 1527) | func (s *Defer) Common() *CallCommon { return &s.Call } method Value (line 1531) | func (s *Defer) Value() *Call { return nil } method Pos (line 1684) | func (s *Defer) Pos() token.Pos { return s.pos } method Operands (line 1722) | func (s *Defer) Operands(rands []*Value) []*Value { type Send (line 1291) | type Send struct method Pos (line 1689) | func (s *Send) Pos() token.Pos { return s.pos } method Operands (line 1847) | func (s *Send) Operands(rands []*Value) []*Value { type Store (line 1308) | type Store struct method Pos (line 1690) | func (s *Store) Pos() token.Pos { return s.pos } method Operands (line 1855) | func (s *Store) Operands(rands []*Value) []*Value { type MapUpdate (line 1324) | type MapUpdate struct method Pos (line 1686) | func (s *MapUpdate) Pos() token.Pos { return s.pos } method Operands (line 1806) | func (v *MapUpdate) Operands(rands []*Value) []*Value { type DebugRef (line 1365) | type DebugRef struct method Object (line 1653) | func (d *DebugRef) Object() types.Object { return d.object } method Pos (line 1694) | func (s *DebugRef) Pos() token.Pos { return s.Expr.Pos() } method Operands (line 1746) | func (s *DebugRef) Operands(rands []*Value) []*Value { type register (line 1388) | type register struct method Type (line 1622) | func (v *register) Type() types.Type { return v.typ } method setType (line 1623) | func (v *register) setType(typ types.Type) { v.typ = typ } method Name (line 1624) | func (v *register) Name() string { return fmt.Sprintf("t%... method setNum (line 1625) | func (v *register) setNum(num int) { v.num = num } method Referrers (line 1626) | func (v *register) Referrers() *[]Instruction { return &v.referrers } method Pos (line 1627) | func (v *register) Pos() token.Pos { return v.pos } method setPos (line 1628) | func (v *register) setPos(pos token.Pos) { v.pos = pos } type anInstruction (line 1398) | type anInstruction struct method Parent (line 1630) | func (v *anInstruction) Parent() *Function { return v.block.p... method Block (line 1631) | func (v *anInstruction) Block() *BasicBlock { return v.block } method setBlock (line 1632) | func (v *anInstruction) setBlock(block *BasicBlock) { v.block = block } method Referrers (line 1633) | func (v *anInstruction) Referrers() *[]Instruction { return nil } type CallCommon (line 1457) | type CallCommon struct method IsInvoke (line 1465) | func (c *CallCommon) IsInvoke() bool { method Pos (line 1469) | func (c *CallCommon) Pos() token.Pos { return c.pos } method Signature (line 1478) | func (c *CallCommon) Signature() *types.Signature { method StaticCallee (line 1487) | func (c *CallCommon) StaticCallee() *Function { method Description (line 1499) | func (c *CallCommon) Description() string { method Operands (line 1706) | func (c *CallCommon) Operands(rands []*Value) []*Value { type CallInstruction (line 1520) | type CallInstruction interface function origin (line 1604) | func origin(fn *Function) *Function { FILE: go/ssa/ssautil/deprecated.go function CreateProgram (line 26) | func CreateProgram(lprog *loader.Program, mode ssa.BuilderMode) *ssa.Pro... FILE: go/ssa/ssautil/deprecated_test.go function TestCreateProgram (line 22) | func TestCreateProgram(t *testing.T) { FILE: go/ssa/ssautil/load.go function Packages (line 35) | func Packages(initial []*packages.Package, mode ssa.BuilderMode) (*ssa.P... function AllPackages (line 74) | func AllPackages(initial []*packages.Package, mode ssa.BuilderMode) (*ss... function doPackages (line 78) | func doPackages(initial []*packages.Package, mode ssa.BuilderMode, deps ... function BuildPackage (line 127) | func BuildPackage(tc *types.Config, fset *token.FileSet, pkg *types.Pack... FILE: go/ssa/ssautil/load_test.go constant hello (line 26) | hello = `package main function TestBuildPackage (line 35) | func TestBuildPackage(t *testing.T) { function TestPackages (line 67) | func TestPackages(t *testing.T) { function TestBuildPackage_MissingImport (line 113) | func TestBuildPackage_MissingImport(t *testing.T) { function TestIssue28106 (line 127) | func TestIssue28106(t *testing.T) { function TestIssue53604 (line 143) | func TestIssue53604(t *testing.T) { FILE: go/ssa/ssautil/switch.go type ConstCase (line 32) | type ConstCase struct type TypeCase (line 40) | type TypeCase struct type Switch (line 58) | type Switch struct method String (line 66) | func (sw *Switch) String() string { function Switches (line 105) | func Switches(fn *ssa.Function) []Switch { function valueSwitch (line 132) | func valueSwitch(sw *Switch, k *ssa.Const, seen map[*ssa.BasicBlock]bool) { function typeSwitch (line 163) | func typeSwitch(sw *Switch, y ssa.Value, T types.Type, seen map[*ssa.Bas... function isComparisonBlock (line 198) | func isComparisonBlock(b *ssa.BasicBlock) (v ssa.Value, k *ssa.Const) { function isTypeAssertBlock (line 216) | func isTypeAssertBlock(b *ssa.BasicBlock) (y, x ssa.Value, T types.Type) { FILE: go/ssa/ssautil/switch_test.go function TestSwitches (line 21) | func TestSwitches(t *testing.T) { FILE: go/ssa/ssautil/visit.go function AllFunctions (line 51) | func AllFunctions(prog *ssa.Program) map[*ssa.Function]bool { function MainPackages (line 140) | func MainPackages(pkgs []*ssa.Package) []*ssa.Package { function isSyntactic (line 157) | func isSyntactic(pkg *ssa.Package) bool FILE: go/ssa/stdlib_test.go function bytesAllocated (line 30) | func bytesAllocated() uint64 { function TestStdlib (line 48) | func TestStdlib(t *testing.T) { function TestNetHTTP (line 54) | func TestNetHTTP(t *testing.T) { function TestCycles (line 64) | func TestCycles(t *testing.T) { function testLoad (line 69) | func testLoad(t *testing.T, minPkgs int, patterns ...string) { function srcFunctions (line 192) | func srcFunctions(prog *ssa.Program, pkgs []*packages.Package) (res []*s... FILE: go/ssa/subst.go type subster (line 50) | type subster struct method typ (line 79) | func (subst *subster) typ(t types.Type) (res types.Type) { method types (line 162) | func (subst *subster) types(ts []types.Type) []types.Type { method tuple (line 170) | func (subst *subster) tuple(t *types.Tuple) *types.Tuple { method struct_ (line 192) | func (subst *subster) struct_(t *types.Struct) *types.Struct { method varlist (line 206) | func (subst *subster) varlist(in varlist) []*types.Var { method var_ (line 224) | func (subst *subster) var_(v *types.Var) *types.Var { method union (line 236) | func (subst *subster) union(u *types.Union) *types.Union { method interface_ (line 259) | func (subst *subster) interface_(iface *types.Interface) *types.Interf... method alias (line 320) | func (subst *subster) alias(t *types.Alias) types.Type { method named (line 391) | func (subst *subster) named(t *types.Named) types.Type { method instantiate (line 515) | func (subst *subster) instantiate(orig types.Type, targs []types.Type)... method typelist (line 525) | func (subst *subster) typelist(l *types.TypeList) []types.Type { method signature (line 533) | func (subst *subster) signature(t *types.Signature) types.Type { function makeSubster (line 62) | func makeSubster(ctxt *types.Context, fn *types.Func, tparams *types.Typ... type varlist (line 179) | type varlist interface type fieldlist (line 185) | type fieldlist struct method At (line 189) | func (fl fieldlist) At(i int) *types.Var { return fl.str.Field(i) } method Len (line 190) | func (fl fieldlist) Len() int { return fl.str.NumFields() } FILE: go/ssa/subst_test.go function TestSubst (line 15) | func TestSubst(t *testing.T) { FILE: go/ssa/task.go type task (line 22) | type task struct method isTransitivelyDone (line 28) | func (x *task) isTransitivelyDone() bool { return x == nil || x.transi... method addEdge (line 33) | func (x *task) addEdge(y *task) { method markDone (line 52) | func (x *task) markDone() { method wait (line 59) | func (x *task) wait() { FILE: go/ssa/testdata/fixedbugs/issue66783a.go type S (line 6) | type S struct method M (line 10) | func (s S[T]) M() { function M (line 22) | func M() { FILE: go/ssa/testdata/fixedbugs/issue66783b.go type I1 (line 6) | type I1 interface type I2 (line 10) | type I2 function foo (line 12) | func foo[T any](i I2[T]) { type S (line 16) | type S struct method M (line 18) | func (s S[T]) M(t T) {} function M2 (line 20) | func M2() { FILE: go/ssa/testdata/fixedbugs/issue73594.go type genericType (line 6) | type genericType struct method methodWithoutBody (line 8) | func (genericType[T]) methodWithoutBody() function callMethodWithoutBody (line 10) | func callMethodWithoutBody() { FILE: go/ssa/testdata/objlookup.go type J (line 21) | type J method method (line 23) | func (*J) method() {} constant globalConst (line 25) | globalConst = 0 function globalFunc (line 29) | func globalFunc() {} type I (line 31) | type I interface type S (line 35) | type S struct function main (line 39) | func main() { FILE: go/ssa/testdata/src/bytes/bytes.go function Compare (line 3) | func Compare(a, b []byte) int FILE: go/ssa/testdata/src/context/context.go type Context (line 3) | type Context interface function Background (line 7) | func Background() Context FILE: go/ssa/testdata/src/encoding/encoding.go type BinaryMarshaler (line 3) | type BinaryMarshaler interface type BinaryUnmarshaler (line 7) | type BinaryUnmarshaler interface FILE: go/ssa/testdata/src/encoding/json/json.go function Marshal (line 3) | func Marshal(v any) ([]byte, error) function Unmarshal (line 4) | func Unmarshal(data []byte, v any) error FILE: go/ssa/testdata/src/encoding/xml/xml.go function Marshal (line 3) | func Marshal(v any) ([]byte, error) function Unmarshal (line 4) | func Unmarshal(data []byte, v any) error FILE: go/ssa/testdata/src/errors/errors.go function New (line 3) | func New(text string) error FILE: go/ssa/testdata/src/fmt/fmt.go function Sprint (line 3) | func Sprint(args ...interface{}) string function Sprintln (line 4) | func Sprintln(args ...interface{}) string function Sprintf (line 5) | func Sprintf(format string, args ...interface{}) string function Print (line 7) | func Print(args ...interface{}) (int, error) function Println (line 8) | func Println(args ...interface{}) function Printf (line 9) | func Printf(format string, args ...interface{}) (int, error) function Errorf (line 11) | func Errorf(format string, args ...interface{}) error FILE: go/ssa/testdata/src/log/log.go function Println (line 3) | func Println(v ...interface{}) function Fatalln (line 4) | func Fatalln(v ...interface{}) function Fatalf (line 5) | func Fatalf(format string, v ...any) FILE: go/ssa/testdata/src/math/math.go function NaN (line 3) | func NaN() float64 function Inf (line 5) | func Inf(int) float64 function IsNaN (line 7) | func IsNaN(float64) bool function Float64bits (line 9) | func Float64bits(float64) uint64 function Signbit (line 11) | func Signbit(x float64) bool function Sqrt (line 13) | func Sqrt(x float64) float64 function Sin (line 15) | func Sin(x float64) float64 FILE: go/ssa/testdata/src/os/os.go function Getenv (line 3) | func Getenv(string) string function Exit (line 5) | func Exit(int) FILE: go/ssa/testdata/src/reflect/reflect.go type Type (line 3) | type Type interface type Value (line 9) | type Value struct method String (line 11) | func (Value) String() string method Elem (line 12) | func (Value) Elem() Value method Field (line 13) | func (Value) Field(int) Value method Index (line 14) | func (Value) Index(i int) Value method Int (line 15) | func (Value) Int() int64 method Interface (line 16) | func (Value) Interface() interface{} method IsNil (line 17) | func (Value) IsNil() bool method IsValid (line 18) | func (Value) IsValid() bool method Kind (line 19) | func (Value) Kind() Kind method Len (line 20) | func (Value) Len() int method MapIndex (line 21) | func (Value) MapIndex(Value) Value method MapKeys (line 22) | func (Value) MapKeys() []Value method NumField (line 23) | func (Value) NumField() int method Pointer (line 24) | func (Value) Pointer() uintptr method SetInt (line 25) | func (Value) SetInt(int64) method Type (line 26) | func (Value) Type() Type function SliceOf (line 28) | func SliceOf(Type) Type function TypeOf (line 29) | func TypeOf(interface{}) Type function ValueOf (line 30) | func ValueOf(interface{}) Value type Kind (line 32) | type Kind constant Invalid (line 35) | Invalid Kind = iota constant Int (line 36) | Int constant Pointer (line 37) | Pointer function DeepEqual (line 40) | func DeepEqual(x, y interface{}) bool FILE: go/ssa/testdata/src/runtime/runtime.go function GC (line 3) | func GC() function SetFinalizer (line 5) | func SetFinalizer(obj, finalizer any) function Caller (line 7) | func Caller(skip int) (pc uintptr, file string, line int, ok bool) FILE: go/ssa/testdata/src/sort/sort.go function Strings (line 3) | func Strings(x []string) function Ints (line 4) | func Ints(x []int) function Float64s (line 5) | func Float64s(x []float64) function Sort (line 7) | func Sort(data Interface) type Interface (line 9) | type Interface interface FILE: go/ssa/testdata/src/strconv/strconv.go function Itoa (line 3) | func Itoa(i int) string function Atoi (line 4) | func Atoi(s string) (int, error) function FormatFloat (line 6) | func FormatFloat(float64, byte, int, int) string FILE: go/ssa/testdata/src/strings/strings.go function Replace (line 3) | func Replace(s, old, new string, n int) string function Index (line 4) | func Index(haystack, needle string) int function Contains (line 5) | func Contains(haystack, needle string) bool function HasPrefix (line 6) | func HasPrefix(s, prefix string) bool function EqualFold (line 7) | func EqualFold(s, t string) bool function ToLower (line 8) | func ToLower(s string) string type Builder (line 10) | type Builder struct method WriteString (line 12) | func (b *Builder) WriteString(s string) (int, error) method String (line 13) | func (b *Builder) String() string FILE: go/ssa/testdata/src/sync/atomic/atomic.go function LoadPointer (line 5) | func LoadPointer(addr *unsafe.Pointer) (val unsafe.Pointer) FILE: go/ssa/testdata/src/sync/sync.go type Mutex (line 3) | type Mutex struct method Lock (line 5) | func (m *Mutex) Lock() method Unlock (line 6) | func (m *Mutex) Unlock() type WaitGroup (line 8) | type WaitGroup struct method Add (line 10) | func (wg *WaitGroup) Add(delta int) method Done (line 11) | func (wg *WaitGroup) Done() method Wait (line 12) | func (wg *WaitGroup) Wait() FILE: go/ssa/testdata/src/time/time.go type Duration (line 3) | type Duration function Sleep (line 5) | func Sleep(Duration) function NewTimer (line 7) | func NewTimer(d Duration) *Timer type Timer (line 9) | type Timer struct method Stop (line 13) | func (t *Timer) Stop() bool type Time (line 15) | type Time struct function After (line 17) | func After(d Duration) <-chan Time constant Nanosecond (line 20) | Nanosecond Duration = iota constant Second (line 21) | Second constant Minute (line 22) | Minute constant Hour (line 23) | Hour FILE: go/ssa/testdata/structconv.go type t1 (line 11) | type t1 struct type t2 (line 14) | type t2 struct function main (line 18) | func main() { FILE: go/ssa/testdata/valueforexpr.go function f (line 8) | func f(spilled, unspilled int) { function complit (line 72) | func complit() { type t (line 137) | type t struct method f (line 140) | func (t) f(param int) { function init (line 145) | func init() { FILE: go/ssa/testutil_test.go function goMod (line 29) | func goMod(name string, major int) []byte { function overlayFS (line 37) | func overlayFS(overlay map[string][]byte) fstest.MapFS { function openTxtar (line 47) | func openTxtar(t testing.TB, file string) fs.FS { function loadPackages (line 68) | func loadPackages(t testing.TB, src fs.FS, patterns ...string) []*packag... function buildPackage (line 110) | func buildPackage(t testing.TB, content string, mode ssa.BuilderMode) (*... function parsePackageClause (line 140) | func parsePackageClause(t testing.TB, content string) string { FILE: go/ssa/typeset.go constant debug (line 15) | debug = false function typeset (line 23) | func typeset(typ types.Type, yield func(t, u types.Type) bool) { function termListOf (line 50) | func termListOf(typ types.Type) []*types.Term { function typeSetIsEmpty (line 59) | func typeSetIsEmpty(typ types.Type) bool { function isBytestring (line 72) | func isBytestring(T types.Type) bool { function underIs (line 97) | func underIs(typ types.Type, f func(types.Type) bool) bool { function indexType (line 108) | func indexType(typ types.Type) (types.Type, indexMode) { type indexMode (line 159) | type indexMode method meet (line 170) | func (x indexMode) meet(y indexMode) indexMode { constant ixInvalid (line 162) | ixInvalid indexMode = iota constant ixValue (line 163) | ixValue constant ixArrVar (line 164) | ixArrVar constant ixVar (line 165) | ixVar constant ixMap (line 166) | ixMap FILE: go/ssa/util.go type unit (line 24) | type unit struct function assert (line 30) | func assert(p bool, msg string) { function isBlankIdent (line 40) | func isBlankIdent(e ast.Expr) bool { function isNonTypeParamInterface (line 48) | func isNonTypeParamInterface(t types.Type) bool { function isBasic (line 54) | func isBasic(t types.Type) bool { function isString (line 61) | func isString(t types.Type) bool { function isByteSlice (line 68) | func isByteSlice(t types.Type) bool { function isRuneSlice (line 78) | func isRuneSlice(t types.Type) bool { function isBasicConvTypes (line 91) | func isBasicConvTypes(typ types.Type) bool { function isPointer (line 105) | func isPointer(t types.Type) bool { function isPointerCore (line 113) | func isPointerCore(t types.Type) bool { function is (line 117) | func is[T any](x any) bool { function recvType (line 123) | func recvType(obj *types.Func) types.Type { function fieldOf (line 129) | func fieldOf(typ types.Type, index int) *types.Var { function isUntyped (line 139) | func isUntyped(typ types.Type) bool { function declaredWithin (line 148) | func declaredWithin(obj types.Object, fn *types.Func) bool { function logStack (line 169) | func logStack(format string, args ...any) func() { function newVar (line 180) | func newVar(name string, typ types.Type) *types.Var { function anonVar (line 185) | func anonVar(typ types.Type) *types.Var { function makeLen (line 192) | func makeLen(T types.Type) *Builtin { function receiverTypeArgs (line 202) | func receiverTypeArgs(method *types.Func) []types.Type { function recvAsFirstArg (line 221) | func recvAsFirstArg(sig *types.Signature) *types.Signature { function instance (line 232) | func instance(info *types.Info, expr ast.Expr) bool { function instanceArgs (line 249) | func instanceArgs(info *types.Info, id *ast.Ident) []types.Type { type canonizer (line 264) | type canonizer struct method List (line 280) | func (c *canonizer) List(ts []types.Type) *typeList { method Type (line 316) | func (c *canonizer) Type(T types.Type) types.Type { method instantiateMethod (line 395) | func (canon *canonizer) instantiateMethod(m *types.Func, targs []types... function newCanonizer (line 270) | func newCanonizer() *canonizer { type typeList (line 330) | type typeList method identical (line 332) | func (l *typeList) identical(ts []types.Type) bool { type typeListMap (line 349) | type typeListMap struct method rep (line 355) | func (m *typeListMap) rep(ts []types.Type) *typeList { method hash (line 381) | func (m *typeListMap) hash(ts []types.Type) uint32 { function isSyntactic (line 413) | func isSyntactic(pkg *Package) bool { return pkg.syntax } FILE: go/ssa/wrappers.go function createWrapper (line 45) | func createWrapper(prog *Program, sel *selection) *Function { method buildWrapper (line 83) | func (b *builder) buildWrapper(fn *Function) { function createParams (line 156) | func createParams(fn *Function, start int) { function createBound (line 187) | func createBound(prog *Program, obj *types.Func) *Function { method buildBound (line 211) | func (b *builder) buildBound(fn *Function) { function createThunk (line 249) | func createThunk(prog *Program, sel *selection) *Function { function changeRecv (line 262) | func changeRecv(s *types.Signature, recv *types.Var) *types.Signature { type selection (line 268) | type selection struct function toSelection (line 277) | func toSelection(sel *types.Selection) *selection { method buildInstantiationWrapper (line 293) | func (b *builder) buildInstantiationWrapper(fn *Function) { FILE: go/types/internal/play/play.go function main (line 46) | func main() { function handleSelectJSON (line 56) | func handleSelectJSON(w http.ResponseWriter, req *http.Request) { function formatObj (line 304) | func formatObj(out *strings.Builder, fset *token.FileSet, ref string, ob... function describeType (line 374) | func describeType(out *strings.Builder, t types.Type) { function handleRoot (line 427) | func handleRoot(w http.ResponseWriter, req *http.Request) { io.WriteStri... function handleJS (line 428) | func handleJS(w http.ResponseWriter, req *http.Request) { io.WriteStri... function handleCSS (line 429) | func handleCSS(w http.ResponseWriter, req *http.Request) { io.WriteStri... constant mainHTML (line 432) | mainHTML = ` constant mainJS (line 454) | mainJS = ` constant mainCSS (line 470) | mainCSS = ` FILE: go/types/objectpath/objectpath.go type Path (line 42) | type Path constant opType (line 97) | opType = '.' constant opElem (line 100) | opElem = 'E' constant opKey (line 101) | opKey = 'K' constant opParams (line 102) | opParams = 'P' constant opResults (line 103) | opResults = 'R' constant opUnderlying (line 104) | opUnderlying = 'U' constant opTypeParam (line 105) | opTypeParam = 'T' constant opRecvTypeParam (line 106) | opRecvTypeParam = 'r' constant opConstraint (line 107) | opConstraint = 'C' constant opRhs (line 108) | opRhs = 'a' constant opAt (line 111) | opAt = 'A' constant opField (line 112) | opField = 'F' constant opMethod (line 113) | opMethod = 'M' constant opObj (line 114) | opObj = 'O' function For (line 120) | func For(obj types.Object) (Path, error) { type Encoder (line 126) | type Encoder struct method For (line 173) | func (enc *Encoder) For(obj types.Object) (Path, error) { method concreteMethod (line 357) | func (enc *Encoder) concreteMethod(meth *types.Func) (Path, bool) { method scopeObjects (line 800) | func (enc *Encoder) scopeObjects(scope *types.Scope) []types.Object { function appendOpArg (line 344) | func appendOpArg(path []byte, op byte, arg int) []byte { function find (line 456) | func find(obj types.Object, T types.Type, path []byte) []byte { type finder (line 461) | type finder struct method find (line 467) | func (f *finder) find(T types.Type, path []byte) []byte { method findTypeParam (line 566) | func (f *finder) findTypeParam(list *types.TypeParamList, path []byte,... function findTypeParam (line 562) | func findTypeParam(obj types.Object, list *types.TypeParamList, path []b... function Object (line 578) | func Object(pkg *types.Package, p Path) (types.Object, error) { FILE: go/types/objectpath/objectpath_go118_test.go function TestGenericPaths (line 15) | func TestGenericPaths(t *testing.T) { function TestGenericPaths_Issue51717 (line 93) | func TestGenericPaths_Issue51717(t *testing.T) { FILE: go/types/objectpath/objectpath_test.go function TestPaths (line 25) | func TestPaths(t *testing.T) { function loadPackages (line 173) | func loadPackages(t *testing.T, archive string, patterns ...string) map[... type pathTest (line 184) | type pathTest struct function testPath (line 191) | func testPath(pkgmap map[string]*packages.Package, test pathTest) error { function TestSourceAndExportData (line 251) | func TestSourceAndExportData(t *testing.T) { function objectString (line 346) | func objectString(obj types.Object) string { function TestOrdering (line 359) | func TestOrdering(t *testing.T) { FILE: go/types/typeutil/callee.go function Callee (line 21) | func Callee(info *types.Info, call *ast.CallExpr) types.Object { function StaticCallee (line 37) | func StaticCallee(info *types.Info, call *ast.CallExpr) *types.Func { function usedIdent (line 53) | func usedIdent(info *types.Info, e ast.Expr) *ast.Ident { function interfaceMethod (line 83) | func interfaceMethod(f *types.Func) bool { FILE: go/types/typeutil/callee_test.go function TestStaticCallee (line 19) | func TestStaticCallee(t *testing.T) { function TestTypeParamStaticCallee (line 68) | func TestTypeParamStaticCallee(t *testing.T) { function testStaticCallee (line 119) | func testStaticCallee(t *testing.T, contents []string) { FILE: go/types/typeutil/example_test.go function ExampleMap (line 18) | func ExampleMap() { FILE: go/types/typeutil/imports.go function Dependencies (line 15) | func Dependencies(pkgs ...*types.Package) []*types.Package { FILE: go/types/typeutil/imports_test.go type closure (line 18) | type closure method Import (line 20) | func (c closure) Import(path string) (*types.Package, error) { return ... function TestDependencies (line 22) | func TestDependencies(t *testing.T) { FILE: go/types/typeutil/map.go type Map (line 32) | type Map struct method SetHasher (line 47) | func (m *Map) SetHasher(Hasher) {} method Delete (line 51) | func (m *Map) Delete(key types.Type) bool { method At (line 70) | func (m *Map) At(key types.Type) any { method Set (line 83) | func (m *Map) Set(key types.Type, value any) (prev any) { method Len (line 113) | func (m *Map) Len() int { method Iterate (line 127) | func (m *Map) Iterate(f func(key types.Type, value any)) { method Keys (line 141) | func (m *Map) Keys() []types.Type { method toString (line 149) | func (m *Map) toString(values bool) string { method String (line 171) | func (m *Map) String() string { method KeysString (line 177) | func (m *Map) KeysString() string { type entry (line 38) | type entry struct function hash (line 185) | func hash(t types.Type) uint32 { type Hasher (line 191) | type Hasher struct method Hash (line 201) | func (h Hasher) Hash(t types.Type) uint32 { function MakeHasher (line 197) | func MakeHasher() Hasher { return theHasher } type hasher (line 208) | type hasher struct method hash (line 221) | func (h hasher) hash(t types.Type) uint32 { method hashTuple (line 322) | func (h hasher) hashTuple(tuple *types.Tuple) uint32 { method hashUnion (line 332) | func (h hasher) hashUnion(t *types.Union) uint32 { method hashTermSet (line 343) | func (h hasher) hashTermSet(terms []*types.Term) uint32 { method hashTypeParam (line 357) | func (h hasher) hashTypeParam(t *types.TypeParam) uint32 { method hashTypeName (line 378) | func (hasher) hashTypeName(tname *types.TypeName) uint32 { method shallowHash (line 399) | func (h hasher) shallowHash(t types.Type) uint32 { function hashString (line 211) | func hashString(s string) uint32 { FILE: go/types/typeutil/map_test.go function checkEqualButNotIdentical (line 33) | func checkEqualButNotIdentical(t *testing.T, x, y types.Type, comment st... function TestAxioms (line 42) | func TestAxioms(t *testing.T) { function TestMap (line 47) | func TestMap(t *testing.T) { function TestMapGenerics (line 181) | func TestMapGenerics(t *testing.T) { function instantiate (line 424) | func instantiate(t *testing.T, origin types.Type, targs ...types.Type) t... function BenchmarkMap (line 434) | func BenchmarkMap(b *testing.B) { FILE: go/types/typeutil/methodsetcache.go type MethodSetCache (line 17) | type MethodSetCache struct method MethodSet (line 28) | func (cache *MethodSetCache) MethodSet(T types.Type) *types.MethodSet { method lookupNamed (line 58) | func (cache *MethodSetCache) lookupNamed(named *types.Named) struct{ v... FILE: go/types/typeutil/ui.go function IntuitiveMethodSet (line 27) | func IntuitiveMethodSet(T types.Type, msets *MethodSetCache) []*types.Se... FILE: go/types/typeutil/ui_test.go function TestIntuitiveMethodSet (line 19) | func TestIntuitiveMethodSet(t *testing.T) { FILE: gopls/integration/govim/artifacts.go constant usage (line 18) | usage = ` function main (line 29) | func main() { function download (line 49) | func download(artifactURL string) error { FILE: gopls/internal/analysis/deprecated/deprecated.go function checkDeprecated (line 39) | func checkDeprecated(pass *analysis.Pass) (any, error) { type deprecationFact (line 145) | type deprecationFact struct method AFact (line 147) | func (*deprecationFact) AFact() {} method String (line 148) | func (d *deprecationFact) String() string { return "Deprecated: " + d.... type deprecatedNames (line 150) | type deprecatedNames struct function collectDeprecatedNames (line 158) | func collectDeprecatedNames(pass *analysis.Pass, ins *inspector.Inspecto... FILE: gopls/internal/analysis/deprecated/deprecated_test.go function Test (line 13) | func Test(t *testing.T) { FILE: gopls/internal/analysis/deprecated/testdata/src/a/a.go function x (line 9) | func x() { function Legacy (line 17) | func Legacy() {} FILE: gopls/internal/analysis/deprecated/testdata/src/a/a_test.go function TestF (line 9) | func TestF(t *testing.T) { FILE: gopls/internal/analysis/embeddirective/embeddirective.go function run (line 30) | func run(pass *analysis.Pass) (any, error) { function embedDirectiveComments (line 89) | func embedDirectiveComments(f *ast.File) []*ast.Comment { function nextVarSpec (line 103) | func nextVarSpec(com *ast.Comment, f *ast.File) *ast.ValueSpec { function embeddableType (line 145) | func embeddableType(o types.Object) bool { FILE: gopls/internal/analysis/embeddirective/embeddirective_test.go function Test (line 13) | func Test(t *testing.T) { FILE: gopls/internal/analysis/embeddirective/testdata/src/a/import_missing.go function main (line 15) | func main() { FILE: gopls/internal/analysis/embeddirective/testdata/src/a/import_present.go function fooFunc (line 44) | func fooFunc() {} type fooType (line 65) | type fooType type byteAlias (line 112) | type byteAlias type embedDecl (line 118) | type embedDecl function main (line 124) | func main() { FILE: gopls/internal/analysis/embeddirective/testdata/src/a/import_present_go120.go function main (line 24) | func main() { FILE: gopls/internal/analysis/fillreturns/fillreturns.go function run (line 41) | func run(pass *analysis.Pass) (any, error) { function matchingTypes (line 193) | func matchingTypes(want, got types.Type) bool { function fixesError (line 217) | func fixesError(err types.Error) bool { function enclosingFunc (line 229) | func enclosingFunc(c inspector.Cursor) (inspector.Cursor, bool) { function isZeroExpr (line 236) | func isZeroExpr(expr ast.Expr) bool { function MatchingIdents (line 253) | func MatchingIdents(typs []types.Type, node ast.Node, pos token.Pos, inf... function equivalentTypes (line 326) | func equivalentTypes(want, got types.Type) bool { FILE: gopls/internal/analysis/fillreturns/fillreturns_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/fillreturns/testdata/src/a/a.go type T (line 18) | type T struct type I (line 20) | type I interface type z (line 22) | type z function x (line 24) | func x() error { function b (line 30) | func b() (string, int, error) { function c (line 34) | func c() (string, int, error) { function d (line 38) | func d() (string, int, error) { function e (line 42) | func e() (T, error, *bool) { function preserveLeft (line 46) | func preserveLeft() (int, int, error) { function matchValues (line 50) | func matchValues() (int, error, string) { function preventDataOverwrite (line 54) | func preventDataOverwrite() (int, string) { function closure (line 58) | func closure() (string, error) { function basic (line 65) | func basic() (uint8, uint16, uint32, uint64, int8, int16, int32, int64, ... function complex (line 69) | func complex() (*int, []int, [2]int, map[int]int) { function structsAndInterfaces (line 73) | func structsAndInterfaces() (T, url.URL, T1, I, I1, io.Reader, Client, a... function m (line 77) | func m() (int, error) { function convertibleTypes (line 88) | func convertibleTypes() (ast2.Expr, int) { function assignableTypes (line 92) | func assignableTypes() (map[string]int, int) { function interfaceAndError (line 98) | func interfaceAndError() (I, int) { function funcOneReturn (line 102) | func funcOneReturn() (string, error) { function funcMultipleReturn (line 106) | func funcMultipleReturn() (int, error, string) { function localFuncMultipleReturn (line 110) | func localFuncMultipleReturn() (string, int, error, string) { function multipleUnused (line 114) | func multipleUnused() (int, string, string, string) { function gotTooMany (line 118) | func gotTooMany() int { function fillVars (line 127) | func fillVars() (int, string, ast.Node, bool, error) { FILE: gopls/internal/analysis/fillreturns/testdata/src/typeparams/a.go function hello (line 3) | func hello[T any]() int { FILE: gopls/internal/analysis/fillstruct/fillstruct.go function Diagnose (line 44) | func Diagnose(f *ast.File, start, end token.Pos, pkg *types.Package, inf... constant FixCategory (line 130) | FixCategory = "fillstruct" function SuggestedFix (line 134) | func SuggestedFix(cpkg *cache.Package, pgf *parsego.File, start, end tok... function indent (line 309) | func indent(str, ind []byte) []byte { function populateValue (line 339) | func populateValue(typ types.Type, qual types.Qualifier) (_ ast.Expr, is... FILE: gopls/internal/analysis/fillstruct/fillstruct_test.go function Test (line 33) | func Test(t *testing.T) { FILE: gopls/internal/analysis/fillstruct/testdata/src/a/a.go type emptyStruct (line 14) | type emptyStruct struct type basicStruct (line 18) | type basicStruct struct type twoArgStruct (line 24) | type twoArgStruct struct type nestedStruct (line 35) | type nestedStruct struct type typedStruct (line 44) | type typedStruct struct type funStruct (line 54) | type funStruct struct type funStructComplex (line 60) | type funStructComplex struct type funStructEmpty (line 66) | type funStructEmpty struct type Foo (line 72) | type Foo struct type Bar (line 76) | type Bar struct type importedStruct (line 83) | type importedStruct struct type pointerBuiltinStruct (line 94) | type pointerBuiltinStruct struct type unsafeStruct (line 108) | type unsafeStruct struct FILE: gopls/internal/analysis/fillstruct/testdata/src/b/b.go type B (line 3) | type B struct FILE: gopls/internal/analysis/fillstruct/testdata/src/typeparams/typeparams.go type emptyStruct (line 7) | type emptyStruct struct type basicStruct (line 11) | type basicStruct struct type twoArgStruct (line 17) | type twoArgStruct struct type nestedStruct (line 28) | type nestedStruct struct function _ (line 35) | func _[T any]() { function Test (line 41) | func Test() { function _ (line 52) | func _[T twoArgStruct[int, int]]() { FILE: gopls/internal/analysis/fillswitch/fillswitch.go function Diagnose (line 22) | func Diagnose(f *ast.File, start, end token.Pos, pkg *types.Package, inf... function suggestedFixTypeSwitch (line 53) | func suggestedFixTypeSwitch(stmt *ast.TypeSwitchStmt, pkg *types.Package... function suggestedFixSwitch (line 138) | func suggestedFixSwitch(stmt *ast.SwitchStmt, pkg *types.Package, info *... function addDefaultCase (line 189) | func addDefaultCase(buf *bytes.Buffer, named *types.Named, expr ast.Expr) { function namedTypeFromTypeSwitch (line 222) | func namedTypeFromTypeSwitch(stmt *ast.TypeSwitchStmt, info *types.Info)... function hasDefaultCase (line 242) | func hasDefaultCase(body *ast.BlockStmt) bool { function caseConsts (line 252) | func caseConsts(body *ast.BlockStmt, info *types.Info) map[*types.Const]... type caseType (line 275) | type caseType struct function caseTypes (line 280) | func caseTypes(body *ast.BlockStmt, info *types.Info) map[caseType]bool { FILE: gopls/internal/analysis/fillswitch/fillswitch_test.go function Test (line 33) | func Test(t *testing.T) { FILE: gopls/internal/analysis/fillswitch/testdata/src/a/a.go type typeA (line 9) | type typeA constant typeAOne (line 12) | typeAOne typeA = iota constant typeATwo (line 13) | typeATwo constant typeAThree (line 14) | typeAThree function doSwitch (line 17) | func doSwitch() { type notification (line 43) | type notification interface type notificationOne (line 47) | type notificationOne struct method isNotification (line 49) | func (notificationOne) isNotification() {} type notificationTwo (line 51) | type notificationTwo struct method isNotification (line 53) | func (notificationTwo) isNotification() {} function doTypeSwitch (line 55) | func doTypeSwitch() { FILE: gopls/internal/analysis/fillswitch/testdata/src/b/b.go type TypeB (line 7) | type TypeB constant TypeBOne (line 10) | TypeBOne TypeB = iota constant TypeBTwo (line 11) | TypeBTwo constant TypeBThree (line 12) | TypeBThree type ExportedInterface (line 15) | type ExportedInterface interface type notExportedType (line 19) | type notExportedType struct method isExportedInterface (line 21) | func (notExportedType) isExportedInterface() {} FILE: gopls/internal/analysis/infertypeargs/infertypeargs.go constant Doc (line 18) | Doc = `check for unnecessary type arguments in call expressions function run (line 38) | func run(pass *analysis.Pass) (any, error) { function diagnose (line 51) | func diagnose(fset *token.FileSet, inspect *inspector.Inspector, start, ... function calledIdent (line 140) | func calledIdent(x ast.Expr) *ast.Ident { FILE: gopls/internal/analysis/infertypeargs/infertypeargs_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/infertypeargs/testdata/src/a/basic.go function f (line 9) | func f[T any](T) {} function g (line 11) | func g[T any]() T { var x T; return x } function h (line 13) | func h[P interface{ ~*T }, T any]() {} function _ (line 15) | func _() { FILE: gopls/internal/analysis/infertypeargs/testdata/src/a/imported.go function _ (line 9) | func _() { FILE: gopls/internal/analysis/infertypeargs/testdata/src/a/imported/imported.go function F (line 7) | func F[T any](T) {} FILE: gopls/internal/analysis/infertypeargs/testdata/src/a/notypechange.go function id (line 10) | func id[T any](t T) T { return t } function pair (line 16) | func pair[T any](t T) (T, T) { return t, t } function noreturn (line 21) | func noreturn[T any](t T) {} function _ (line 23) | func _() { FILE: gopls/internal/analysis/maprange/cmd/maprange/main.go function main (line 14) | func main() { singlechecker.Main(maprange.Analyzer) } FILE: gopls/internal/analysis/maprange/main.go function main (line 15) | func main() { singlechecker.Main(maprange.Analyzer) } FILE: gopls/internal/analysis/maprange/maprange.go function run (line 37) | func run(pass *analysis.Pass) (any, error) { function analyzeRangeStmt (line 68) | func analyzeRangeStmt(pass *analysis.Pass, callee types.Object, curCall ... function isSet (line 147) | func isSet(expr ast.Expr) bool { FILE: gopls/internal/analysis/maprange/maprange_test.go function TestBasic (line 15) | func TestBasic(t *testing.T) { function TestOld (line 20) | func TestOld(t *testing.T) { FILE: gopls/internal/analysis/modernize/cmd/modernize/main.go function main (line 21) | func main() { multichecker.Main(modernize.Suite...) } FILE: gopls/internal/analysis/nonewvars/nonewvars.go function run (line 34) | func run(pass *analysis.Pass) (any, error) { FILE: gopls/internal/analysis/nonewvars/nonewvars_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/nonewvars/testdata/src/a/a.go function x (line 9) | func x() { FILE: gopls/internal/analysis/nonewvars/testdata/src/typeparams/a.go function hello (line 3) | func hello[T any]() int { FILE: gopls/internal/analysis/noresultvalues/noresultvalues.go function run (line 34) | func run(pass *analysis.Pass) (any, error) { function fixesError (line 69) | func fixesError(msg string) bool { FILE: gopls/internal/analysis/noresultvalues/noresultvalues_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/noresultvalues/testdata/src/a/a.go function x (line 7) | func x() { return nil } function y (line 9) | func y() { return nil, "hello" } FILE: gopls/internal/analysis/noresultvalues/testdata/src/typeparams/a.go function hello (line 3) | func hello[T any]() { FILE: gopls/internal/analysis/recursiveiter/main.go function main (line 16) | func main() { singlechecker.Main(recursiveiter.Analyzer) } FILE: gopls/internal/analysis/recursiveiter/recursiveiter.go function run (line 33) | func run(pass *analysis.Pass) (any, error) { function is (line 96) | func is[T any](x any) bool { FILE: gopls/internal/analysis/recursiveiter/recursiveiter_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/recursiveiter/testdata/src/a/a.go type cons (line 9) | type cons struct method All (line 14) | func (cons *cons) All() iter.Seq[int] { FILE: gopls/internal/analysis/simplifycompositelit/simplifycompositelit.go function run (line 36) | func run(pass *analysis.Pass) (any, error) { function simplifyLiteral (line 86) | func simplifyLiteral(pass *analysis.Pass, typ reflect.Value, astType, x ... function createDiagnostic (line 112) | func createDiagnostic(pass *analysis.Pass, start, end token.Pos, typ str... function match (line 132) | func match(pattern, val reflect.Value) bool { FILE: gopls/internal/analysis/simplifycompositelit/simplifycompositelit_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/simplifycompositelit/testdata/src/a/a.go type T (line 7) | type T struct type T2 (line 11) | type T2 struct type Point (line 106) | type Point struct type Piece (line 111) | type Piece struct FILE: gopls/internal/analysis/simplifycompositelit/testdata/src/generatedcode/generatedcode.go type T (line 9) | type T struct FILE: gopls/internal/analysis/simplifyrange/simplifyrange.go function run (line 29) | func run(pass *analysis.Pass) (any, error) { function isBlank (line 84) | func isBlank(e ast.Expr) bool { FILE: gopls/internal/analysis/simplifyrange/simplifyrange_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/simplifyrange/testdata/src/a/a.go function m (line 9) | func m() { FILE: gopls/internal/analysis/simplifyrange/testdata/src/generatedcode/generatedcode.go function mgeneratedcode (line 11) | func mgeneratedcode() { FILE: gopls/internal/analysis/simplifyrange/testdata/src/rangeoverfunc/rangeoverfunc.go function _ (line 9) | func _(seq1 iter.Seq[int], seq2 iter.Seq2[int, int]) { FILE: gopls/internal/analysis/simplifyslice/simplifyslice.go function run (line 40) | func run(pass *analysis.Pass) (any, error) { FILE: gopls/internal/analysis/simplifyslice/simplifyslice_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/simplifyslice/testdata/src/a/a.go function _ (line 62) | func _() { function m (line 67) | func m() { FILE: gopls/internal/analysis/simplifyslice/testdata/src/generatedcode/generatedcode.go function _ (line 64) | func _() { function m (line 69) | func m() { FILE: gopls/internal/analysis/simplifyslice/testdata/src/typeparams/typeparams.go type List (line 7) | type List function foo (line 34) | func foo[E any](a List[E]) { FILE: gopls/internal/analysis/unusedfunc/main.go function main (line 15) | func main() { singlechecker.Main(unusedfunc.Analyzer) } FILE: gopls/internal/analysis/unusedfunc/unusedfunc.go function run (line 74) | func run(pass *analysis.Pass) (any, error) { function cond (line 283) | func cond[T any](cond bool, t, f T) T { FILE: gopls/internal/analysis/unusedfunc/unusedfunc_test.go function Test (line 16) | func Test(t *testing.T) { FILE: gopls/internal/analysis/unusedparams/cmd/main.go function main (line 13) | func main() { singlechecker.Main(unusedparams.Analyzer) } FILE: gopls/internal/analysis/unusedparams/testdata/src/a/a.go type parent (line 13) | type parent interface type yuh (line 17) | type yuh struct method n (line 21) | func (y *yuh) n(f bool) { function a (line 27) | func a(i1 int, i2 int, i3 int) int { // want "unused parameter: i2" function b (line 36) | func b(c bytes.Buffer) { // want "unused parameter: c" function z (line 40) | func z(h http.ResponseWriter, _ *http.Request) { // no report: func z is... function l (line 44) | func l(h http.Handler) http.Handler { // want "unused parameter: h" function mult (line 48) | func mult(a, b int) int { // want "unused parameter: b" function y (line 53) | func y(a int) { function _ (line 66) | func _() { function Exported (line 71) | func Exported(unused int) {} type T (line 73) | type T method m (line 75) | func (T) m(f bool) { println() } method n (line 76) | func (T) n(f bool) { println() } function _ (line 78) | func _() { FILE: gopls/internal/analysis/unusedparams/testdata/src/generatedcode/generatedcode.go type generatedInterface (line 11) | type generatedInterface interface function a (line 13) | func a(x bool) { println() } FILE: gopls/internal/analysis/unusedparams/testdata/src/generatedcode/nongeneratedcode.go type implementsGeneratedInterface (line 8) | type implementsGeneratedInterface struct method n (line 13) | func (implementsGeneratedInterface) n(f bool) { function b (line 20) | func b(x bool) { println() } FILE: gopls/internal/analysis/unusedparams/testdata/src/typeparams/typeparams.go type parent (line 13) | type parent interface type yuh (line 17) | type yuh struct method n (line 21) | func (y *yuh[int]) n(f bool) { function a (line 27) | func a[T comparable](i1 int, i2 T, i3 int) int { // want "unused paramet... function b (line 36) | func b[T any](c bytes.Buffer) { // want "unused parameter: c" function z (line 40) | func z[T http.ResponseWriter](h T, _ *http.Request) { // no report: func... function l (line 44) | func l(h http.Handler) http.Handler { // want "unused parameter: h" function mult (line 48) | func mult(a, b int) int { // want "unused parameter: b" function y (line 53) | func y[T any](a T) { FILE: gopls/internal/analysis/unusedparams/unusedparams.go constant FixCategory (line 34) | FixCategory = "unusedparams" function run (line 36) | func run(pass *analysis.Pass) (any, error) { FILE: gopls/internal/analysis/unusedparams/unusedparams_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/unusedvariable/testdata/src/assign/a.go type A (line 12) | type A struct function singleAssignment (line 16) | func singleAssignment() { function noOtherStmtsInBlock (line 35) | func noOtherStmtsInBlock() { function partOfMultiAssignment (line 39) | func partOfMultiAssignment() { function sideEffects (line 44) | func sideEffects(cBool chan bool, cInt chan int) { function commentAbove (line 65) | func commentAbove() { function commentBelow (line 70) | func commentBelow() { function commentSpaceBelow (line 75) | func commentSpaceBelow() { function fBool (line 81) | func fBool() bool { function fInt (line 85) | func fInt() int { FILE: gopls/internal/analysis/unusedvariable/testdata/src/decl/a.go function a (line 7) | func a() { function b (line 16) | func b() { function c (line 21) | func c() { FILE: gopls/internal/analysis/unusedvariable/unusedvariable.go constant Doc (line 20) | Doc = `check for unused variables and suggest fixes` function run (line 37) | func run(pass *analysis.Pass) (any, error) { FILE: gopls/internal/analysis/unusedvariable/unusedvariable_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/writestring/main.go function main (line 16) | func main() { singlechecker.Main(writestring.Analyzer) } FILE: gopls/internal/analysis/writestring/testdata/src/a/a.go function _ (line 11) | func _(v string) { function f (line 45) | func f(i int, err error) {} function getIndex (line 47) | func getIndex() int { function getString (line 51) | func getString() string { function getBuf (line 55) | func getBuf() *bytes.Buffer { return &bytes.Buffer{} } FILE: gopls/internal/analysis/writestring/writestring.go function run (line 38) | func run(pass *analysis.Pass) (any, error) { function stringConcatenands (line 127) | func stringConcatenands(info *types.Info, expr ast.Expr) (operands []ast... FILE: gopls/internal/analysis/writestring/writestring_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/analysis/yield/main.go function main (line 16) | func main() { singlechecker.Main(yield.Analyzer) } FILE: gopls/internal/analysis/yield/testdata/src/a/a.go function goodIter (line 19) | func goodIter(yield func(int) bool) { function badIterOR (line 23) | func badIterOR(yield func(int) bool) { function badIterSeq (line 29) | func badIterSeq(yield func(int) bool) { function badIterLoop (line 35) | func badIterLoop(yield func(int) bool) { function goodIterLoop (line 41) | func goodIterLoop(yield func(int) bool) { function badIterIf (line 49) | func badIterIf(yield func(int) bool) { function singletonIter (line 58) | func singletonIter(yield func(int) bool) { function twoArgumentYield (line 62) | func twoArgumentYield(yield func(int, int) bool) { function zeroArgumentYield (line 67) | func zeroArgumentYield(yield func() bool) { function tricky (line 72) | func tricky(in io.ReadCloser) func(yield func(string, error) bool) { function shortCircuitAND (line 88) | func shortCircuitAND(yield func(int) bool) { function tricky2 (line 96) | func tricky2(yield func(int) bool) { function tricky3 (line 109) | func tricky3(yield func(int) bool) { function tricky5 (line 122) | func tricky5(list []string, cond bool) iter.Seq[string] { function tricky6 (line 139) | func tricky6() iter.Seq[int] { function switchShortCircuit (line 151) | func switchShortCircuit(seq iter.Seq[int]) iter.Seq[int] { FILE: gopls/internal/analysis/yield/yield.go function run (line 49) | func run(pass *analysis.Pass) (any, error) { function reachableSuccs (line 199) | func reachableSuccs(cond ssa.Value, isYieldCall func(ssa.Value) bool) (_... function is (line 283) | func is[T any](x any) bool { function unphi (line 292) | func unphi(v ssa.Value) iter.Seq[ssa.Value] { function every (line 301) | func every(v ssa.Value, f func(ssa.Value) bool) bool { FILE: gopls/internal/analysis/yield/yield_test.go function Test (line 14) | func Test(t *testing.T) { FILE: gopls/internal/bloom/filter.go constant blockBits (line 15) | blockBits = 8 type Filter (line 18) | type Filter struct method locate (line 45) | func (f *Filter) locate(seed maphash.Seed, s string) (index int, bit b... method MayContain (line 97) | func (f *Filter) MayContain(s string) bool { function NewFilter (line 24) | func NewFilter(elems []string) *Filter { function assert (line 52) | func assert(cond bool, msg string) { function calibrate (line 60) | func calibrate(fpRate float64, n int) (blocks, seeds int) { FILE: gopls/internal/bloom/filter_test.go function TestFilter (line 13) | func TestFilter(t *testing.T) { function falsePositiveRate (line 60) | func falsePositiveRate(block, seeds, elems int) float64 { type stringGenerator (line 65) | type stringGenerator struct method next (line 73) | func (g *stringGenerator) next() string { function newStringGenerator (line 69) | func newStringGenerator() *stringGenerator { function TestDegenerateFilter (line 84) | func TestDegenerateFilter(t *testing.T) { FILE: gopls/internal/cache/analysis.go constant AnalysisProgressTitle (line 107) | AnalysisProgressTitle = "Analyzing Dependencies" method Analyze (line 113) | func (s *Snapshot) Analyze(ctx context.Context, pkgs map[PackageID]*meta... type analysisNode (line 453) | type analysisNode struct method decrefPreds (line 433) | func (an *analysisNode) decrefPreds() { method String (line 470) | func (an *analysisNode) String() string { return string(an.ph.mp.ID) } method summaryHash (line 477) | func (an *analysisNode) summaryHash() file.Hash { method runCached (line 575) | func (an *analysisNode) runCached(ctx context.Context, key file.Hash) ... method cacheKey (line 636) | func (an *analysisNode) cacheKey() file.Hash { method run (line 671) | func (an *analysisNode) run(ctx context.Context) (*analyzeSummary, err... method typeCheck (line 739) | func (an *analysisNode) typeCheck(ctx context.Context) (*analysisPacka... type analyzeSummary (line 501) | type analyzeSummary struct type actionMap (line 508) | type actionMap method GobEncode (line 520) | func (m actionMap) GobEncode() ([]byte, error) { method GobDecode (line 533) | func (m *actionMap) GobDecode(data []byte) error { type actionsMapEntry (line 515) | type actionsMapEntry struct type actionSummary (line 547) | type actionSummary struct function typesLookup (line 801) | func typesLookup(pkg *types.Package) func(string) *types.Package { type analysisPackage (line 857) | type analysisPackage struct type action (line 869) | type action struct method String (line 884) | func (act *action) String() string { method exec (line 920) | func (act *action) exec(ctx context.Context) (any, *actionSummary, err... function execActions (line 890) | func execActions(ctx context.Context, actions []*action) { type LabelDuration (line 1152) | type LabelDuration struct function AnalyzerRunTimes (line 1159) | func AnalyzerRunTimes() []LabelDuration { function requiredAnalyzers (line 1174) | func requiredAnalyzers(analyzers []*analysis.Analyzer) []*analysis.Analy... type gobDiagnostic (line 1198) | type gobDiagnostic struct type gobRelatedInformation (line 1210) | type gobRelatedInformation struct type gobSuggestedFix (line 1215) | type gobSuggestedFix struct type gobCommand (line 1222) | type gobCommand struct type gobTextEdit (line 1228) | type gobTextEdit struct function toGobDiagnostic (line 1235) | func toGobDiagnostic(pkg *Package, a *analysis.Analyzer, diag analysis.D... function diagnosticPosToLocation (line 1300) | func diagnosticPosToLocation(pkg *Package, allowDeps bool, start, end to... function effectiveURL (line 1420) | func effectiveURL(a *analysis.Analyzer, diag analysis.Diagnostic) string { function stableName (line 1440) | func stableName(a *analysis.Analyzer) string { FILE: gopls/internal/cache/cache.go function New (line 69) | func New(store *memoize.Store) *Cache { type Cache (line 89) | type Cache struct method ID (line 114) | func (c *Cache) ID() string { return c.id } method MemStats (line 115) | func (c *Cache) MemStats() map[reflect.Type]int { return c.store.Stats... method FileStats (line 119) | func (c *Cache) FileStats() (stats command.FileStats) { FILE: gopls/internal/cache/check.go type typeCheckBatch (line 54) | type typeCheckBatch struct method addHandles (line 76) | func (b *typeCheckBatch) addHandles(handles map[PackageID]*packageHand... method getHandle (line 89) | func (b *typeCheckBatch) getHandle(id PackageID) *packageHandle { method query (line 266) | func (b *typeCheckBatch) query(ctx context.Context, syntaxIDs []Packag... method getImportPackage (line 293) | func (b *typeCheckBatch) getImportPackage(ctx context.Context, id Pack... method handleSyntaxPackage (line 327) | func (b *typeCheckBatch) handleSyntaxPackage(ctx context.Context, i in... method getPackage (line 351) | func (b *typeCheckBatch) getPackage(ctx context.Context, ph *packageHa... method Metadata (line 440) | func (b *typeCheckBatch) Metadata(id PackageID) *metadata.Package { method importPackage (line 450) | func (b *typeCheckBatch) importPackage(ctx context.Context, mp *metada... method checkPackageForImport (line 578) | func (b *typeCheckBatch) checkPackageForImport(ctx context.Context, ph... method checkPackage (line 1578) | func (b *typeCheckBatch) checkPackage(ctx context.Context, fset *token... method typesConfig (line 1722) | func (b *typeCheckBatch) typesConfig(ctx context.Context, inputs *type... method TypeCheck (line 112) | func (s *Snapshot) TypeCheck(ctx context.Context, ids ...PackageID) ([]*... method forEachPackage (line 138) | func (s *Snapshot) forEachPackage(ctx context.Context, ids []PackageID, ... method acquireTypeChecking (line 217) | func (s *Snapshot) acquireTypeChecking() (*typeCheckBatch, func()) { function newTypeCheckBatch (line 242) | func newTypeCheckBatch(parseCache *parseCache, gopackagesdriver bool) *t... function storePackageResults (line 415) | func storePackageResults(ctx context.Context, ph *packageHandle, p *Pack... function importLookup (line 661) | func importLookup(mp *metadata.Package, source metadata.Source) func(Pac... type packageState (line 804) | type packageState constant validMetadata (line 807) | validMetadata packageState = iota constant validLocalData (line 808) | validLocalData constant validKey (line 809) | validKey constant validImports (line 810) | validImports constant validPackage (line 811) | validPackage type packageHandle (line 861) | type packageHandle struct method clone (line 933) | func (ph *packageHandle) clone() *packageHandle { type packageData (line 926) | type packageData struct method getPackageHandles (line 941) | func (s *Snapshot) getPackageHandles(ctx context.Context, ids []PackageI... type packageHandleBuilder (line 1043) | type packageHandleBuilder struct method getTransitiveRefs (line 1083) | func (b *packageHandleBuilder) getTransitiveRefs(pkgID PackageID) map[... method getOneTransitiveRefLocked (line 1122) | func (b *packageHandleBuilder) getOneTransitiveRefLocked(sym typerefs.... method evaluatePackageHandle (line 1182) | func (b *packageHandleBuilder) evaluatePackageHandle(ctx context.Conte... type handleNode (line 1058) | type handleNode struct type partialRefs (line 1073) | type partialRefs struct method typerefs (line 1377) | func (s *Snapshot) typerefs(ctx context.Context, mp *metadata.Package, c... method typerefData (line 1401) | func (s *Snapshot) typerefData(ctx context.Context, id PackageID, import... function typerefsKey (line 1428) | func typerefsKey(id PackageID, imports map[ImportPath]*metadata.Package,... type typeCheckInputs (line 1454) | type typeCheckInputs struct method typeCheckInputs (line 1474) | func (s *Snapshot) typeCheckInputs(ctx context.Context, mp *metadata.Pac... function readFiles (line 1520) | func readFiles(ctx context.Context, fs file.Source, uris []protocol.Docu... function localPackageKey (line 1533) | func localPackageKey(inputs *typeCheckInputs) file.Hash { function validGoVersion (line 1782) | func validGoVersion(goVersion string) bool { function releaseVersion (line 1796) | func releaseVersion() string { function depsErrors (line 1812) | func depsErrors(ctx context.Context, snapshot *Snapshot, mp *metadata.Pa... function missingPkgError (line 1943) | func missingPkgError(from PackageID, pkgPath string, viewType ViewType) ... function typeErrorsToDiagnostics (line 1974) | func typeErrorsToDiagnostics(pkg *syntaxPackage, inputs *typeCheckInputs... function typeErrorEndPos (line 2159) | func typeErrorEndPos(tokFile *token.File, src []byte, start token.Pos) t... type importerFunc (line 2205) | type importerFunc method Import (line 2207) | func (f importerFunc) Import(path string) (*types.Package, error) { re... FILE: gopls/internal/cache/constraints.go function isStandaloneFile (line 18) | func isStandaloneFile(src []byte, standaloneTags []string) bool { function walkConstraints (line 44) | func walkConstraints(file *ast.File, f func(constraint.Expr) bool) { FILE: gopls/internal/cache/constraints_test.go function TestIsStandaloneFile (line 11) | func TestIsStandaloneFile(t *testing.T) { function TestVersionRegexp (line 95) | func TestVersionRegexp(t *testing.T) { FILE: gopls/internal/cache/debug.go function assert (line 8) | func assert(cond bool, msg string) { FILE: gopls/internal/cache/diagnostics.go type InitializationError (line 24) | type InitializationError struct function byURI (line 33) | func byURI(d *Diagnostic) protocol.DocumentURI { return d.URI } type Diagnostic (line 39) | type Diagnostic struct method String (line 71) | func (d *Diagnostic) String() string { method Hash (line 77) | func (d *Diagnostic) Hash() file.Hash { function ToProtocolDiagnostics (line 99) | func ToProtocolDiagnostics(diagnostics ...*Diagnostic) []protocol.Diagno... type DiagnosticSource (line 130) | type DiagnosticSource constant UnknownError (line 133) | UnknownError DiagnosticSource = "" constant ListError (line 134) | ListError DiagnosticSource = "go list" constant ParseError (line 135) | ParseError DiagnosticSource = "syntax" constant TypeError (line 136) | TypeError DiagnosticSource = "compiler" constant ModTidyError (line 137) | ModTidyError DiagnosticSource = "go mod tidy" constant CompilerOptDetailsInfo (line 138) | CompilerOptDetailsInfo DiagnosticSource = "optimizer details" constant UpgradeNotification (line 139) | UpgradeNotification DiagnosticSource = "upgrade available" constant Vulncheck (line 140) | Vulncheck DiagnosticSource = "vulncheck imports" constant Govulncheck (line 141) | Govulncheck DiagnosticSource = "govulncheck" constant TemplateError (line 142) | TemplateError DiagnosticSource = "template" constant WorkFileError (line 143) | WorkFileError DiagnosticSource = "go.work file" type SuggestedFix (line 155) | type SuggestedFix struct function SuggestedFixFromCommand (line 163) | func SuggestedFixFromCommand(cmd *protocol.Command, kind protocol.CodeAc... type lazyFixesJSON (line 175) | type lazyFixesJSON struct function bundleLazyFixes (line 184) | func bundleLazyFixes(sd *Diagnostic) bool { function BundledLazyFixes (line 225) | func BundledLazyFixes(diag protocol.Diagnostic) ([]protocol.CodeAction, ... FILE: gopls/internal/cache/errors.go function goPackagesErrorDiagnostics (line 37) | func goPackagesErrorDiagnostics(ctx context.Context, e packages.Error, m... function parseErrorDiagnostics (line 105) | func parseErrorDiagnostics(pkg *syntaxPackage, errList scanner.ErrorList... function goGetQuickFixes (line 131) | func goGetQuickFixes(haveModule bool, uri protocol.DocumentURI, pkg stri... function editGoDirectiveQuickFix (line 145) | func editGoDirectiveQuickFix(haveModule bool, uri protocol.DocumentURI, ... function encodeDiagnostics (line 159) | func encodeDiagnostics(srcDiags []*Diagnostic) []byte { function decodeDiagnostics (line 207) | func decodeDiagnostics(data []byte) []*Diagnostic { function toSourceDiagnostic (line 261) | func toSourceDiagnostic(srcAnalyzer *settings.Analyzer, gobDiag *gobDiag... function onlyDeletions (line 342) | func onlyDeletions(fixes []SuggestedFix) bool { function typesCodeHref (line 361) | func typesCodeHref(linkTarget string, code typesinternal.ErrorCode) stri... function BuildLink (line 366) | func BuildLink(target, path, anchor string) protocol.URI { function parseGoListError (line 374) | func parseGoListError(e packages.Error, dir string) (filename string, li... function splitFileLineCol (line 395) | func splitFileLineCol(s string) (file string, line, col8 int) { function parseGoListImportCycleError (line 427) | func parseGoListImportCycleError(ctx context.Context, e packages.Error, ... function parseGoURI (line 476) | func parseGoURI(ctx context.Context, fs file.Source, uri protocol.Docume... function parseModURI (line 488) | func parseModURI(ctx context.Context, fs file.Source, uri protocol.Docum... FILE: gopls/internal/cache/errors_test.go function TestParseErrorMessage (line 17) | func TestParseErrorMessage(t *testing.T) { function TestDiagnosticEncoding (line 58) | func TestDiagnosticEncoding(t *testing.T) { FILE: gopls/internal/cache/filemap.go type fileMap (line 19) | type fileMap struct method clone (line 35) | func (m *fileMap) clone(changes map[protocol.DocumentURI]file.Handle) ... method destroy (line 67) | func (m *fileMap) destroy() { method get (line 77) | func (m *fileMap) get(key protocol.DocumentURI) (file.Handle, bool) { method all (line 82) | func (m *fileMap) all() iter.Seq2[protocol.DocumentURI, file.Handle] { method set (line 88) | func (m *fileMap) set(key protocol.DocumentURI, fh file.Handle) { method addDirs (line 107) | func (m *fileMap) addDirs(u protocol.DocumentURI) { method delete (line 117) | func (m *fileMap) delete(key protocol.DocumentURI) { method getOverlays (line 132) | func (m *fileMap) getOverlays() []*overlay { method getDirs (line 144) | func (m *fileMap) getDirs() *persistent.Set[string] { function newFileMap (line 25) | func newFileMap() *fileMap { FILE: gopls/internal/cache/filemap_test.go function TestFileMap (line 17) | func TestFileMap(t *testing.T) { FILE: gopls/internal/cache/filterer.go function PathIncludeFunc (line 31) | func PathIncludeFunc(rules []string) func(string) bool { function convertFilterToRegexp (line 68) | func convertFilterToRegexp(filter string) *regexp.Regexp { FILE: gopls/internal/cache/fs_memoized.go type memoizedFS (line 21) | type memoizedFS struct method ReadFile (line 61) | func (fs *memoizedFS) ReadFile(ctx context.Context, uri protocol.Docum... method fileStats (line 124) | func (fs *memoizedFS) fileStats() (files, largest, errs int) { function newMemoizedFS (line 30) | func newMemoizedFS() *memoizedFS { type diskFile (line 36) | type diskFile struct method String (line 44) | func (h *diskFile) String() string { return h.uri.Path() } method URI (line 46) | func (h *diskFile) URI() protocol.DocumentURI { return h.uri } method Identity (line 48) | func (h *diskFile) Identity() file.Identity { method SameContentsOnDisk (line 55) | func (h *diskFile) SameContentsOnDisk() bool { return true } method Version (line 56) | func (h *diskFile) Version() int32 { return 0 } method Content (line 57) | func (h *diskFile) Content() ([]byte, error) { return h.content, h.... method ModTime (line 58) | func (h *diskFile) ModTime() (time.Time, error) { return h.modTime, h.... function readFile (line 147) | func readFile(ctx context.Context, uri protocol.DocumentURI, mtime time.... FILE: gopls/internal/cache/fs_overlay.go type overlayFS (line 18) | type overlayFS struct method Overlays (line 33) | func (fs *overlayFS) Overlays() []*overlay { method ReadFile (line 43) | func (fs *overlayFS) ReadFile(ctx context.Context, uri protocol.Docume... function newOverlayFS (line 25) | func newOverlayFS(delegate file.Source) *overlayFS { type overlay (line 56) | type overlay struct method String (line 69) | func (o *overlay) String() string { return o.uri.Path() } method URI (line 71) | func (o *overlay) URI() protocol.DocumentURI { return o.uri } method Identity (line 73) | func (o *overlay) Identity() file.Identity { method Content (line 80) | func (o *overlay) Content() ([]byte, error) { return o.content, nil } method ModTime (line 81) | func (o *overlay) ModTime() (time.Time, error) { return o.modTime, nil } method Version (line 82) | func (o *overlay) Version() int32 { return o.version } method SameContentsOnDisk (line 83) | func (o *overlay) SameContentsOnDisk() bool { return o.saved } method Kind (line 84) | func (o *overlay) Kind() file.Kind { return o.kind } FILE: gopls/internal/cache/future.go type futureCache (line 34) | type futureCache struct function newFutureCache (line 47) | func newFutureCache[K comparable, V any](persistent bool) *futureCache[K... type future (line 54) | type future struct type cacheFunc (line 77) | type cacheFunc method get (line 94) | func (c *futureCache[K, V]) get(ctx context.Context, k K, compute cacheF... FILE: gopls/internal/cache/future_test.go function TestFutureCache_Persistent (line 17) | func TestFutureCache_Persistent(t *testing.T) { function TestFutureCache_Ephemeral (line 38) | func TestFutureCache_Ephemeral(t *testing.T) { function testFutureCache (line 69) | func testFutureCache(t *testing.T, ctx context.Context, c *futureCache[i... function TestFutureCache_Retrying (line 89) | func TestFutureCache_Retrying(t *testing.T) { FILE: gopls/internal/cache/imports.go type refreshTimer (line 25) | type refreshTimer struct method stop (line 41) | func (t *refreshTimer) stop() { method schedule (line 58) | func (t *refreshTimer) schedule() { function newRefreshTimer (line 34) | func newRefreshTimer(refresh func()) *refreshTimer { type sharedModCache (line 86) | type sharedModCache struct method dirCache (line 93) | func (c *sharedModCache) dirCache(dir string) *imports.DirInfoCache { method refreshDir (line 107) | func (c *sharedModCache) refreshDir(ctx context.Context, dir string, l... type importsState (line 126) | type importsState struct method stopTimer (line 209) | func (s *importsState) stopTimer() { method runProcessEnvFunc (line 218) | func (s *importsState) runProcessEnvFunc(ctx context.Context, snapshot... method refreshProcessEnv (line 282) | func (s *importsState) refreshProcessEnv() { function newImportsState (line 140) | func newImportsState(backgroundCtx context.Context, modCache *sharedModC... type modcacheState (line 152) | type modcacheState struct method getIndex (line 175) | func (s *modcacheState) getIndex() (*modindex.Index, error) { method refreshIndex (line 188) | func (s *modcacheState) refreshIndex() { method stopTimer (line 204) | func (s *modcacheState) stopTimer() { function newModcacheState (line 165) | func newModcacheState(gomodcache string) *modcacheState { FILE: gopls/internal/cache/keys.go type SessionKey (line 20) | type SessionKey struct method Name (line 30) | func (k *SessionKey) Name() string { return k.name } method Description (line 31) | func (k *SessionKey) Description() string { return k.description } method Append (line 33) | func (k *SessionKey) Append(buf []byte, l label.Label) []byte { method Of (line 38) | func (k *SessionKey) Of(v *Session) label.Label { return label.OfValue... method Get (line 41) | func (k *SessionKey) Get(lm label.Map) *Session { method From (line 49) | func (k *SessionKey) From(t label.Label) *Session { function NewSessionKey (line 26) | func NewSessionKey(name, description string) *SessionKey { FILE: gopls/internal/cache/load.go method load (line 46) | func (s *Snapshot) load(ctx context.Context, allowNetwork AllowNetwork, ... type moduleErrorMap (line 321) | type moduleErrorMap struct method Error (line 325) | func (m *moduleErrorMap) Error() string { method config (line 350) | func (s *Snapshot) config(ctx context.Context, allowNetwork AllowNetwork... function buildMetadata (line 392) | func buildMetadata(updates map[PackageID]*metadata.Package, loadDir stri... function computeLoadDiagnostics (line 580) | func computeLoadDiagnostics(ctx context.Context, snapshot *Snapshot, mp ... function isWorkspacePackageLocked (line 632) | func isWorkspacePackageLocked(ctx context.Context, s *Snapshot, meta *me... function containsOpenFileLocked (line 733) | func containsOpenFileLocked(s *Snapshot, mp *metadata.Package) bool { function computeWorkspacePackagesLocked (line 756) | func computeWorkspacePackagesLocked(ctx context.Context, s *Snapshot, me... function allFilesHaveRealPackages (line 791) | func allFilesHaveRealPackages(g *metadata.Graph, mp *metadata.Package) b... function isTestMain (line 805) | func isTestMain(pkg *packages.Package, gocache string) bool { FILE: gopls/internal/cache/metadata/cycle_test.go function init (line 16) | func init() { function TestBreakImportCycles (line 21) | func TestBreakImportCycles(t *testing.T) { FILE: gopls/internal/cache/metadata/graph.go type Graph (line 21) | type Graph struct method Metadata (line 42) | func (g *Graph) Metadata(id PackageID) *Package { method Update (line 51) | func (g *Graph) Update(updates map[PackageID]*Package) *Graph { method ReverseReflexiveTransitiveClosure (line 178) | func (g *Graph) ReverseReflexiveTransitiveClosure(ids ...PackageID) ma... method ForwardReflexiveTransitiveClosure (line 202) | func (g *Graph) ForwardReflexiveTransitiveClosure(ids ...PackageID) it... function newGraph (line 92) | func newGraph(pkgs map[PackageID]*Package) *Graph { function breakImportCycles (line 231) | func breakImportCycles(metadata, updates map[PackageID]*Package) { function cyclic (line 314) | func cyclic(graph map[PackageID]*Package) string { function detectImportCycles (line 352) | func detectImportCycles(metadata, updates map[PackageID]*Package) [][]*P... FILE: gopls/internal/cache/metadata/metadata.go type PackageID (line 32) | type PackageID type PackagePath (line 33) | type PackagePath type PackageName (line 34) | type PackageName type ImportPath (line 35) | type ImportPath type Package (line 43) | type Package struct method String (line 65) | func (mp *Package) String() string { return string(mp.ID) } method IsIntermediateTestVariant (line 165) | func (mp *Package) IsIntermediateTestVariant() bool { type Source (line 170) | type Source interface function IsCommandLineArguments (line 184) | func IsCommandLineArguments(id PackageID) bool { function SortPostOrder (line 189) | func SortPostOrder(meta Source, ids []PackageID) { function UnquoteImportPath (line 215) | func UnquoteImportPath(spec *ast.ImportSpec) ImportPath { function RemoveIntermediateTestVariants (line 226) | func RemoveIntermediateTestVariants(pmetas *[]*Package) { function IsValidImport (line 238) | func IsValidImport(from, to PackagePath, goList bool) bool { FILE: gopls/internal/cache/methodsets/methodsets.go type Index (line 65) | type Index struct method Encode (line 78) | func (index *Index) Encode() []byte { method Search (line 143) | func (index *Index) Search(key Key, want TypeRelation, method *types.F... method location (line 242) | func (index *Index) location(posn gobPosition) Location { function Decode (line 71) | func Decode(pkgpath metadata.PackagePath, data []byte) *Index { function NewIndex (line 84) | func NewIndex(fset *token.FileSet, pkg *types.Package) *Index { type Location (line 92) | type Location struct type Key (line 99) | type Key struct function KeyOf (line 105) | func KeyOf(t types.Type) (Key, bool) { type Result (line 114) | type Result struct type TypeRelation (line 129) | type TypeRelation constant Supertype (line 132) | Supertype TypeRelation = 0x1 constant Subtype (line 133) | Subtype TypeRelation = 0x2 function implements (line 199) | func implements(x, y *gobMethodSet) bool { type indexBuilder (line 251) | type indexBuilder struct method build (line 257) | func (b *indexBuilder) build(fset *token.FileSet, pkg *types.Package) ... method string (line 332) | func (b *indexBuilder) string(s string) int { function methodSetInfo (line 349) | func methodSetInfo(t types.Type, setIndexInfo func(*gobMethod, *types.Fu... function EnsurePointer (line 385) | func EnsurePointer(T types.Type) types.Type { type gobPackage (line 399) | type gobPackage struct type gobMethodSet (line 405) | type gobMethodSet struct type gobMethod (line 415) | type gobMethod struct method parse (line 438) | func (m *gobMethod) parse() fingerprint.Tree { type gobPosition (line 431) | type gobPosition struct FILE: gopls/internal/cache/mod.go type ParsedModule (line 26) | type ParsedModule struct method ParseMod (line 35) | func (s *Snapshot) ParseMod(ctx context.Context, fh file.Handle) (*Parse... function parseModImpl (line 72) | func parseModImpl(ctx context.Context, fh file.Handle) (*ParsedModule, e... type ParsedWorkFile (line 121) | type ParsedWorkFile struct method ParseWork (line 130) | func (s *Snapshot) ParseWork(ctx context.Context, fh file.Handle) (*Pars... function parseWorkImpl (line 166) | func parseWorkImpl(ctx context.Context, fh file.Handle) (*ParsedWorkFile... method ModWhy (line 208) | func (s *Snapshot) ModWhy(ctx context.Context, fh file.Handle) (map[stri... function modWhyImpl (line 247) | func modWhyImpl(ctx context.Context, snapshot *Snapshot, fh file.Handle)... method extractGoCommandErrors (line 287) | func (s *Snapshot) extractGoCommandErrors(ctx context.Context, goCmdErro... method matchErrorToModule (line 379) | func (s *Snapshot) matchErrorToModule(pm *ParsedModule, goCmdError strin... method goCommandDiagnostic (line 412) | func (s *Snapshot) goCommandDiagnostic(pm *ParsedModule, loc protocol.Lo... function findModuleReference (line 483) | func findModuleReference(mf *modfile.File, ver module.Version) *modfile.... function ResolvedVersion (line 503) | func ResolvedVersion(module *packages.Module) string { function ResolvedPath (line 513) | func ResolvedPath(module *packages.Module) string { function ResolvedString (line 523) | func ResolvedString(module *packages.Module) string { FILE: gopls/internal/cache/mod_tidy.go type TidiedModule (line 33) | type TidiedModule struct method ModTidy (line 42) | func (s *Snapshot) ModTidy(ctx context.Context, pm *ParsedModule) (*Tidi... function modTidyImpl (line 100) | func modTidyImpl(ctx context.Context, snapshot *Snapshot, pm *ParsedModu... function modTidyDiagnostics (line 150) | func modTidyDiagnostics(ctx context.Context, snapshot *Snapshot, pm *Par... function missingModuleDiagnostics (line 212) | func missingModuleDiagnostics(ctx context.Context, snapshot *Snapshot, p... function unusedDiagnostic (line 325) | func unusedDiagnostic(m *protocol.Mapper, req *modfile.Require, onlyDiag... function directnessDiagnostic (line 348) | func directnessDiagnostic(m *protocol.Mapper, req *modfile.Require) (*Di... function missingModuleDiagnostic (line 389) | func missingModuleDiagnostic(pm *ParsedModule, req *modfile.Require) (*D... function switchDirectness (line 418) | func switchDirectness(req *modfile.Require, m *protocol.Mapper) ([]proto... function missingModuleForImport (line 458) | func missingModuleForImport(pgf *parsego.File, imp *ast.ImportSpec, req ... function parseImports (line 484) | func parseImports(ctx context.Context, s *Snapshot, files []file.Handle)... FILE: gopls/internal/cache/mod_vuln.go method ModVuln (line 31) | func (s *Snapshot) ModVuln(ctx context.Context, modURI protocol.Document... constant GoVersionForVulnTest (line 66) | GoVersionForVulnTest = "_GOPLS_TEST_VULNCHECK_GOVERSION" function modVulnImpl (line 72) | func modVulnImpl(ctx context.Context, snapshot *Snapshot) (*vulncheck.Re... function GetEnv (line 216) | func GetEnv(snapshot *Snapshot, key string) string { function toPackagePathSet (line 225) | func toPackagePathSet(mds []*metadata.Package) map[metadata.PackagePath]... function fixedVersion (line 233) | func fixedVersion(modulePath string, affected []osv.Affected) string { function latestFixed (line 243) | func latestFixed(modulePath string, as []osv.Affected) string { function versionString (line 265) | func versionString(modulePath, version string) string { function semverToGoTag (line 282) | func semverToGoTag(v string) string { function finalDigitsIndex (line 320) | func finalDigitsIndex(s string) int { function osvsByModule (line 335) | func osvsByModule(ctx context.Context, db, moduleVersion string) ([]*osv... type osvReader (line 369) | type osvReader struct method OSV (line 373) | func (h *osvReader) OSV(entry *osv.Entry) error { method Config (line 378) | func (h *osvReader) Config(config *govulncheck.Config) error { method Finding (line 382) | func (h *osvReader) Finding(finding *govulncheck.Finding) error { method Progress (line 386) | func (h *osvReader) Progress(progress *govulncheck.Progress) error { FILE: gopls/internal/cache/os_darwin.go function init (line 17) | func init() { function darwinCheckPathValid (line 21) | func darwinCheckPathValid(path string) error { FILE: gopls/internal/cache/os_windows.go function init (line 13) | func init() { function windowsCheckPathValid (line 17) | func windowsCheckPathValid(path string) error { FILE: gopls/internal/cache/package.go type Package (line 38) | type Package struct method String (line 100) | func (p *Package) String() string { return string(p.metadata.ID) } method Metadata (line 102) | func (p *Package) Metadata() *metadata.Package { return p.metadata } method CompiledGoFiles (line 128) | func (p *Package) CompiledGoFiles() []*parsego.File { method File (line 132) | func (p *Package) File(uri protocol.DocumentURI) (*parsego.File, error) { method FileEnclosing (line 138) | func (p *Package) FileEnclosing(pos token.Pos) (*parsego.File, error) { method Syntax (line 162) | func (p *Package) Syntax() []*ast.File { method FileSet (line 174) | func (p *Package) FileSet() *token.FileSet { method Types (line 179) | func (p *Package) Types() *types.Package { method TypesInfo (line 187) | func (p *Package) TypesInfo() *types.Info { method TypesSizes (line 192) | func (p *Package) TypesSizes() types.Sizes { method DependencyTypes (line 200) | func (p *Package) DependencyTypes(path PackagePath) *types.Package { method ParseErrors (line 206) | func (p *Package) ParseErrors() []scanner.ErrorList { method TypeErrors (line 212) | func (p *Package) TypeErrors() []types.Error { type syntaxPackage (line 45) | type syntaxPackage struct method xrefs (line 71) | func (p *syntaxPackage) xrefs() []byte { method methodsets (line 78) | func (p *syntaxPackage) methodsets() *methodsets.Index { method tests (line 85) | func (p *syntaxPackage) tests() *testfuncs.Index { method hasFixedFiles (line 96) | func (p *syntaxPackage) hasFixedFiles() bool { method File (line 150) | func (pkg *syntaxPackage) File(uri protocol.DocumentURI) (*parsego.Fil... type loadScope (line 107) | type loadScope interface type fileLoadScope (line 113) | type fileLoadScope method aScope (line 123) | func (fileLoadScope) aScope() {} type packageLoadScope (line 114) | type packageLoadScope method aScope (line 124) | func (packageLoadScope) aScope() {} type moduleLoadScope (line 115) | type moduleLoadScope struct method aScope (line 125) | func (moduleLoadScope) aScope() {} type viewLoadScope (line 119) | type viewLoadScope struct method aScope (line 126) | func (viewLoadScope) aScope() {} FILE: gopls/internal/cache/parse.go method ParseGo (line 21) | func (s *Snapshot) ParseGo(ctx context.Context, fh file.Handle, mode par... function parseGoImpl (line 30) | func parseGoImpl(ctx context.Context, fset *token.FileSet, fh file.Handl... FILE: gopls/internal/cache/parse_cache.go constant reservedForParsing (line 47) | reservedForParsing = 1 << (bits.UintSize - 4) function fileSetWithBase (line 54) | func fileSetWithBase(base int) *token.FileSet { constant parseCacheMinFiles (line 73) | parseCacheMinFiles = 100 type parseCache (line 97) | type parseCache struct method stop (line 123) | func (c *parseCache) stop() { method startParse (line 149) | func (c *parseCache) startParse(mode parser.Mode, purgeFuncBodies bool... method gc (line 255) | func (c *parseCache) gc() { method gcOnce (line 271) | func (c *parseCache) gcOnce() { method allocateSpace (line 292) | func (c *parseCache) allocateSpace(size int) (int, int) { method parseFiles (line 319) | func (c *parseCache) parseFiles(ctx context.Context, fset *token.FileS... function newParseCache (line 112) | func newParseCache(expireAfter time.Duration) *parseCache { type parseKey (line 128) | type parseKey struct type parseCacheEntry (line 134) | type parseCacheEntry struct type queue (line 394) | type queue method Len (line 396) | func (q queue) Len() int { return len(q) } method Less (line 398) | func (q queue) Less(i, j int) bool { return q[i].atime < q[j].atime } method Swap (line 400) | func (q queue) Swap(i, j int) { method Push (line 406) | func (q *queue) Push(x any) { method Pop (line 412) | func (q *queue) Pop() any { FILE: gopls/internal/cache/parse_cache_test.go function skipIfNoParseCache (line 20) | func skipIfNoParseCache(t *testing.T) { function TestParseCache (line 26) | func TestParseCache(t *testing.T) { function TestParseCache_Reparsing (line 87) | func TestParseCache_Reparsing(t *testing.T) { function TestParseCache_Issue59097 (line 109) | func TestParseCache_Issue59097(t *testing.T) { function TestParseCache_TimeEviction (line 128) | func TestParseCache_TimeEviction(t *testing.T) { function TestParseCache_Duplicates (line 179) | func TestParseCache_Duplicates(t *testing.T) { function dummyFileHandles (line 196) | func dummyFileHandles(n int) []file.Handle { function makeFakeFileHandle (line 206) | func makeFakeFileHandle(uri protocol.DocumentURI, src []byte) fakeFileHa... type fakeFileHandle (line 214) | type fakeFileHandle struct method String (line 221) | func (h fakeFileHandle) String() string { method URI (line 225) | func (h fakeFileHandle) URI() protocol.DocumentURI { method Content (line 229) | func (h fakeFileHandle) Content() ([]byte, error) { method Identity (line 233) | func (h fakeFileHandle) Identity() file.Identity { FILE: gopls/internal/cache/parsego/file.go type File (line 22) | type File struct method String (line 60) | func (pgf *File) String() string { return string(pgf.URI) } method Cursor (line 63) | func (pgf *File) Cursor() inspector.Cursor { method Fixed (line 74) | func (pgf *File) Fixed() bool { method PositionPos (line 81) | func (pgf *File) PositionPos(p protocol.Position) (token.Pos, error) { method PosPosition (line 90) | func (pgf *File) PosPosition(pos token.Pos) (protocol.Position, error) { method PosRange (line 95) | func (pgf *File) PosRange(start, end token.Pos) (protocol.Range, error) { method PosLocation (line 100) | func (pgf *File) PosLocation(start, end token.Pos) (protocol.Location,... method PosText (line 105) | func (pgf *File) PosText(start, end token.Pos) ([]byte, error) { method NodeRange (line 110) | func (pgf *File) NodeRange(node ast.Node) (protocol.Range, error) { method NodeOffsets (line 115) | func (pgf *File) NodeOffsets(node ast.Node) (start int, end int, _ err... method NodeLocation (line 120) | func (pgf *File) NodeLocation(node ast.Node) (protocol.Location, error) { method NodeText (line 125) | func (pgf *File) NodeText(node ast.Node) ([]byte, error) { method RangePos (line 130) | func (pgf *File) RangePos(r protocol.Range) (token.Pos, token.Pos, err... method CheckNode (line 139) | func (pgf *File) CheckNode(node ast.Node) { method CheckPos (line 146) | func (pgf *File) CheckPos(pos token.Pos) { method Resolve (line 160) | func (pgf *File) Resolve() { method Indentation (line 183) | func (pgf *File) Indentation(pos token.Pos) (string, error) { FILE: gopls/internal/cache/parsego/parse.go constant Header (line 39) | Header = parser.AllErrors | parser.ParseComments | parser.ImportsOnly | ... constant Full (line 44) | Full = parser.AllErrors | parser.ParseComments | parser.SkipObjectResolu... function Parse (line 50) | func Parse(ctx context.Context, fset *token.FileSet, uri protocol.Docume... function fixAST (line 142) | func fixAST(n ast.Node, tok *token.File, src []byte) (fixes []FixType) { type FixType (line 210) | type FixType constant noFix (line 213) | noFix FixType = iota constant FixedCurlies (line 214) | FixedCurlies constant FixedDanglingSelector (line 215) | FixedDanglingSelector constant FixedDeferOrGo (line 216) | FixedDeferOrGo constant FixedArrayType (line 217) | FixedArrayType constant FixedInit (line 218) | FixedInit constant FixedPhantomSelector (line 219) | FixedPhantomSelector constant FixedEmptySwitch (line 220) | FixedEmptySwitch function fixSrc (line 227) | func fixSrc(f *ast.File, tf *token.File, src []byte) (newSrc []byte, fix... function fixMissingCurlies (line 261) | func fixMissingCurlies(f *ast.File, b *ast.BlockStmt, parent ast.Node, t... function fixEmptySwitch (line 371) | func fixEmptySwitch(body *ast.BlockStmt, tok *token.File, src []byte) bo... function fixDanglingSelector (line 412) | func fixDanglingSelector(s *ast.SelectorExpr, tf *token.File, src []byte... function fixPhantomSelector (line 446) | func fixPhantomSelector(sel *ast.SelectorExpr, tf *token.File, src []byt... function isPhantomUnderscore (line 477) | func isPhantomUnderscore(id *ast.Ident, tok *token.File, src []byte) bool { function fixInitStmt (line 493) | func fixInitStmt(bad *ast.BadExpr, parent ast.Node, tok *token.File, src... function readKeyword (line 546) | func readKeyword(pos token.Pos, tok *token.File, src []byte) string { function fixArrayType (line 575) | func fixArrayType(bad *ast.BadExpr, parent ast.Node, tok *token.File, sr... function precedingToken (line 616) | func precedingToken(pos token.Pos, tok *token.File, src []byte) token.To... function fixDeferOrGoStmt (line 639) | func fixDeferOrGoStmt(bad *ast.BadStmt, parent ast.Node, tok *token.File... function parseStmt (line 790) | func parseStmt(tok *token.File, pos token.Pos, src []byte) (ast.Stmt, er... function parseExpr (line 822) | func parseExpr(tok *token.File, pos token.Pos, src []byte) (ast.Expr, er... function offsetPositions (line 839) | func offsetPositions(tok *token.File, n ast.Node, offset token.Pos) { function replaceNode (line 885) | func replaceNode(parent, oldChild, newChild ast.Node) bool { FILE: gopls/internal/cache/parsego/parse_test.go function TestFixPosition_Issue64488 (line 25) | func TestFixPosition_Issue64488(t *testing.T) { function TestFixGoAndDefer (line 53) | func TestFixGoAndDefer(t *testing.T) { function TestFixInit (line 136) | func TestFixInit(t *testing.T) { function TestFixPhantomSelector (line 248) | func TestFixPhantomSelector(t *testing.T) { function inspect (line 319) | func inspect[T ast.Node](t *testing.T, pgf *parsego.File, checkFn func(n... function ensureSource (line 342) | func ensureSource[T ast.Node](t *testing.T, src []byte, checkFn func(n T... function filesrc (line 360) | func filesrc(expressions string) []byte { FILE: gopls/internal/cache/parsego/resolver.go constant debugResolve (line 16) | debugResolve = false function resolveFile (line 23) | func resolveFile(file *ast.File, handle *token.File, declErr func(token.... constant maxScopeDepth (line 59) | maxScopeDepth int = 1e3 type resolver (line 61) | type resolver struct method trace (line 77) | func (r *resolver) trace(format string, args ...any) { method sprintf (line 81) | func (r *resolver) sprintf(format string, args ...any) string { method openScope (line 91) | func (r *resolver) openScope(pos token.Pos) { method closeScope (line 102) | func (r *resolver) closeScope() { method openLabelScope (line 110) | func (r *resolver) openLabelScope() { method closeLabelScope (line 115) | func (r *resolver) closeLabelScope() { method declare (line 130) | func (r *resolver) declare(decl, data any, scope *ast.Scope, kind ast.... method shortVarDecl (line 160) | func (r *resolver) shortVarDecl(decl *ast.AssignStmt) { method resolve (line 198) | func (r *resolver) resolve(ident *ast.Ident, collectUnresolved bool) { method walkExprs (line 231) | func (r *resolver) walkExprs(list []ast.Expr) { method walkLHS (line 237) | func (r *resolver) walkLHS(list []ast.Expr) { method walkStmts (line 246) | func (r *resolver) walkStmts(list []ast.Stmt) { method Visit (line 252) | func (r *resolver) Visit(node ast.Node) ast.Visitor { method walkFuncType (line 517) | func (r *resolver) walkFuncType(typ *ast.FuncType) { method resolveList (line 525) | func (r *resolver) resolveList(list *ast.FieldList) { method declareList (line 536) | func (r *resolver) declareList(list *ast.FieldList, kind ast.ObjKind) { method walkRecv (line 545) | func (r *resolver) walkRecv(recv *ast.FieldList) { method walkFieldList (line 591) | func (r *resolver) walkFieldList(list *ast.FieldList, kind ast.ObjKind) { method walkTParams (line 602) | func (r *resolver) walkTParams(list *ast.FieldList) { method walkBody (line 607) | func (r *resolver) walkBody(body *ast.BlockStmt) { FILE: gopls/internal/cache/parsego/resolver_compat.go function assert (line 13) | func assert(cond bool, msg string) { type bailout (line 21) | type bailout struct FILE: gopls/internal/cache/parsego/resolver_gen.go function main (line 18) | func main() { FILE: gopls/internal/cache/parsego/resolver_test.go function TestGoplsSourceDoesNotUseObjectResolution (line 28) | func TestGoplsSourceDoesNotUseObjectResolution(t *testing.T) { function findEnclosingFuncDecl (line 147) | func findEnclosingFuncDecl(ident *ast.Ident, pkg *packages.Package) stri... FILE: gopls/internal/cache/port.go type port (line 20) | type port struct method matches (line 142) | func (p port) matches(path string, content []byte) bool { function trimContentForPortMatch (line 175) | func trimContentForPortMatch(content []byte) []byte { function buildComment (line 184) | func buildComment(content []byte) string { FILE: gopls/internal/cache/port_test.go function TestMain (line 20) | func TestMain(m *testing.M) { function TestMatchingPortsStdlib (line 25) | func TestMatchingPortsStdlib(t *testing.T) { function matchingPreferredPorts (line 71) | func matchingPreferredPorts(tb testing.TB, fh file.Handle, trimContent b... function BenchmarkMatchingPreferredPorts (line 89) | func BenchmarkMatchingPreferredPorts(b *testing.B) { FILE: gopls/internal/cache/session.go function NewSession (line 39) | func NewSession(ctx context.Context, c *Cache) *Session { type Session (line 57) | type Session struct method ID (line 80) | func (s *Session) ID() string { return s.id } method String (line 81) | func (s *Session) String() string { return s.id } method GoCommandRunner (line 84) | func (s *Session) GoCommandRunner() *gocommand.Runner { method Shutdown (line 89) | func (s *Session) Shutdown(ctx context.Context) { method Cache (line 105) | func (s *Session) Cache() *Cache { method NewView (line 117) | func (s *Session) NewView(ctx context.Context, folder *Folder) (*View,... method HasView (line 147) | func (s *Session) HasView(uri protocol.DocumentURI) bool { method createView (line 159) | func (s *Session) createView(ctx context.Context, def *viewDefinition)... method RemoveView (line 327) | func (s *Session) RemoveView(ctx context.Context, dir protocol.Documen... method View (line 354) | func (s *Session) View(id string) (*View, error) { method SnapshotOf (line 382) | func (s *Session) SnapshotOf(ctx context.Context, uri protocol.Documen... method FileOf (line 458) | func (s *Session) FileOf(ctx context.Context, uri protocol.DocumentURI... method viewOfLocked (line 481) | func (s *Session) viewOfLocked(ctx context.Context, uri protocol.Docum... method Views (line 510) | func (s *Session) Views() []*View { method ResetView (line 745) | func (s *Session) ResetView(ctx context.Context, uri protocol.Document... method DidModifyFiles (line 784) | func (s *Session) DidModifyFiles(ctx context.Context, modifications []... method ExpandModificationsToDirectories (line 958) | func (s *Session) ExpandModificationsToDirectories(ctx context.Context... method FileWatchingGlobPatterns (line 1153) | func (s *Session) FileWatchingGlobPatterns(ctx context.Context) map[pr... method OrphanedFileDiagnostics (line 1180) | func (s *Session) OrphanedFileDiagnostics(ctx context.Context) (map[pr... function selectViewDefs (line 522) | func selectViewDefs(ctx context.Context, fs file.Source, folders []*Fold... type viewDefiner (line 609) | type viewDefiner interface function RelevantViews (line 615) | func RelevantViews[V viewDefiner](ctx context.Context, fs file.Source, u... function matchingView (line 713) | func matchingView[V viewDefiner](fh file.Handle, relevantViews []V) V { method updateOverlays (line 1006) | func (fs *overlayFS) updateOverlays(ctx context.Context, changes []file.... function mustReadFile (line 1095) | func mustReadFile(ctx context.Context, fs file.Source, uri protocol.Docu... type brokenFile (line 1107) | type brokenFile struct method String (line 1112) | func (b brokenFile) String() string { return b.uri.Path() } method URI (line 1113) | func (b brokenFile) URI() protocol.DocumentURI { return b.uri } method Identity (line 1114) | func (b brokenFile) Identity() file.Identity { return file.Identit... method SameContentsOnDisk (line 1115) | func (b brokenFile) SameContentsOnDisk() bool { return false } method Version (line 1116) | func (b brokenFile) Version() int32 { return 0 } method Content (line 1117) | func (b brokenFile) Content() ([]byte, error) { return nil, b.err } method ModTime (line 1118) | func (b brokenFile) ModTime() (time.Time, error) { return time.Time{},... FILE: gopls/internal/cache/session_test.go function TestZeroConfigAlgorithm (line 21) | func TestZeroConfigAlgorithm(t *testing.T) { function writeFiles (line 385) | func writeFiles(t *testing.T, files map[string]string) string { FILE: gopls/internal/cache/snapshot.go type Snapshot (line 62) | type Snapshot struct method awaitPromise (line 202) | func (s *Snapshot) awaitPromise(ctx context.Context, p *memoize.Promis... method Acquire (line 216) | func (s *Snapshot) Acquire() func() { method decref (line 227) | func (s *Snapshot) decref() { method SequenceID (line 254) | func (s *Snapshot) SequenceID() uint64 { method Labels (line 260) | func (s *Snapshot) Labels() []label.Label { method Folder (line 269) | func (s *Snapshot) Folder() protocol.DocumentURI { method View (line 274) | func (s *Snapshot) View() *View { method FileKind (line 285) | func (s *Snapshot) FileKind(fh file.Handle) file.Kind { method Options (line 334) | func (s *Snapshot) Options() *settings.Options { method BackgroundContext (line 340) | func (s *Snapshot) BackgroundContext() context.Context { method Templates (line 345) | func (s *Snapshot) Templates() map[protocol.DocumentURI]file.Handle { method RunGoModUpdateCommands (line 364) | func (s *Snapshot) RunGoModUpdateCommands(ctx context.Context, modURI ... method GoCommandInvocation (line 468) | func (s *Snapshot) GoCommandInvocation(allowNetwork AllowNetwork, dir,... method buildOverlays (line 492) | func (s *Snapshot) buildOverlays() map[string][]byte { method Overlays (line 510) | func (s *Snapshot) Overlays() []*overlay { method PackageDiagnostics (line 534) | func (s *Snapshot) PackageDiagnostics(ctx context.Context, ids ...Pack... method References (line 569) | func (s *Snapshot) References(ctx context.Context, ids ...PackageID) (... method MethodSets (line 604) | func (s *Snapshot) MethodSets(ctx context.Context, ids ...PackageID) (... method Tests (line 630) | func (s *Snapshot) Tests(ctx context.Context, ids ...PackageID) ([]*te... method NarrowestMetadataForFile (line 654) | func (snapshot *Snapshot) NarrowestMetadataForFile(ctx context.Context... method MetadataForFile (line 673) | func (s *Snapshot) MetadataForFile(ctx context.Context, uri protocol.D... method ReverseDependencies (line 791) | func (s *Snapshot) ReverseDependencies(ctx context.Context, id Package... method fileWatchingGlobPatterns (line 819) | func (s *Snapshot) fileWatchingGlobPatterns() map[protocol.RelativePat... method addKnownSubdirs (line 899) | func (s *Snapshot) addKnownSubdirs(patterns map[protocol.RelativePatte... method watchSubdirs (line 916) | func (s *Snapshot) watchSubdirs() bool { method filesInDir (line 944) | func (s *Snapshot) filesInDir(uri protocol.DocumentURI) []protocol.Doc... method WorkspaceMetadata (line 972) | func (s *Snapshot) WorkspaceMetadata(ctx context.Context) ([]*metadata... method WorkspacePackages (line 991) | func (s *Snapshot) WorkspacePackages() immutable.Map[PackageID, Packag... method IsWorkspacePackage (line 1000) | func (s *Snapshot) IsWorkspacePackage(id PackageID) bool { method AllMetadata (line 1016) | func (s *Snapshot) AllMetadata(ctx context.Context) ([]*metadata.Packa... method GoModForFile (line 1028) | func (s *Snapshot) GoModForFile(uri protocol.DocumentURI) protocol.Doc... method Metadata (line 1047) | func (s *Snapshot) Metadata(id PackageID) *metadata.Package { method clearShouldLoad (line 1055) | func (s *Snapshot) clearShouldLoad(scopes ...loadScope) { method ReadFile (line 1086) | func (s *Snapshot) ReadFile(ctx context.Context, uri protocol.Document... method preloadFiles (line 1116) | func (s *Snapshot) preloadFiles(ctx context.Context, uris []protocol.D... method IsOpen (line 1151) | func (s *Snapshot) IsOpen(uri protocol.DocumentURI) bool { method MetadataGraph (line 1161) | func (s *Snapshot) MetadataGraph() *metadata.Graph { method LoadMetadataGraph (line 1168) | func (s *Snapshot) LoadMetadataGraph(ctx context.Context) (*metadata.G... method InitializationError (line 1176) | func (s *Snapshot) InitializationError() *InitializationError { method awaitLoaded (line 1184) | func (s *Snapshot) awaitLoaded(ctx context.Context) error { method AwaitInitialized (line 1192) | func (s *Snapshot) AwaitInitialized(ctx context.Context) { method reloadWorkspace (line 1204) | func (s *Snapshot) reloadWorkspace(ctx context.Context) { method orphanedFileDiagnostics (line 1247) | func (s *Snapshot) orphanedFileDiagnostics(ctx context.Context, overla... method clone (line 1512) | func (s *Snapshot) clone(ctx, bgCtx context.Context, changed StateChan... method BuiltinFile (line 2167) | func (s *Snapshot) BuiltinFile(ctx context.Context) (*parsego.File, er... method IsBuiltin (line 2193) | func (s *Snapshot) IsBuiltin(uri protocol.DocumentURI) bool { method setBuiltin (line 2201) | func (s *Snapshot) setBuiltin(path string) { method WantCompilerOptDetails (line 2210) | func (s *Snapshot) WantCompilerOptDetails(dir protocol.DocumentURI) bo... function fileKind (line 307) | func fileKind(fh file.Handle) file.Kind { function TempModDir (line 406) | func TempModDir(ctx context.Context, fs file.Source, modURI protocol.Doc... type AllowNetwork (line 450) | type AllowNetwork constant NoNetwork (line 453) | NoNetwork AllowNetwork = false constant NetworkOK (line 454) | NetworkOK AllowNetwork = true constant xrefsKind (line 520) | xrefsKind = "xrefs" constant methodSetsKind (line 521) | methodSetsKind = "methodsets" constant testsKind (line 522) | testsKind = "tests" constant exportDataKind (line 523) | exportDataKind = "export" constant diagnosticsKind (line 524) | diagnosticsKind = "diagnostics" constant typerefsKind (line 525) | typerefsKind = "typerefs" constant symbolsKind (line 526) | symbolsKind = "symbols" type xrefIndex (line 591) | type xrefIndex struct method Lookup (line 596) | func (index xrefIndex) Lookup(targets map[PackagePath]map[objectpath.P... function btoi (line 773) | func btoi(b bool) int { function boolCompare (line 783) | func boolCompare(x, y bool) int { function moduleForURI (line 1032) | func moduleForURI(modFiles map[protocol.DocumentURI]struct{}, uri protoc... type lockedSnapshot (line 1097) | type lockedSnapshot struct method ReadFile (line 1101) | func (s lockedSnapshot) ReadFile(ctx context.Context, uri protocol.Doc... function orphanedFileDiagnosticRange (line 1461) | func orphanedFileDiagnosticRange(ctx context.Context, cache *parseCache,... function inVendor (line 1485) | func inVendor(uri protocol.DocumentURI) bool { function cloneWithout (line 1892) | func cloneWithout[K constraints.Ordered, V1, V2 any](m *persistent.Map[K... function cloneWith (line 1903) | func cloneWith[K constraints.Ordered, V any](m *persistent.Map[K, V], ch... function deleteMostRelevantModFile (line 1919) | func deleteMostRelevantModFile(m *persistent.Map[protocol.DocumentURI, *... function invalidatedPackageIDs (line 1943) | func invalidatedPackageIDs(uri protocol.DocumentURI, known map[protocol.... function fileWasSaved (line 2001) | func fileWasSaved(originalFH, currentFH file.Handle) bool { function metadataChanges (line 2037) | func metadataChanges(ctx context.Context, lockedSnapshot *Snapshot, oldF... function magicCommentsChanged (line 2111) | func magicCommentsChanged(original *ast.File, current *ast.File) bool { function validImportPaths (line 2126) | func validImportPaths(imports []*ast.ImportSpec) map[string]struct{} { function validImportPath (line 2136) | func validImportPath(path string) bool { function extractMagicComments (line 2153) | func extractMagicComments(f *ast.File) []string { type CodeLensSourceFunc (line 2217) | type CodeLensSourceFunc FILE: gopls/internal/cache/source.go type goplsSource (line 23) | type goplsSource struct method LoadPackageNames (line 38) | func (s *goplsSource) LoadPackageNames(ctx context.Context, srcDir str... method ResolveReferences (line 54) | func (s *goplsSource) ResolveReferences(ctx context.Context, filename ... method resolveCacheReferences (line 140) | func (s *goplsSource) resolveCacheReferences(missing imports.Reference... method resolveWorkspaceReferences (line 186) | func (s *goplsSource) resolveWorkspaceReferences(filename string, miss... method bestCache (line 307) | func (s *goplsSource) bestCache(nm string, got []*result) *imports.Res... method fromGoMod (line 340) | func (s *goplsSource) fromGoMod(got []*result) *imports.Result { method NewGoplsSource (line 31) | func (s *Snapshot) NewGoplsSource(is *imports.ProcessEnvSource) *goplsSo... type result (line 43) | type result struct type found (line 181) | type found struct function bestImport (line 262) | func bestImport(filename string, got []found) *imports.Result { function commonpref (line 363) | func commonpref(filename string, path string) int { function satisfies (line 370) | func satisfies(pkg *symbols.Package, missing map[string]bool) bool { function missingWants (line 386) | func missingWants(missing imports.References, pkgPath metadata.PackageNa... function preferUndeprecated (line 397) | func preferUndeprecated(got []*result) []*result { FILE: gopls/internal/cache/symbols.go method Symbols (line 31) | func (s *Snapshot) Symbols(ctx context.Context, ids ...PackageID) ([]*sy... function symbolKey (line 78) | func symbolKey(ctx context.Context, mp *metadata.Package, fs file.Source... FILE: gopls/internal/cache/symbols/symbols.go type Symbol (line 24) | type Symbol struct type Package (line 35) | type Package struct method Encode (line 50) | func (pkg *Package) Encode() []byte { function Decode (line 43) | func Decode(data []byte) *Package { function New (line 55) | func New(files []*parsego.File) *Package { function symbolizeFile (line 72) | func symbolizeFile(pgf *parsego.File) []Symbol { type symbolWalker (line 119) | type symbolWalker struct method declare (line 126) | func (w *symbolWalker) declare(name string, kind protocol.SymbolKind, ... method walkType (line 155) | func (w *symbolWalker) walkType(typ ast.Expr, path ...*ast.Ident) { method walkField (line 172) | func (w *symbolWalker) walkField(field *ast.Field, unnamedKind, namedK... FILE: gopls/internal/cache/testfuncs/match.go method uniqueName (line 19) | func (b *indexBuilder) uniqueName(parent, subname string) string { function parseSubtestNumber (line 54) | func parseSubtestNumber(s string) (prefix string, nn int) { function rewrite (line 83) | func rewrite(s string) string { function isSpace (line 99) | func isSpace(r rune) bool { FILE: gopls/internal/cache/testfuncs/tests.go type Index (line 22) | type Index struct method Encode (line 34) | func (index *Index) Encode() []byte { method All (line 38) | func (index *Index) All() []Result { function Decode (line 27) | func Decode(data []byte) *Index { type Result (line 49) | type Result struct function NewIndex (line 56) | func NewIndex(files []*parsego.File, info *types.Info) *Index { function findFunc (line 205) | func findFunc(files []*parsego.File, info *types.Info, body *ast.BlockSt... function isTestOrExample (line 264) | func isTestOrExample(fn *types.Func) (isTest, isExample bool) { function isTestName (line 291) | func isTestName(name, prefix string) bool { function testKind (line 306) | func testKind(sig *types.Signature) (*types.TypeName, bool) { type indexBuilder (line 330) | type indexBuilder struct method build (line 66) | func (b *indexBuilder) build(files []*parsego.File, info *types.Info) ... method findSubtests (line 117) | func (b *indexBuilder) findSubtests(parent gobTest, typ *ast.FuncType,... type gobPackage (line 343) | type gobPackage struct type gobFile (line 347) | type gobFile struct type gobTest (line 352) | type gobTest struct method result (line 357) | func (t *gobTest) result() Result { FILE: gopls/internal/cache/typerefs/packageset.go type PackageIndex (line 19) | type PackageIndex struct method IndexID (line 37) | func (index *PackageIndex) IndexID(id metadata.PackageID) IndexID { method PackageID (line 52) | func (index *PackageIndex) PackageID(idx IndexID) metadata.PackageID { method NewSet (line 73) | func (index *PackageIndex) NewSet() *PackageSet { method DeclaringPackage (line 82) | func (index *PackageIndex) DeclaringPackage(sym Symbol) metadata.Packa... function NewPackageIndex (line 29) | func NewPackageIndex() *PackageIndex { type PackageSet (line 60) | type PackageSet struct method AddPackage (line 87) | func (s *PackageSet) AddPackage(id metadata.PackageID) { method Add (line 94) | func (s *PackageSet) Add(idx IndexID) { method Union (line 104) | func (s *PackageSet) Union(other *PackageSet) { method Contains (line 119) | func (s *PackageSet) Contains(id metadata.PackageID) bool { method Elems (line 125) | func (s *PackageSet) Elems(f func(IndexID)) { method String (line 136) | func (s *PackageSet) String() string { constant blockSize (line 67) | blockSize = bits.UintSize FILE: gopls/internal/cache/typerefs/pkggraph_test.go constant trace (line 30) | trace = false type Package (line 34) | type Package struct type PackageGraph (line 51) | type PackageGraph struct method Package (line 103) | func (g *PackageGraph) Package(ctx context.Context, id metadata.Packag... method buildPackage (line 125) | func (g *PackageGraph) buildPackage(ctx context.Context, id metadata.P... method reachesByDeps (line 230) | func (g *PackageGraph) reachesByDeps(ctx context.Context, mp *metadata... function BuildPackageGraph (line 70) | func BuildPackageGraph(ctx context.Context, meta metadata.Source, ids []... type futurePackage (line 96) | type futurePackage struct FILE: gopls/internal/cache/typerefs/pkgrefs_test.go function TestBuildPackageGraph (line 66) | func TestBuildPackageGraph(t *testing.T) { function importMap (line 200) | func importMap(id PackageID, meta MetadataSource) map[PackagePath]Packag... function importFromExportData (line 219) | func importFromExportData(pkgPath, exportFile string) (*types.Package, e... function BenchmarkBuildPackageGraph (line 248) | func BenchmarkBuildPackageGraph(b *testing.B) { type memoizedParser (line 269) | type memoizedParser struct method parse (line 286) | func (p *memoizedParser) parse(ctx context.Context, uri protocol.Docum... type futureParse (line 274) | type futureParse struct function newParser (line 280) | func newParser() *memoizedParser { type mapMetadataSource (line 317) | type mapMetadataSource struct method Metadata (line 321) | func (s mapMetadataSource) Metadata(id PackageID) *Metadata { function loadPackages (line 330) | func loadPackages(query string, needExport bool) (map[PackageID]string, ... FILE: gopls/internal/cache/typerefs/refs.go function Encode (line 27) | func Encode(files []*parsego.File, imports map[metadata.ImportPath]*meta... function Decode (line 41) | func Decode(pkgIndex *PackageIndex, data []byte) []Class { type Class (line 53) | type Class struct type Symbol (line 60) | type Symbol struct type IndexID (line 67) | type IndexID type symbolSet (line 75) | type symbolSet method appendSorted (line 136) | func (set symbolSet) appendSorted(syms []symbol) []symbol { type symbol (line 79) | type symbol struct type declNode (line 89) | type declNode struct method find (line 715) | func (decl *declNode) find() *declNode { type state (line 110) | type state struct method getClassIndex (line 122) | func (st *state) getClassIndex(set symbolSet) int { method visit (line 610) | func (st *state) visit(x *declNode) { function classKey (line 152) | func classKey(set symbolSet) string { function index (line 165) | func index(pgfs []*parsego.File, imports map[metadata.ImportPath]*metada... function visitFile (line 258) | func visitFile(file *ast.File, imports map[metadata.ImportPath]*metadata... function tparamsMap (line 412) | func tparamsMap(tparams *ast.FieldList) map[string]bool { function visitDeclOrSpec (line 436) | func visitDeclOrSpec(node ast.Node, f refVisitor) { function visitExpr (line 477) | func visitExpr(expr ast.Expr, f refVisitor) { function visitExprList (line 593) | func visitExprList(list []ast.Expr, f refVisitor) { function visitFieldList (line 599) | func visitFieldList(n *ast.FieldList, f refVisitor) { function coalesce (line 693) | func coalesce(x, y *declNode) { constant debugSCC (line 724) | debugSCC = false function checkCanonical (line 726) | func checkCanonical(x *declNode) { function assert (line 732) | func assert(cond bool, msg string) { type gobClasses (line 743) | type gobClasses struct type gobClass (line 748) | type gobClass struct function encode (line 759) | func encode(classNames map[int][]string, classes []symbolSet) []byte { function decode (line 803) | func decode(pkgIndex *PackageIndex, data []byte) []Class { FILE: gopls/internal/cache/typerefs/refs_test.go function TestRefs (line 24) | func TestRefs(t *testing.T) { FILE: gopls/internal/cache/view.go type Folder (line 51) | type Folder struct type GoEnv (line 60) | type GoEnv struct type View (line 98) | type View struct method definition (line 157) | func (v *View) definition() *viewDefinition { return v.viewDefinition } method ID (line 350) | func (v *View) ID() string { return v.id } method GoCommandRunner (line 353) | func (v *View) GoCommandRunner() *gocommand.Runner { method Folder (line 358) | func (v *View) Folder() *Folder { method Env (line 363) | func (v *View) Env() []string { method ModcacheIndex (line 373) | func (v *View) ModcacheIndex() (*modindex.Index, error) { method filterFunc (line 472) | func (v *View) filterFunc() func(protocol.DocumentURI) bool { method shutdown (line 495) | func (v *View) shutdown() { method ScanImports (line 514) | func (v *View) ScanImports() { method Snapshot (line 589) | func (v *View) Snapshot() (*Snapshot, func(), error) { method GoVersion (line 1197) | func (v *View) GoVersion() int { method GoVersionString (line 1204) | func (v *View) GoVersionString() string { type viewDefinition (line 171) | type viewDefinition struct method definition (line 195) | func (d *viewDefinition) definition() *viewDefinition { return d } method Type (line 199) | func (d *viewDefinition) Type() ViewType { return d.typ } method Root (line 202) | func (d *viewDefinition) Root() protocol.DocumentURI { return d.root } method GoMod (line 205) | func (d *viewDefinition) GoMod() protocol.DocumentURI { return d.gomod } method GoWork (line 208) | func (d *viewDefinition) GoWork() protocol.DocumentURI { return d.gowo... method EnvOverlay (line 212) | func (d *viewDefinition) EnvOverlay() []string { method GOOS (line 223) | func (d *viewDefinition) GOOS() string { method GOARCH (line 232) | func (d *viewDefinition) GOARCH() string { method adjustedGO111MODULE (line 242) | func (d viewDefinition) adjustedGO111MODULE() string { method ModFiles (line 251) | func (d viewDefinition) ModFiles() []protocol.DocumentURI { function viewDefinitionsEqual (line 256) | func viewDefinitionsEqual(x, y *viewDefinition) bool { type ViewType (line 288) | type ViewType method String (line 322) | func (t ViewType) String() string { method usesModules (line 340) | func (typ ViewType) usesModules() bool { constant GoPackagesDriverView (line 295) | GoPackagesDriverView ViewType = iota constant GOPATHView (line 303) | GOPATHView constant GoModView (line 308) | GoModView constant GoWorkView (line 313) | GoWorkView constant AdHocView (line 319) | AdHocView method UpdateFolders (line 380) | func (s *Session) UpdateFolders(ctx context.Context, newFolders []*Folde... method RunProcessEnvFunc (line 409) | func (s *Snapshot) RunProcessEnvFunc(ctx context.Context, fn func(contex... function fileHasExtension (line 414) | func fileHasExtension(path string, suffixes []string) bool { method locateTemplateFiles (line 429) | func (s *Snapshot) locateTemplateFiles(ctx context.Context) { method IgnoredFile (line 525) | func (s *Snapshot) IgnoredFile(uri protocol.DocumentURI) bool { type ignoreFilter (line 539) | type ignoreFilter struct method ignored (line 553) | func (f *ignoreFilter) ignored(filename string) bool { function newIgnoreFilter (line 545) | func newIgnoreFilter(dirs []string) *ignoreFilter { function checkIgnored (line 569) | func checkIgnored(suffix string) bool { method initialize (line 613) | func (s *Snapshot) initialize(ctx context.Context, firstAttempt bool) { type StateChange (line 749) | type StateChange struct method InvalidateView (line 765) | func (s *Session) InvalidateView(ctx context.Context, view *View, change... method invalidateViewLocked (line 783) | func (s *Session) invalidateViewLocked(ctx context.Context, v *View, cha... function defineView (line 834) | func defineView(ctx context.Context, fs file.Source, folder *Folder, for... function FetchGoEnv (line 999) | func FetchGoEnv(ctx context.Context, folder protocol.DocumentURI, opts *... function loadGoEnv (line 1071) | func loadGoEnv(ctx context.Context, dir string, configEnv []string, runn... function findRootPattern (line 1107) | func findRootPattern(ctx context.Context, dirURI protocol.DocumentURI, b... function CheckPathValid (line 1138) | func CheckPathValid(dir string) error { return checkPathValid(dir) } function defaultCheckPathValid (line 1140) | func defaultCheckPathValid(path string) error { method IsGoPrivatePath (line 1146) | func (s *Snapshot) IsGoPrivatePath(target string) bool { method ModuleUpgrades (line 1152) | func (s *Snapshot) ModuleUpgrades(modfile protocol.DocumentURI) map[stri... method Vulnerabilities (line 1175) | func (s *Snapshot) Vulnerabilities(modfiles ...protocol.DocumentURI) map... method GoVersionString (line 1211) | func (s *Snapshot) GoVersionString() string { function globsMatchPath (line 1217) | func globsMatchPath(globs, target string) bool { function allFilesExcluded (line 1259) | func allFilesExcluded(files []string, filterFunc func(protocol.DocumentU... function relPathExcludedByFilter (line 1269) | func relPathExcludedByFilter(path string, pathIncluded func(string) bool... FILE: gopls/internal/cache/view_test.go function TestCaseInsensitiveFilesystem (line 14) | func TestCaseInsensitiveFilesystem(t *testing.T) { function TestInVendor (line 45) | func TestInVendor(t *testing.T) { function TestFilters (line 62) | func TestFilters(t *testing.T) { function TestSuffixes (line 107) | func TestSuffixes(t *testing.T) { function TestIgnoreFilter (line 148) | func TestIgnoreFilter(t *testing.T) { FILE: gopls/internal/cache/workspace.go function isGoWork (line 20) | func isGoWork(uri protocol.DocumentURI) bool { function goWorkModules (line 25) | func goWorkModules(ctx context.Context, gowork protocol.DocumentURI, fs ... function localModFiles (line 51) | func localModFiles(relativeTo string, goWorkOrModPaths []string) map[pro... function isGoMod (line 65) | func isGoMod(uri protocol.DocumentURI) bool { function isWorkspaceFile (line 70) | func isWorkspaceFile(uri protocol.DocumentURI, workspaceFiles []string) ... function goModModules (line 87) | func goModModules(ctx context.Context, gomod protocol.DocumentURI, fs fi... function fileExists (line 115) | func fileExists(fh file.Handle) bool { constant fileLimit (line 128) | fileLimit = 100_000 FILE: gopls/internal/cache/xrefs/xrefs.go function Index (line 26) | func Index(files []*parsego.File, pkg *types.Package, info *types.Info) ... function Lookup (line 142) | func Lookup(mp *metadata.Package, data []byte, targets map[metadata.Pack... type gobPackage (line 180) | type gobPackage struct type gobObject (line 186) | type gobObject struct type gobRef (line 191) | type gobRef struct FILE: gopls/internal/clonetest/clonetest.go function NonZero (line 28) | func NonZero[T any]() T { function nonZeroValue (line 39) | func nonZeroValue(t reflect.Type, seen []reflect.Type) reflect.Value { function ZeroOut (line 98) | func ZeroOut[T any](t *T) { function zeroOutValue (line 103) | func zeroOutValue(v reflect.Value) { FILE: gopls/internal/clonetest/clonetest_test.go function Test (line 14) | func Test(t *testing.T) { function doTest (line 65) | func doTest[T any](t *testing.T, nonzero, zero T) { FILE: gopls/internal/cmd/call_hierarchy.go type callHierarchy (line 18) | type callHierarchy struct method Name (line 22) | func (c *callHierarchy) Name() string { return "call_hierarchy" } method Parent (line 23) | func (c *callHierarchy) Parent() string { return c.app.Name() } method Usage (line 24) | func (c *callHierarchy) Usage() string { return "" } method ShortHelp (line 25) | func (c *callHierarchy) ShortHelp() string { return "display selected ... method DetailedHelp (line 26) | func (c *callHierarchy) DetailedHelp(f *flag.FlagSet) { method Run (line 37) | func (c *callHierarchy) Run(ctx context.Context, args ...string) error { function callItemPrintString (line 112) | func callItemPrintString(ctx context.Context, cli *client, item protocol... FILE: gopls/internal/cmd/capabilities_test.go function TestCapabilities (line 23) | func TestCapabilities(t *testing.T) { function validateCapabilities (line 166) | func validateCapabilities(result *protocol.InitializeResult) error { FILE: gopls/internal/cmd/check.go type check (line 18) | type check struct method Name (line 23) | func (c *check) Name() string { return "check" } method Parent (line 24) | func (c *check) Parent() string { return c.app.Name() } method Usage (line 25) | func (c *check) Usage() string { return "" } method ShortHelp (line 26) | func (c *check) ShortHelp() string { return "show diagnostic results f... method DetailedHelp (line 27) | func (c *check) DetailedHelp(f *flag.FlagSet) { method Run (line 38) | func (c *check) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/cmd.go type Application (line 43) | type Application struct method verbose (line 94) | func (app *Application) verbose() bool { method Name (line 110) | func (app *Application) Name() string { return "gopls" } method Usage (line 113) | func (app *Application) Usage() string { return "" } method ShortHelp (line 116) | func (app *Application) ShortHelp() string { method DetailedHelp (line 122) | func (app *Application) DetailedHelp(f *flag.FlagSet) { method Run (line 233) | func (app *Application) Run(ctx context.Context, args ...string) error { method Commands (line 257) | func (app *Application) Commands() []tool.Application { method mainCommands (line 265) | func (app *Application) mainCommands() []tool.Application { method internalCommands (line 276) | func (app *Application) internalCommands() []tool.Application { method featureCommands (line 282) | func (app *Application) featureCommands() []tool.Application { method connect (line 313) | func (app *Application) connect(ctx context.Context) (*client, *cache.... type EditFlags (line 87) | type EditFlags struct function New (line 99) | func New() *Application { function printFlagDefaults (line 161) | func printFlagDefaults(s *flag.FlagSet) { function isZeroValue (line 215) | func isZeroValue(f *flag.Flag, value string) bool { function initParams (line 349) | func initParams(rootDir string, opts *settings.Options) *protocol.ParamI... type client (line 404) | type client struct method initialize (line 385) | func (cli *client) initialize(ctx context.Context, server protocol.Ser... method TextDocumentContentRefresh (line 435) | func (cli *client) TextDocumentContentRefresh(context.Context, *protoc... method CodeLensRefresh (line 439) | func (cli *client) CodeLensRefresh(context.Context) error { return nil } method FoldingRangeRefresh (line 441) | func (cli *client) FoldingRangeRefresh(context.Context) error { return... method LogTrace (line 443) | func (cli *client) LogTrace(context.Context, *protocol.LogTraceParams)... method ShowMessage (line 445) | func (cli *client) ShowMessage(ctx context.Context, p *protocol.ShowMe... method ShowMessageRequest (line 450) | func (cli *client) ShowMessageRequest(ctx context.Context, p *protocol... method LogMessage (line 454) | func (cli *client) LogMessage(ctx context.Context, p *protocol.LogMess... method Event (line 479) | func (cli *client) Event(ctx context.Context, t *any) error { return n... method RegisterCapability (line 481) | func (cli *client) RegisterCapability(ctx context.Context, p *protocol... method UnregisterCapability (line 485) | func (cli *client) UnregisterCapability(ctx context.Context, p *protoc... method WorkspaceFolders (line 489) | func (cli *client) WorkspaceFolders(ctx context.Context) ([]protocol.W... method Configuration (line 493) | func (cli *client) Configuration(ctx context.Context, p *protocol.Para... method ApplyEdit (line 515) | func (cli *client) ApplyEdit(ctx context.Context, p *protocol.ApplyWor... method applyWorkspaceEdit (line 529) | func (cli *client) applyWorkspaceEdit(wsedit *protocol.WorkspaceEdit) ... method PublishDiagnostics (line 651) | func (cli *client) PublishDiagnostics(ctx context.Context, p *protocol... method Progress (line 691) | func (cli *client) Progress(_ context.Context, params *protocol.Progre... method ShowDocument (line 721) | func (cli *client) ShowDocument(ctx context.Context, params *protocol.... method WorkDoneProgressCreate (line 736) | func (cli *client) WorkDoneProgressCreate(context.Context, *protocol.W... method DiagnosticRefresh (line 740) | func (cli *client) DiagnosticRefresh(context.Context) error { method InlayHintRefresh (line 744) | func (cli *client) InlayHintRefresh(context.Context) error { method SemanticTokensRefresh (line 748) | func (cli *client) SemanticTokensRefresh(context.Context) error { method InlineValueRefresh (line 752) | func (cli *client) InlineValueRefresh(context.Context) error { method getFile (line 757) | func (cli *client) getFile(uri protocol.DocumentURI) *cmdFile { method openFile (line 781) | func (cli *client) openFile(ctx context.Context, uri protocol.Document... method terminate (line 826) | func (cli *client) terminate(ctx context.Context) { method Close (line 837) | func (cli *client) Close() error { type cmdFile (line 419) | type cmdFile struct method locationSpan (line 845) | func (f *cmdFile) locationSpan(loc protocol.Location) (span, error) { method rangeSpan (line 852) | func (f *cmdFile) rangeSpan(r protocol.Range) (span, error) { method offsetSpan (line 862) | func (f *cmdFile) offsetSpan(start, end int) (span, error) { method spanLocation (line 891) | func (f *cmdFile) spanLocation(s span) (protocol.Location, error) { method spanRange (line 901) | func (f *cmdFile) spanRange(s span) (protocol.Range, error) { function newClient (line 427) | func newClient(app *Application) *client { function applyTextEdits (line 590) | func applyTextEdits(mapper *protocol.Mapper, edits []protocol.TextEdit, ... function updateFile (line 605) | func updateFile(filename string, old, new []byte, edits []diff.Edit, fla... function diagnoseFiles (line 818) | func diagnoseFiles(ctx context.Context, server protocol.Server, files []... function offsetPoint (line 879) | func offsetPoint(m *protocol.Mapper, offset int) (point, error) { function pointPosition (line 923) | func pointPosition(m *protocol.Mapper, p point) (protocol.Position, erro... type fix (line 934) | type fix struct method Name (line 936) | func (*fix) Name() string { return "fix" } method Parent (line 937) | func (cmd *fix) Parent() string { return cmd.app.Name() } method Usage (line 938) | func (*fix) Usage() string { return "" } method ShortHelp (line 939) | func (*fix) ShortHelp() string { return "apply suggested fixes (obsol... method DetailedHelp (line 940) | func (*fix) DetailedHelp(flags *flag.FlagSet) { method Run (line 943) | func (*fix) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/codeaction.go type codeaction (line 20) | type codeaction struct method Name (line 29) | func (cmd *codeaction) Name() string { return "codeaction" } method Parent (line 30) | func (cmd *codeaction) Parent() string { return cmd.app.Name() } method Usage (line 31) | func (cmd *codeaction) Usage() string { return "[codeaction-flags]... method ShortHelp (line 32) | func (cmd *codeaction) ShortHelp() string { return "list or execute co... method DetailedHelp (line 33) | func (cmd *codeaction) DetailedHelp(f *flag.FlagSet) { method Run (line 106) | func (cmd *codeaction) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/codelens.go type codelens (line 18) | type codelens struct method Name (line 25) | func (r *codelens) Name() string { return "codelens" } method Parent (line 26) | func (r *codelens) Parent() string { return r.app.Name() } method Usage (line 27) | func (r *codelens) Usage() string { return "[codelens-flags] file[... method ShortHelp (line 28) | func (r *codelens) ShortHelp() string { return "List or execute code l... method DetailedHelp (line 29) | func (r *codelens) DetailedHelp(f *flag.FlagSet) { method Run (line 55) | func (r *codelens) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/definition.go type Definition (line 21) | type Definition struct constant exampleLine (line 30) | exampleLine = 44 constant exampleColumn (line 31) | exampleColumn = 47 constant exampleOffset (line 32) | exampleOffset = 1270 type definition (line 36) | type definition struct method Name (line 43) | func (d *definition) Name() string { return "definition" } method Parent (line 44) | func (d *definition) Parent() string { return d.app.Name() } method Usage (line 45) | func (d *definition) Usage() string { return "[definition-flags] <... method ShortHelp (line 46) | func (d *definition) ShortHelp() string { return "show declaration of ... method DetailedHelp (line 47) | func (d *definition) DetailedHelp(f *flag.FlagSet) { method Run (line 61) | func (d *definition) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/execute.go type execute (line 21) | type execute struct method Name (line 26) | func (e *execute) Name() string { return "execute" } method Parent (line 27) | func (e *execute) Parent() string { return e.app.Name() } method Usage (line 28) | func (e *execute) Usage() string { return "[flags] command argumen... method ShortHelp (line 29) | func (e *execute) ShortHelp() string { return "Execute a gopls custom ... method DetailedHelp (line 30) | func (e *execute) DetailedHelp(f *flag.FlagSet) { method Run (line 51) | func (e *execute) Run(ctx context.Context, args ...string) error { function executeCommand (line 99) | func executeCommand(ctx context.Context, server protocol.Server, cmd *pr... FILE: gopls/internal/cmd/folding_range.go type foldingRanges (line 17) | type foldingRanges struct method Name (line 21) | func (r *foldingRanges) Name() string { return "folding_ranges" } method Parent (line 22) | func (r *foldingRanges) Parent() string { return r.app.Name() } method Usage (line 23) | func (r *foldingRanges) Usage() string { return "" } method ShortHelp (line 24) | func (r *foldingRanges) ShortHelp() string { return "display selected ... method DetailedHelp (line 25) | func (r *foldingRanges) DetailedHelp(f *flag.FlagSet) { method Run (line 34) | func (r *foldingRanges) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/format.go type format (line 16) | type format struct method Name (line 21) | func (c *format) Name() string { return "format" } method Parent (line 22) | func (c *format) Parent() string { return c.app.Name() } method Usage (line 23) | func (c *format) Usage() string { return "[format-flags] " } method ShortHelp (line 24) | func (r *highlight) ShortHelp() string { return "display selected iden... method DetailedHelp (line 25) | func (r *highlight) DetailedHelp(f *flag.FlagSet) { method Run (line 36) | func (r *highlight) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/implementation.go type implementation (line 18) | type implementation struct method Name (line 22) | func (i *implementation) Name() string { return "implementation" } method Parent (line 23) | func (i *implementation) Parent() string { return i.app.Name() } method Usage (line 24) | func (i *implementation) Usage() string { return "" } method ShortHelp (line 25) | func (i *implementation) ShortHelp() string { return "display selected... method DetailedHelp (line 26) | func (i *implementation) DetailedHelp(f *flag.FlagSet) { method Run (line 37) | func (i *implementation) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/imports.go type imports (line 17) | type imports struct method Name (line 22) | func (t *imports) Name() string { return "imports" } method Parent (line 23) | func (t *imports) Parent() string { return t.app.Name() } method Usage (line 24) | func (t *imports) Usage() string { return "[imports-flags] " } method ShortHelp (line 28) | func (l *links) ShortHelp() string { return "list links in a file" } method DetailedHelp (line 29) | func (l *links) DetailedHelp(f *flag.FlagSet) { method Run (line 43) | func (l *links) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/mcp.go type headlessMCP (line 24) | type headlessMCP struct method Name (line 33) | func (m *headlessMCP) Name() string { return "mcp" } method Parent (line 34) | func (m *headlessMCP) Parent() string { return m.app.Name() } method Usage (line 35) | func (m *headlessMCP) Usage() string { return "[mcp-flags]" } method ShortHelp (line 36) | func (m *headlessMCP) ShortHelp() string { return "start the gopls MCP... method DetailedHelp (line 38) | func (m *headlessMCP) DetailedHelp(f *flag.FlagSet) { method Run (line 50) | func (m *headlessMCP) Run(ctx context.Context, args ...string) error { type staticSessions (line 211) | type staticSessions struct method SetSessionExitFunc (line 216) | func (s *staticSessions) SetSessionExitFunc(func(string)) {} method FirstSession (line 218) | func (s *staticSessions) FirstSession() (*cache.Session, protocol.Serv... method Session (line 222) | func (s *staticSessions) Session(id string) (*cache.Session, protocol.... FILE: gopls/internal/cmd/mcp_test.go function TestMCPCommandStdio (line 32) | func TestMCPCommandStdio(t *testing.T) { function TestMCPCommandLogging (line 109) | func TestMCPCommandLogging(t *testing.T) { function TestMCPCommandHTTP (line 175) | func TestMCPCommandHTTP(t *testing.T) { function TestMCPVulncheckCommand (line 270) | func TestMCPVulncheckCommand(t *testing.T) { function resultText (line 391) | func resultText(t *testing.T, res *mcp.CallToolResult) string { function getRandomPort (line 408) | func getRandomPort() int { function supportsFsnotify (line 418) | func supportsFsnotify(os string) bool { FILE: gopls/internal/cmd/parsespan.go function parseSpan (line 19) | func parseSpan(input string) span { type suffix (line 76) | type suffix struct function rstripSuffix (line 82) | func rstripSuffix(input string) suffix { FILE: gopls/internal/cmd/prepare_rename.go type prepareRename (line 18) | type prepareRename struct method Name (line 22) | func (r *prepareRename) Name() string { return "prepare_rename" } method Parent (line 23) | func (r *prepareRename) Parent() string { return r.app.Name() } method Usage (line 24) | func (r *prepareRename) Usage() string { return "" } method ShortHelp (line 25) | func (r *prepareRename) ShortHelp() string { return "test validity of ... method DetailedHelp (line 26) | func (r *prepareRename) DetailedHelp(f *flag.FlagSet) { method Run (line 41) | func (r *prepareRename) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/references.go type references (line 18) | type references struct method Name (line 24) | func (r *references) Name() string { return "references" } method Parent (line 25) | func (r *references) Parent() string { return r.app.Name() } method Usage (line 26) | func (r *references) Usage() string { return "[references-flags] <... method ShortHelp (line 27) | func (r *references) ShortHelp() string { return "display selected ide... method DetailedHelp (line 28) | func (r *references) DetailedHelp(f *flag.FlagSet) { method Run (line 41) | func (r *references) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/remote.go type remote (line 20) | type remote struct method Name (line 43) | func (r *remote) Name() string { method Parent (line 50) | func (r *remote) Parent() string { return r.app.Name() } method ShortHelp (line 52) | func (r *remote) ShortHelp() string { function newRemote (line 32) | func newRemote(app *Application, alias string) *remote { type listSessions (line 61) | type listSessions struct method Name (line 65) | func (c *listSessions) Name() string { return "sessions" } method Parent (line 66) | func (c *listSessions) Parent() string { return c.app.Name() } method Usage (line 67) | func (c *listSessions) Usage() string { return "" } method ShortHelp (line 68) | func (c *listSessions) ShortHelp() string { method DetailedHelp (line 86) | func (c *listSessions) DetailedHelp(f *flag.FlagSet) { method Run (line 91) | func (c *listSessions) Run(ctx context.Context, args ...string) error { constant listSessionsExamples (line 72) | listSessionsExamples = ` type startDebugging (line 108) | type startDebugging struct method Name (line 112) | func (c *startDebugging) Name() string { return "debug" } method Usage (line 113) | func (c *startDebugging) Usage() string { return "[host:port]" } method ShortHelp (line 114) | func (c *startDebugging) ShortHelp() string { method DetailedHelp (line 132) | func (c *startDebugging) DetailedHelp(f *flag.FlagSet) { method Run (line 137) | func (c *startDebugging) Run(ctx context.Context, args ...string) error { constant startDebuggingExamples (line 118) | startDebuggingExamples = ` FILE: gopls/internal/cmd/rename.go type rename (line 17) | type rename struct method Name (line 22) | func (r *rename) Name() string { return "rename" } method Parent (line 23) | func (r *rename) Parent() string { return r.app.Name() } method Usage (line 24) | func (r *rename) Usage() string { return "[rename-flags] " } method ShortHelp (line 51) | func (c *semanticToken) ShortHelp() string { return "show semantic tok... method DetailedHelp (line 52) | func (c *semanticToken) DetailedHelp(f *flag.FlagSet) { method Run (line 63) | func (c *semanticToken) Run(ctx context.Context, args ...string) error { type mark (line 107) | type mark struct constant SemanticLeft (line 116) | SemanticLeft = "/*⇐" constant SemanticRight (line 117) | SemanticRight = "/*⇒" function markLine (line 120) | func markLine(m mark, lines [][]byte) { function decorate (line 145) | func decorate(legend protocol.SemanticTokensLegend, file *cmdFile, data ... function newMarks (line 159) | func newMarks(legend protocol.SemanticTokensLegend, file *cmdFile, data ... FILE: gopls/internal/cmd/serve.go type Serve (line 30) | type Serve struct method Name (line 49) | func (s *Serve) Name() string { return "serve" } method Parent (line 50) | func (s *Serve) Parent() string { return s.app.Name() } method Usage (line 51) | func (s *Serve) Usage() string { return "[server-flags]" } method ShortHelp (line 52) | func (s *Serve) ShortHelp() string { method DetailedHelp (line 55) | func (s *Serve) DetailedHelp(f *flag.FlagSet) { method remoteArgs (line 66) | func (s *Serve) remoteArgs(network, address string) []string { method Run (line 84) | func (s *Serve) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/signature.go type signature (line 17) | type signature struct method Name (line 21) | func (r *signature) Name() string { return "signature" } method Parent (line 22) | func (r *signature) Parent() string { return r.app.Name() } method Usage (line 23) | func (r *signature) Usage() string { return "" } method ShortHelp (line 24) | func (r *signature) ShortHelp() string { return "display selected iden... method DetailedHelp (line 25) | func (r *signature) DetailedHelp(f *flag.FlagSet) { method Run (line 36) | func (r *signature) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/span.go type span (line 32) | type span struct method HasPosition (line 120) | func (s span) HasPosition() bool { return s.v.Start.hasPos... method HasOffset (line 121) | func (s span) HasOffset() bool { return s.v.Start.hasOff... method IsValid (line 122) | func (s span) IsValid() bool { return s.v.Start.isVali... method IsPoint (line 123) | func (s span) IsPoint() bool { return s.v.Start == s.v... method URI (line 124) | func (s span) URI() protocol.DocumentURI { return s.v.URI } method Start (line 125) | func (s span) Start() point { return point{s.v.Start} } method End (line 126) | func (s span) End() point { return point{s.v.End} } method MarshalJSON (line 127) | func (s *span) MarshalJSON() ([]byte, error) { return json.Marshal(&s.... method UnmarshalJSON (line 128) | func (s *span) UnmarshalJSON(b []byte) error { return json.Unmarshal(b... method Format (line 189) | func (s span) Format(f fmt.State, c rune) { type point (line 39) | type point struct method HasPosition (line 130) | func (p point) HasPosition() bool { return p.v.hasPosition... method HasOffset (line 131) | func (p point) HasOffset() bool { return p.v.hasOffset() } method IsValid (line 132) | func (p point) IsValid() bool { return p.v.isValid() } method MarshalJSON (line 133) | func (p *point) MarshalJSON() ([]byte, error) { return json.Marshal(&p... method UnmarshalJSON (line 134) | func (p *point) UnmarshalJSON(b []byte) error { return json.Unmarshal(... method Line (line 135) | func (p point) Line() int { method Column (line 141) | func (p point) Column() int { method Offset (line 147) | func (p point) Offset() int { type _span (line 50) | type _span struct method clean (line 161) | func (s *_span) clean() { type _point (line 56) | type _point struct method hasPosition (line 154) | func (p _point) hasPosition() bool { return p.Line > 0 } method hasOffset (line 155) | func (p _point) hasOffset() bool { return p.Offset >= 0 } method isValid (line 156) | func (p _point) isValid() bool { return p.hasPosition() || p.hasOf... method isZero (line 157) | func (p _point) isZero() bool { method clean (line 168) | func (p *_point) clean() { function newSpan (line 62) | func newSpan(uri protocol.DocumentURI, start, end point) span { function newPoint (line 68) | func newPoint(line, col, offset int) point { function sortSpans (line 75) | func sortSpans(spans []span) { function compare (line 82) | func compare(a, b span) int { function comparePoint (line 95) | func comparePoint(a, b _point) int { FILE: gopls/internal/cmd/spanformat_test.go function TestSpanFormat (line 14) | func TestSpanFormat(t *testing.T) { function toPath (line 50) | func toPath(value string) string { FILE: gopls/internal/cmd/stats.go type stats (line 30) | type stats struct method Name (line 36) | func (s *stats) Name() string { return "stats" } method Parent (line 37) | func (r *stats) Parent() string { return r.app.Name() } method Usage (line 38) | func (s *stats) Usage() string { return "" } method ShortHelp (line 39) | func (s *stats) ShortHelp() string { return "print workspace statistic... method DetailedHelp (line 41) | func (s *stats) DetailedHelp(f *flag.FlagSet) { method Run (line 57) | func (s *stats) Run(ctx context.Context, args ...string) error { type GoplsStats (line 201) | type GoplsStats struct type dirStats (line 215) | type dirStats struct function findDirStats (line 225) | func findDirStats() (dirStats, error) { FILE: gopls/internal/cmd/subcommands.go type subcommands (line 18) | type subcommands method DetailedHelp (line 20) | func (s subcommands) DetailedHelp(f *flag.FlagSet) { method Usage (line 30) | func (s subcommands) Usage() string { return " [arg]..." } method Run (line 32) | func (s subcommands) Run(ctx context.Context, args ...string) error { method Commands (line 46) | func (s subcommands) Commands() []tool.Application { return s } function getSubcommands (line 49) | func getSubcommands(a tool.Application) []tool.Application { FILE: gopls/internal/cmd/symbols.go type symbols (line 19) | type symbols struct method Name (line 23) | func (r *symbols) Name() string { return "symbols" } method Parent (line 24) | func (r *symbols) Parent() string { return r.app.Name() } method Usage (line 25) | func (r *symbols) Usage() string { return "" } method ShortHelp (line 26) | func (r *symbols) ShortHelp() string { return "display selected file's... method DetailedHelp (line 27) | func (r *symbols) DetailedHelp(f *flag.FlagSet) { method Run (line 34) | func (r *symbols) Run(ctx context.Context, args ...string) error { function mapToSymbol (line 72) | func mapToSymbol(m map[string]any) (any, error) { function printDocumentSymbol (line 93) | func printDocumentSymbol(s protocol.DocumentSymbol) { function printSymbolInformation (line 104) | func printSymbolInformation(s protocol.SymbolInformation) { function positionToString (line 108) | func positionToString(r protocol.Range) string { FILE: gopls/internal/cmd/vulncheck.go type vulncheck (line 18) | type vulncheck struct method Name (line 22) | func (v *vulncheck) Name() string { return "vulncheck" } method Parent (line 23) | func (v *vulncheck) Parent() string { return v.app.Name() } method Usage (line 24) | func (v *vulncheck) Usage() string { return "" } method ShortHelp (line 25) | func (v *vulncheck) ShortHelp() string { method DetailedHelp (line 28) | func (v *vulncheck) DetailedHelp(f *flag.FlagSet) { method Run (line 41) | func (v *vulncheck) Run(ctx context.Context, args ...string) error { FILE: gopls/internal/cmd/workspace_symbol.go type workspaceSymbol (line 19) | type workspaceSymbol struct method Name (line 25) | func (r *workspaceSymbol) Name() string { return "workspace_symbo... method Parent (line 26) | func (r *workspaceSymbol) Parent() string { return r.app.Name() } method Usage (line 27) | func (r *workspaceSymbol) Usage() string { return "[workspace_symb... method ShortHelp (line 28) | func (r *workspaceSymbol) ShortHelp() string { return "search symbols ... method DetailedHelp (line 29) | func (r *workspaceSymbol) DetailedHelp(f *flag.FlagSet) { method Run (line 40) | func (r *workspaceSymbol) Run(ctx context.Context, args ...string) err... FILE: gopls/internal/debug/flight.go function KillTraceViewers (line 34) | func KillTraceViewers() { function startFlightRecorder (line 55) | func startFlightRecorder() (http.HandlerFunc, error) { FILE: gopls/internal/debug/flight_go124.go function startFlightRecorder (line 14) | func startFlightRecorder() (http.HandlerFunc, error) { function KillTraceViewers (line 18) | func KillTraceViewers() {} FILE: gopls/internal/debug/flight_unix.go function init (line 14) | func init() { function killGroup (line 21) | func killGroup(p *os.Process) error { FILE: gopls/internal/debug/info.go type PrintMode (line 21) | type PrintMode constant PlainText (line 24) | PlainText = PrintMode(iota) constant Markdown (line 25) | Markdown constant HTML (line 26) | HTML constant JSON (line 27) | JSON type ServerVersion (line 32) | type ServerVersion struct function VersionInfo (line 40) | func VersionInfo() *ServerVersion { method writeServerInfo (line 57) | func (i *Instance) writeServerInfo(out *bytes.Buffer) { function WriteVersionInfo (line 76) | func WriteVersionInfo(out *bytes.Buffer, verbose bool, mode PrintMode) { function writeVersionInfoJSON (line 92) | func writeVersionInfoJSON(out *bytes.Buffer, info *ServerVersion) { function section (line 100) | func section(w io.Writer, mode PrintMode, title string, body func()) { function writeBuildInfo (line 117) | func writeBuildInfo(w io.Writer, info *ServerVersion, verbose bool, mode... function printModuleInfo (line 129) | func printModuleInfo(w io.Writer, m debug.Module, _ PrintMode) { FILE: gopls/internal/debug/info_test.go function TestPrintVersionInfoJSON (line 17) | func TestPrintVersionInfoJSON(t *testing.T) { function TestPrintVersionInfoPlainText (line 35) | func TestPrintVersionInfoPlainText(t *testing.T) { FILE: gopls/internal/debug/log/log.go type Level (line 19) | type Level method Log (line 31) | func (l Level) Log(ctx context.Context, msg string) { method Logf (line 36) | func (l Level) Logf(ctx context.Context, format string, args ...any) { constant _ (line 22) | _ Level = iota constant Error (line 23) | Error constant Warning (line 24) | Warning constant Info (line 25) | Info constant Debug (line 26) | Debug constant Trace (line 27) | Trace function LabeledLevel (line 41) | func LabeledLevel(lm label.Map) Level { FILE: gopls/internal/debug/metrics.go function registerMetrics (line 69) | func registerMetrics(m *metric.Config) { FILE: gopls/internal/debug/rpc.go type Rpcs (line 47) | type Rpcs struct method ProcessEvent (line 82) | func (r *Rpcs) ProcessEvent(ctx context.Context, ev core.Event, lm lab... method getRPCSpan (line 150) | func (r *Rpcs) getRPCSpan(ctx context.Context) (*export.Span, *rpcStat... method getRPCStats (line 161) | func (r *Rpcs) getRPCStats(lm label.Map) *rpcStats { method getData (line 207) | func (r *Rpcs) getData(req *http.Request) any { type rpcStats (line 53) | type rpcStats struct method InProgress (line 192) | func (s *rpcStats) InProgress() int64 { return s.Started - s.Com... method SentMean (line 193) | func (s *rpcStats) SentMean() byteUnits { return s.Sent / byteUnit... method ReceivedMean (line 194) | func (s *rpcStats) ReceivedMean() byteUnits { return s.Received / byte... type rpcTimeHistogram (line 64) | type rpcTimeHistogram struct method Mean (line 196) | func (h *rpcTimeHistogram) Mean() time.Duration { return h.Sum / time.... type rpcTimeBucket (line 72) | type rpcTimeBucket struct type rpcCodeBucket (line 77) | type rpcCodeBucket struct function endRPC (line 108) | func endRPC(span *export.Span, stats *rpcStats) { function getStatusCode (line 198) | func getStatusCode(span *export.Span) string { function units (line 211) | func units(v float64, suffixes []string) string { type byteUnits (line 223) | type byteUnits method String (line 225) | func (v byteUnits) String() string { FILE: gopls/internal/debug/serve.go type contextKeyType (line 45) | type contextKeyType constant instanceKey (line 48) | instanceKey contextKeyType = iota constant traceKey (line 49) | traceKey type Instance (line 53) | type Instance struct method getCache (line 285) | func (i *Instance) getCache(r *http.Request) any { method getAnalysis (line 289) | func (i *Instance) getAnalysis(r *http.Request) any { method getSession (line 293) | func (i *Instance) getSession(r *http.Request) any { method getClient (line 297) | func (i *Instance) getClient(r *http.Request) any { method getServer (line 301) | func (i *Instance) getServer(r *http.Request) any { method getFile (line 319) | func (i *Instance) getFile(r *http.Request) any { method getMetadata (line 341) | func (i *Instance) getMetadata(r *http.Request) any { method getPackage (line 374) | func (i *Instance) getPackage(r *http.Request) any { method getInfo (line 419) | func (i *Instance) getInfo(r *http.Request) any { method AddService (line 425) | func (i *Instance) AddService(s protocol.Server, session *cache.Sessio... method SetLogFile (line 478) | func (i *Instance) SetLogFile(logfile string, isDaemon bool) (func(), ... method Serve (line 508) | func (i *Instance) Serve(ctx context.Context, addr string) (string, er... method DebugAddress (line 587) | func (i *Instance) DebugAddress() string { method ListenedDebugAddress (line 593) | func (i *Instance) ListenedDebugAddress() string { type State (line 74) | type State struct method Bugs (line 80) | func (st *State) Bugs() []bug.Bug { method Caches (line 85) | func (st *State) Caches() []*cache.Cache { method Cache (line 100) | func (st *State) Cache(id string) *cache.Cache { method Analysis (line 110) | func (st *State) Analysis() (_ analysisTmpl) { return } method Sessions (line 117) | func (st *State) Sessions() []*cache.Session { method Session (line 126) | func (st *State) Session(id string) *cache.Session { method Views (line 136) | func (st *State) Views() []*cache.View { method View (line 145) | func (st *State) View(id string) *cache.View { method Clients (line 155) | func (st *State) Clients() []*Client { method Client (line 164) | func (st *State) Client(id string) *Client { method Servers (line 174) | func (st *State) Servers() []*Server { method addClient (line 202) | func (st *State) addClient(session *cache.Session) { method dropClient (line 209) | func (st *State) dropClient(session *cache.Session) { method updateServer (line 224) | func (st *State) updateServer(server *Server) { method dropServer (line 242) | func (st *State) dropServer(id string) { type analysisTmpl (line 112) | type analysisTmpl struct method AnalyzerRunTimes (line 114) | func (analysisTmpl) AnalyzerRunTimes() []cache.LabelDuration { return ... type Client (line 183) | type Client struct type Server (line 193) | type Server struct type filterResponse (line 256) | type filterResponse struct method Header (line 261) | func (c filterResponse) Header() http.Header { method Write (line 265) | func (c filterResponse) Write(buf []byte) (int, error) { method WriteHeader (line 270) | func (c filterResponse) WriteHeader(n int) { function cmdline (line 275) | func cmdline(w http.ResponseWriter, r *http.Request) { type FileWithKind (line 313) | type FileWithKind interface type MetadataInfo (line 334) | type MetadataInfo struct type PackageInfo (line 366) | type PackageInfo struct function getMemory (line 435) | func getMemory(_ *http.Request) any { function init (line 441) | func init() { function GetInstance (line 445) | func GetInstance(ctx context.Context) *Instance { function WithInstance (line 458) | func WithInstance(ctx context.Context, otelEndpoint string) context.Cont... function makeGlobalExporter (line 599) | func makeGlobalExporter(stderr io.Writer) event.Exporter { function messageType (line 631) | func messageType(l log.Level) protocol.MessageType { function makeInstanceExporter (line 643) | func makeInstanceExporter(i *Instance) event.Exporter { type dataFunc (line 698) | type dataFunc function render (line 700) | func render(tmpl *template.Template, fun dataFunc) func(http.ResponseWri... function commas (line 713) | func commas(s string) string { function fuint64 (line 721) | func fuint64(v uint64) string { function fuint32 (line 725) | func fuint32(v uint32) string { function fcontent (line 729) | func fcontent(v []byte) string { FILE: gopls/internal/debug/template_test.go function TestTemplates (line 49) | func TestTemplates(t *testing.T) { function callsOf (line 121) | func callsOf(tree *ast.File, name string) []*ast.CallExpr { function treeOf (line 139) | func treeOf(p *packages.Package, fname string) *ast.File { FILE: gopls/internal/debug/trace.go type traces (line 59) | type traces struct method ProcessEvent (line 179) | func (t *traces) ProcessEvent(ctx context.Context, ev core.Event, lm l... method addRecentLocked (line 262) | func (t *traces) addRecentLocked(span *traceSpan, start bool) { method getData (line 281) | func (t *traces) getData(req *http.Request) any { type spanStartEnd (line 70) | type spanStartEnd struct method Time (line 75) | func (ev spanStartEnd) Time() time.Time { type TraceResults (line 84) | type TraceResults struct type traceSet (line 91) | type traceSet struct type traceSpan (line 98) | type traceSpan struct method Header (line 117) | func (span *traceSpan) Header(start bool) string { constant timeFormat (line 113) | timeFormat = "15:04:05.000" type traceEvent (line 127) | type traceEvent struct method Header (line 133) | func (ev traceEvent) Header() string { function StdTrace (line 137) | func StdTrace(exporter event.Exporter) event.Exporter { function formatEvent (line 172) | func formatEvent(ev core.Event, lm label.Map) string { function fillOffsets (line 301) | func fillOffsets(td *traceSpan, start time.Time) { function renderLabels (line 312) | func renderLabels(labels label.List) string { FILE: gopls/internal/doc/api.go type API (line 22) | type API struct type Option (line 29) | type Option struct type EnumKeys (line 41) | type EnumKeys struct type EnumKey (line 46) | type EnumKey struct type EnumValue (line 53) | type EnumValue struct type Lens (line 59) | type Lens struct type Analyzer (line 68) | type Analyzer struct type Hint (line 75) | type Hint struct FILE: gopls/internal/doc/generate/generate.go function main (line 50) | func main() { function doMain (line 60) | func doMain(write bool) (bool, error) { function pkgDir (line 112) | func pkgDir(pkgPath string) (string, error) { function loadAPI (line 126) | func loadAPI() (*doc.API, error) { function loadOptions (line 190) | func loadOptions(category reflect.Value, optsType types.Object, pkg *pac... function loadEnums (line 305) | func loadEnums(pkg *packages.Package) (map[types.Type][]doc.EnumValue, e... function collectEnumKeys (line 347) | func collectEnumKeys(m *types.Map, reflectField reflect.Value, enumValue... function formatDefaultFromEnumBoolMap (line 373) | func formatDefaultFromEnumBoolMap(reflectMap reflect.Value, enumKey stri... function formatDefault (line 398) | func formatDefault(reflectField reflect.Value) (string, error) { function valueDoc (line 431) | func valueDoc(name, value, doc string) string { function loadLenses (line 445) | func loadLenses(settingsPkg *packages.Package, defaults map[settings.Cod... function loadAnalyzers (line 510) | func loadAnalyzers(analyzers []*settings.Analyzer, defaults *settings.Op... function loadHints (line 527) | func loadHints(settingsPkg *packages.Package) ([]*doc.Hint, error) { function lowerFirst (line 545) | func lowerFirst(x string) string { function fileForPos (line 552) | func fileForPos(pkg *packages.Package, pos token.Pos) (*ast.File, error) { function rewriteAPI (line 562) | func rewriteAPI(_ []byte, api *doc.API) ([]byte, error) { type optionsGroup (line 566) | type optionsGroup struct function rewriteSettings (line 573) | func rewriteSettings(prevContent []byte, api *doc.API) ([]byte, error) { function writeStatus (line 663) | func writeStatus(buf *bytes.Buffer, status string) { function shouldShowEnumKeysInSettings (line 679) | func shouldShowEnumKeysInSettings(name string) bool { function collectGroups (line 686) | func collectGroups(opts []*doc.Option) []optionsGroup { function capitalize (line 740) | func capitalize(s string) string { function rewriteCodeLenses (line 744) | func rewriteCodeLenses(prevContent []byte, api *doc.API) ([]byte, error) { function rewriteAnalyzers (line 756) | func rewriteAnalyzers(prevContent []byte, api *doc.API) ([]byte, error) { function rewriteInlayHints (line 798) | func rewriteInlayHints(prevContent []byte, api *doc.API) ([]byte, error) { function replaceSection (line 817) | func replaceSection(content []byte, sectionName string, replacement []by... type onOff (line 829) | type onOff method String (line 831) | func (o onOff) String() string { FILE: gopls/internal/doc/generate/generate_test.go function TestGenerated (line 13) | func TestGenerated(t *testing.T) { FILE: gopls/internal/file/file.go type Identity (line 22) | type Identity struct method String (line 27) | func (id Identity) String() string { type Handle (line 38) | type Handle interface type Source (line 61) | type Source interface FILE: gopls/internal/file/hash.go type Hash (line 15) | type Hash method String (line 23) | func (h Hash) String() string { method XORWith (line 28) | func (h *Hash) XORWith(h2 Hash) { function HashOf (line 18) | func HashOf(data []byte) Hash { FILE: gopls/internal/file/kind.go type Kind (line 15) | type Kind method String (line 35) | func (k Kind) String() string { constant UnknownKind (line 19) | UnknownKind = Kind(iota) constant Go (line 22) | Go constant Mod (line 24) | Mod constant Sum (line 26) | Sum constant Tmpl (line 28) | Tmpl constant Work (line 30) | Work constant Asm (line 32) | Asm function KindForLang (line 57) | func KindForLang(langID protocol.LanguageKind) Kind { FILE: gopls/internal/file/modification.go type Modification (line 10) | type Modification struct type Action (line 28) | type Action method String (line 40) | func (a Action) String() string { constant UnknownAction (line 31) | UnknownAction = Action(iota) constant Open (line 32) | Open constant Change (line 33) | Change constant Close (line 34) | Close constant Save (line 35) | Save constant Create (line 36) | Create constant Delete (line 37) | Delete FILE: gopls/internal/filecache/filecache.go function Start (line 49) | func Start() { type memKey (line 58) | type memKey struct function Get (line 73) | func Get(kind string, key [32]byte) ([]byte, error) { function Set (line 147) | func Set(kind string, key [32]byte, value []byte) error { function touch (line 199) | func touch(filenames ...string) { function writeFileNoTrunc (line 215) | func writeFileNoTrunc(filename string, data []byte, perm os.FileMode) er... constant casKind (line 232) | casKind = "cas" constant bugKind (line 233) | bugKind = "bug" function SetBudget (line 252) | func SetBudget(new int64) (old int64) { function filename (line 326) | func filename(kind string, key [32]byte) (string, error) { function getCacheDir (line 342) | func getCacheDir() (string, error) { function hashExecutable (line 393) | func hashExecutable() (hash [32]byte, err error) { function gc (line 418) | func gc(goplsDir string) { function init (line 570) | func init() { function BugReports (line 592) | func BugReports() (string, []bug.Bug) { FILE: gopls/internal/filecache/filecache_test.go function TestBasics (line 29) | func TestBasics(t *testing.T) { function TestConcurrency (line 62) | func TestConcurrency(t *testing.T) { constant testIPCKind (line 121) | testIPCKind = "TestIPC" constant testIPCValueA (line 122) | testIPCValueA = "hello" constant testIPCValueB (line 123) | testIPCValueB = "world" function TestIPC (line 129) | func TestIPC(t *testing.T) { function TestMain (line 171) | func TestMain(m *testing.M) { function ipcChild (line 181) | func ipcChild() { function uniqueKey (line 201) | func uniqueKey() (key [32]byte) { function BenchmarkUncontendedGet (line 208) | func BenchmarkUncontendedGet(b *testing.B) { function BenchmarkUncontendedSet (line 240) | func BenchmarkUncontendedSet(b *testing.B) { FILE: gopls/internal/filewatcher/export_test.go function SetAfterAddHook (line 11) | func SetAfterAddHook(f func(string, error)) { FILE: gopls/internal/filewatcher/filewatcher.go type Watcher (line 16) | type Watcher interface function New (line 36) | func New(mode string, interval time.Duration, logger *slog.Logger, onEve... FILE: gopls/internal/filewatcher/filewatcher_test.go function TestFileWatcher (line 25) | func TestFileWatcher(t *testing.T) { function TestBrokenSymlink (line 286) | func TestBrokenSymlink(t *testing.T) { function TestStress (line 468) | func TestStress(t *testing.T) { FILE: gopls/internal/filewatcher/fsnotify_watcher.go type fsnotifyWatcher (line 28) | type fsnotifyWatcher struct method run (line 89) | func (w *fsnotifyWatcher) run(eventsHandler func([]protocol.FileEvent)... method process (line 153) | func (w *fsnotifyWatcher) process(errHandler func(error)) { method signal (line 261) | func (w *fsnotifyWatcher) signal() { method WatchDir (line 295) | func (w *fsnotifyWatcher) WatchDir(path string) error { method convertEvent (line 313) | func (w *fsnotifyWatcher) convertEvent(event fsnotify.Event) (_ protoc... method watchDir (line 374) | func (w *fsnotifyWatcher) watchDir(path string) error { method isWatchedDir (line 414) | func (w *fsnotifyWatcher) isWatchedDir(path string) bool { method Poke (line 423) | func (w *fsnotifyWatcher) Poke() {} method Close (line 427) | func (w *fsnotifyWatcher) Close() error { method walkDir (line 446) | func (w *fsnotifyWatcher) walkDir(path string, isDir bool, errHandler ... method walkDirWithRetry (line 495) | func (w *fsnotifyWatcher) walkDirWithRetry(root string, errHandler fun... function NewFSNotifyWatcher (line 58) | func NewFSNotifyWatcher(delay time.Duration, logger *slog.Logger, events... function skipDir (line 275) | func skipDir(dirName string) bool { function skipFile (line 284) | func skipFile(fileName string) bool { function tryFSOperation (line 515) | func tryFSOperation[Result any](stop <-chan struct{}, op func() (Result,... FILE: gopls/internal/fuzzy/input.go type RuneRole (line 12) | type RuneRole constant RNone (line 16) | RNone RuneRole = iota constant RSep (line 18) | RSep constant RTail (line 20) | RTail constant RUCTail (line 22) | RUCTail constant RHead (line 24) | RHead function RuneRoles (line 30) | func RuneRoles(candidate []byte, reuse []RuneRole) []RuneRole { type runeType (line 89) | type runeType constant rtNone (line 92) | rtNone runeType = iota constant rtPunct (line 93) | rtPunct constant rtLower (line 94) | rtLower constant rtUpper (line 95) | rtUpper constant rt (line 98) | rt = "000000000000000000000000000000000000000000000011222222222210000003... function LastSegment (line 103) | func LastSegment(input string, roles []RuneRole) string { function fromChunks (line 122) | func fromChunks(chunks []string, buffer []byte) []byte { function toLower (line 140) | func toLower(input []byte, reuse []byte) []byte { type WordConsumer (line 160) | type WordConsumer function Words (line 164) | func Words(roles []RuneRole, consume WordConsumer) { FILE: gopls/internal/fuzzy/input_test.go function rolesString (line 29) | func rolesString(roles []fuzzy.RuneRole) string { function TestRoles (line 37) | func TestRoles(t *testing.T) { function TestWordSplit (line 70) | func TestWordSplit(t *testing.T) { function diffStringLists (line 86) | func diffStringLists(a, b []string) bool { function TestLastSegment (line 114) | func TestLastSegment(t *testing.T) { function BenchmarkRoles (line 126) | func BenchmarkRoles(b *testing.B) { FILE: gopls/internal/fuzzy/matcher.go constant MaxInputSize (line 16) | MaxInputSize = 127 constant MaxPatternSize (line 19) | MaxPatternSize = 63 type scoreVal (line 22) | type scoreVal method val (line 24) | func (s scoreVal) val() int { method prevK (line 28) | func (s scoreVal) prevK() int { function score (line 32) | func score(val int, prevK int /*0 or 1*/) scoreVal { type Matcher (line 38) | type Matcher struct method String (line 64) | func (m *Matcher) String() string { return m.pattern } method bestK (line 66) | func (m *Matcher) bestK(i, j int) int { method Score (line 110) | func (m *Matcher) Score(candidate string) float32 { method ScoreChunks (line 114) | func (m *Matcher) ScoreChunks(chunks []string) float32 { method MatchedRanges (line 153) | func (m *Matcher) MatchedRanges() []int { method match (line 185) | func (m *Matcher) match(candidate []byte, candidateLower []byte) bool { method computeScore (line 203) | func (m *Matcher) computeScore(candidate []byte, candidateLower []byte... method ScoreTable (line 338) | func (m *Matcher) ScoreTable(candidate string) string { method poorMatch (line 383) | func (m *Matcher) poorMatch() bool { function NewMatcher (line 74) | func NewMatcher(pattern string) *Matcher { constant minScore (line 149) | minScore = -10000 function dir (line 376) | func dir(prevK int) rune { function BestMatch (line 415) | func BestMatch(pattern string, names []string) string { FILE: gopls/internal/fuzzy/matcher_test.go type comparator (line 19) | type comparator struct method eval (line 45) | func (c comparator) eval(val, ref float32) bool { method String (line 49) | func (c comparator) String() string { type scoreTest (line 53) | type scoreTest struct function TestScore (line 99) | func TestScore(t *testing.T) { function TestCompareCandidateScores (line 144) | func TestCompareCandidateScores(t *testing.T) { function TestFuzzyMatcherRanges (line 206) | func TestFuzzyMatcherRanges(t *testing.T) { function TestScores (line 255) | func TestScores(t *testing.T) { function highlightMatches (line 265) | func highlightMatches(str string, matcher *fuzzy.Matcher) string { function BenchmarkMatcher (line 279) | func BenchmarkMatcher(b *testing.B) { FILE: gopls/internal/fuzzy/self_test.go function BenchmarkSelf_Matcher (line 13) | func BenchmarkSelf_Matcher(b *testing.B) { function BenchmarkSelf_SymbolMatcher (line 27) | func BenchmarkSelf_SymbolMatcher(b *testing.B) { FILE: gopls/internal/fuzzy/symbol.go type SymbolMatcher (line 32) | type SymbolMatcher struct method Match (line 80) | func (m *SymbolMatcher) Match(chunks []string) (int, float64) { constant segmentStart (line 44) | segmentStart uint32 = 1 << iota constant wordStart (line 45) | wordStart constant separator (line 46) | separator constant upper (line 47) | upper function NewSymbolMatcher (line 56) | func NewSymbolMatcher(pattern string) *SymbolMatcher { FILE: gopls/internal/fuzzy/symbol_test.go function TestSymbolMatchIndex (line 17) | func TestSymbolMatchIndex(t *testing.T) { function TestSymbolRanking (line 40) | func TestSymbolRanking(t *testing.T) { function TestMatcherSimilarities (line 92) | func TestMatcherSimilarities(t *testing.T) { function collectIdentifiers (line 156) | func collectIdentifiers(tb testing.TB) []string { function generatePatterns (line 199) | func generatePatterns() []string { function TestSymbolRanking_Issue60027 (line 217) | func TestSymbolRanking_Issue60027(t *testing.T) { function TestChunkedMatch (line 238) | func TestChunkedMatch(t *testing.T) { FILE: gopls/internal/goasm/definition.go function Definition (line 24) | func Definition(ctx context.Context, snapshot *cache.Snapshot, fh file.H... FILE: gopls/internal/golang/add_import.go function AddImport (line 18) | func AddImport(ctx context.Context, snapshot *cache.Snapshot, fh file.Ha... FILE: gopls/internal/golang/addtest.go constant testTmplString (line 35) | testTmplString = ` type field (line 164) | type field struct type function (line 168) | type function struct type receiver (line 180) | type receiver struct type testInfo (line 188) | type testInfo struct function AddTestForFunc (line 224) | func AddTestForFunc(ctx context.Context, snapshot *cache.Snapshot, loc p... function testName (line 810) | func testName(fn *types.Func) (string, error) { FILE: gopls/internal/golang/assembly.go function AssemblyHTML (line 38) | func AssemblyHTML(ctx context.Context, snapshot *cache.Snapshot, w http.... FILE: gopls/internal/golang/call_hierarchy.go function PrepareCallHierarchy (line 27) | func PrepareCallHierarchy(ctx context.Context, snapshot *cache.Snapshot,... function IncomingCalls (line 60) | func IncomingCalls(ctx context.Context, snapshot *cache.Snapshot, fh fil... function enclosingNodeCallItem (line 98) | func enclosingNodeCallItem(ctx context.Context, snapshot *cache.Snapshot... function OutgoingCalls (line 182) | func OutgoingCalls(ctx context.Context, snapshot *cache.Snapshot, fh fil... function callHierarchyItemDetail (line 275) | func callHierarchyItemDetail(obj types.Object, loc protocol.Location) st... function callHierarchyFuncAtRange (line 285) | func callHierarchyFuncAtRange(info *types.Info, pgf *parsego.File, rng a... FILE: gopls/internal/golang/change_quote.go function convertStringLiteral (line 26) | func convertStringLiteral(req *codeActionsRequest) { FILE: gopls/internal/golang/change_signature.go function removeParam (line 111) | func removeParam(ctx context.Context, snapshot *cache.Snapshot, fh file.... function ChangeSignature (line 147) | func ChangeSignature(ctx context.Context, snapshot *cache.Snapshot, pkg ... function rewriteSignature (line 358) | func rewriteSignature(fset *token.FileSet, declIdx int, src0 []byte, new... type paramInfo (line 406) | type paramInfo struct function findParam (line 414) | func findParam(pgf *parsego.File, rng protocol.Range) *paramInfo { type signatureRewrite (line 479) | type signatureRewrite struct function rewriteCalls (line 529) | func rewriteCalls(ctx context.Context, rw signatureRewrite) (map[protoco... function reTypeCheck (line 658) | func reTypeCheck(logf func(string, ...any), orig *cache.Package, fileMas... function selectElements (line 762) | func selectElements[T any](s []T, indices []int) ([]T, bool) { function replaceFileDecl (line 776) | func replaceFileDecl(pgf *parsego.File, old, new ast.Decl) ([]byte, erro... function findDecl (line 798) | func findDecl(file *ast.File, decl ast.Decl) int { FILE: gopls/internal/golang/code_lens.go function CodeLensSources (line 24) | func CodeLensSources() map[settings.CodeLensSource]cache.CodeLensSourceF... function runTestCodeLens (line 37) | func runTestCodeLens(ctx context.Context, snapshot *cache.Snapshot, fh f... type testFunc (line 90) | type testFunc struct function testsAndBenchmarks (line 97) | func testsAndBenchmarks(info *types.Info, pgf *parsego.File) (tests, ben... function matchTestFunc (line 122) | func matchTestFunc(fn *ast.FuncDecl, info *types.Info, nameRe *regexp.Re... function goGenerateCodeLens (line 157) | func goGenerateCodeLens(ctx context.Context, snapshot *cache.Snapshot, f... function regenerateCgoLens (line 185) | func regenerateCgoLens(ctx context.Context, snapshot *cache.Snapshot, fh... FILE: gopls/internal/golang/codeaction.go function CodeActions (line 43) | func CodeActions(ctx context.Context, snapshot *cache.Snapshot, opts *se... type codeActionsRequest (line 125) | type codeActionsRequest struct method addApplyFixAction (line 144) | func (req *codeActionsRequest) addApplyFixAction(title, fix string, lo... method addCommandAction (line 169) | func (req *codeActionsRequest) addCommandAction(cmd *protocol.Command,... method addEditAction (line 188) | func (req *codeActionsRequest) addEditAction(title string, fixedDiagno... method addAction (line 198) | func (req *codeActionsRequest) addAction(act protocol.CodeAction) { method resolveEdits (line 203) | func (req *codeActionsRequest) resolveEdits() bool { function lazyInit (line 213) | func lazyInit[P interface { type codeActionProducer (line 232) | type codeActionProducer struct function sourceOrganizeImports (line 280) | func sourceOrganizeImports(ctx context.Context, req *codeActionsRequest)... function quickFix (line 295) | func quickFix(ctx context.Context, req *codeActionsRequest) error { type allImportsFixesResult (line 374) | type allImportsFixesResult struct method init (line 380) | func (res *allImportsFixesResult) init(ctx context.Context, req *codeA... function importFixTitle (line 387) | func importFixTitle(fix *imports.ImportFix) string { function fixedByImportFix (line 402) | func fixedByImportFix(fix *imports.ImportFix, diagnostics []protocol.Dia... function goFreeSymbols (line 439) | func goFreeSymbols(ctx context.Context, req *codeActionsRequest) error { function goSplitPackage (line 449) | func goSplitPackage(ctx context.Context, req *codeActionsRequest) error { function goplsDocFeatures (line 466) | func goplsDocFeatures(ctx context.Context, req *codeActionsRequest) error { function goDoc (line 476) | func goDoc(ctx context.Context, req *codeActionsRequest) error { function refactorExtractFunction (line 487) | func refactorExtractFunction(ctx context.Context, req *codeActionsReques... function refactorExtractMethod (line 496) | func refactorExtractMethod(ctx context.Context, req *codeActionsRequest)... function refactorExtractVariable (line 505) | func refactorExtractVariable(ctx context.Context, req *codeActionsReques... function refactorExtractVariableAll (line 530) | func refactorExtractVariableAll(ctx context.Context, req *codeActionsReq... function refactorExtractToNewFile (line 560) | func refactorExtractToNewFile(ctx context.Context, req *codeActionsReque... function addTest (line 570) | func addTest(ctx context.Context, req *codeActionsRequest) error { function identityTransform (line 605) | func identityTransform(fields *ast.FieldList) []command.ChangeSignatureP... function refactorRewriteRemoveUnusedParam (line 615) | func refactorRewriteRemoveUnusedParam(ctx context.Context, req *codeActi... function refactorRewriteMoveParamLeft (line 634) | func refactorRewriteMoveParamLeft(ctx context.Context, req *codeActionsR... function refactorRewriteMoveParamRight (line 657) | func refactorRewriteMoveParamRight(ctx context.Context, req *codeActions... function refactorRewriteChangeQuote (line 684) | func refactorRewriteChangeQuote(ctx context.Context, req *codeActionsReq... function refactorRewriteInvertIf (line 691) | func refactorRewriteInvertIf(ctx context.Context, req *codeActionsReques... function refactorRewriteSplitLines (line 700) | func refactorRewriteSplitLines(ctx context.Context, req *codeActionsRequ... function refactorRewriteEliminateDotImport (line 708) | func refactorRewriteEliminateDotImport(ctx context.Context, req *codeAct... function refactorRewriteJoinLines (line 806) | func refactorRewriteJoinLines(ctx context.Context, req *codeActionsReque... function refactorRewriteFillStruct (line 816) | func refactorRewriteFillStruct(ctx context.Context, req *codeActionsRequ... function refactorRewriteFillSwitch (line 833) | func refactorRewriteFillSwitch(ctx context.Context, req *codeActionsRequ... function selectionContainsStructField (line 848) | func selectionContainsStructField(node *ast.StructType, start, end token... function selectionContainsStruct (line 863) | func selectionContainsStruct(cursor inspector.Cursor, start, end token.P... function supportsDialog (line 894) | func supportsDialog(req *codeActionsRequest, need ...settings.Interactiv... function refactorRewriteAddStructTags (line 911) | func refactorRewriteAddStructTags(ctx context.Context, req *codeActionsR... function refactorRewriteRemoveStructTags (line 930) | func refactorRewriteRemoveStructTags(ctx context.Context, req *codeActio... function removableParameter (line 956) | func removableParameter(pkg *cache.Package, pgf *parsego.File, rng proto... function refactorInlineCall (line 997) | func refactorInlineCall(ctx context.Context, req *codeActionsRequest) er... function refactorInlineVariable (line 1014) | func refactorInlineVariable(ctx context.Context, req *codeActionsRequest... function goTest (line 1025) | func goTest(ctx context.Context, req *codeActionsRequest) error { function goAssembly (line 1058) | func goAssembly(ctx context.Context, req *codeActionsRequest) error { function toggleCompilerOptDetails (line 1147) | func toggleCompilerOptDetails(ctx context.Context, req *codeActionsReque... function refactorMoveType (line 1166) | func refactorMoveType(_ context.Context, req *codeActionsRequest) error { FILE: gopls/internal/golang/comment.go function DocCommentToMarkdown (line 34) | func DocCommentToMarkdown(text string, options *settings.Options) string { function docLinkDefinition (line 63) | func docLinkDefinition(ctx context.Context, snapshot *cache.Snapshot, pk... function resolveDocLink (line 77) | func resolveDocLink(pkg *cache.Package, pgf *parsego.File, rng astutil.R... type docLink (line 110) | type docLink struct function commentDocLinks (line 127) | func commentDocLinks(cg *ast.CommentGroup) iter.Seq[docLink] { function lookupDocLinkSymbol (line 188) | func lookupDocLinkSymbol(pkg *cache.Package, pgf *parsego.File, name str... function newDocCommentParser (line 261) | func newDocCommentParser(pkg *cache.Package) func(fileNode ast.Node, tex... FILE: gopls/internal/golang/compileropt.go function CompilerOptDetails (line 26) | func CompilerOptDetails(ctx context.Context, snapshot *cache.Snapshot, p... function parseDetailsFile (line 91) | func parseDetailsFile(filename string, options *settings.Options) (proto... function showDiagnostic (line 173) | func showDiagnostic(msg, source string, o *settings.Options) bool { function findJSONFiles (line 216) | func findJSONFiles(dir string) ([]string, error) { FILE: gopls/internal/golang/completion/builtin.go method builtinArgKind (line 16) | func (c *completer) builtinArgKind(ctx context.Context, obj types.Object... method builtinArgType (line 59) | func (c *completer) builtinArgType(obj types.Object, call *ast.CallExpr,... FILE: gopls/internal/golang/completion/completion.go type CompletionItem (line 52) | type CompletionItem struct method Snippet (line 130) | func (i *CompletionItem) Snippet() string { method addConversion (line 140) | func (i *CompletionItem) addConversion(c *completer, conv conversionEd... type completionOptions (line 115) | type completionOptions struct constant lowScore (line 166) | lowScore float64 = 0.01 constant stdScore (line 169) | stdScore float64 = 1.0 constant highScore (line 172) | highScore float64 = 10.0 type matcher (line 178) | type matcher interface type prefixMatcher (line 183) | type prefixMatcher method Score (line 185) | func (pm prefixMatcher) Score(candidateLabel string) float32 { type insensitivePrefixMatcher (line 193) | type insensitivePrefixMatcher method Score (line 195) | func (ipm insensitivePrefixMatcher) Score(candidateLabel string) float... type completer (line 203) | type completer struct method tooNew (line 305) | func (c *completer) tooNew(obj types.Object) bool { method setSurrounding (line 412) | func (c *completer) setSurrounding(ident *ast.Ident) { method setMatcherFromPrefix (line 434) | func (c *completer) setMatcherFromPrefix(prefix string) { method getSurrounding (line 445) | func (c *completer) getSurrounding() *Selection { method collectCompletions (line 715) | func (c *completer) collectCompletions(ctx context.Context) error { method containingIdent (line 793) | func (c *completer) containingIdent(src []byte) *ast.Ident { method scanToken (line 837) | func (c *completer) scanToken(contents []byte) (token.Pos, token.Token... method emptySwitchStmt (line 871) | func (c *completer) emptySwitchStmt() bool { method populateImportCompletions (line 893) | func (c *completer) populateImportCompletions(searchImport *ast.Import... method populateCommentCompletions (line 1025) | func (c *completer) populateCommentCompletions(comment *ast.CommentGro... method setSurroundingForComment (line 1145) | func (c *completer) setSurroundingForComment(comments *ast.CommentGrou... method addFieldItems (line 1188) | func (c *completer) addFieldItems(fields *ast.FieldList) { method wantTypeName (line 1227) | func (c *completer) wantTypeName() bool { method selector (line 1241) | func (c *completer) selector(ctx context.Context, sel *ast.SelectorExp... method packageMembers (line 1580) | func (c *completer) packageMembers(pkg *types.Package, score float64, ... method methodsAndFields (line 1603) | func (c *completer) methodsAndFields(typ types.Type, addressable bool,... method lexical (line 1669) | func (c *completer) lexical(ctx context.Context) error { method injectType (line 1809) | func (c *completer) injectType(ctx context.Context, t types.Type) { method unimportedPackages (line 1843) | func (c *completer) unimportedPackages(ctx context.Context, seen map[s... method inConstDecl (line 1975) | func (c *completer) inConstDecl() bool { method structLiteralFieldName (line 1985) | func (c *completer) structLiteralFieldName(ctx context.Context) error { method getTypeArgs (line 2720) | func (c *completer) getTypeArgs(callExpr *ast.CallExpr) []types.Type { method inferExpectedTypeArg (line 2783) | func (c *completer) inferExpectedTypeArg(callNodeIdx int, typeParamIdx... method expectedCallParamType (line 2832) | func (c *completer) expectedCallParamType(inf candidateInference, node... method fakeObj (line 3158) | func (c *completer) fakeObj(T types.Type) *types.Var { method matchingCandidate (line 3242) | func (c *completer) matchingCandidate(cand *candidate) bool { method matchingTypeName (line 3537) | func (c *completer) matchingTypeName(cand *candidate) bool { method innermostScope (line 3722) | func (c *completer) innermostScope() *types.Scope { type funcInfo (line 319) | type funcInfo struct type compLitInfo (line 327) | type compLitInfo struct type importInfo (line 348) | type importInfo struct type methodSetKey (line 353) | type methodSetKey struct type completionContext (line 358) | type completionContext struct type Selection (line 374) | type Selection struct method Range (line 382) | func (p Selection) Range() (protocol.Range, error) { method PrefixRange (line 387) | func (p Selection) PrefixRange() (protocol.Range, error) { method Prefix (line 391) | func (p Selection) Prefix() string { method Suffix (line 395) | func (p Selection) Suffix() string { method check (line 401) | func (p Selection) check() { type candidate (line 461) | type candidate struct method hasMod (line 504) | func (c candidate) hasMod(mod typeModKind) bool { method anyCandType (line 3209) | func (c *candidate) anyCandType(f func(t types.Type, addressable bool)... function Completion (line 514) | func Completion(ctx context.Context, snapshot *cache.Snapshot, fh file.H... function sortItems (line 856) | func sortItems(items []CompletionItem) { function isValidIdentifierChar (line 1182) | func isValidIdentifierChar(char byte) bool { function wantStructFieldCompletions (line 1220) | func wantStructFieldCompletions(enclosingCl *compLitInfo) bool { constant maxUnimportedPackageNames (line 1233) | maxUnimportedPackageNames = 5 constant unimportedMemberTarget (line 1234) | unimportedMemberTarget = 100 function unimportedScore (line 1576) | func unimportedScore(relevance float64) float64 { function ignoreUnimportedCompletion (line 1598) | func ignoreUnimportedCompletion(fix *imports.ImportFix) bool { function isStarTestingDotF (line 1652) | func isStarTestingDotF(typ types.Type) bool { function alreadyImports (line 1966) | func alreadyImports(f *ast.File, path golang.ImportPath) bool { function enclosingCompositeLiteral (line 2034) | func enclosingCompositeLiteral(path []ast.Node, pos token.Pos, info *typ... function enclosingFunction (line 2124) | func enclosingFunction(path []ast.Node, info *types.Info) *funcInfo { function expectedCompositeLiteralType (line 2152) | func expectedCompositeLiteralType(clInfo *compLitInfo, pos token.Pos) ty... type typeMod (line 2200) | type typeMod struct type typeModKind (line 2205) | type typeModKind constant dereference (line 2208) | dereference typeModKind = iota constant reference (line 2209) | reference constant chanRead (line 2210) | chanRead constant sliceType (line 2211) | sliceType constant arrayType (line 2212) | arrayType constant invoke (line 2213) | invoke constant takeSlice (line 2214) | takeSlice constant takeDotDotDot (line 2215) | takeDotDotDot constant index (line 2216) | index type objKind (line 2219) | type objKind constant kindAny (line 2222) | kindAny objKind = 0 constant kindArray (line 2223) | kindArray objKind = 1 << iota constant kindSlice (line 2224) | kindSlice constant kindChan (line 2225) | kindChan constant kindMap (line 2226) | kindMap constant kindStruct (line 2227) | kindStruct constant kindString (line 2228) | kindString constant kindInt (line 2229) | kindInt constant kindBool (line 2230) | kindBool constant kindBytes (line 2231) | kindBytes constant kindPtr (line 2232) | kindPtr constant kindInterface (line 2233) | kindInterface constant kindFloat (line 2234) | kindFloat constant kindComplex (line 2235) | kindComplex constant kindError (line 2236) | kindError constant kindStringer (line 2237) | kindStringer constant kindFunc (line 2238) | kindFunc constant kindRange0Func (line 2239) | kindRange0Func constant kindRange1Func (line 2240) | kindRange1Func constant kindRange2Func (line 2241) | kindRange2Func type penalizedObj (line 2246) | type penalizedObj struct type candidateInference (line 2256) | type candidateInference struct method applyTypeModifiers (line 2934) | func (ci candidateInference) applyTypeModifiers(typ types.Type, addres... method applyTypeNameModifiers (line 2967) | func (ci candidateInference) applyTypeNameModifiers(typ types.Type) ty... method matchesVariadic (line 2983) | func (ci candidateInference) matchesVariadic(candType types.Type) bool { method candTypeMatches (line 3289) | func (ci *candidateInference) candTypeMatches(cand *candidate) bool { method typeMatches (line 3428) | func (ci *candidateInference) typeMatches(expType, candType types.Type... method kindMatches (line 3467) | func (ci *candidateInference) kindMatches(candType types.Type) bool { method assigneesMatch (line 3473) | func (ci *candidateInference) assigneesMatch(cand *candidate, sig *typ... type typeNameInference (line 2334) | type typeNameInference struct function expectedCandidate (line 2362) | func expectedCandidate(ctx context.Context, c *completer) (inf candidate... function inferExpectedResultTypes (line 2581) | func inferExpectedResultTypes(c *completer, callNodeIdx int) []types.Type { function expectedSendStmtType (line 2655) | func expectedSendStmtType(pkg *cache.Package, node *ast.SendStmt, pos to... function expectedValueSpecType (line 2669) | func expectedValueSpecType(pkg *cache.Package, node *ast.ValueSpec, pos ... function expectedAssignStmtTypes (line 2680) | func expectedAssignStmtTypes(pkg *cache.Package, node *ast.AssignStmt, p... function expectedReturnStmtType (line 2710) | func expectedReturnStmtType(enclosingSig *types.Signature, node *ast.Ret... function reverseInferTypeArgs (line 2742) | func reverseInferTypeArgs(sig *types.Signature, typeArgs []types.Type, e... function instantiate (line 2812) | func instantiate(sig *types.Signature, substs []types.Type) *types.Signa... function expectedConstraint (line 2881) | func expectedConstraint(t types.Type, idx int) types.Type { function objChain (line 2897) | func objChain(info *types.Info, e ast.Expr) []types.Object { function findSwitchStmt (line 2989) | func findSwitchStmt(path []ast.Node, pos token.Pos, c *ast.CaseClause) a... function breaksExpectedTypeInference (line 3014) | func breaksExpectedTypeInference(n ast.Node, pos token.Pos) bool { function expectTypeName (line 3032) | func expectTypeName(c *completer) typeNameInference { function derivableTypes (line 3164) | func derivableTypes(t types.Type, addressable bool, f func(t types.Type,... function considerTypeConversion (line 3401) | func considerTypeConversion(from, to types.Type, path []types.Object) bo... function candKind (line 3638) | func candKind(candType types.Type) objKind { function rangeFuncParamCount (line 3704) | func rangeFuncParamCount(sig *types.Signature) int { function isSlice (line 3732) | func isSlice(obj types.Object) bool { function forEachPackageMember (line 3745) | func forEachPackageMember(content []byte, f func(tok token.Token, id *as... function is (line 3769) | func is[T any](x any) bool { FILE: gopls/internal/golang/completion/deep_completion.go constant MaxDeepCompletions (line 19) | MaxDeepCompletions = 3 type deepCompletionState (line 24) | type deepCompletionState struct method enqueue (line 48) | func (s *deepCompletionState) enqueue(cand candidate) { method scorePenalty (line 56) | func (s *deepCompletionState) scorePenalty(cand *candidate) float64 { method isHighScore (line 77) | func (s *deepCompletionState) isHighScore(score float64) bool { method newPath (line 101) | func (s *deepCompletionState) newPath(cand candidate, obj types.Object... method deepSearch (line 112) | func (c *completer) deepSearch(ctx context.Context, minDepth int, deadli... method addCandidate (line 257) | func (c *completer) addCandidate(ctx context.Context, cand *candidate) { function deepCandName (line 308) | func deepCandName(cand *candidate) string { method penalty (line 340) | func (c *completer) penalty(cand *candidate) float64 { method objChainMatches (line 352) | func (c *completer) objChainMatches(cand *candidate, chain []types.Objec... FILE: gopls/internal/golang/completion/deep_completion_test.go function TestDeepCompletionIsHighScore (line 11) | func TestDeepCompletionIsHighScore(t *testing.T) { FILE: gopls/internal/golang/completion/definition.go function definition (line 24) | func definition(path []ast.Node, obj types.Object, pgf *parsego.File) ([... function defMatches (line 107) | func defMatches(name, pat string, path []ast.Node, arg string) string { function defSnippet (line 133) | func defSnippet(prefix, suffix string, obj types.Object) CompletionItem { function defItem (line 151) | func defItem(val string, obj types.Object) CompletionItem { FILE: gopls/internal/golang/completion/format.go method item (line 32) | func (c *completer) item(ctx context.Context, cand candidate) (Completio... type conversionEdits (line 278) | type conversionEdits struct method formatConversion (line 286) | func (c *completer) formatConversion(convertTo types.Type) conversionEdi... method importEdits (line 309) | func (c *completer) importEdits(imp *importInfo) ([]protocol.TextEdit, e... method formatBuiltin (line 329) | func (c *completer) formatBuiltin(ctx context.Context, cand candidate) (... method wantTypeParams (line 364) | func (c *completer) wantTypeParams() bool { function inferableTypeParams (line 382) | func inferableTypeParams(sig *types.Signature) map[*types.TypeParam]bool { FILE: gopls/internal/golang/completion/fuzz.go method fuzz (line 23) | func (c *completer) fuzz(testingF types.Type, imp *importInfo, cb func(c... FILE: gopls/internal/golang/completion/keywords.go constant BREAK (line 15) | BREAK = "break" constant CASE (line 16) | CASE = "case" constant CHAN (line 17) | CHAN = "chan" constant CONST (line 18) | CONST = "const" constant CONTINUE (line 19) | CONTINUE = "continue" constant DEFAULT (line 20) | DEFAULT = "default" constant DEFER (line 21) | DEFER = "defer" constant ELSE (line 22) | ELSE = "else" constant FALLTHROUGH (line 23) | FALLTHROUGH = "fallthrough" constant FOR (line 24) | FOR = "for" constant FUNC (line 25) | FUNC = "func" constant GO (line 26) | GO = "go" constant GOTO (line 27) | GOTO = "goto" constant IF (line 28) | IF = "if" constant IMPORT (line 29) | IMPORT = "import" constant INTERFACE (line 30) | INTERFACE = "interface" constant MAP (line 31) | MAP = "map" constant PACKAGE (line 32) | PACKAGE = "package" constant RANGE (line 33) | RANGE = "range" constant RETURN (line 34) | RETURN = "return" constant SELECT (line 35) | SELECT = "select" constant STRUCT (line 36) | STRUCT = "struct" constant SWITCH (line 37) | SWITCH = "switch" constant TYPE (line 38) | TYPE = "type" constant VAR (line 39) | VAR = "var" method addKeywordCompletions (line 43) | func (c *completer) addKeywordCompletions() { function hasDefaultClause (line 168) | func hasDefaultClause(node ast.Node) bool { method addKeywordItems (line 189) | func (c *completer) addKeywordItems(seen map[string]bool, score float64,... FILE: gopls/internal/golang/completion/labels.go type labelType (line 14) | type labelType constant labelNone (line 17) | labelNone labelType = iota constant labelBreak (line 18) | labelBreak constant labelContinue (line 19) | labelContinue constant labelGoto (line 20) | labelGoto method wantLabelCompletion (line 25) | func (c *completer) wantLabelCompletion() labelType { function takesLabel (line 37) | func takesLabel(n ast.Node) labelType { method labels (line 53) | func (c *completer) labels(lt labelType) { FILE: gopls/internal/golang/completion/literal.go method literal (line 23) | func (c *completer) literal(ctx context.Context, literalType types.Type,... constant literalCandidateScore (line 200) | literalCandidateScore = highScore / 2 method functionLiteral (line 204) | func (c *completer) functionLiteral(ctx context.Context, sig *types.Sign... function abbreviateTypeName (line 407) | func abbreviateTypeName(s string) string { method compositeLiteral (line 433) | func (c *completer) compositeLiteral(T types.Type, snip *snippet.Builder... method basicLiteral (line 458) | func (c *completer) basicLiteral(T types.Type, snip *snippet.Builder, ty... method makeCall (line 482) | func (c *completer) makeCall(snip *snippet.Builder, typeName string, sec... method typeNameSnippet (line 516) | func (c *completer) typeNameSnippet(literalType types.Type, qual types.Q... method fullyInstantiated (line 565) | func (c *completer) fullyInstantiated(t typesinternal.NamedOrAlias) bool { method typeParamInScope (line 603) | func (c *completer) typeParamInScope(tp *types.TypeParam) bool { FILE: gopls/internal/golang/completion/newfile.go function NewFile (line 20) | func NewFile(ctx context.Context, snapshot *cache.Snapshot, fh file.Hand... FILE: gopls/internal/golang/completion/package.go function bestPackage (line 33) | func bestPackage(ctx context.Context, snapshot *cache.Snapshot, uri prot... function packageClauseCompletions (line 51) | func packageClauseCompletions(ctx context.Context, snapshot *cache.Snaps... function packageCompletionSurrounding (line 91) | func packageCompletionSurrounding(pgf *parsego.File, offset int) (*Selec... function cursorInComment (line 172) | func cursorInComment(file *token.File, cursor token.Pos, src []byte) bool { method packageNameCompletions (line 189) | func (c *completer) packageNameCompletions(ctx context.Context, fileURI ... function packageSuggestions (line 213) | func packageSuggestions(ctx context.Context, snapshot *cache.Snapshot, f... function isValidDirName (line 315) | func isValidDirName(dirName string) bool { function convertDirNameToPkgName (line 345) | func convertDirNameToPkgName(dirName string) golang.PackageName { function isLetter (line 364) | func isLetter(ch rune) bool { function isDigit (line 368) | func isDigit(ch rune) bool { function isAllowedPunctuation (line 372) | func isAllowedPunctuation(ch rune) bool { FILE: gopls/internal/golang/completion/package_test.go function TestIsValidDirName (line 13) | func TestIsValidDirName(t *testing.T) { function TestConvertDirNameToPkgName (line 55) | func TestConvertDirNameToPkgName(t *testing.T) { FILE: gopls/internal/golang/completion/postfix_snippets.go type postfixTmpl (line 35) | type postfixTmpl struct type postfixTmplArgs (line 51) | type postfixTmplArgs struct method Cursor (line 363) | func (a *postfixTmplArgs) Cursor() string { method Placeholder (line 369) | func (a *postfixTmplArgs) Placeholder(placeholder string) string { method nextTabStop (line 377) | func (a *postfixTmplArgs) nextTabStop() int { method SpecifiedPlaceholder (line 386) | func (a *postfixTmplArgs) SpecifiedPlaceholder(tabStop int, placeholde... method Import (line 395) | func (a *postfixTmplArgs) Import(path string) (string, error) { method EscapeQuotes (line 405) | func (a *postfixTmplArgs) EscapeQuotes(v string) string { method ElemType (line 410) | func (a *postfixTmplArgs) ElemType() types.Type { method Kind (line 420) | func (a *postfixTmplArgs) Kind() string { method KeyType (line 427) | func (a *postfixTmplArgs) KeyType() types.Type { method Tuple (line 432) | func (a *postfixTmplArgs) Tuple() []*types.Var { method TupleLast (line 442) | func (a *postfixTmplArgs) TupleLast() *types.Var { method TypeName (line 451) | func (a *postfixTmplArgs) TypeName(t types.Type) (string, error) { method Zero (line 459) | func (a *postfixTmplArgs) Zero(t types.Type) string { method IsIdent (line 464) | func (a *postfixTmplArgs) IsIdent() bool { method VarName (line 474) | func (a *postfixTmplArgs) VarName(t types.Type, nonNamedDefault string... method addPostfixSnippetCandidates (line 511) | func (c *completer) addPostfixSnippetCandidates(ctx context.Context, sel... function initPostfixRules (line 643) | func initPostfixRules() { function inc (line 661) | func inc(i int) int { method importIfNeeded (line 667) | func (c *completer) importIfNeeded(pkgPath string, scope *types.Scope) (... FILE: gopls/internal/golang/completion/printf.go function printfArgKind (line 19) | func printfArgKind(info *types.Info, call *ast.CallExpr, argIdx int) obj... function formatOperandKind (line 53) | func formatOperandKind(format string, operandIdx int) objKind { type formatOperand (line 86) | type formatOperand struct function parsePrintfVerb (line 98) | func parsePrintfVerb(f string, prevIdx int) (string, []formatOperand) { FILE: gopls/internal/golang/completion/printf_test.go function TestFormatOperandKind (line 12) | func TestFormatOperandKind(t *testing.T) { FILE: gopls/internal/golang/completion/snippet.go method structFieldSnippet (line 15) | func (c *completer) structFieldSnippet(cand candidate, detail string, sn... method functionCallSnippet (line 58) | func (c *completer) functionCallSnippet(name string, tparams, params []s... FILE: gopls/internal/golang/completion/snippet/snippet_builder.go type Builder (line 24) | type Builder struct method WriteText (line 38) | func (b *Builder) WriteText(s string) { method PrependText (line 42) | func (b *Builder) PrependText(s string) { method Write (line 49) | func (b *Builder) Write(data []byte) (int, error) { method WritePlaceholder (line 56) | func (b *Builder) WritePlaceholder(fn func(*Builder)) { method WriteFinalTabstop (line 67) | func (b *Builder) WriteFinalTabstop() { method WriteChoice (line 83) | func (b *Builder) WriteChoice(choices []string) { method String (line 95) | func (b *Builder) String() string { method Clone (line 100) | func (b *Builder) Clone() *Builder { method nextTabStop (line 107) | func (b *Builder) nextTabStop() int { FILE: gopls/internal/golang/completion/snippet/snippet_builder_test.go function TestSnippetBuilder (line 11) | func TestSnippetBuilder(t *testing.T) { FILE: gopls/internal/golang/completion/statements.go method addStatementCandidates (line 23) | func (c *completer) addStatementCandidates() { method addAssignAppend (line 42) | func (c *completer) addAssignAppend() { method topCandidate (line 144) | func (c *completer) topCandidate() *CompletionItem { method addErrCheck (line 179) | func (c *completer) addErrCheck() { function getTestVar (line 329) | func getTestVar(enclosingFunc *funcInfo, pkg *cache.Package) string { method addReturnZeroValues (line 374) | func (c *completer) addReturnZeroValues() { FILE: gopls/internal/golang/completion/unify.go constant unificationDepthLimit (line 57) | unificationDepthLimit = 50 constant panicAtUnificationDepthLimit (line 62) | panicAtUnificationDepthLimit = true constant enableCoreTypeUnification (line 66) | enableCoreTypeUnification = true type unifier (line 72) | type unifier struct method unify (line 129) | func (u *unifier) unify(x, y types.Type, mode unifyMode) bool { method join (line 136) | func (u *unifier) join(x, y *types.TypeParam) bool { method asBoundTypeParam (line 159) | func (u *unifier) asBoundTypeParam(x types.Type) *types.TypeParam { method setHandle (line 170) | func (u *unifier) setHandle(x *types.TypeParam, h *types.Type) { method at (line 180) | func (u *unifier) at(x *types.TypeParam) types.Type { method set (line 186) | func (u *unifier) set(x *types.TypeParam, t types.Type) { method nify (line 260) | func (u *unifier) nify(x, y types.Type, mode unifyMode) (result bool) { function newUnifier (line 90) | func newUnifier(tparams []*types.TypeParam, targs []types.Type) *unifier { type unifyMode (line 107) | type unifyMode constant unifyModeAssign (line 113) | unifyModeAssign unifyMode = 1 << iota constant unifyModeExact (line 121) | unifyModeExact function asInterface (line 192) | func asInterface(x types.Type) (i *types.Interface) { function isTypeParam (line 199) | func isTypeParam(t types.Type) bool { function asNamed (line 204) | func asNamed(t types.Type) *types.Named { function isTypeLit (line 209) | func isTypeLit(t types.Type) bool { function identicalOrigin (line 218) | func identicalOrigin(x, y *types.Named) bool { function coreType (line 223) | func coreType(t types.Type) types.Type { function sameId (line 233) | func sameId(obj *types.Var, pkg *types.Package, name string, foldCase bo... FILE: gopls/internal/golang/completion/unimported.go method unimported (line 45) | func (c *completer) unimported(ctx context.Context, pkgname metadata.Pac... method filterGoMod (line 84) | func (c *completer) filterGoMod(ctx context.Context, items []CompletionI... method explicitPkgName (line 128) | func (c *completer) explicitPkgName(ctx context.Context, pkgname metadat... method tryPath (line 144) | func (c *completer) tryPath(ctx context.Context, path metadata.PackagePa... method findPackageIDs (line 156) | func (c *completer) findPackageIDs(pkgname metadata.PackageName) (wsIDs,... method stdlibPkgs (line 176) | func (c *completer) stdlibPkgs(pkgname metadata.PackageName) []metadata.... method pkgIDmatches (line 190) | func (c *completer) pkgIDmatches(ctx context.Context, ids []metadata.Pac... method stdlibMatches (line 257) | func (c *completer) stdlibMatches(pkgs []metadata.PackagePath, pkg metad... method modcacheMatches (line 303) | func (c *completer) modcacheMatches(pkg metadata.PackageName, prefix str... method appendNewItem (line 348) | func (c *completer) appendNewItem(got []CompletionItem, name, detail str... method scoreList (line 373) | func (c *completer) scoreList(items []CompletionItem) bool { function usefulCompletion (line 386) | func usefulCompletion(name, pattern string) bool { function funcParams (line 405) | func funcParams(f *ast.File, fname string) []string { function parseSignature (line 446) | func parseSignature(sig string) []string { FILE: gopls/internal/golang/completion/util.go function exprAtPos (line 21) | func exprAtPos(pos token.Pos, args []ast.Expr) int { function eachField (line 32) | func eachField(T types.Type, fn func(*types.Var)) { function typeIsValid (line 63) | func typeIsValid(typ types.Type) bool { function resolveInvalid (line 103) | func resolveInvalid(fset *token.FileSet, obj types.Object, node ast.Node... function isVar (line 134) | func isVar(obj types.Object) bool { return is[*types.Var](obj) } function isTypeName (line 135) | func isTypeName(obj types.Object) bool { return is[*types.TypeName](obj) } function isFunc (line 136) | func isFunc(obj types.Object) bool { return is[*types.Func](obj) } function isPkgName (line 137) | func isPkgName(obj types.Object) bool { return is[*types.PkgName](obj) } function isPointer (line 143) | func isPointer(T types.Type) bool { return is[*types.Pointer](types.Unal... function isEmptyInterface (line 150) | func isEmptyInterface(T types.Type) bool { function isUntyped (line 158) | func isUntyped(T types.Type) bool { function deslice (line 165) | func deslice(T types.Type) types.Type { function enclosingSelector (line 174) | func enclosingSelector(path []ast.Node, pos token.Pos) *ast.SelectorExpr { function enclosingDeclLHS (line 195) | func enclosingDeclLHS(path []ast.Node) []*ast.Ident { function exprObj (line 216) | func exprObj(info *types.Info, e ast.Expr) types.Object { function typeConversion (line 232) | func typeConversion(call *ast.CallExpr, info *types.Info) types.Type { function fieldsAccessible (line 242) | func fieldsAccessible(s *types.Struct, p *types.Package) bool { function prevStmt (line 258) | func prevStmt(pos token.Pos, path []ast.Node) ast.Stmt { function isBasicKind (line 281) | func isBasicKind(t types.Type, k types.BasicInfo) bool { method editText (line 286) | func (c *completer) editText(from, to token.Pos, newText string) ([]prot... function assignableTo (line 300) | func assignableTo(x, to types.Type) bool { function convertibleTo (line 311) | func convertibleTo(x, to types.Type) bool { FILE: gopls/internal/golang/definition.go function Definition (line 29) | func Definition(ctx context.Context, snapshot *cache.Snapshot, fh file.H... function builtinDecl (line 214) | func builtinDecl(ctx context.Context, snapshot *cache.Snapshot, obj type... function importDefinition (line 329) | func importDefinition(ctx context.Context, s *cache.Snapshot, pkg *cache... function ObjectLocation (line 385) | func ObjectLocation(ctx context.Context, fset *token.FileSet, snapshot *... function nonGoDefinition (line 438) | func nonGoDefinition(ctx context.Context, snapshot *cache.Snapshot, pkg ... FILE: gopls/internal/golang/diagnostics.go function DiagnoseFile (line 18) | func DiagnoseFile(ctx context.Context, snapshot *cache.Snapshot, uri pro... function Analyze (line 52) | func Analyze(ctx context.Context, snapshot *cache.Snapshot, pkgIDs map[P... function byURI (line 67) | func byURI(d *cache.Diagnostic) protocol.DocumentURI { return d.URI } function CombineDiagnostics (line 83) | func CombineDiagnostics(tdiags []*cache.Diagnostic, adiags []*cache.Diag... FILE: gopls/internal/golang/embeddirective.go function embedDefinition (line 28) | func embedDefinition(m *protocol.Mapper, rng protocol.Range) ([]protocol... function parseEmbedDirective (line 71) | func parseEmbedDirective(m *protocol.Mapper, rng protocol.Range) (string... type fileEmbed (line 117) | type fileEmbed struct function parseGoEmbed (line 127) | func parseGoEmbed(args string, offset int) ([]fileEmbed, error) { FILE: gopls/internal/golang/extract.go function extractVariableOne (line 33) | func extractVariableOne(pkg *cache.Package, pgf *parsego.File, start, en... function extractVariableAll (line 39) | func extractVariableAll(pkg *cache.Package, pgf *parsego.File, start, en... function extractVariable (line 51) | func extractVariable(pkg *cache.Package, pgf *parsego.File, start, end t... function stmtToInsertVarBefore (line 296) | func stmtToInsertVarBefore(cur inspector.Cursor, variables []*variable) ... function canExtractVariable (line 399) | func canExtractVariable(info *types.Info, curFile inspector.Cursor, star... function freshName (line 500) | func freshName(info *types.Info, file *ast.File, pos token.Pos, prefix s... function freshNameOutsideRange (line 513) | func freshNameOutsideRange(info *types.Info, file *ast.File, pos, start,... function generateName (line 532) | func generateName(idx int, prefix string, hasCollision func(string) bool... type returnVariable (line 546) | type returnVariable struct function extractMethod (line 559) | func extractMethod(pkg *cache.Package, pgf *parsego.File, start, end tok... function extractFunction (line 565) | func extractFunction(pkg *cache.Package, pgf *parsego.File, start, end t... function extractFunctionMethod (line 578) | func extractFunctionMethod(cpkg *cache.Package, pgf *parsego.File, start... function isSelector (line 1220) | func isSelector(e ast.Expr, x, sel string) bool { function reorderParams (line 1237) | func reorderParams(params []ast.Expr, paramTypes []*ast.Field) { function moveParamToFrontIfFound (line 1243) | func moveParamToFrontIfFound(params []ast.Expr, paramTypes []*ast.Field,... type variable (line 1257) | type variable struct function collectFreeVars (line 1277) | func collectFreeVars(info *types.Info, file *ast.File, start, end token.... function referencesObj (line 1480) | func referencesObj(info *types.Info, expr ast.Expr, obj types.Object) bo... type fnExtractParams (line 1500) | type fnExtractParams struct function canExtractFunction (line 1508) | func canExtractFunction(curFile inspector.Cursor, start, end token.Pos) ... function objUsed (line 1554) | func objUsed(info *types.Info, start, end token.Pos, obj types.Object) (... function varOverridden (line 1575) | func varOverridden(info *types.Info, firstUse *ast.Ident, obj types.Obje... function parseStmts (line 1622) | func parseStmts(fset *token.FileSet, src []byte) (*ast.BlockStmt, []*ast... function generateReturnInfo (line 1645) | func generateReturnInfo(enclosing *ast.FuncType, pkg *types.Package, at ... type objKey (line 1709) | type objKey struct function varNameForType (line 1728) | func varNameForType(t types.Type) (string, bool) { function adjustReturnStatements (line 1748) | func adjustReturnStatements(returnTypes []*ast.Field, seenVars map[types... function generateFuncCall (line 1794) | func generateFuncCall(hasNonNestedReturn, hasReturnVals bool, params, re... function initializeVars (line 1840) | func initializeVars(uninitialized []types.Object, retVars []*returnVaria... function getNames (line 1874) | func getNames(retVars []*returnVariable) []ast.Expr { function getZeroVals (line 1883) | func getZeroVals(retVars []*returnVariable) []ast.Expr { function getDecls (line 1892) | func getDecls(retVars []*returnVariable) []*ast.Field { function cond (line 1900) | func cond[T any](cond bool, t, f T) T { function replaceBranchStmtWithReturnStmt (line 1910) | func replaceBranchStmtWithReturnStmt(block ast.Node, br *ast.BranchStmt,... function freeBranches (line 1935) | func freeBranches(info *types.Info, cur inspector.Cursor, start, end tok... function isFreeBranchStmt (line 1990) | func isFreeBranchStmt(stack []ast.Node, extractedBlock *ast.BlockStmt) b... FILE: gopls/internal/golang/extracttofile.go function canExtractToNewFile (line 31) | func canExtractToNewFile(pgf *parsego.File, start, end token.Pos) bool { function findImportEdits (line 40) | func findImportEdits(file *ast.File, info *types.Info, start, end token.... function ExtractToNewFile (line 83) | func ExtractToNewFile(ctx context.Context, snapshot *cache.Snapshot, fh ... function chooseNewFile (line 213) | func chooseNewFile(ctx context.Context, snapshot *cache.Snapshot, dir st... function selectedToplevelDecls (line 234) | func selectedToplevelDecls(pgf *parsego.File, start, end token.Pos) (tok... function unparenthesizedImports (line 316) | func unparenthesizedImports(pgf *parsego.File) map[*ast.ImportSpec]*ast.... function removeNode (line 327) | func removeNode(pgf *parsego.File, node ast.Node) protocol.TextEdit { function posRangeIntersects (line 336) | func posRangeIntersects(a, b, c, d token.Pos) bool { function posRangeContains (line 341) | func posRangeContains(a, b, c, d token.Pos) bool { FILE: gopls/internal/golang/fix.go type fixer (line 38) | type fixer type singleFileFixer (line 41) | type singleFileFixer function singleFile (line 45) | func singleFile(fixer1 singleFileFixer) fixer { constant fixExtractVariable (line 53) | fixExtractVariable = "extract_variable" constant fixExtractVariableAll (line 54) | fixExtractVariableAll = "extract_variable_all" constant fixExtractFunction (line 55) | fixExtractFunction = "extract_function" constant fixExtractMethod (line 56) | fixExtractMethod = "extract_method" constant fixInlineCall (line 57) | fixInlineCall = "inline_call" constant fixInlineVariable (line 58) | fixInlineVariable = "inline_variable" constant fixInvertIfCondition (line 59) | fixInvertIfCondition = "invert_if_condition" constant fixSplitLines (line 60) | fixSplitLines = "split_lines" constant fixJoinLines (line 61) | fixJoinLines = "join_lines" constant fixCreateUndeclared (line 62) | fixCreateUndeclared = "create_undeclared" constant fixMissingInterfaceMethods (line 63) | fixMissingInterfaceMethods = "stub_missing_interface_method" constant fixMissingCalledFunction (line 64) | fixMissingCalledFunction = "stub_missing_called_function" function ApplyFix (line 82) | func ApplyFix(ctx context.Context, fix string, snapshot *cache.Snapshot,... function suggestedFixToDocumentChange (line 135) | func suggestedFixToDocumentChange(ctx context.Context, snapshot *cache.S... FILE: gopls/internal/golang/folding_range.go function FoldingRange (line 24) | func FoldingRange(ctx context.Context, snapshot *cache.Snapshot, fh file... function bracketedFoldingRange (line 138) | func bracketedFoldingRange(pgf *parsego.File, open, close token.Pos, lin... function commentsFoldingRange (line 187) | func commentsFoldingRange(pgf *parsego.File) (comments []protocol.Foldin... function foldingRange (line 215) | func foldingRange(kind protocol.FoldingRangeKind, rng protocol.Range) pr... function varOf (line 228) | func varOf[T any](x T) *T { return &x } FILE: gopls/internal/golang/format.go function Format (line 34) | func Format(ctx context.Context, snapshot *cache.Snapshot, fh file.Handl... function formatSource (line 95) | func formatSource(ctx context.Context, fh file.Handle) ([]byte, error) { type importFix (line 106) | type importFix struct function allImportsFixes (line 115) | func allImportsFixes(ctx context.Context, snapshot *cache.Snapshot, pgf ... function computeImportEdits (line 130) | func computeImportEdits(ctx context.Context, pgf *parsego.File, snapshot... function ComputeImportFixEdits (line 180) | func ComputeImportFixEdits(localPrefix string, src []byte, fixes ...*imp... function computeFixEdits (line 194) | func computeFixEdits(src []byte, options *imports.Options, fixes []*impo... function importPrefix (line 228) | func importPrefix(src []byte) (string, error) { function scanForCommentEnd (line 315) | func scanForCommentEnd(src []byte) int { function computeTextEdits (line 327) | func computeTextEdits(ctx context.Context, pgf *parsego.File, formatted ... function protocolEditsFromSource (line 337) | func protocolEditsFromSource(src []byte, edits []diff.Edit) ([]protocol.... FILE: gopls/internal/golang/format_test.go function TestImportPrefix (line 14) | func TestImportPrefix(t *testing.T) { function TestCRLFFile (line 46) | func TestCRLFFile(t *testing.T) { FILE: gopls/internal/golang/freesymbols.go function FreeSymbolsHTML (line 31) | func FreeSymbolsHTML(viewID string, pkg *cache.Package, pgf *parsego.Fil... type freeRef (line 264) | type freeRef struct function freeRefs (line 275) | func freeRefs(pkg *types.Package, info *types.Info, file *ast.File, star... function objHTML (line 402) | func objHTML(fset *token.FileSet, web Web, obj types.Object) string { function sourceLink (line 412) | func sourceLink(text, url string) string { FILE: gopls/internal/golang/freesymbols_test.go function TestFreeRefs (line 23) | func TestFreeRefs(t *testing.T) { FILE: gopls/internal/golang/highlight.go function Highlight (line 28) | func Highlight(ctx context.Context, snapshot *cache.Snapshot, fh file.Ha... function highlightPath (line 65) | func highlightPath(info *types.Info, cur inspector.Cursor, start, end to... function formatStringAndIndex (line 157) | func formatStringAndIndex(info *types.Info, call *ast.CallExpr) (*ast.Ba... function highlightPrintf (line 191) | func highlightPrintf(call *ast.CallExpr, idx int, start, end token.Pos, ... function highlightFuncControlFlow (line 302) | func highlightFuncControlFlow(cur inspector.Cursor, result map[astutil.R... function highlightUnlabeledBreakFlow (line 454) | func highlightUnlabeledBreakFlow(cur inspector.Cursor, info *types.Info,... function highlightLabeledFlow (line 483) | func highlightLabeledFlow(curBranch inspector.Cursor, info *types.Info, ... function highlightLoopControlFlow (line 501) | func highlightLoopControlFlow(loop ast.Node, label *ast.Ident, info *typ... function highlightSwitchFlow (line 557) | func highlightSwitchFlow(node ast.Node, label *ast.Ident, info *types.In... function highlightNode (line 603) | func highlightNode(result map[astutil.Range]protocol.DocumentHighlightKi... function highlightRange (line 607) | func highlightRange(result map[astutil.Range]protocol.DocumentHighlightK... function highlightIdentifier (line 615) | func highlightIdentifier(cur inspector.Cursor, info *types.Info, result ... FILE: gopls/internal/golang/hover.go type hoverResult (line 54) | type hoverResult struct function Hover (line 120) | func Hover(ctx context.Context, snapshot *cache.Snapshot, fh file.Handle... function findRhsTypeDecl (line 147) | func findRhsTypeDecl(ctx context.Context, snapshot *cache.Snapshot, pkg ... function hover (line 176) | func hover(ctx context.Context, snapshot *cache.Snapshot, fh file.Handle... function typeDeclContent (line 797) | func typeDeclContent(declPGF *parsego.File, declPos token.Pos, name stri... function hoverBuiltin (line 831) | func hoverBuiltin(ctx context.Context, snapshot *cache.Snapshot, obj typ... function hoverPackageRef (line 895) | func hoverPackageRef(ctx context.Context, snapshot *cache.Snapshot, pkg ... function hoverPackageName (line 938) | func hoverPackageName(pkg *cache.Package, pgf *parsego.File) (protocol.R... function hoverConstantExpr (line 1000) | func hoverConstantExpr(pgf *parsego.File, expr ast.Expr, tv types.TypeAn... function hoverReturnStatement (line 1138) | func hoverReturnStatement(pgf *parsego.File, curReturn inspector.Cursor)... function hoverEmbed (line 1179) | func hoverEmbed(fh file.Handle, rng protocol.Range, pattern string) (pro... function inferredSignatureString (line 1222) | func inferredSignatureString(obj types.Object, qual types.Qualifier, inf... function objectString (line 1246) | func objectString(obj types.Object, qual types.Qualifier, declPos token.... function HoverDocForObject (line 1343) | func HoverDocForObject(ctx context.Context, snapshot *cache.Snapshot, fs... function chooseDocComment (line 1357) | func chooseDocComment(decl ast.Decl, spec ast.Spec, field *ast.Field) *a... function parseFull (line 1401) | func parseFull(ctx context.Context, snapshot *cache.Snapshot, fset *toke... function formatHover (line 1440) | func formatHover(h *hoverResult, options *settings.Options, pkgURL func(... function StdSymbolOf (line 1537) | func StdSymbolOf(obj types.Object) *stdlib.Symbol { function formatLink (line 1607) | func formatLink(h *hoverResult, options *settings.Options, pkgURL func(p... function findDeclInfo (line 1663) | func findDeclInfo(files []*ast.File, pos token.Pos) (decl ast.Decl, spec... type promotedField (line 1767) | type promotedField struct function promotedFields (line 1774) | func promotedFields(t types.Type, from *types.Package) []promotedField { function accessibleTo (line 1829) | func accessibleTo(obj types.Object, pkg *types.Package) bool { function computeSizeOffsetInfo (line 1837) | func computeSizeOffsetInfo(pkg *cache.Package, curIdent inspector.Cursor... function sizeClass (line 1903) | func sizeClass(size int64) int64 { FILE: gopls/internal/golang/hover_test.go function TestSizeClass (line 9) | func TestSizeClass(t *testing.T) { FILE: gopls/internal/golang/identifier.go function inferredSignature (line 24) | func inferredSignature(info *types.Info, id *ast.Ident) *types.Signature { function searchForEnclosing (line 36) | func searchForEnclosing(info *types.Info, curIdent inspector.Cursor) *ty... function typeToObjects (line 68) | func typeToObjects(typ types.Type) []*types.TypeName { FILE: gopls/internal/golang/identifier_test.go function TestSearchForEnclosing (line 18) | func TestSearchForEnclosing(t *testing.T) { function posAt (line 81) | func posAt(line, column int, fset *token.FileSet, fname string) token.Pos { function newInfo (line 98) | func newInfo() *types.Info { FILE: gopls/internal/golang/implementation.go function Implementation (line 57) | func Implementation(ctx context.Context, snapshot *cache.Snapshot, f fil... function implementations (line 70) | func implementations(ctx context.Context, snapshot *cache.Snapshot, fh f... type implYieldFunc (line 111) | type implYieldFunc function implementationsMsets (line 122) | func implementationsMsets(ctx context.Context, snapshot *cache.Snapshot,... function typeOrMethod (line 283) | func typeOrMethod(obj types.Object) (types.Type, *types.Func) { function offsetToLocation (line 298) | func offsetToLocation(ctx context.Context, snapshot *cache.Snapshot, fil... function implementsObj (line 314) | func implementsObj(info *types.Info, cur inspector.Cursor) (types.Object... function localImplementations (line 370) | func localImplementations(ctx context.Context, snapshot *cache.Snapshot,... function errorLocation (line 474) | func errorLocation(ctx context.Context, snapshot *cache.Snapshot) (proto... function implements (line 494) | func implements(msets *typeutil.MethodSetCache, x, y types.Type) bool { function unify (line 564) | func unify(x, y types.Type, unifier map[*types.TypeParam]types.Type) bool { function typeParams (line 774) | func typeParams(t types.Type) iter.Seq[*types.TypeParam] { function implFuncs (line 893) | func implFuncs(pkg *cache.Package, curSel inspector.Cursor, start, end t... function funcUses (line 961) | func funcUses(pkg *cache.Package, t types.Type) ([]protocol.Location, er... function funcDefs (line 1001) | func funcDefs(pkg *cache.Package, t types.Type) ([]protocol.Location, er... function beneathFuncDef (line 1041) | func beneathFuncDef(cur inspector.Cursor) bool { function dynamicFuncCallType (line 1053) | func dynamicFuncCallType(info *types.Info, call *ast.CallExpr) types.Type { function inToken (line 1064) | func inToken(tokPos token.Pos, tokStr string, start, end token.Pos) bool { FILE: gopls/internal/golang/implementation_test.go function TestUnify (line 16) | func TestUnify(t *testing.T) { FILE: gopls/internal/golang/inlay_hint.go function InlayHint (line 31) | func InlayHint(ctx context.Context, snapshot *cache.Snapshot, fh file.Ha... type inlayHintFunc (line 81) | type inlayHintFunc function parameterNames (line 94) | func parameterNames(info *types.Info, pgf *parsego.File, qual types.Qual... function ignoredError (line 142) | func ignoredError(info *types.Info, pgf *parsego.File, qual types.Qualif... function funcTypeParams (line 199) | func funcTypeParams(info *types.Info, pgf *parsego.File, qual types.Qual... function assignVariableTypes (line 229) | func assignVariableTypes(info *types.Info, pgf *parsego.File, qual types... function rangeVariableTypes (line 261) | func rangeVariableTypes(info *types.Info, pgf *parsego.File, qual types.... function variableType (line 269) | func variableType(info *types.Info, pgf *parsego.File, qual types.Qualif... function constantValues (line 286) | func constantValues(info *types.Info, pgf *parsego.File, qual types.Qual... function compositeLiteralFields (line 337) | func compositeLiteralFields(info *types.Info, pgf *parsego.File, qual ty... function compositeLiteralTypes (line 385) | func compositeLiteralTypes(info *types.Info, pgf *parsego.File, qual typ... function labelPart (line 413) | func labelPart(s string) []protocol.InlayHintLabelPart { FILE: gopls/internal/golang/inline.go function enclosingStaticCall (line 31) | func enclosingStaticCall(pkg *cache.Package, pgf *parsego.File, start, e... function inlineCall (line 59) | func inlineCall(ctx context.Context, snapshot *cache.Snapshot, callerPkg... function logger (line 131) | func logger(ctx context.Context, name string, verbose bool) func(format ... function canInlineVariable (line 145) | func canInlineVariable(info *types.Info, curFile inspector.Cursor, start... function isLvalueUse (line 180) | func isLvalueUse(cur inspector.Cursor, info *types.Info) bool { function unparenEnclosing (line 207) | func unparenEnclosing(cur inspector.Cursor) inspector.Cursor { function inlineVariableOne (line 216) | func inlineVariableOne(pkg *cache.Package, pgf *parsego.File, start, end... FILE: gopls/internal/golang/inline_all.go function inlineAllCalls (line 50) | func inlineAllCalls(ctx context.Context, snapshot *cache.Snapshot, pkg *... FILE: gopls/internal/golang/invertifcondition.go function invertIfCondition (line 22) | func invertIfCondition(pkg *cache.Package, pgf *parsego.File, start, end... function endsWithReturn (line 96) | func endsWithReturn(elseBranch ast.Stmt) (bool, error) { function ifBodyToStandaloneCode (line 118) | func ifBodyToStandaloneCode(fset *token.FileSet, ifBody *ast.BlockStmt, ... function invertCondition (line 131) | func invertCondition(fset *token.FileSet, cond ast.Expr, src []byte) ([]... function dumbInvert (line 206) | func dumbInvert(fset *token.FileSet, expr ast.Expr, src []byte) []byte { function invertAndOr (line 213) | func invertAndOr(fset *token.FileSet, expr *ast.BinaryExpr, src []byte) ... function canInvertIfCondition (line 248) | func canInvertIfCondition(curFile inspector.Cursor, start, end token.Pos... FILE: gopls/internal/golang/known_packages.go function KnownPackagePaths (line 29) | func KnownPackagePaths(ctx context.Context, snapshot *cache.Snapshot, fh... function isDirectlyCyclical (line 134) | func isDirectlyCyclical(pkg, imported *metadata.Package) bool { FILE: gopls/internal/golang/lines.go function canSplitLines (line 29) | func canSplitLines(curFile inspector.Cursor, fset *token.FileSet, start,... function canJoinLines (line 52) | func canJoinLines(curFile inspector.Cursor, fset *token.FileSet, start, ... function canSplitJoinLines (line 74) | func canSplitJoinLines(items []ast.Node, comments []*ast.CommentGroup) b... function splitLines (line 89) | func splitLines(pkg *cache.Package, pgf *parsego.File, start, end token.... function joinLines (line 100) | func joinLines(pkg *cache.Package, pgf *parsego.File, start, end token.P... function processLines (line 112) | func processLines(fset *token.FileSet, items []ast.Node, comments []*ast... function findSplitJoinTarget (line 173) | func findSplitJoinTarget(fset *token.FileSet, curFile inspector.Cursor, ... FILE: gopls/internal/golang/linkname.go function linknameDefinition (line 27) | func linknameDefinition(ctx context.Context, snapshot *cache.Snapshot, m... function parseLinkname (line 53) | func parseLinkname(m *protocol.Mapper, rng protocol.Range) (pkgPath, nam... function findLinkname (line 109) | func findLinkname(ctx context.Context, snapshot *cache.Snapshot, pkgPath... FILE: gopls/internal/golang/modify_tags.go function ModifyTags (line 27) | func ModifyTags(ctx context.Context, snapshot *cache.Snapshot, fh file.H... FILE: gopls/internal/golang/movetype.go function MoveType (line 21) | func MoveType(ctx context.Context, fh file.Handle, snapshot *cache.Snaps... function selectionContainsType (line 27) | func selectionContainsType(cursor inspector.Cursor) (inspector.Cursor, *... FILE: gopls/internal/golang/origin.go function containsOrigin (line 12) | func containsOrigin(objSet map[types.Object]bool, obj types.Object) bool { function origin (line 22) | func origin(obj types.Object) types.Object { FILE: gopls/internal/golang/pkgdoc.go function DocFragment (line 66) | func DocFragment(pkg *cache.Package, pgf *parsego.File, start, end token... type thing (line 185) | type thing struct function thingAtPoint (line 194) | func thingAtPoint(pkg *cache.Package, pgf *parsego.File, start, end toke... type Web (line 242) | type Web interface function PackageDocHTML (line 262) | func PackageDocHTML(viewID string, pkg *cache.Package, web Web) ([]byte,... FILE: gopls/internal/golang/references.go function References (line 45) | func References(ctx context.Context, snapshot *cache.Snapshot, fh file.H... type reference (line 59) | type reference struct function references (line 68) | func references(ctx context.Context, snapshot *cache.Snapshot, f file.Ha... function packageReferences (line 115) | func packageReferences(ctx context.Context, snapshot *cache.Snapshot, ur... function ordinaryReferences (line 218) | func ordinaryReferences(ctx context.Context, snapshot *cache.Snapshot, u... function expandMethodSearch (line 506) | func expandMethodSearch(ctx context.Context, snapshot *cache.Snapshot, w... function localReferences (line 565) | func localReferences(pkg *cache.Package, targets map[types.Object]bool, ... function effectiveReceiver (line 616) | func effectiveReceiver(obj types.Object) types.Type { type objectAt (line 625) | type objectAt struct function objectsAt (line 643) | func objectsAt(info *types.Info, cur inspector.Cursor) ([]objectAt, erro... function typeSwitchVars (line 711) | func typeSwitchVars(info *types.Info, curIdent inspector.Cursor) ([]obje... function mustLocation (line 768) | func mustLocation(pgf *parsego.File, n ast.Node) protocol.Location { FILE: gopls/internal/golang/rename.go type renamer (line 87) | type renamer struct method update (line 1380) | func (r *renamer) update() (map[protocol.DocumentURI][]diff.Edit, erro... method updateCommentDocLinks (line 1511) | func (r *renamer) updateCommentDocLinks() (map[protocol.DocumentURI][]... method updatePkgName (line 1790) | func (r *renamer) updatePkgName(pgf *parsego.File, pkgName *types.PkgN... type PrepareItem (line 99) | type PrepareItem struct function PrepareRename (line 109) | func PrepareRename(ctx context.Context, snapshot *cache.Snapshot, f file... function prepareRenamePackageName (line 187) | func prepareRenamePackageName(ctx context.Context, snapshot *cache.Snaps... function prepareRenameFuncSignature (line 231) | func prepareRenameFuncSignature(pgf *parsego.File, start, end token.Pos,... function nameBlankParams (line 254) | func nameBlankParams(ftype *ast.FuncType) *ast.FuncType { function renameFuncSignature (line 286) | func renameFuncSignature(ctx context.Context, pkg *cache.Package, pgf *p... function funcKeywordDecl (line 363) | func funcKeywordDecl(start, end token.Pos, cursor inspector.Cursor) *ast... function checkRenamable (line 377) | func checkRenamable(obj types.Object, node ast.Node) error { function editsToDocChanges (line 399) | func editsToDocChanges(ctx context.Context, snapshot *cache.Snapshot, ed... function Rename (line 413) | func Rename(ctx context.Context, snapshot *cache.Snapshot, f file.Handle... function renameOrdinary (line 564) | func renameOrdinary(ctx context.Context, snapshot *cache.Snapshot, uri p... function renameReceivers (line 777) | func renameReceivers(pkg *cache.Package, recv *types.Var, newName string... function typeCheckReverseDependencies (line 818) | func typeCheckReverseDependencies(ctx context.Context, snapshot *cache.S... function renameExported (line 864) | func renameExported(pkgs []*cache.Package, declPkgPath PackagePath, decl... function renamePackage (line 956) | func renamePackage(ctx context.Context, s *cache.Snapshot, f file.Handle... function updateModFiles (line 975) | func updateModFiles(ctx context.Context, s *cache.Snapshot, oldDir strin... function updatePackageDeclsAndImports (line 1062) | func updatePackageDeclsAndImports(ctx context.Context, s *cache.Snapshot... function renamePackageClause (line 1145) | func renamePackageClause(ctx context.Context, mp *metadata.Package, snap... function renameImports (line 1175) | func renameImports(ctx context.Context, snapshot *cache.Snapshot, mp *me... function renameObjects (line 1336) | func renameObjects(newName string, pkg *cache.Package, targets ...types.... function docLinkPattern (line 1593) | func docLinkPattern(pkgName, recvName, objName string, isPkgOrType bool)... type docLinkRenamer (line 1626) | type docLinkRenamer struct method update (line 1640) | func (r *docLinkRenamer) update(pgf *parsego.File) (result []diff.Edit... function docComment (line 1702) | func docComment(pgf *parsego.File, curId inspector.Cursor) *ast.CommentG... function docCommentPosToIdent (line 1755) | func docCommentPosToIdent(pgf *parsego.File, start, end token.Pos, cur i... function parsePackageNameDecl (line 1817) | func parsePackageNameDecl(ctx context.Context, snapshot *cache.Snapshot,... function posEdit (line 1829) | func posEdit(tf *token.File, start, end token.Pos, new string) (diff.Edi... FILE: gopls/internal/golang/rename_check.go method errorf (line 61) | func (r *renamer) errorf(pos token.Pos, format string, args ...any) { method check (line 99) | func (r *renamer) check(from types.Object) { method checkInFileBlock (line 126) | func (r *renamer) checkInFileBlock(from *types.PkgName) { method checkInPackageBlock (line 147) | func (r *renamer) checkInPackageBlock(from types.Object) { method checkInLexicalScope (line 229) | func (r *renamer) checkInLexicalScope(from types.Object) { function deeper (line 299) | func deeper(x, y *types.Scope) bool { function forEachLexicalRef (line 347) | func forEachLexicalRef(pkg *cache.Package, obj types.Object, fn func(id ... method checkLabel (line 407) | func (r *renamer) checkLabel(label *types.Label) { method checkStructField (line 418) | func (r *renamer) checkStructField(from *types.Var) { method checkSelections (line 497) | func (r *renamer) checkSelections(from types.Object) { method selectionConflict (line 559) | func (r *renamer) selectionConflict(from types.Object, delta int, syntax... method checkMethod (line 593) | func (r *renamer) checkMethod(from *types.Func) { method checkExport (line 819) | func (r *renamer) checkExport(id *ast.Ident, pkg *types.Package, from ty... method satisfy (line 835) | func (r *renamer) satisfy() map[satisfy.Constraint]bool { function recv (line 872) | func recv(meth *types.Func) *types.Var { function someUse (line 877) | func someUse(info *types.Info, obj types.Object) *ast.Ident { function objectKind (line 886) | func objectKind(obj types.Object) string { function isValidIdentifier (line 909) | func isValidIdentifier(id string) bool { function checkPackageRename (line 925) | func checkPackageRename(curPkg *cache.Package, f file.Handle, newName st... function hasIgnoredGoFiles (line 1002) | func hasIgnoredGoFiles(pkg *cache.Package) bool { function dirIsEmpty (line 1015) | func dirIsEmpty(dir string) (exists bool, empty bool, err error) { function isLocal (line 1034) | func isLocal(obj types.Object) bool { function isLetter (line 1045) | func isLetter(ch rune) bool { function isDigit (line 1049) | func isDigit(ch rune) bool { FILE: gopls/internal/golang/semtok.go constant semDebug (line 41) | semDebug = false function SemanticTokens (line 43) | func SemanticTokens(ctx context.Context, snapshot *cache.Snapshot, fh fi... type tokenVisitor (line 95) | type tokenVisitor struct method visit (line 111) | func (tv *tokenVisitor) visit() { method comment (line 163) | func (tv *tokenVisitor) comment(c *ast.Comment, importByName map[strin... method token (line 247) | func (tv *tokenVisitor) token(start token.Pos, length int, typ semtok.... method strStack (line 278) | func (tv *tokenVisitor) strStack() string { method srcLine (line 299) | func (tv *tokenVisitor) srcLine(n ast.Node) string { method inspect (line 313) | func (tv *tokenVisitor) inspect(n ast.Node) (descend bool) { method formatString (line 472) | func (tv *tokenVisitor) formatString(lit *ast.BasicLit) bool { method appendObjectModifiers (line 519) | func (tv *tokenVisitor) appendObjectModifiers(mods []semtok.Modifier, ... method ident (line 617) | func (tv *tokenVisitor) ident(id *ast.Ident) { method unkIdent (line 657) | func (tv *tokenVisitor) unkIdent(id *ast.Ident) (semtok.Type, []semtok... method multiline (line 778) | func (tv *tokenVisitor) multiline(start, end token.Pos, tok semtok.Typ... method findKeyword (line 807) | func (tv *tokenVisitor) findKeyword(keyword string, start, end token.P... method importSpec (line 822) | func (tv *tokenVisitor) importSpec(spec *ast.ImportSpec) { method errorf (line 857) | func (tv *tokenVisitor) errorf(format string, args ...any) { method godirective (line 882) | func (tv *tokenVisitor) godirective(c *ast.Comment) { function appendTypeModifiers (line 575) | func appendTypeModifiers(mods []semtok.Modifier, t types.Type) []semtok.... function stringsCutPrefix (line 905) | func stringsCutPrefix(s, prefix string) (after string, found bool) { function is (line 912) | func is[T any](x any) bool { FILE: gopls/internal/golang/signature_help.go function SignatureHelp (line 26) | func SignatureHelp(ctx context.Context, snapshot *cache.Snapshot, fh fil... function signatureInformation (line 159) | func signatureInformation(sig *signature, options *settings.Options, sta... function activeParameter (line 174) | func activeParameter(sig *signature, start, end token.Pos, call *ast.Cal... function stringToSigInfoDocumentation (line 200) | func stringToSigInfoDocumentation(s string, options *settings.Options) *... FILE: gopls/internal/golang/snapshot.go function NarrowestPackageForFile (line 35) | func NarrowestPackageForFile(ctx context.Context, snapshot *cache.Snapsh... function WidestPackageForFile (line 53) | func WidestPackageForFile(ctx context.Context, snapshot *cache.Snapshot,... function NarrowestDeclaringPackage (line 69) | func NarrowestDeclaringPackage(ctx context.Context, snapshot *cache.Snap... function selectPackageForFile (line 78) | func selectPackageForFile(ctx context.Context, snapshot *cache.Snapshot,... FILE: gopls/internal/golang/splitpkg/graph.go function addNode (line 16) | func addNode(g graph, node int) map[int]bool { function addEdges (line 26) | func addEdges(g graph, from int, to ...int) { function transpose (line 35) | func transpose(g graph) graph { function sccs (line 47) | func sccs(g graph) []nodeSet { FILE: gopls/internal/golang/splitpkg/splitpkg.go function HTML (line 80) | func HTML(pkgpath metadata.PackagePath) []byte { constant cacheKind (line 97) | cacheKind = "splitpkg" function cacheKey (line 99) | func cacheKey(pkgID metadata.PackageID) [32]byte { function UpdateComponentsJSON (line 106) | func UpdateComponentsJSON(pkgID metadata.PackageID, data []byte) error { type Web (line 111) | type Web interface function JSON (line 123) | func JSON(pkg *cache.Package, web Web) ([]byte, error) { type refCollector (line 364) | type refCollector struct method collect (line 382) | func (rc *refCollector) collect(n ast.Node) *refCollector { method addRef (line 406) | func (rc *refCollector) addRef(id *ast.Ident, obj types.Object) { type symbol (line 376) | type symbol struct function suffix (line 441) | func suffix(counter *int) string { type ResultJSON (line 464) | type ResultJSON struct type ComponentsJSON (line 473) | type ComponentsJSON struct type edgeJSON (line 479) | type edgeJSON struct type fileJSON (line 486) | type fileJSON struct type declJSON (line 493) | type declJSON struct type specJSON (line 500) | type specJSON struct type refJSON (line 507) | type refJSON struct FILE: gopls/internal/golang/stub.go function stubMissingInterfaceMethodsFixer (line 33) | func stubMissingInterfaceMethodsFixer(ctx context.Context, snapshot *cac... function stubMissingCalledFunctionFixer (line 44) | func stubMissingCalledFunctionFixer(ctx context.Context, snapshot *cache... function insertDeclsAfter (line 65) | func insertDeclsAfter(ctx context.Context, snapshot *cache.Snapshot, mp ... function diffToTextEdits (line 212) | func diffToTextEdits(tok *token.File, diffs []diff.Edit) []analysis.Text... function trimVersionSuffix (line 232) | func trimVersionSuffix(path string) string { FILE: gopls/internal/golang/stubmethods/stubcalledfunc.go type CallStubInfo (line 28) | type CallStubInfo struct method Emit (line 94) | func (si *CallStubInfo) Emit(out *bytes.Buffer, qual types.Qualifier) ... method collectParams (line 170) | func (si *CallStubInfo) collectParams() []param { function GetCallStubInfo (line 40) | func GetCallStubInfo(fset *token.FileSet, info *types.Info, pgf *parsego... type param (line 163) | type param struct function containsInvalid (line 200) | func containsInvalid(t types.Type) bool { function paramName (line 208) | func paramName(e ast.Expr, typ types.Type) string { function lastSection (line 248) | func lastSection(identName string) string { FILE: gopls/internal/golang/stubmethods/stubmethods.go type IfaceStubInfo (line 31) | type IfaceStubInfo struct method Emit (line 85) | func (si *IfaceStubInfo) Emit(out *bytes.Buffer, qual types.Qualifier)... function GetIfaceStubInfo (line 54) | func GetIfaceStubInfo(fset *token.FileSet, info *types.Info, pgf *parseg... function fromCallExpr (line 201) | func fromCallExpr(fset *token.FileSet, info *types.Info, curCallArg insp... function fromReturnStmt (line 249) | func fromReturnStmt(fset *token.FileSet, info *types.Info, curResult ins... function fromValueSpec (line 293) | func fromValueSpec(fset *token.FileSet, info *types.Info, curValue inspe... function fromAssignStmt (line 329) | func fromAssignStmt(fset *token.FileSet, info *types.Info, curRhs inspec... function ifaceType (line 360) | func ifaceType(e ast.Expr, info *types.Info) *types.TypeName { function ifaceObjFromType (line 368) | func ifaceObjFromType(t types.Type) *types.TypeName { function concreteType (line 392) | func concreteType(e ast.Expr, info *types.Info) (*types.Named, bool) { FILE: gopls/internal/golang/symbols.go function DocumentSymbols (line 23) | func DocumentSymbols(ctx context.Context, snapshot *cache.Snapshot, fh f... function PackageSymbols (line 88) | func PackageSymbols(ctx context.Context, snapshot *cache.Snapshot, uri p... function toPackageSymbol (line 174) | func toPackageSymbol(fileIndex int, s protocol.DocumentSymbol) command.P... function funcSymbol (line 193) | func funcSymbol(m *protocol.Mapper, tf *token.File, decl *ast.FuncDecl) ... function typeSymbol (line 214) | func typeSymbol(m *protocol.Mapper, tf *token.File, spec *ast.TypeSpec) ... function typeDetails (line 231) | func typeDetails(m *protocol.Mapper, tf *token.File, typExpr ast.Expr) (... function fieldListSymbols (line 263) | func fieldListSymbols(m *protocol.Mapper, tf *token.File, fields *ast.Fi... function varSymbol (line 325) | func varSymbol(m *protocol.Mapper, tf *token.File, spec *ast.ValueSpec, ... FILE: gopls/internal/golang/type_definition.go function TypeDefinition (line 22) | func TypeDefinition(ctx context.Context, snapshot *cache.Snapshot, fh fi... FILE: gopls/internal/golang/type_hierarchy.go function PrepareTypeHierarchy (line 36) | func PrepareTypeHierarchy(ctx context.Context, snapshot *cache.Snapshot,... function Subtypes (line 82) | func Subtypes(ctx context.Context, snapshot *cache.Snapshot, fh file.Han... function Supertypes (line 87) | func Supertypes(ctx context.Context, snapshot *cache.Snapshot, fh file.H... function relatedTypes (line 92) | func relatedTypes(ctx context.Context, snapshot *cache.Snapshot, fh file... FILE: gopls/internal/golang/types_format.go function FormatType (line 28) | func FormatType(typ types.Type, qual types.Qualifier) (detail string, ki... type signature (line 43) | type signature struct method Format (line 50) | func (s *signature) Format() string { method TypeParams (line 80) | func (s *signature) TypeParams() []string { method Params (line 84) | func (s *signature) Params() []string { function NewBuiltinSignature (line 90) | func NewBuiltinSignature(ctx context.Context, s *cache.Snapshot, name st... function formatFieldList (line 142) | func formatFieldList(ctx context.Context, fset *token.FileSet, list *ast... function NewSignature (line 181) | func NewSignature(ctx context.Context, s *cache.Snapshot, pkg *cache.Pac... function FormatVarType (line 257) | func FormatVarType(ctx context.Context, snapshot *cache.Snapshot, srcpkg... function qualifyTypeExpr (line 359) | func qualifyTypeExpr(expr ast.Expr, qf func(string) string) ast.Expr { function qualifyFieldList (line 501) | func qualifyFieldList(fl *ast.FieldList, qf func(string) string) *ast.Fi... FILE: gopls/internal/golang/undeclared.go function undeclaredFixTitle (line 32) | func undeclaredFixTitle(curId inspector.Cursor, errMsg string) string { function createUndeclared (line 62) | func createUndeclared(pkg *cache.Package, pgf *parsego.File, start, end ... function referencesIdent (line 158) | func referencesIdent(info *types.Info, assign *ast.AssignStmt, ident *as... function newFunctionDeclaration (line 172) | func newFunctionDeclaration(curId inspector.Cursor, file *ast.File, pkg ... function typeToArgName (line 313) | func typeToArgName(ty types.Type) string { FILE: gopls/internal/golang/util.go function IsGenerated (line 28) | func IsGenerated(ctx context.Context, snapshot *cache.Snapshot, uri prot... function FormatNode (line 41) | func FormatNode(fset *token.FileSet, n ast.Node) string { function formatNodeFile (line 53) | func formatNodeFile(file *token.File, n ast.Node) string { function findFileInDeps (line 60) | func findFileInDeps(s metadata.Source, mp *metadata.Package, uri protoco... function requalifier (line 88) | func requalifier(s metadata.Source, targetFile *ast.File, targetMeta *me... type MetadataQualifier (line 114) | type MetadataQualifier function MetadataQualifierForFile (line 119) | func MetadataQualifierForFile(s metadata.Source, f *ast.File, mp *metada... function importInfo (line 181) | func importInfo(s metadata.Source, imp *ast.ImportSpec, mp *metadata.Pac... function isDirective (line 217) | func isDirective(c string) bool { function embeddedIdent (line 259) | func embeddedIdent(x ast.Expr) *ast.Ident { type ImporterFunc (line 282) | type ImporterFunc method Import (line 284) | func (f ImporterFunc) Import(path string) (*types.Package, error) { re... function isBuiltin (line 288) | func isBuiltin(obj types.Object) bool { return !obj.Pos().IsValid() } function btoi (line 291) | func btoi(b bool) int { function boolCompare (line 301) | func boolCompare(x, y bool) int { function AbbreviateVarName (line 309) | func AbbreviateVarName(s string) string { function CopyrightComment (line 340) | func CopyrightComment(file *ast.File) *ast.CommentGroup { function buildConstraintComment (line 361) | func buildConstraintComment(file *ast.File) *ast.Comment { FILE: gopls/internal/golang/workspace_symbol.go constant maxSymbols (line 29) | maxSymbols = 100 function WorkspaceSymbols (line 48) | func WorkspaceSymbols(ctx context.Context, matcher settings.SymbolMatche... type matcherFunc (line 73) | type matcherFunc type symbolizer (line 84) | type symbolizer function fullyQualifiedSymbolMatch (line 86) | func fullyQualifiedSymbolMatch(space []string, name string, pkg *metadat... function dynamicSymbolMatch (line 93) | func dynamicSymbolMatch(space []string, name string, pkg *metadata.Packa... function packageSymbolMatch (line 146) | func packageSymbolMatch(space []string, name string, pkg *metadata.Packa... function buildMatcher (line 154) | func buildMatcher(matcher settings.SymbolMatcher, query string) matcherF... function newFuzzyMatcher (line 177) | func newFuzzyMatcher(query string) matcherFunc { function parseQuery (line 202) | func parseQuery(q string, newMatcher func(string) matcherFunc) matcherFu... function matchExact (line 243) | func matchExact(exact string) matcherFunc { function smartCase (line 255) | func smartCase(q string, m matcherFunc) matcherFunc { type comboMatcher (line 268) | type comboMatcher method match (line 270) | func (c comboMatcher) match(chunks []string) (int, float64) { function collectSymbols (line 293) | func collectSymbols(ctx context.Context, snapshots []*cache.Snapshot, ma... type symbolFile (line 418) | type symbolFile struct function matchFile (line 426) | func matchFile(store *symbolStore, symbolizer symbolizer, matcher matche... type symbolStore (line 512) | type symbolStore struct method store (line 517) | func (sc *symbolStore) store(ss *scoredSymbol) { method tooLow (line 540) | func (sc *symbolStore) tooLow(score float64) bool { method results (line 548) | func (sc *symbolStore) results() []protocol.SymbolInformation { type scoredSymbol (line 559) | type scoredSymbol struct FILE: gopls/internal/golang/workspace_symbol_test.go function TestParseQuery (line 13) | func TestParseQuery(t *testing.T) { function TestPathIncludeFunc (line 50) | func TestPathIncludeFunc(t *testing.T) { FILE: gopls/internal/licenses/licenses.go constant Text (line 8) | Text = ` FILE: gopls/internal/licenses/licenses_test.go function TestLicenses (line 15) | func TestLicenses(t *testing.T) { FILE: gopls/internal/lsprpc/autostart_default.go function runRemote (line 18) | func runRemote(cmd *exec.Cmd) error { function autoNetworkAddressDefault (line 29) | func autoNetworkAddressDefault(goplsPath, id string) (network string, ad... function verifyRemoteOwnershipDefault (line 36) | func verifyRemoteOwnershipDefault(network, address string) (bool, error) { FILE: gopls/internal/lsprpc/autostart_posix.go function init (line 22) | func init() { function daemonizePosix (line 28) | func daemonizePosix(cmd *exec.Cmd) { function autoNetworkAddressPosix (line 36) | func autoNetworkAddressPosix(goplsPath, id string) (network string, addr... function verifyRemoteOwnershipPosix (line 71) | func verifyRemoteOwnershipPosix(network, address string) (bool, error) { FILE: gopls/internal/lsprpc/binder_test.go type ServerBinder (line 21) | type ServerBinder struct method Bind (line 53) | func (b *ServerBinder) Bind(ctx context.Context, conn *jsonrpc2_v2.Con... function NewServerBinder (line 25) | func NewServerBinder(newServer ServerFunc) *ServerBinder { type TestEnv (line 72) | type TestEnv struct method Shutdown (line 77) | func (e *TestEnv) Shutdown(t *testing.T) { method serve (line 93) | func (e *TestEnv) serve(ctx context.Context, t *testing.T, server json... method dial (line 103) | func (e *TestEnv) dial(ctx context.Context, t *testing.T, dialer jsonr... function staticClientBinder (line 116) | func staticClientBinder(client protocol.Client) jsonrpc2_v2.Binder { function staticServerBinder (line 121) | func staticServerBinder(server protocol.Server) jsonrpc2_v2.Binder { function TestClientLoggingV2 (line 128) | func TestClientLoggingV2(t *testing.T) { function TestRequestCancellationV2 (line 162) | func TestRequestCancellationV2(t *testing.T) { FILE: gopls/internal/lsprpc/commandinterceptor_test.go function CommandInterceptor (line 18) | func CommandInterceptor(command string, run func(*protocol.ExecuteComman... function TestCommandInterceptor (line 35) | func TestCommandInterceptor(t *testing.T) { FILE: gopls/internal/lsprpc/dialer.go constant autoNetwork (line 21) | autoNetwork = "auto" type autoDialer (line 24) | type autoDialer struct method Dial (line 50) | func (d *autoDialer) Dial(ctx context.Context) (io.ReadWriteCloser, er... method dialNet (line 57) | func (d *autoDialer) dialNet(ctx context.Context) (net.Conn, error) { function newAutoDialer (line 32) | func newAutoDialer(rawAddr string, argFunc func(network, addr string) []... FILE: gopls/internal/lsprpc/export_test.go constant HandshakeMethod (line 20) | HandshakeMethod = handshakeMethod type ServerFunc (line 23) | type ServerFunc type Canceler (line 25) | type Canceler struct method Preempt (line 29) | func (c *Canceler) Preempt(ctx context.Context, req *jsonrpc2_v2.Reque... type ForwardBinder (line 45) | type ForwardBinder struct method Bind (line 56) | func (b *ForwardBinder) Bind(ctx context.Context, conn *jsonrpc2_v2.Co... function NewForwardBinder (line 50) | func NewForwardBinder(dialer jsonrpc2_v2.Dialer) *ForwardBinder { function NewClientBinder (line 89) | func NewClientBinder(newClient ClientFunc) *clientBinder { type ClientFunc (line 94) | type ClientFunc type clientBinder (line 97) | type clientBinder struct method Bind (line 101) | func (b *clientBinder) Bind(ctx context.Context, conn *jsonrpc2_v2.Con... type HandlerMiddleware (line 110) | type HandlerMiddleware function BindHandler (line 113) | func BindHandler(hmw HandlerMiddleware) Middleware { type BinderFunc (line 125) | type BinderFunc method Bind (line 127) | func (f BinderFunc) Bind(ctx context.Context, conn *jsonrpc2_v2.Connec... type Middleware (line 133) | type Middleware FILE: gopls/internal/lsprpc/goenv.go function getGoEnv (line 15) | func getGoEnv(ctx context.Context, env map[string]any) (map[string]strin... FILE: gopls/internal/lsprpc/goenv_test.go function GoEnvMiddleware (line 22) | func GoEnvMiddleware() (Middleware, error) { function addGoEnvToInitializeRequestV2 (line 37) | func addGoEnvToInitializeRequestV2(ctx context.Context, req *jsonrpc2_v2... type initServer (line 82) | type initServer struct method Initialize (line 88) | func (s *initServer) Initialize(ctx context.Context, params *protocol.... function TestGoEnvMiddleware (line 93) | func TestGoEnvMiddleware(t *testing.T) { FILE: gopls/internal/lsprpc/lsprpc.go type StreamServer (line 40) | type StreamServer struct method SetSessionExitFunc (line 79) | func (s *StreamServer) SetSessionExitFunc(f func(id string)) { method ServeStream (line 88) | func (s *StreamServer) ServeStream(ctx context.Context, conn jsonrpc2.... method Session (line 142) | func (s *StreamServer) Session(id string) (*cache.Session, protocol.Se... method FirstSession (line 151) | func (s *StreamServer) FirstSession() (*cache.Session, protocol.Server) { type sessionServer (line 59) | type sessionServer struct function NewStreamServer (line 67) | func NewStreamServer(cache *cache.Cache, daemon bool, optionsFunc func(*... type forwarder (line 169) | type forwarder struct method ServeStream (line 250) | func (f *forwarder) ServeStream(ctx context.Context, clientConn jsonrp... method handshake (line 300) | func (f *forwarder) handshake(ctx context.Context) { method handler (line 346) | func (f *forwarder) handler(handler jsonrpc2.Handler) jsonrpc2.Handler { method replyWithDebugAddress (line 431) | func (f *forwarder) replyWithDebugAddress(outerCtx context.Context, r ... function NewForwarder (line 184) | func NewForwarder(rawAddr string, argFunc func(network, address string) ... function QueryServerState (line 196) | func QueryServerState(ctx context.Context, addr string) (any, error) { function dialRemote (line 211) | func dialRemote(ctx context.Context, addr string) (jsonrpc2.Conn, error) { function ExecuteCommand (line 232) | func ExecuteCommand(ctx context.Context, addr string, id string, request... function ConnectToRemote (line 336) | func ConnectToRemote(ctx context.Context, addr string) (net.Conn, error) { function addGoEnvToInitializeRequest (line 387) | func addGoEnvToInitializeRequest(ctx context.Context, r jsonrpc2.Request... type handshakeRequest (line 471) | type handshakeRequest struct type handshakeResponse (line 485) | type handshakeResponse struct type clientSession (line 500) | type clientSession struct type serverState (line 509) | type serverState struct constant handshakeMethod (line 518) | handshakeMethod = "gopls/handshake" constant sessionsMethod (line 519) | sessionsMethod = "gopls/sessions" function handshaker (line 522) | func handshaker(session *cache.Session, goplsPath string, logHandshakes ... function sendError (line 579) | func sendError(ctx context.Context, reply jsonrpc2.Replier, err error) { function ParseAddr (line 589) | func ParseAddr(listen string) (network string, address string) { FILE: gopls/internal/lsprpc/lsprpc_test.go type FakeClient (line 26) | type FakeClient struct method LogMessage (line 32) | func (c FakeClient) LogMessage(ctx context.Context, params *protocol.L... type fakeServer (line 39) | type fakeServer struct method Shutdown (line 43) | func (fakeServer) Shutdown(ctx context.Context) error { type PingServer (line 47) | type PingServer struct method DidOpen (line 49) | func (s PingServer) DidOpen(ctx context.Context, params *protocol.DidO... function TestClientLogging (line 54) | func TestClientLogging(t *testing.T) { type WaitableServer (line 94) | type WaitableServer struct method Hover (line 101) | func (s WaitableServer) Hover(ctx context.Context, _ *protocol.HoverPa... method ResolveCompletionItem (line 114) | func (s WaitableServer) ResolveCompletionItem(_ context.Context, item ... function checkClose (line 118) | func checkClose(t *testing.T, closer func() error) { function setupForwarding (line 125) | func setupForwarding(ctx context.Context, t *testing.T, s protocol.Serve... function TestRequestCancellation (line 143) | func TestRequestCancellation(t *testing.T) { constant exampleProgram (line 188) | exampleProgram = ` function TestDebugInfoLifecycle (line 202) | func TestDebugInfoLifecycle(t *testing.T) { type initServer (line 282) | type initServer struct method Initialize (line 288) | func (s *initServer) Initialize(ctx context.Context, params *protocol.... function TestEnvForwarding (line 293) | func TestEnvForwarding(t *testing.T) { function TestListenParsing (line 330) | func TestListenParsing(t *testing.T) { function TestEmptySlices (line 352) | func TestEmptySlices(t *testing.T) { FILE: gopls/internal/lsprpc/middleware_test.go function TestHandshakeMiddleware (line 25) | func TestHandshakeMiddleware(t *testing.T) { type Handshaker (line 102) | type Handshaker struct method Peers (line 132) | func (h *Handshaker) Peers() []PeerInfo { method Middleware (line 145) | func (h *Handshaker) Middleware(inner jsonrpc2_v2.Binder) jsonrpc2_v2.... method ClientHandshake (line 181) | func (h *Handshaker) ClientHandshake(ctx context.Context, conn *jsonrp... method nextID (line 200) | func (h *Handshaker) nextID() int64 { method cleanupAtDisconnect (line 208) | func (h *Handshaker) cleanupAtDisconnect(conn *jsonrpc2_v2.Connection,... method recordPeer (line 216) | func (h *Handshaker) recordPeer(info PeerInfo) { type metadata (line 112) | type metadata type PeerInfo (line 115) | type PeerInfo struct FILE: gopls/internal/mcp/context.go type ContextParams (line 30) | type ContextParams struct method contextHandler (line 34) | func (h *handler) contextHandler(ctx context.Context, req *mcp.CallToolR... function summarizePackage (line 140) | func summarizePackage(ctx context.Context, snapshot *cache.Snapshot, md ... function writeFileSummary (line 156) | func writeFileSummary(ctx context.Context, snapshot *cache.Snapshot, f p... FILE: gopls/internal/mcp/file_context.go type fileContextParams (line 19) | type fileContextParams struct method fileContextHandler (line 23) | func (h *handler) fileContextHandler(ctx context.Context, req *mcp.CallT... FILE: gopls/internal/mcp/file_diagnostics.go type diagnosticsParams (line 26) | type diagnosticsParams struct method fileDiagnosticsHandler (line 30) | func (h *handler) fileDiagnosticsHandler(ctx context.Context, req *mcp.C... method diagnoseFile (line 56) | func (h *handler) diagnoseFile(ctx context.Context, snapshot *cache.Snap... function summarizeDiagnostics (line 105) | func summarizeDiagnostics(ctx context.Context, snapshot *cache.Snapshot,... function writeUnifiedDiff (line 129) | func writeUnifiedDiff(ctx context.Context, snapshot *cache.Snapshot, w *... FILE: gopls/internal/mcp/file_metadata.go type fileMetadataParams (line 15) | type fileMetadataParams struct method fileMetadataHandler (line 19) | func (h *handler) fileMetadataHandler(ctx context.Context, req *mcp.Call... FILE: gopls/internal/mcp/mcp.go type handler (line 32) | type handler struct method snapshot (line 371) | func (h *handler) snapshot() (*cache.Snapshot, func(), error) { method fileOf (line 385) | func (h *handler) fileOf(ctx context.Context, file string) (file.Handl... type Sessions (line 38) | type Sessions interface function Serve (line 54) | func Serve(ctx context.Context, address string, sessions Sessions, isDae... function StartStdIO (line 85) | func StartStdIO(ctx context.Context, session *cache.Session, server prot... function HTTPHandler (line 98) | func HTTPHandler(sessions Sessions, isDaemon bool, rootsHandler func(*mc... function NewServer (line 163) | func NewServer(session *cache.Session, lspServer protocol.Server, rootsH... function addToolByName (line 267) | func addToolByName(mcpServer *mcp.Server, h handler, name string) { function checkForFileChanges (line 423) | func checkForFileChanges(ctx context.Context, snapshot *cache.Snapshot, ... function textResult (line 466) | func textResult(text string) *mcp.CallToolResult { FILE: gopls/internal/mcp/mcp_test.go type emptySessions (line 20) | type emptySessions struct method FirstSession (line 24) | func (e emptySessions) FirstSession() (*cache.Session, protocol.Server) { method Session (line 29) | func (e emptySessions) Session(string) (*cache.Session, protocol.Serve... method SetSessionExitFunc (line 34) | func (e emptySessions) SetSessionExitFunc(func(string)) { function TestContextCancellation (line 37) | func TestContextCancellation(t *testing.T) { function TestClientRootChange (line 58) | func TestClientRootChange(t *testing.T) { FILE: gopls/internal/mcp/outline.go type outlineParams (line 16) | type outlineParams struct method outlineHandler (line 20) | func (h *handler) outlineHandler(ctx context.Context, req *mcp.CallToolR... FILE: gopls/internal/mcp/references.go type findReferencesParams (line 19) | type findReferencesParams struct method referencesHandler (line 23) | func (h *handler) referencesHandler(ctx context.Context, req *mcp.CallTo... function formatReferences (line 39) | func formatReferences(ctx context.Context, snapshot *cache.Snapshot, ref... FILE: gopls/internal/mcp/rename_symbol.go type renameSymbolParams (line 19) | type renameSymbolParams struct method renameSymbolHandler (line 25) | func (h *handler) renameSymbolHandler(ctx context.Context, req *mcp.Call... function formatRenameChanges (line 52) | func formatRenameChanges(ctx context.Context, snapshot *cache.Snapshot, ... FILE: gopls/internal/mcp/search.go type searchParams (line 16) | type searchParams struct method searchHandler (line 20) | func (h *handler) searchHandler(ctx context.Context, req *mcp.CallToolRe... function kindName (line 45) | func kindName(k protocol.SymbolKind) string { FILE: gopls/internal/mcp/symbol_references.go type symbolReferencesParams (line 24) | type symbolReferencesParams struct method symbolReferencesHandler (line 32) | func (h *handler) symbolReferencesHandler(ctx context.Context, req *mcp.... function symbolLocation (line 61) | func symbolLocation(ctx context.Context, snapshot *cache.Snapshot, uri p... function extractPath (line 94) | func extractPath(e ast.Expr) ([]string, error) { function resolveSymbol (line 118) | func resolveSymbol(path []string, pkg *cache.Package, pgf *parsego.File)... FILE: gopls/internal/mcp/vulncheck.go type vulncheckParams (line 19) | type vulncheckParams struct type GroupedVulnFinding (line 24) | type GroupedVulnFinding struct type VulncheckResultOutput (line 30) | type VulncheckResultOutput struct method vulncheckHandler (line 35) | func (h *handler) vulncheckHandler(ctx context.Context, req *mcp.CallToo... FILE: gopls/internal/mcp/workspace.go method workspaceHandler (line 22) | func (h *handler) workspaceHandler(ctx context.Context, req *mcp.CallToo... function summarizeModFiles (line 77) | func summarizeModFiles(ctx context.Context, w io.Writer, snapshot *cache... function modulePath (line 89) | func modulePath(ctx context.Context, snapshot *cache.Snapshot, uri proto... function packageSummaries (line 104) | func packageSummaries(snapshot *cache.Snapshot, pkgs immutable.Map[cache... FILE: gopls/internal/mcp/workspace_diagnostics.go type workspaceDiagnosticsParams (line 21) | type workspaceDiagnosticsParams struct method workspaceDiagnosticsHandler (line 25) | func (h *handler) workspaceDiagnosticsHandler(ctx context.Context, req *... FILE: gopls/internal/mod/code_lens.go function CodeLensSources (line 22) | func CodeLensSources() map[settings.CodeLensSource]cache.CodeLensSourceF... function upgradeLenses (line 32) | func upgradeLenses(ctx context.Context, snapshot *cache.Snapshot, fh fil... function tidyLens (line 81) | func tidyLens(ctx context.Context, snapshot *cache.Snapshot, fh file.Han... function vendorLens (line 98) | func vendorLens(ctx context.Context, snapshot *cache.Snapshot, fh file.H... function moduleStmtRange (line 123) | func moduleStmtRange(fh file.Handle, pm *cache.ParsedModule) (protocol.R... function firstRequireRange (line 133) | func firstRequireRange(fh file.Handle, pm *cache.ParsedModule) (protocol... function vulncheckLenses (line 152) | func vulncheckLenses(ctx context.Context, snapshot *cache.Snapshot, fh f... function runGovulncheckLenses (line 175) | func runGovulncheckLenses(ctx context.Context, snapshot *cache.Snapshot,... FILE: gopls/internal/mod/diagnostics.go function ParseDiagnostics (line 30) | func ParseDiagnostics(ctx context.Context, snapshot *cache.Snapshot) (ma... function TidyDiagnostics (line 38) | func TidyDiagnostics(ctx context.Context, snapshot *cache.Snapshot) (map... function UpgradeDiagnostics (line 47) | func UpgradeDiagnostics(ctx context.Context, snapshot *cache.Snapshot) (... function VulnerabilityDiagnostics (line 56) | func VulnerabilityDiagnostics(ctx context.Context, snapshot *cache.Snaps... function collectDiagnostics (line 63) | func collectDiagnostics(ctx context.Context, snapshot *cache.Snapshot, d... function parseDiagnostics (line 97) | func parseDiagnostics(ctx context.Context, snapshot *cache.Snapshot, fh ... function tidyDiagnostics (line 109) | func tidyDiagnostics(ctx context.Context, snapshot *cache.Snapshot, fh f... function upgradeDiagnostics (line 136) | func upgradeDiagnostics(ctx context.Context, snapshot *cache.Snapshot, f... constant upgradeCodeActionPrefix (line 177) | upgradeCodeActionPrefix = "Upgrade to " function vulnerabilityDiagnostics (line 181) | func vulnerabilityDiagnostics(ctx context.Context, snapshot *cache.Snaps... type vulnFindingType (line 392) | type vulnFindingType constant vulnUnknown (line 395) | vulnUnknown vulnFindingType = iota constant vulnCalled (line 396) | vulnCalled constant vulnImported (line 397) | vulnImported constant vulnRequired (line 398) | vulnRequired function foundVuln (line 403) | func foundVuln(finding *govulncheck.Finding) (*govulncheck.Frame, vulnFi... function sortedKeys (line 423) | func sortedKeys(m map[string]bool) []string { function suggestGovulncheckAction (line 436) | func suggestGovulncheckAction(fromGovulncheck bool, uri protocol.Documen... function getVulnMessage (line 451) | func getVulnMessage(mod string, vulns []string, used, fromGovulncheck bo... function href (line 484) | func href(vulnID string) string { function getUpgradeCodeAction (line 488) | func getUpgradeCodeAction(fh file.Handle, req *modfile.Require, version ... function upgradeTitle (line 496) | func upgradeTitle(fixedVersion string) string { function SelectUpgradeCodeActions (line 505) | func SelectUpgradeCodeActions(actions []protocol.CodeAction) []protocol.... function getUpgradeVersion (line 542) | func getUpgradeVersion(p protocol.CodeAction) string { FILE: gopls/internal/mod/format.go function Format (line 17) | func Format(ctx context.Context, snapshot *cache.Snapshot, fh file.Handl... FILE: gopls/internal/mod/hover.go function Hover (line 28) | func Hover(ctx context.Context, snapshot *cache.Snapshot, fh file.Handle... function hoverOnRequireStatement (line 54) | func hoverOnRequireStatement(ctx context.Context, pm *cache.ParsedModule... function hoverOnModuleStatement (line 125) | func hoverOnModuleStatement(ctx context.Context, pm *cache.ParsedModule,... function formatHeader (line 163) | func formatHeader(modpath string, options *settings.Options) string { function lookupVulns (line 175) | func lookupVulns(vulns *vulncheck.Result, modpath, version string) (affe... function fixedVersion (line 235) | func fixedVersion(fixed string) string { function formatVulnerabilities (line 242) | func formatVulnerabilities(affecting, nonaffecting []*govulncheck.Findin... function vulnerablePkgsInfo (line 303) | func vulnerablePkgsInfo(findings []*govulncheck.Finding, useMarkdown boo... function formatExplanation (line 324) | func formatExplanation(text string, replaceMap map[module.Version]module... FILE: gopls/internal/mod/inlay_hint.go function InlayHint (line 16) | func InlayHint(ctx context.Context, snapshot *cache.Snapshot, fh file.Ha... function genHint (line 76) | func genHint(mline *modfile.Line, oldVersion, newVersion string, m *prot... FILE: gopls/internal/mod/references.go function References (line 21) | func References(ctx context.Context, snapshot *cache.Snapshot, fh file.H... FILE: gopls/internal/progress/progress.go function NewTracker (line 27) | func NewTracker(client protocol.Client) *Tracker { type Tracker (line 35) | type Tracker struct method SetSupportsWorkDoneProgress (line 49) | func (t *Tracker) SetSupportsWorkDoneProgress(b bool) { method SupportsWorkDoneProgress (line 55) | func (t *Tracker) SupportsWorkDoneProgress() bool { method Start (line 85) | func (t *Tracker) Start(ctx context.Context, title, message string, to... method Cancel (line 145) | func (t *Tracker) Cancel(token protocol.ProgressToken) error { type WorkDone (line 161) | type WorkDone struct method Token (line 177) | func (wd *WorkDone) Token() protocol.ProgressToken { method doCancel (line 181) | func (wd *WorkDone) doCancel() { method Report (line 190) | func (wd *WorkDone) Report(ctx context.Context, message string, fracti... method End (line 226) | func (wd *WorkDone) End(ctx context.Context, message string) { function NewEventWriter (line 261) | func NewEventWriter(ctx context.Context, operation string) io.Writer { type eventWriter (line 265) | type eventWriter struct method Write (line 270) | func (ew *eventWriter) Write(p []byte) (n int, err error) { function NewWorkDoneWriter (line 277) | func NewWorkDoneWriter(ctx context.Context, wd *WorkDone) io.Writer { type workDoneWriter (line 283) | type workDoneWriter struct method Write (line 289) | func (wdw *workDoneWriter) Write(p []byte) (n int, err error) { FILE: gopls/internal/progress/progress_test.go type fakeClient (line 16) | type fakeClient struct method checkToken (line 25) | func (c *fakeClient) checkToken(token protocol.ProgressToken) { method WorkDoneProgressCreate (line 34) | func (c *fakeClient) WorkDoneProgressCreate(ctx context.Context, param... method Progress (line 42) | func (c *fakeClient) Progress(ctx context.Context, params *protocol.Pr... method ShowMessage (line 59) | func (c *fakeClient) ShowMessage(context.Context, *protocol.ShowMessag... function setup (line 66) | func setup() (*Tracker, *fakeClient) { function TestProgressTracker_Reporting (line 73) | func TestProgressTracker_Reporting(t *testing.T) { function TestProgressTracker_Cancellation (line 146) | func TestProgressTracker_Cancellation(t *testing.T) { FILE: gopls/internal/protocol/command/command_gen.go constant AddDependency (line 27) | AddDependency Command = "gopls.add_dependency" constant AddImport (line 28) | AddImport Command = "gopls.add_import" constant AddTelemetryCounters (line 29) | AddTelemetryCounters Command = "gopls.add_telemetry_counters" constant AddTest (line 30) | AddTest Command = "gopls.add_test" constant ApplyFix (line 31) | ApplyFix Command = "gopls.apply_fix" constant Assembly (line 32) | Assembly Command = "gopls.assembly" constant ChangeSignature (line 33) | ChangeSignature Command = "gopls.change_signature" constant CheckUpgrades (line 34) | CheckUpgrades Command = "gopls.check_upgrades" constant ClientOpenURL (line 35) | ClientOpenURL Command = "gopls.client_open_url" constant DiagnoseFiles (line 36) | DiagnoseFiles Command = "gopls.diagnose_files" constant Doc (line 37) | Doc Command = "gopls.doc" constant EditGoDirective (line 38) | EditGoDirective Command = "gopls.edit_go_directive" constant ExtractToNewFile (line 39) | ExtractToNewFile Command = "gopls.extract_to_new_file" constant FetchVulncheckResult (line 40) | FetchVulncheckResult Command = "gopls.fetch_vulncheck_result" constant FreeSymbols (line 41) | FreeSymbols Command = "gopls.free_symbols" constant GCDetails (line 42) | GCDetails Command = "gopls.gc_details" constant Generate (line 43) | Generate Command = "gopls.generate" constant GoGetPackage (line 44) | GoGetPackage Command = "gopls.go_get_package" constant ListImports (line 45) | ListImports Command = "gopls.list_imports" constant ListKnownPackages (line 46) | ListKnownPackages Command = "gopls.list_known_packages" constant LSP (line 47) | LSP Command = "gopls.lsp" constant MaybePromptForTelemetry (line 48) | MaybePromptForTelemetry Command = "gopls.maybe_prompt_for_telemetry" constant MemStats (line 49) | MemStats Command = "gopls.mem_stats" constant ModifyTags (line 50) | ModifyTags Command = "gopls.modify_tags" constant Modules (line 51) | Modules Command = "gopls.modules" constant MoveType (line 52) | MoveType Command = "gopls.move_type" constant PackageSymbols (line 53) | PackageSymbols Command = "gopls.package_symbols" constant Packages (line 54) | Packages Command = "gopls.packages" constant RegenerateCgo (line 55) | RegenerateCgo Command = "gopls.regenerate_cgo" constant RemoveDependency (line 56) | RemoveDependency Command = "gopls.remove_dependency" constant ResetGoModDiagnostics (line 57) | ResetGoModDiagnostics Command = "gopls.reset_go_mod_diagnostics" constant RunGoWorkCommand (line 58) | RunGoWorkCommand Command = "gopls.run_go_work_command" constant RunGovulncheck (line 59) | RunGovulncheck Command = "gopls.run_govulncheck" constant RunTests (line 60) | RunTests Command = "gopls.run_tests" constant ScanImports (line 61) | ScanImports Command = "gopls.scan_imports" constant SplitPackage (line 62) | SplitPackage Command = "gopls.split_package" constant StartDebugging (line 63) | StartDebugging Command = "gopls.start_debugging" constant StartProfile (line 64) | StartProfile Command = "gopls.start_profile" constant StopProfile (line 65) | StopProfile Command = "gopls.stop_profile" constant Tidy (line 66) | Tidy Command = "gopls.tidy" constant UpdateGoSum (line 67) | UpdateGoSum Command = "gopls.update_go_sum" constant UpgradeDependency (line 68) | UpgradeDependency Command = "gopls.upgrade_dependency" constant Vendor (line 69) | Vendor Command = "gopls.vendor" constant Views (line 70) | Views Command = "gopls.views" constant Vulncheck (line 71) | Vulncheck Command = "gopls.vulncheck" constant WorkspaceStats (line 72) | WorkspaceStats Command = "gopls.workspace_stats" function Dispatch (line 124) | func Dispatch(ctx context.Context, params *protocol.ExecuteCommandParams... function NewAddDependencyCommand (line 390) | func NewAddDependencyCommand(title string, a0 DependencyArgs) *protocol.... function NewAddImportCommand (line 398) | func NewAddImportCommand(title string, a0 AddImportArgs) *protocol.Comma... function NewAddTelemetryCountersCommand (line 406) | func NewAddTelemetryCountersCommand(title string, a0 AddTelemetryCounter... function NewAddTestCommand (line 414) | func NewAddTestCommand(title string, a0 protocol.Location) *protocol.Com... function NewApplyFixCommand (line 422) | func NewApplyFixCommand(title string, a0 ApplyFixArgs) *protocol.Command { function NewAssemblyCommand (line 430) | func NewAssemblyCommand(title string, a0 string, a1 string, a2 string) *... function NewChangeSignatureCommand (line 438) | func NewChangeSignatureCommand(title string, a0 ChangeSignatureArgs) *pr... function NewCheckUpgradesCommand (line 446) | func NewCheckUpgradesCommand(title string, a0 CheckUpgradesArgs) *protoc... function NewClientOpenURLCommand (line 454) | func NewClientOpenURLCommand(title string, a0 string) *protocol.Command { function NewDiagnoseFilesCommand (line 462) | func NewDiagnoseFilesCommand(title string, a0 DiagnoseFilesArgs) *protoc... function NewDocCommand (line 470) | func NewDocCommand(title string, a0 DocArgs) *protocol.Command { function NewEditGoDirectiveCommand (line 478) | func NewEditGoDirectiveCommand(title string, a0 EditGoDirectiveArgs) *pr... function NewExtractToNewFileCommand (line 486) | func NewExtractToNewFileCommand(title string, a0 protocol.Location) *pro... function NewFetchVulncheckResultCommand (line 494) | func NewFetchVulncheckResultCommand(title string, a0 URIArg) *protocol.C... function NewFreeSymbolsCommand (line 502) | func NewFreeSymbolsCommand(title string, a0 string, a1 protocol.Location... function NewGCDetailsCommand (line 510) | func NewGCDetailsCommand(title string, a0 protocol.DocumentURI) *protoco... function NewGenerateCommand (line 518) | func NewGenerateCommand(title string, a0 GenerateArgs) *protocol.Command { function NewGoGetPackageCommand (line 526) | func NewGoGetPackageCommand(title string, a0 GoGetPackageArgs) *protocol... function NewListImportsCommand (line 534) | func NewListImportsCommand(title string, a0 URIArg) *protocol.Command { function NewListKnownPackagesCommand (line 542) | func NewListKnownPackagesCommand(title string, a0 URIArg) *protocol.Comm... function NewLSPCommand (line 550) | func NewLSPCommand(title string, a0 LSPArgs) *protocol.Command { function NewMaybePromptForTelemetryCommand (line 558) | func NewMaybePromptForTelemetryCommand(title string) *protocol.Command { function NewMemStatsCommand (line 566) | func NewMemStatsCommand(title string) *protocol.Command { function NewModifyTagsCommand (line 574) | func NewModifyTagsCommand(title string, a0 ModifyTagsArgs) *protocol.Com... function NewModulesCommand (line 582) | func NewModulesCommand(title string, a0 ModulesArgs) *protocol.Command { function NewMoveTypeCommand (line 590) | func NewMoveTypeCommand(title string, a0 MoveTypeArgs) *protocol.Command { function NewPackageSymbolsCommand (line 598) | func NewPackageSymbolsCommand(title string, a0 PackageSymbolsArgs) *prot... function NewPackagesCommand (line 606) | func NewPackagesCommand(title string, a0 PackagesArgs) *protocol.Command { function NewRegenerateCgoCommand (line 614) | func NewRegenerateCgoCommand(title string, a0 URIArg) *protocol.Command { function NewRemoveDependencyCommand (line 622) | func NewRemoveDependencyCommand(title string, a0 RemoveDependencyArgs) *... function NewResetGoModDiagnosticsCommand (line 630) | func NewResetGoModDiagnosticsCommand(title string, a0 ResetGoModDiagnost... function NewRunGoWorkCommandCommand (line 638) | func NewRunGoWorkCommandCommand(title string, a0 RunGoWorkArgs) *protoco... function NewRunGovulncheckCommand (line 646) | func NewRunGovulncheckCommand(title string, a0 VulncheckArgs) *protocol.... function NewRunTestsCommand (line 654) | func NewRunTestsCommand(title string, a0 RunTestsArgs) *protocol.Command { function NewScanImportsCommand (line 662) | func NewScanImportsCommand(title string) *protocol.Command { function NewSplitPackageCommand (line 670) | func NewSplitPackageCommand(title string, a0 string, a1 string) *protoco... function NewStartDebuggingCommand (line 678) | func NewStartDebuggingCommand(title string, a0 DebuggingArgs) *protocol.... function NewStartProfileCommand (line 686) | func NewStartProfileCommand(title string, a0 StartProfileArgs) *protocol... function NewStopProfileCommand (line 694) | func NewStopProfileCommand(title string, a0 StopProfileArgs) *protocol.C... function NewTidyCommand (line 702) | func NewTidyCommand(title string, a0 URIArgs) *protocol.Command { function NewUpdateGoSumCommand (line 710) | func NewUpdateGoSumCommand(title string, a0 URIArgs) *protocol.Command { function NewUpgradeDependencyCommand (line 718) | func NewUpgradeDependencyCommand(title string, a0 DependencyArgs) *proto... function NewVendorCommand (line 726) | func NewVendorCommand(title string, a0 URIArg) *protocol.Command { function NewViewsCommand (line 734) | func NewViewsCommand(title string) *protocol.Command { function NewVulncheckCommand (line 742) | func NewVulncheckCommand(title string, a0 VulncheckArgs) *protocol.Comma... function NewWorkspaceStatsCommand (line 750) | func NewWorkspaceStatsCommand(title string) *protocol.Command { FILE: gopls/internal/protocol/command/commandmeta/meta.go type Command (line 28) | type Command struct type Field (line 37) | type Field struct function Load (line 50) | func Load() ([]*Command, error) { type fieldLoader (line 89) | type fieldLoader struct method loadMethod (line 95) | func (l *fieldLoader) loadMethod(pkg *packages.Package, m *types.Func)... method loadField (line 143) | func (l *fieldLoader) loadField(pkg *packages.Package, obj *types.Var,... function splitDoc (line 201) | func splitDoc(text string) (title, doc string) { function lspName (line 214) | func lspName(methodName string) string { function splitCamel (line 229) | func splitCamel(s string) []string { function findField (line 249) | func findField(pkg *packages.Package, pos token.Pos) (*ast.Field, error) { FILE: gopls/internal/protocol/command/gen/gen.go constant src (line 21) | src = `// Copyright 2024 The Go Authors. All rights reserved. type data (line 101) | type data struct function Generate (line 108) | func Generate() ([]byte, error) { function pkgPath (line 195) | func pkgPath(t types.Type) string { FILE: gopls/internal/protocol/command/generate.go function main (line 18) | func main() { FILE: gopls/internal/protocol/command/interface.go type Interface (line 44) | type Interface interface type RunTestsArgs (line 330) | type RunTestsArgs struct type GenerateArgs (line 341) | type GenerateArgs struct type DocArgs (line 349) | type DocArgs struct type ApplyFixArgs (line 356) | type ApplyFixArgs struct type URIArg (line 374) | type URIArg struct type URIArgs (line 379) | type URIArgs struct type CheckUpgradesArgs (line 384) | type CheckUpgradesArgs struct type DependencyArgs (line 391) | type DependencyArgs struct type RemoveDependencyArgs (line 400) | type RemoveDependencyArgs struct type EditGoDirectiveArgs (line 411) | type EditGoDirectiveArgs struct type GoGetPackageArgs (line 418) | type GoGetPackageArgs struct type AddImportArgs (line 426) | type AddImportArgs struct type ListKnownPackagesResult (line 435) | type ListKnownPackagesResult struct type ListImportsResult (line 444) | type ListImportsResult struct type FileImport (line 452) | type FileImport struct type PackageImport (line 459) | type PackageImport struct type DebuggingArgs (line 464) | type DebuggingArgs struct type DebuggingResult (line 481) | type DebuggingResult struct type StartProfileArgs (line 498) | type StartProfileArgs struct type StartProfileResult (line 504) | type StartProfileResult struct type StopProfileArgs (line 510) | type StopProfileArgs struct type StopProfileResult (line 514) | type StopProfileResult struct type ResetGoModDiagnosticsArgs (line 519) | type ResetGoModDiagnosticsArgs struct type VulncheckArgs (line 527) | type VulncheckArgs struct type RunVulncheckResult (line 539) | type RunVulncheckResult struct type VulncheckResult (line 547) | type VulncheckResult struct type MemStatsResult (line 556) | type MemStatsResult struct type WorkspaceStatsResult (line 564) | type WorkspaceStatsResult struct type FileStats (line 570) | type FileStats struct type ViewStats (line 577) | type ViewStats struct type PackageStats (line 585) | type PackageStats struct type RunGoWorkArgs (line 592) | type RunGoWorkArgs struct type AddTelemetryCountersArgs (line 600) | type AddTelemetryCountersArgs struct type ChangeSignatureArgs (line 622) | type ChangeSignatureArgs struct type ChangeSignatureParam (line 643) | type ChangeSignatureParam struct method UnmarshalJSON (line 648) | func (a *ChangeSignatureParam) UnmarshalJSON(b []byte) error { method MarshalJSON (line 662) | func (a ChangeSignatureParam) MarshalJSON() ([]byte, error) { type DiagnoseFilesArgs (line 670) | type DiagnoseFilesArgs struct type View (line 675) | type View struct type PackagesArgs (line 684) | type PackagesArgs struct type PackagesMode (line 705) | type PackagesMode constant NeedTests (line 710) | NeedTests PackagesMode = 1 << iota type PackagesResult (line 714) | type PackagesResult struct type Package (line 724) | type Package struct type Module (line 746) | type Module struct type TestFile (line 752) | type TestFile struct type TestCase (line 771) | type TestCase struct type ModulesArgs (line 812) | type ModulesArgs struct type ModulesResult (line 823) | type ModulesResult struct type PackageSymbolsArgs (line 827) | type PackageSymbolsArgs struct type PackageSymbolsResult (line 831) | type PackageSymbolsResult struct type PackageSymbol (line 840) | type PackageSymbol struct type ModifyTagsArgs (line 863) | type ModifyTagsArgs struct type LSPArgs (line 883) | type LSPArgs struct type MoveTypeArgs (line 889) | type MoveTypeArgs struct FILE: gopls/internal/protocol/command/interface_test.go function TestGenerated (line 17) | func TestGenerated(t *testing.T) { FILE: gopls/internal/protocol/command/util.go type Command (line 14) | type Command method String (line 16) | func (c Command) String() string { return string(c) } function MarshalArgs (line 24) | func MarshalArgs(args ...any) ([]json.RawMessage, error) { function MustMarshalArgs (line 37) | func MustMarshalArgs(args ...any) []json.RawMessage { function UnmarshalArgs (line 57) | func UnmarshalArgs(jsonArgs []json.RawMessage, args ...any) error { FILE: gopls/internal/protocol/context.go type contextKey (line 19) | type contextKey constant clientKey (line 22) | clientKey = contextKey(iota) function WithClient (line 25) | func WithClient(ctx context.Context, client Client) context.Context { function LogEvent (line 29) | func LogEvent(ctx context.Context, ev core.Event, lm label.Map, mt Messa... FILE: gopls/internal/protocol/edits.go function EditsFromDiffEdits (line 16) | func EditsFromDiffEdits(m *Mapper, edits []diff.Edit) ([]TextEdit, error) { function EditsToDiffEdits (line 39) | func EditsToDiffEdits(m *Mapper, edits []TextEdit) ([]diff.Edit, error) { function ApplyEdits (line 60) | func ApplyEdits(m *Mapper, edits []TextEdit) ([]byte, []diff.Edit, error) { function AsTextEdits (line 71) | func AsTextEdits(edits []Or_TextDocumentEdit_edits_Elem) []TextEdit { function AsAnnotatedTextEdits (line 90) | func AsAnnotatedTextEdits(edits []TextEdit) []Or_TextDocumentEdit_edits_... type fileHandle (line 107) | type fileHandle interface function NewWorkspaceEdit (line 115) | func NewWorkspaceEdit(changes ...DocumentChange) *WorkspaceEdit { function DocumentChangeEdit (line 121) | func DocumentChangeEdit(fh fileHandle, textedits []TextEdit) DocumentCha... function DocumentChangeCreate (line 134) | func DocumentChangeCreate(uri DocumentURI) DocumentChange { function DocumentChangeDelete (line 144) | func DocumentChangeDelete(uri DocumentURI) DocumentChange { function DocumentChangeRename (line 154) | func DocumentChangeRename(src, dst DocumentURI) DocumentChange { function SelectCompletionTextEdit (line 166) | func SelectCompletionTextEdit(item CompletionItem, useReplaceMode bool) ... FILE: gopls/internal/protocol/enums.go constant CodeActionUnknownTrigger (line 14) | CodeActionUnknownTrigger CodeActionTriggerKind = 0 function init (line 31) | func init() { function formatEnum (line 125) | func formatEnum(f fmt.State, i int, names []string, unknown string) { method Format (line 137) | func (e TextDocumentSyncKind) Format(f fmt.State, c rune) { method Format (line 141) | func (e MessageType) Format(f fmt.State, c rune) { method Format (line 145) | func (e FileChangeType) Format(f fmt.State, c rune) { method Format (line 149) | func (e CompletionTriggerKind) Format(f fmt.State, c rune) { method Format (line 153) | func (e DiagnosticSeverity) Format(f fmt.State, c rune) { method Format (line 157) | func (e DiagnosticTag) Format(f fmt.State, c rune) { method Format (line 161) | func (e CompletionItemKind) Format(f fmt.State, c rune) { method Format (line 165) | func (e InsertTextFormat) Format(f fmt.State, c rune) { method Format (line 169) | func (e DocumentHighlightKind) Format(f fmt.State, c rune) { method Format (line 173) | func (e SymbolKind) Format(f fmt.State, c rune) { method Format (line 177) | func (e TextDocumentSaveReason) Format(f fmt.State, c rune) { FILE: gopls/internal/protocol/form.go type FormFieldTypeString (line 17) | type FormFieldTypeString struct type FormFieldTypeDocumentURI (line 30) | type FormFieldTypeDocumentURI struct type FormFieldTypeBool (line 36) | type FormFieldTypeBool struct type FormFieldTypeNumber (line 45) | type FormFieldTypeNumber struct type FormEnumEntry (line 51) | type FormEnumEntry struct type FormFieldTypeEnum (line 67) | type FormFieldTypeEnum struct type FormFieldTypeLazyEnum (line 85) | type FormFieldTypeLazyEnum struct type FormFieldTypeList (line 104) | type FormFieldTypeList struct type FormField (line 114) | type FormField struct type InteractiveParams (line 149) | type InteractiveParams struct type InteractiveListEnumParams (line 174) | type InteractiveListEnumParams struct FILE: gopls/internal/protocol/generate/generate.go type newType (line 16) | type newType struct function generateDoc (line 25) | func generateDoc(out *bytes.Buffer, doc string) { function propStar (line 57) | func propStar(name string, t NameType, gotype string) (omitempty, indire... function goName (line 95) | func goName(s string) string { FILE: gopls/internal/protocol/generate/main.go constant vscodeRepo (line 27) | vscodeRepo = "https://github.com/microsoft/vscode-languageserver-node" function main (line 44) | func main() { function processinline (line 51) | func processinline() { function writeclient (line 149) | func writeclient() { function writeserver (line 193) | func writeserver() { function writeprotocol (line 237) | func writeprotocol() { function writejsons (line 270) | func writejsons() { function formatTo (line 295) | func formatTo(basename string, src []byte) { function fileHeader (line 310) | func fileHeader(model *Model) string { function parse (line 352) | func parse(fname string) *Model { method UnmarshalJSON (line 366) | func (t *Type) UnmarshalJSON(data []byte) error { function checkTables (line 424) | func checkTables() { FILE: gopls/internal/protocol/generate/main_test.go function TestAll (line 20) | func TestAll(t *testing.T) { function TestParseContents (line 31) | func TestParseContents(t *testing.T) { function flatten (line 84) | func flatten(x any) []string { FILE: gopls/internal/protocol/generate/output.go function generateOutput (line 32) | func generateOutput(model *Model) { function genDecl (line 53) | func genDecl(model *Model, method string, param, result *Type, dir strin... function genCase (line 110) | func genCase(model *Model, method string, param, result *Type, dir strin... function genFunc (line 186) | func genFunc(_ *Model, method string, param, result *Type, dir string, i... function genStructs (line 261) | func genStructs(model *Model) { function camelCase (line 316) | func camelCase(TitleCased string) string { function lspLink (line 320) | func lspLink(model *Model, fragment string) string { function genProps (line 328) | func genProps(out *bytes.Buffer, props []NameType, name string) { function genAliases (line 362) | func genAliases(model *Model) { function genGenTypes (line 378) | func genGenTypes() { function genConsts (line 421) | func genConsts(model *Model) { function genMarshal (line 454) | func genMarshal() { function linex (line 490) | func linex(n int) string { function goplsName (line 497) | func goplsName(t *Type) string { function notNil (line 507) | func notNil(t *Type) bool { // shutdwon is the special case that needs this function hasNilValue (line 511) | func hasNilValue(t string) bool { FILE: gopls/internal/protocol/generate/tables.go type prop (line 11) | type prop constant nothing (line 14) | nothing = iota constant wantOpt (line 15) | wantOpt constant wantOptStar (line 16) | wantOptStar type adjust (line 105) | type adjust struct function methodName (line 282) | func methodName(method string) string { FILE: gopls/internal/protocol/generate/typenames.go function findTypeNames (line 16) | func findTypeNames(model *Model) { function nameType (line 47) | func nameType(t *Type, path []string) string { function nameFromPath (line 176) | func nameFromPath(prefix string, path []string) string { FILE: gopls/internal/protocol/generate/types.go type Model (line 13) | type Model struct type Metadata (line 24) | type Metadata struct type Request (line 30) | type Request struct type Notification (line 46) | type Notification struct type Structure (line 59) | type Structure struct type Enumeration (line 71) | type Enumeration struct type TypeAlias (line 83) | type TypeAlias struct type NameValue (line 94) | type NameValue struct type Type (line 105) | type Type struct type ParseLiteral (line 116) | type ParseLiteral struct type NameType (line 121) | type NameType struct type Properties (line 133) | type Properties function addLineNumbers (line 136) | func addLineNumbers(buf []byte) []byte { type sortedMap (line 158) | type sortedMap method keys (line 160) | func (s sortedMap[T]) keys() []string { FILE: gopls/internal/protocol/json_test.go constant input (line 33) | input = `{"processId":46408,"clientInfo":{"name":"Visual Studio Code - I... type DiffReporter (line 35) | type DiffReporter struct method PushStep (line 40) | func (r *DiffReporter) PushStep(ps cmp.PathStep) { method Report (line 44) | func (r *DiffReporter) Report(rs cmp.Result) { method PopStep (line 51) | func (r *DiffReporter) PopStep() { method String (line 55) | func (r *DiffReporter) String() string { function TestStringChanges (line 59) | func TestStringChanges(t *testing.T) { function TestBoolChanges (line 70) | func TestBoolChanges(t *testing.T) { function TestNumberChanges (line 79) | func TestNumberChanges(t *testing.T) { function allDeltas (line 90) | func allDeltas(t *testing.T, v [][]int, repls ...string) { function tryChange (line 102) | func tryChange(start, end int, repl string) error { FILE: gopls/internal/protocol/log.go type loggingStream (line 18) | type loggingStream struct method Read (line 29) | func (s *loggingStream) Read(ctx context.Context) (jsonrpc2.Message, i... method Write (line 37) | func (s *loggingStream) Write(ctx context.Context, msg jsonrpc2.Messag... method Close (line 43) | func (s *loggingStream) Close() error { method logCommon (line 97) | func (s *loggingStream) logCommon(msg jsonrpc2.Message, isRead bool) { function LoggingStream (line 25) | func LoggingStream(str jsonrpc2.Stream, w io.Writer) jsonrpc2.Stream { type req (line 47) | type req struct type mapped (line 52) | type mapped struct method client (line 67) | func (m *mapped) client(id string) req { method server (line 75) | func (m *mapped) server(id string) req { method setClient (line 83) | func (m *mapped) setClient(id string, r req) { method setServer (line 89) | func (m *mapped) setServer(id string, r req) { constant eor (line 95) | eor = "\r\n\r\n\r\n" FILE: gopls/internal/protocol/mapper.go type Mapper (line 90) | type Mapper struct method initLines (line 111) | func (m *Mapper) initLines() { method LineCol8Position (line 128) | func (m *Mapper) LineCol8Position(line, col8 int) (Position, error) { method OffsetLocation (line 161) | func (m *Mapper) OffsetLocation(start, end int) (Location, error) { method OffsetRange (line 170) | func (m *Mapper) OffsetRange(start, end int) (Range, error) { method OffsetPosition (line 186) | func (m *Mapper) OffsetPosition(offset int) (Position, error) { method lineCol16 (line 198) | func (m *Mapper) lineCol16(offset int) (int, int) { method OffsetLineCol8 (line 213) | func (m *Mapper) OffsetLineCol8(offset int) (int, int) { method line (line 226) | func (m *Mapper) line(offset int) (int, int, bool) { method RangeOffsets (line 250) | func (m *Mapper) RangeOffsets(r Range) (int, int, error) { method PositionOffset (line 266) | func (m *Mapper) PositionOffset(p Position) (int, error) { method PosPosition (line 312) | func (m *Mapper) PosPosition(tf *token.File, pos token.Pos) (Position,... method PosLocation (line 321) | func (m *Mapper) PosLocation(tf *token.File, start, end token.Pos) (Lo... method PosRange (line 334) | func (m *Mapper) PosRange(tf *token.File, start, end token.Pos) (Range... method PosText (line 343) | func (m *Mapper) PosText(tf *token.File, start, end token.Pos) ([]byte... method NodeRange (line 352) | func (m *Mapper) NodeRange(tf *token.File, node ast.Node) (Range, erro... method NodeText (line 357) | func (m *Mapper) NodeText(tf *token.File, node ast.Node) ([]byte, erro... function NewMapper (line 106) | func NewMapper(uri DocumentURI, content []byte) *Mapper { function LocationTextDocumentPositionParams (line 362) | func LocationTextDocumentPositionParams(loc Location) TextDocumentPositi... FILE: gopls/internal/protocol/mapper_test.go function TestToUTF16 (line 229) | func TestToUTF16(t *testing.T) { function TestFromUTF16 (line 269) | func TestFromUTF16(t *testing.T) { function getPrePost (line 307) | func getPrePost(content []byte, offset int) (string, string) { type testCase (line 320) | type testCase struct method offset (line 327) | func (c testCase) offset() int { function TestLineChar (line 358) | func TestLineChar(t *testing.T) { function TestInvalidOffset (line 370) | func TestInvalidOffset(t *testing.T) { function TestPosition (line 381) | func TestPosition(t *testing.T) { function TestRange (line 397) | func TestRange(t *testing.T) { function TestBytesOffset (line 414) | func TestBytesOffset(t *testing.T) { FILE: gopls/internal/protocol/protocol.go type ClientCloser (line 26) | type ClientCloser interface type connSender (line 31) | type connSender interface type clientDispatcher (line 38) | type clientDispatcher struct method Close (line 42) | func (c *clientDispatcher) Close() error { function ClientDispatcher (line 48) | func ClientDispatcher(conn jsonrpc2.Conn) ClientCloser { type clientConn (line 52) | type clientConn struct method Close (line 56) | func (c clientConn) Close() error { method Notify (line 60) | func (c clientConn) Notify(ctx context.Context, method string, params ... method Call (line 64) | func (c clientConn) Call(ctx context.Context, method string, params an... function ClientDispatcherV2 (line 72) | func ClientDispatcherV2(conn *jsonrpc2_v2.Connection) ClientCloser { type clientConnV2 (line 76) | type clientConnV2 struct method Close (line 80) | func (c clientConnV2) Close() error { method Notify (line 84) | func (c clientConnV2) Notify(ctx context.Context, method string, param... method Call (line 88) | func (c clientConnV2) Call(ctx context.Context, method string, params ... function ServerDispatcher (line 100) | func ServerDispatcher(conn jsonrpc2.Conn) Server { function ServerDispatcherV2 (line 104) | func ServerDispatcherV2(conn *jsonrpc2_v2.Connection) Server { type serverDispatcher (line 108) | type serverDispatcher struct function ClientHandler (line 112) | func ClientHandler(client Client, handler jsonrpc2.Handler) jsonrpc2.Han... function ClientHandlerV2 (line 126) | func ClientHandlerV2(client Client) jsonrpc2_v2.Handler { function ServerHandler (line 152) | func ServerHandler(server Server, handler jsonrpc2.Handler) jsonrpc2.Han... function ServerHandlerV2 (line 166) | func ServerHandlerV2(server Server) jsonrpc2_v2.Handler { function req2to1 (line 192) | func req2to1(req2 *jsonrpc2_v2.Request) jsonrpc2.Request { function Handlers (line 217) | func Handlers(handler jsonrpc2.Handler) jsonrpc2.Handler { function CancelHandler (line 223) | func CancelHandler(handler jsonrpc2.Handler) jsonrpc2.Handler { function Call (line 258) | func Call(ctx context.Context, conn jsonrpc2.Conn, method string, params... function cancelCall (line 266) | func cancelCall(ctx context.Context, sender connSender, id jsonrpc2.ID) { function UnmarshalJSON (line 277) | func UnmarshalJSON(msg json.RawMessage, v any) error { function sendParseError (line 284) | func sendParseError(ctx context.Context, reply jsonrpc2.Replier, err err... function NonNilSlice (line 292) | func NonNilSlice[T comparable](x []T) []T { FILE: gopls/internal/protocol/semtok/semtok.go type Token (line 11) | type Token struct type Type (line 18) | type Type constant TokComment (line 24) | TokComment Type = "comment" constant TokFunction (line 25) | TokFunction Type = "function" constant TokKeyword (line 26) | TokKeyword Type = "keyword" constant TokLabel (line 27) | TokLabel Type = "label" constant TokMacro (line 28) | TokMacro Type = "macro" constant TokMethod (line 29) | TokMethod Type = "method" constant TokNamespace (line 30) | TokNamespace Type = "namespace" constant TokNumber (line 31) | TokNumber Type = "number" constant TokOperator (line 32) | TokOperator Type = "operator" constant TokParameter (line 33) | TokParameter Type = "parameter" constant TokProperty (line 34) | TokProperty Type = "property" constant TokString (line 35) | TokString Type = "string" constant TokType (line 36) | TokType Type = "type" constant TokTypeParam (line 37) | TokTypeParam Type = "typeParameter" constant TokVariable (line 38) | TokVariable Type = "variable" type Modifier (line 74) | type Modifier constant ModDefaultLibrary (line 82) | ModDefaultLibrary Modifier = "defaultLibrary" constant ModDefinition (line 83) | ModDefinition Modifier = "definition" constant ModReadonly (line 84) | ModReadonly Modifier = "readonly" constant ModStatic (line 85) | ModStatic Modifier = "static" constant ModArray (line 103) | ModArray Modifier = "array" constant ModBool (line 104) | ModBool Modifier = "bool" constant ModChan (line 105) | ModChan Modifier = "chan" constant ModFormat (line 106) | ModFormat Modifier = "format" constant ModInterface (line 107) | ModInterface Modifier = "interface" constant ModMap (line 108) | ModMap Modifier = "map" constant ModNumber (line 109) | ModNumber Modifier = "number" constant ModPointer (line 110) | ModPointer Modifier = "pointer" constant ModSignature (line 111) | ModSignature Modifier = "signature" constant ModSlice (line 112) | ModSlice Modifier = "slice" constant ModString (line 113) | ModString Modifier = "string" constant ModStruct (line 114) | ModStruct Modifier = "struct" function Encode (line 143) | func Encode( FILE: gopls/internal/protocol/span.go method Empty (line 13) | func (rng Range) Empty() bool { return rng.Start == rng.End } method Contains (line 17) | func (rng Range) Contains(pos Position) bool { method Empty (line 23) | func (loc Location) Empty() bool { return loc.Range.Empty() } function CompareLocation (line 27) | func CompareLocation(x, y Location) int { function CompareRange (line 42) | func CompareRange(a, b Range) int { function ComparePosition (line 50) | func ComparePosition(a, b Position) int { function Intersect (line 92) | func Intersect(x, y Range) bool { method Format (line 105) | func (r Range) Format(f fmt.State, _ rune) { method Format (line 113) | func (p Position) Format(f fmt.State, _ rune) { function UTF16Len (line 120) | func UTF16Len(s []byte) int { FILE: gopls/internal/protocol/tsclient.go type Client (line 21) | type Client interface function clientDispatch (line 66) | func clientDispatch(ctx context.Context, client Client, reply jsonrpc2.R... function ClientDispatchCall (line 79) | func ClientDispatchCall(ctx context.Context, client Client, method strin... method LogTrace (line 241) | func (s *clientDispatcher) LogTrace(ctx context.Context, params *LogTrac... method Progress (line 244) | func (s *clientDispatcher) Progress(ctx context.Context, params *Progres... method RegisterCapability (line 247) | func (s *clientDispatcher) RegisterCapability(ctx context.Context, param... method UnregisterCapability (line 250) | func (s *clientDispatcher) UnregisterCapability(ctx context.Context, par... method Event (line 253) | func (s *clientDispatcher) Event(ctx context.Context, params *any) error { method PublishDiagnostics (line 256) | func (s *clientDispatcher) PublishDiagnostics(ctx context.Context, param... method LogMessage (line 259) | func (s *clientDispatcher) LogMessage(ctx context.Context, params *LogMe... method ShowDocument (line 262) | func (s *clientDispatcher) ShowDocument(ctx context.Context, params *Sho... method ShowMessage (line 269) | func (s *clientDispatcher) ShowMessage(ctx context.Context, params *Show... method ShowMessageRequest (line 272) | func (s *clientDispatcher) ShowMessageRequest(ctx context.Context, param... method WorkDoneProgressCreate (line 279) | func (s *clientDispatcher) WorkDoneProgressCreate(ctx context.Context, p... method ApplyEdit (line 282) | func (s *clientDispatcher) ApplyEdit(ctx context.Context, params *ApplyW... method CodeLensRefresh (line 289) | func (s *clientDispatcher) CodeLensRefresh(ctx context.Context) error { method Configuration (line 292) | func (s *clientDispatcher) Configuration(ctx context.Context, params *Pa... method DiagnosticRefresh (line 299) | func (s *clientDispatcher) DiagnosticRefresh(ctx context.Context) error { method FoldingRangeRefresh (line 302) | func (s *clientDispatcher) FoldingRangeRefresh(ctx context.Context) error { method InlayHintRefresh (line 305) | func (s *clientDispatcher) InlayHintRefresh(ctx context.Context) error { method InlineValueRefresh (line 308) | func (s *clientDispatcher) InlineValueRefresh(ctx context.Context) error { method SemanticTokensRefresh (line 311) | func (s *clientDispatcher) SemanticTokensRefresh(ctx context.Context) er... method TextDocumentContentRefresh (line 314) | func (s *clientDispatcher) TextDocumentContentRefresh(ctx context.Contex... method WorkspaceFolders (line 317) | func (s *clientDispatcher) WorkspaceFolders(ctx context.Context) ([]Work... FILE: gopls/internal/protocol/tsdocument_changes.go type DocumentChange (line 17) | type DocumentChange struct method Valid (line 26) | func (ch DocumentChange) Valid() bool { method UnmarshalJSON (line 43) | func (d *DocumentChange) UnmarshalJSON(data []byte) error { method MarshalJSON (line 70) | func (d *DocumentChange) MarshalJSON() ([]byte, error) { FILE: gopls/internal/protocol/tsinsertreplaceedit.go method UnmarshalJSON (line 23) | func (e *InsertReplaceEdit) UnmarshalJSON(data []byte) error { FILE: gopls/internal/protocol/tsinsertreplaceedit_test.go function TestInsertReplaceEdit_UnmarshalJSON (line 14) | func TestInsertReplaceEdit_UnmarshalJSON(t *testing.T) { FILE: gopls/internal/protocol/tsjson.go type UnmarshalError (line 19) | type UnmarshalError struct method Error (line 23) | func (e UnmarshalError) Error() string { method MarshalJSON (line 26) | func (t OrPLocation_workspace_symbol) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 38) | func (t *OrPLocation_workspace_symbol) UnmarshalJSON(x []byte) error { method MarshalJSON (line 56) | func (t OrPSection_workspace_didChangeConfiguration) MarshalJSON() ([]by... method UnmarshalJSON (line 68) | func (t *OrPSection_workspace_didChangeConfiguration) UnmarshalJSON(x []... method MarshalJSON (line 86) | func (t OrPTooltipPLabel) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 98) | func (t *OrPTooltipPLabel) UnmarshalJSON(x []byte) error { method MarshalJSON (line 116) | func (t OrPTooltip_textDocument_inlayHint) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 128) | func (t *OrPTooltip_textDocument_inlayHint) UnmarshalJSON(x []byte) error { method MarshalJSON (line 146) | func (t Or_CancelParams_id) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 158) | func (t *Or_CancelParams_id) UnmarshalJSON(x []byte) error { method MarshalJSON (line 176) | func (t Or_ClientSemanticTokensRequestOptions_full) MarshalJSON() ([]byt... method UnmarshalJSON (line 188) | func (t *Or_ClientSemanticTokensRequestOptions_full) UnmarshalJSON(x []b... method MarshalJSON (line 206) | func (t Or_ClientSemanticTokensRequestOptions_range) MarshalJSON() ([]by... method UnmarshalJSON (line 218) | func (t *Or_ClientSemanticTokensRequestOptions_range) UnmarshalJSON(x []... method MarshalJSON (line 236) | func (t Or_CompletionItemDefaults_editRange) MarshalJSON() ([]byte, erro... method UnmarshalJSON (line 248) | func (t *Or_CompletionItemDefaults_editRange) UnmarshalJSON(x []byte) er... method MarshalJSON (line 266) | func (t Or_CompletionItem_documentation) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 278) | func (t *Or_CompletionItem_documentation) UnmarshalJSON(x []byte) error { method MarshalJSON (line 296) | func (t Or_CompletionItem_textEdit) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 308) | func (t *Or_CompletionItem_textEdit) UnmarshalJSON(x []byte) error { method MarshalJSON (line 326) | func (t Or_Definition) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 338) | func (t *Or_Definition) UnmarshalJSON(x []byte) error { method MarshalJSON (line 356) | func (t Or_Diagnostic_code) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 368) | func (t *Or_Diagnostic_code) UnmarshalJSON(x []byte) error { method MarshalJSON (line 386) | func (t Or_DocumentDiagnosticReport) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 398) | func (t *Or_DocumentDiagnosticReport) UnmarshalJSON(x []byte) error { method MarshalJSON (line 416) | func (t Or_DocumentDiagnosticReportPartialResult_relatedDocuments_Value)... method UnmarshalJSON (line 428) | func (t *Or_DocumentDiagnosticReportPartialResult_relatedDocuments_Value... method MarshalJSON (line 446) | func (t Or_DocumentFilter) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 458) | func (t *Or_DocumentFilter) UnmarshalJSON(x []byte) error { method MarshalJSON (line 476) | func (t Or_GlobPattern) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 488) | func (t *Or_GlobPattern) UnmarshalJSON(x []byte) error { method MarshalJSON (line 506) | func (t Or_Hover_contents) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 520) | func (t *Or_Hover_contents) UnmarshalJSON(x []byte) error { method MarshalJSON (line 543) | func (t Or_InlayHint_label) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 555) | func (t *Or_InlayHint_label) UnmarshalJSON(x []byte) error { method MarshalJSON (line 573) | func (t Or_InlineCompletionItem_insertText) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 585) | func (t *Or_InlineCompletionItem_insertText) UnmarshalJSON(x []byte) err... method MarshalJSON (line 603) | func (t Or_InlineValue) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 617) | func (t *Or_InlineValue) UnmarshalJSON(x []byte) error { method MarshalJSON (line 640) | func (t Or_MarkedString) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 652) | func (t *Or_MarkedString) UnmarshalJSON(x []byte) error { method MarshalJSON (line 670) | func (t Or_NotebookCellTextDocumentFilter_notebook) MarshalJSON() ([]byt... method UnmarshalJSON (line 682) | func (t *Or_NotebookCellTextDocumentFilter_notebook) UnmarshalJSON(x []b... method MarshalJSON (line 700) | func (t Or_NotebookDocumentFilter) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 714) | func (t *Or_NotebookDocumentFilter) UnmarshalJSON(x []byte) error { method MarshalJSON (line 737) | func (t Or_NotebookDocumentFilterWithCells_notebook) MarshalJSON() ([]by... method UnmarshalJSON (line 749) | func (t *Or_NotebookDocumentFilterWithCells_notebook) UnmarshalJSON(x []... method MarshalJSON (line 767) | func (t Or_NotebookDocumentFilterWithNotebook_notebook) MarshalJSON() ([... method UnmarshalJSON (line 779) | func (t *Or_NotebookDocumentFilterWithNotebook_notebook) UnmarshalJSON(x... method MarshalJSON (line 797) | func (t Or_NotebookDocumentSyncOptions_notebookSelector_Elem) MarshalJSO... method UnmarshalJSON (line 809) | func (t *Or_NotebookDocumentSyncOptions_notebookSelector_Elem) Unmarshal... method MarshalJSON (line 827) | func (t Or_RelatedFullDocumentDiagnosticReport_relatedDocuments_Value) M... method UnmarshalJSON (line 839) | func (t *Or_RelatedFullDocumentDiagnosticReport_relatedDocuments_Value) ... method MarshalJSON (line 857) | func (t Or_RelatedUnchangedDocumentDiagnosticReport_relatedDocuments_Val... method UnmarshalJSON (line 869) | func (t *Or_RelatedUnchangedDocumentDiagnosticReport_relatedDocuments_Va... method MarshalJSON (line 887) | func (t Or_Result_textDocument_codeAction_Item0_Elem) MarshalJSON() ([]b... method UnmarshalJSON (line 899) | func (t *Or_Result_textDocument_codeAction_Item0_Elem) UnmarshalJSON(x [... method MarshalJSON (line 917) | func (t Or_Result_textDocument_inlineCompletion) MarshalJSON() ([]byte, ... method UnmarshalJSON (line 929) | func (t *Or_Result_textDocument_inlineCompletion) UnmarshalJSON(x []byte... method MarshalJSON (line 947) | func (t Or_SemanticTokensOptions_full) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 959) | func (t *Or_SemanticTokensOptions_full) UnmarshalJSON(x []byte) error { method MarshalJSON (line 977) | func (t Or_SemanticTokensOptions_range) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 989) | func (t *Or_SemanticTokensOptions_range) UnmarshalJSON(x []byte) error { method MarshalJSON (line 1007) | func (t Or_ServerCapabilities_callHierarchyProvider) MarshalJSON() ([]by... method UnmarshalJSON (line 1021) | func (t *Or_ServerCapabilities_callHierarchyProvider) UnmarshalJSON(x []... method MarshalJSON (line 1044) | func (t Or_ServerCapabilities_codeActionProvider) MarshalJSON() ([]byte,... method UnmarshalJSON (line 1056) | func (t *Or_ServerCapabilities_codeActionProvider) UnmarshalJSON(x []byt... method MarshalJSON (line 1074) | func (t Or_ServerCapabilities_colorProvider) MarshalJSON() ([]byte, erro... method UnmarshalJSON (line 1088) | func (t *Or_ServerCapabilities_colorProvider) UnmarshalJSON(x []byte) er... method MarshalJSON (line 1111) | func (t Or_ServerCapabilities_declarationProvider) MarshalJSON() ([]byte... method UnmarshalJSON (line 1125) | func (t *Or_ServerCapabilities_declarationProvider) UnmarshalJSON(x []by... method MarshalJSON (line 1148) | func (t Or_ServerCapabilities_definitionProvider) MarshalJSON() ([]byte,... method UnmarshalJSON (line 1160) | func (t *Or_ServerCapabilities_definitionProvider) UnmarshalJSON(x []byt... method MarshalJSON (line 1178) | func (t Or_ServerCapabilities_diagnosticProvider) MarshalJSON() ([]byte,... method UnmarshalJSON (line 1190) | func (t *Or_ServerCapabilities_diagnosticProvider) UnmarshalJSON(x []byt... method MarshalJSON (line 1208) | func (t Or_ServerCapabilities_documentFormattingProvider) MarshalJSON() ... method UnmarshalJSON (line 1220) | func (t *Or_ServerCapabilities_documentFormattingProvider) UnmarshalJSON... method MarshalJSON (line 1238) | func (t Or_ServerCapabilities_documentHighlightProvider) MarshalJSON() (... method UnmarshalJSON (line 1250) | func (t *Or_ServerCapabilities_documentHighlightProvider) UnmarshalJSON(... method MarshalJSON (line 1268) | func (t Or_ServerCapabilities_documentRangeFormattingProvider) MarshalJS... method UnmarshalJSON (line 1280) | func (t *Or_ServerCapabilities_documentRangeFormattingProvider) Unmarsha... method MarshalJSON (line 1298) | func (t Or_ServerCapabilities_documentSymbolProvider) MarshalJSON() ([]b... method UnmarshalJSON (line 1310) | func (t *Or_ServerCapabilities_documentSymbolProvider) UnmarshalJSON(x [... method MarshalJSON (line 1328) | func (t Or_ServerCapabilities_foldingRangeProvider) MarshalJSON() ([]byt... method UnmarshalJSON (line 1342) | func (t *Or_ServerCapabilities_foldingRangeProvider) UnmarshalJSON(x []b... method MarshalJSON (line 1365) | func (t Or_ServerCapabilities_hoverProvider) MarshalJSON() ([]byte, erro... method UnmarshalJSON (line 1377) | func (t *Or_ServerCapabilities_hoverProvider) UnmarshalJSON(x []byte) er... method MarshalJSON (line 1395) | func (t Or_ServerCapabilities_implementationProvider) MarshalJSON() ([]b... method UnmarshalJSON (line 1409) | func (t *Or_ServerCapabilities_implementationProvider) UnmarshalJSON(x [... method MarshalJSON (line 1432) | func (t Or_ServerCapabilities_inlayHintProvider) MarshalJSON() ([]byte, ... method UnmarshalJSON (line 1446) | func (t *Or_ServerCapabilities_inlayHintProvider) UnmarshalJSON(x []byte... method MarshalJSON (line 1469) | func (t Or_ServerCapabilities_inlineCompletionProvider) MarshalJSON() ([... method UnmarshalJSON (line 1481) | func (t *Or_ServerCapabilities_inlineCompletionProvider) UnmarshalJSON(x... method MarshalJSON (line 1499) | func (t Or_ServerCapabilities_inlineValueProvider) MarshalJSON() ([]byte... method UnmarshalJSON (line 1513) | func (t *Or_ServerCapabilities_inlineValueProvider) UnmarshalJSON(x []by... method MarshalJSON (line 1536) | func (t Or_ServerCapabilities_linkedEditingRangeProvider) MarshalJSON() ... method UnmarshalJSON (line 1550) | func (t *Or_ServerCapabilities_linkedEditingRangeProvider) UnmarshalJSON... method MarshalJSON (line 1573) | func (t Or_ServerCapabilities_monikerProvider) MarshalJSON() ([]byte, er... method UnmarshalJSON (line 1587) | func (t *Or_ServerCapabilities_monikerProvider) UnmarshalJSON(x []byte) ... method MarshalJSON (line 1610) | func (t Or_ServerCapabilities_notebookDocumentSync) MarshalJSON() ([]byt... method UnmarshalJSON (line 1622) | func (t *Or_ServerCapabilities_notebookDocumentSync) UnmarshalJSON(x []b... method MarshalJSON (line 1640) | func (t Or_ServerCapabilities_referencesProvider) MarshalJSON() ([]byte,... method UnmarshalJSON (line 1652) | func (t *Or_ServerCapabilities_referencesProvider) UnmarshalJSON(x []byt... method MarshalJSON (line 1670) | func (t Or_ServerCapabilities_renameProvider) MarshalJSON() ([]byte, err... method UnmarshalJSON (line 1682) | func (t *Or_ServerCapabilities_renameProvider) UnmarshalJSON(x []byte) e... method MarshalJSON (line 1700) | func (t Or_ServerCapabilities_selectionRangeProvider) MarshalJSON() ([]b... method UnmarshalJSON (line 1714) | func (t *Or_ServerCapabilities_selectionRangeProvider) UnmarshalJSON(x [... method MarshalJSON (line 1737) | func (t Or_ServerCapabilities_semanticTokensProvider) MarshalJSON() ([]b... method UnmarshalJSON (line 1749) | func (t *Or_ServerCapabilities_semanticTokensProvider) UnmarshalJSON(x [... method MarshalJSON (line 1767) | func (t Or_ServerCapabilities_textDocumentSync) MarshalJSON() ([]byte, e... method UnmarshalJSON (line 1779) | func (t *Or_ServerCapabilities_textDocumentSync) UnmarshalJSON(x []byte)... method MarshalJSON (line 1797) | func (t Or_ServerCapabilities_typeDefinitionProvider) MarshalJSON() ([]b... method UnmarshalJSON (line 1811) | func (t *Or_ServerCapabilities_typeDefinitionProvider) UnmarshalJSON(x [... method MarshalJSON (line 1834) | func (t Or_ServerCapabilities_typeHierarchyProvider) MarshalJSON() ([]by... method UnmarshalJSON (line 1848) | func (t *Or_ServerCapabilities_typeHierarchyProvider) UnmarshalJSON(x []... method MarshalJSON (line 1871) | func (t Or_ServerCapabilities_workspaceSymbolProvider) MarshalJSON() ([]... method UnmarshalJSON (line 1883) | func (t *Or_ServerCapabilities_workspaceSymbolProvider) UnmarshalJSON(x ... method MarshalJSON (line 1901) | func (t Or_SignatureInformation_documentation) MarshalJSON() ([]byte, er... method UnmarshalJSON (line 1913) | func (t *Or_SignatureInformation_documentation) UnmarshalJSON(x []byte) ... method MarshalJSON (line 1931) | func (t Or_TextDocumentEdit_edits_Elem) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 1945) | func (t *Or_TextDocumentEdit_edits_Elem) UnmarshalJSON(x []byte) error { method MarshalJSON (line 1968) | func (t Or_TextDocumentFilter) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 1982) | func (t *Or_TextDocumentFilter) UnmarshalJSON(x []byte) error { method MarshalJSON (line 2005) | func (t Or_TextDocumentSyncOptions_save) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 2017) | func (t *Or_TextDocumentSyncOptions_save) UnmarshalJSON(x []byte) error { method MarshalJSON (line 2035) | func (t Or_WorkspaceDocumentDiagnosticReport) MarshalJSON() ([]byte, err... method UnmarshalJSON (line 2047) | func (t *Or_WorkspaceDocumentDiagnosticReport) UnmarshalJSON(x []byte) e... method MarshalJSON (line 2065) | func (t Or_WorkspaceEdit_documentChanges_Elem) MarshalJSON() ([]byte, er... method UnmarshalJSON (line 2081) | func (t *Or_WorkspaceEdit_documentChanges_Elem) UnmarshalJSON(x []byte) ... method MarshalJSON (line 2109) | func (t Or_WorkspaceOptions_textDocumentContent) MarshalJSON() ([]byte, ... method UnmarshalJSON (line 2121) | func (t *Or_WorkspaceOptions_textDocumentContent) UnmarshalJSON(x []byte... method MarshalJSON (line 2139) | func (t Or_textDocument_declaration) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 2151) | func (t *Or_textDocument_declaration) UnmarshalJSON(x []byte) error { FILE: gopls/internal/protocol/tsprotocol.go type AnnotatedTextEdit (line 20) | type AnnotatedTextEdit struct type ApplyKind (line 30) | type ApplyKind type ApplyWorkspaceEditParams (line 35) | type ApplyWorkspaceEditParams struct type ApplyWorkspaceEditResult (line 54) | type ApplyWorkspaceEditResult struct type BaseSymbolInformation (line 70) | type BaseSymbolInformation struct type CallHierarchyClientCapabilities (line 89) | type CallHierarchyClientCapabilities struct type CallHierarchyIncomingCall (line 101) | type CallHierarchyIncomingCall struct type CallHierarchyIncomingCallsParams (line 114) | type CallHierarchyIncomingCallsParams struct type CallHierarchyItem (line 126) | type CallHierarchyItem struct type CallHierarchyOptions (line 152) | type CallHierarchyOptions struct type CallHierarchyOutgoingCall (line 161) | type CallHierarchyOutgoingCall struct type CallHierarchyOutgoingCallsParams (line 175) | type CallHierarchyOutgoingCallsParams struct type CallHierarchyPrepareParams (line 186) | type CallHierarchyPrepareParams struct type CallHierarchyRegistrationOptions (line 196) | type CallHierarchyRegistrationOptions struct type CancelParams (line 203) | type CancelParams struct type ChangeAnnotation (line 213) | type ChangeAnnotation struct type ChangeAnnotationsSupportOptions (line 232) | type ChangeAnnotationsSupportOptions struct type ClientCapabilities (line 242) | type ClientCapabilities struct type ClientCodeActionKindOptions (line 264) | type ClientCodeActionKindOptions struct type ClientCodeActionLiteralOptions (line 275) | type ClientCodeActionLiteralOptions struct type ClientCodeActionResolveOptions (line 284) | type ClientCodeActionResolveOptions struct type ClientCodeLensResolveOptions (line 292) | type ClientCodeLensResolveOptions struct type ClientCompletionItemInsertTextModeOptions (line 300) | type ClientCompletionItemInsertTextModeOptions struct type ClientCompletionItemOptions (line 307) | type ClientCompletionItemOptions struct type ClientCompletionItemOptionsKind (line 358) | type ClientCompletionItemOptionsKind struct type ClientCompletionItemResolveOptions (line 373) | type ClientCompletionItemResolveOptions struct type ClientDiagnosticsTagOptions (line 381) | type ClientDiagnosticsTagOptions struct type ClientFoldingRangeKindOptions (line 389) | type ClientFoldingRangeKindOptions struct type ClientFoldingRangeOptions (line 400) | type ClientFoldingRangeOptions struct type ClientInfo (line 414) | type ClientInfo struct type ClientInlayHintResolveOptions (line 424) | type ClientInlayHintResolveOptions struct type ClientSemanticTokensRequestFullDelta (line 432) | type ClientSemanticTokensRequestFullDelta struct type ClientSemanticTokensRequestOptions (line 441) | type ClientSemanticTokensRequestOptions struct type ClientShowMessageActionItemOptions (line 453) | type ClientShowMessageActionItemOptions struct type ClientSignatureInformationOptions (line 463) | type ClientSignatureInformationOptions struct type ClientSignatureParameterInformationOptions (line 486) | type ClientSignatureParameterInformationOptions struct type ClientSymbolKindOptions (line 497) | type ClientSymbolKindOptions struct type ClientSymbolResolveOptions (line 512) | type ClientSymbolResolveOptions struct type ClientSymbolTagOptions (line 521) | type ClientSymbolTagOptions struct type CodeAction (line 532) | type CodeAction struct type CodeActionClientCapabilities (line 585) | type CodeActionClientCapabilities struct type CodeActionContext (line 638) | type CodeActionContext struct type CodeActionDisabled (line 661) | type CodeActionDisabled struct type CodeActionKind (line 669) | type CodeActionKind type CodeActionKindDocumentation (line 677) | type CodeActionKindDocumentation struct type CodeActionOptions (line 693) | type CodeActionOptions struct type CodeActionParams (line 728) | type CodeActionParams struct type CodeActionRegistrationOptions (line 742) | type CodeActionRegistrationOptions struct type CodeActionTag (line 750) | type CodeActionTag type CodeActionTagOptions (line 755) | type CodeActionTagOptions struct type CodeActionTriggerKind (line 763) | type CodeActionTriggerKind type CodeDescription (line 770) | type CodeDescription struct type CodeLens (line 782) | type CodeLens struct type CodeLensClientCapabilities (line 795) | type CodeLensClientCapabilities struct type CodeLensOptions (line 808) | type CodeLensOptions struct type CodeLensParams (line 817) | type CodeLensParams struct type CodeLensRegistrationOptions (line 827) | type CodeLensRegistrationOptions struct type CodeLensWorkspaceClientCapabilities (line 835) | type CodeLensWorkspaceClientCapabilities struct type Color (line 849) | type Color struct type ColorInformation (line 863) | type ColorInformation struct type ColorPresentation (line 871) | type ColorPresentation struct type ColorPresentationParams (line 888) | type ColorPresentationParams struct type Command (line 905) | type Command struct type CompletionClientCapabilities (line 923) | type CompletionClientCapabilities struct type CompletionContext (line 949) | type CompletionContext struct type CompletionItem (line 961) | type CompletionItem struct type CompletionItemApplyKinds (line 1100) | type CompletionItemApplyKinds struct type CompletionItemDefaults (line 1160) | type CompletionItemDefaults struct type CompletionItemKind (line 1184) | type CompletionItemKind type CompletionItemLabelDetails (line 1191) | type CompletionItemLabelDetails struct type CompletionItemTag (line 1204) | type CompletionItemTag type CompletionItemTagOptions (line 1209) | type CompletionItemTagOptions struct type CompletionList (line 1218) | type CompletionList struct type CompletionListCapabilities (line 1268) | type CompletionListCapabilities struct type CompletionOptions (line 1295) | type CompletionOptions struct type CompletionParams (line 1328) | type CompletionParams struct type CompletionRegistrationOptions (line 1340) | type CompletionRegistrationOptions struct type CompletionTriggerKind (line 1346) | type CompletionTriggerKind type ConfigurationItem (line 1349) | type ConfigurationItem struct type ConfigurationParams (line 1359) | type ConfigurationParams struct type CreateFile (line 1366) | type CreateFile struct type CreateFileOptions (line 1379) | type CreateFileOptions struct type CreateFilesParams (line 1392) | type CreateFilesParams struct type DeclarationClientCapabilities (line 1404) | type DeclarationClientCapabilities struct type DeclarationOptions (line 1424) | type DeclarationOptions struct type DeclarationParams (line 1429) | type DeclarationParams struct type DeclarationRegistrationOptions (line 1436) | type DeclarationRegistrationOptions struct type DefinitionClientCapabilities (line 1454) | type DefinitionClientCapabilities struct type DefinitionOptions (line 1473) | type DefinitionOptions struct type DefinitionParams (line 1480) | type DefinitionParams struct type DefinitionRegistrationOptions (line 1489) | type DefinitionRegistrationOptions struct type DeleteFile (line 1497) | type DeleteFile struct type DeleteFileOptions (line 1510) | type DeleteFileOptions struct type DeleteFilesParams (line 1523) | type DeleteFilesParams struct type Diagnostic (line 1532) | type Diagnostic struct type DiagnosticClientCapabilities (line 1571) | type DiagnosticClientCapabilities struct type DiagnosticOptions (line 1586) | type DiagnosticOptions struct type DiagnosticRegistrationOptions (line 1605) | type DiagnosticRegistrationOptions struct type DiagnosticRelatedInformation (line 1616) | type DiagnosticRelatedInformation struct type DiagnosticServerCancellationData (line 1628) | type DiagnosticServerCancellationData struct type DiagnosticSeverity (line 1633) | type DiagnosticSeverity type DiagnosticTag (line 1638) | type DiagnosticTag type DiagnosticWorkspaceClientCapabilities (line 1645) | type DiagnosticWorkspaceClientCapabilities struct type DiagnosticsCapabilities (line 1659) | type DiagnosticsCapabilities struct type DidChangeConfigurationClientCapabilities (line 1680) | type DidChangeConfigurationClientCapabilities struct type DidChangeConfigurationParams (line 1688) | type DidChangeConfigurationParams struct type DidChangeConfigurationRegistrationOptions (line 1694) | type DidChangeConfigurationRegistrationOptions struct type DidChangeNotebookDocumentParams (line 1703) | type DidChangeNotebookDocumentParams struct type DidChangeTextDocumentParams (line 1729) | type DidChangeTextDocumentParams struct type DidChangeWatchedFilesClientCapabilities (line 1750) | type DidChangeWatchedFilesClientCapabilities struct type DidChangeWatchedFilesParams (line 1765) | type DidChangeWatchedFilesParams struct type DidChangeWatchedFilesRegistrationOptions (line 1773) | type DidChangeWatchedFilesRegistrationOptions struct type DidChangeWorkspaceFoldersParams (line 1781) | type DidChangeWorkspaceFoldersParams struct type DidCloseNotebookDocumentParams (line 1791) | type DidCloseNotebookDocumentParams struct type DidCloseTextDocumentParams (line 1802) | type DidCloseTextDocumentParams struct type DidOpenNotebookDocumentParams (line 1812) | type DidOpenNotebookDocumentParams struct type DidOpenTextDocumentParams (line 1823) | type DidOpenTextDocumentParams struct type DidSaveNotebookDocumentParams (line 1833) | type DidSaveNotebookDocumentParams struct type DidSaveTextDocumentParams (line 1841) | type DidSaveTextDocumentParams struct type DocumentColorClientCapabilities (line 1850) | type DocumentColorClientCapabilities struct type DocumentColorOptions (line 1858) | type DocumentColorOptions struct type DocumentColorParams (line 1865) | type DocumentColorParams struct type DocumentColorRegistrationOptions (line 1873) | type DocumentColorRegistrationOptions struct type DocumentDiagnosticParams (line 1884) | type DocumentDiagnosticParams struct type DocumentDiagnosticReportKind (line 1908) | type DocumentDiagnosticReportKind type DocumentDiagnosticReportPartialResult (line 1915) | type DocumentDiagnosticReportPartialResult struct type DocumentFormattingClientCapabilities (line 1929) | type DocumentFormattingClientCapabilities struct type DocumentFormattingOptions (line 1937) | type DocumentFormattingOptions struct type DocumentFormattingParams (line 1944) | type DocumentFormattingParams struct type DocumentFormattingRegistrationOptions (line 1955) | type DocumentFormattingRegistrationOptions struct type DocumentHighlight (line 1965) | type DocumentHighlight struct type DocumentHighlightClientCapabilities (line 1975) | type DocumentHighlightClientCapabilities struct type DocumentHighlightKind (line 1981) | type DocumentHighlightKind type DocumentHighlightOptions (line 1986) | type DocumentHighlightOptions struct type DocumentHighlightParams (line 1993) | type DocumentHighlightParams struct type DocumentHighlightRegistrationOptions (line 2002) | type DocumentHighlightRegistrationOptions struct type DocumentLink (line 2011) | type DocumentLink struct type DocumentLinkClientCapabilities (line 2032) | type DocumentLinkClientCapabilities struct type DocumentLinkOptions (line 2044) | type DocumentLinkOptions struct type DocumentLinkParams (line 2053) | type DocumentLinkParams struct type DocumentLinkRegistrationOptions (line 2063) | type DocumentLinkRegistrationOptions struct type DocumentOnTypeFormattingClientCapabilities (line 2071) | type DocumentOnTypeFormattingClientCapabilities struct type DocumentOnTypeFormattingOptions (line 2079) | type DocumentOnTypeFormattingOptions struct type DocumentOnTypeFormattingParams (line 2089) | type DocumentOnTypeFormattingParams struct type DocumentOnTypeFormattingRegistrationOptions (line 2108) | type DocumentOnTypeFormattingRegistrationOptions struct type DocumentRangeFormattingClientCapabilities (line 2116) | type DocumentRangeFormattingClientCapabilities struct type DocumentRangeFormattingOptions (line 2129) | type DocumentRangeFormattingOptions struct type DocumentRangeFormattingParams (line 2141) | type DocumentRangeFormattingParams struct type DocumentRangeFormattingRegistrationOptions (line 2154) | type DocumentRangeFormattingRegistrationOptions struct type DocumentRangesFormattingParams (line 2165) | type DocumentRangesFormattingParams struct type DocumentSymbol (line 2189) | type DocumentSymbol struct type DocumentSymbolClientCapabilities (line 2219) | type DocumentSymbolClientCapabilities struct type DocumentSymbolOptions (line 2243) | type DocumentSymbolOptions struct type DocumentSymbolParams (line 2255) | type DocumentSymbolParams struct type DocumentSymbolRegistrationOptions (line 2265) | type DocumentSymbolRegistrationOptions struct type EditRangeWithInsertReplace (line 2275) | type EditRangeWithInsertReplace struct type ErrorCodes (line 2281) | type ErrorCodes type ExecuteCommandClientCapabilities (line 2286) | type ExecuteCommandClientCapabilities struct type ExecuteCommandOptions (line 2294) | type ExecuteCommandOptions struct type ExecuteCommandParams (line 2303) | type ExecuteCommandParams struct type ExecuteCommandRegistrationOptions (line 2319) | type ExecuteCommandRegistrationOptions struct type ExecutionSummary (line 2324) | type ExecutionSummary struct type FailureHandlingKind (line 2333) | type FailureHandlingKind type FileChangeType (line 2336) | type FileChangeType type FileCreate (line 2343) | type FileCreate struct type FileDelete (line 2353) | type FileDelete struct type FileEvent (line 2361) | type FileEvent struct type FileOperationClientCapabilities (line 2376) | type FileOperationClientCapabilities struct type FileOperationFilter (line 2399) | type FileOperationFilter struct type FileOperationOptions (line 2411) | type FileOperationOptions struct type FileOperationPattern (line 2432) | type FileOperationPattern struct type FileOperationPatternKind (line 2454) | type FileOperationPatternKind type FileOperationPatternOptions (line 2461) | type FileOperationPatternOptions struct type FileOperationRegistrationOptions (line 2471) | type FileOperationRegistrationOptions struct type FileRename (line 2481) | type FileRename struct type FileSystemWatcher (line 2489) | type FileSystemWatcher struct type FoldingRange (line 2504) | type FoldingRange struct type FoldingRangeClientCapabilities (line 2528) | type FoldingRangeClientCapabilities struct type FoldingRangeKind (line 2553) | type FoldingRangeKind type FoldingRangeOptions (line 2556) | type FoldingRangeOptions struct type FoldingRangeParams (line 2563) | type FoldingRangeParams struct type FoldingRangeRegistrationOptions (line 2571) | type FoldingRangeRegistrationOptions struct type FoldingRangeWorkspaceClientCapabilities (line 2583) | type FoldingRangeWorkspaceClientCapabilities struct type FormattingOptions (line 2600) | type FormattingOptions struct type FullDocumentDiagnosticReport (line 2624) | type FullDocumentDiagnosticReport struct type GeneralClientCapabilities (line 2640) | type GeneralClientCapabilities struct type Hover (line 2686) | type Hover struct type HoverClientCapabilities (line 2695) | type HoverClientCapabilities struct type HoverOptions (line 2706) | type HoverOptions struct type HoverParams (line 2713) | type HoverParams struct type HoverRegistrationOptions (line 2721) | type HoverRegistrationOptions struct type ImplementationClientCapabilities (line 2729) | type ImplementationClientCapabilities struct type ImplementationOptions (line 2741) | type ImplementationOptions struct type ImplementationParams (line 2746) | type ImplementationParams struct type ImplementationRegistrationOptions (line 2753) | type ImplementationRegistrationOptions struct type InitializeError (line 2763) | type InitializeError struct type InitializeParams (line 2772) | type InitializeParams struct type InitializeResult (line 2780) | type InitializeResult struct type InitializedParams (line 2790) | type InitializedParams struct type InlayHint (line 2798) | type InlayHint struct type InlayHintClientCapabilities (line 2842) | type InlayHintClientCapabilities struct type InlayHintKind (line 2853) | type InlayHintKind type InlayHintLabelPart (line 2861) | type InlayHintLabelPart struct type InlayHintOptions (line 2892) | type InlayHintOptions struct type InlayHintParams (line 2904) | type InlayHintParams struct type InlayHintRegistrationOptions (line 2917) | type InlayHintRegistrationOptions struct type InlayHintWorkspaceClientCapabilities (line 2928) | type InlayHintWorkspaceClientCapabilities struct type InlineCompletionClientCapabilities (line 2945) | type InlineCompletionClientCapabilities struct type InlineCompletionContext (line 2956) | type InlineCompletionContext struct type InlineCompletionItem (line 2969) | type InlineCompletionItem struct type InlineCompletionList (line 2986) | type InlineCompletionList struct type InlineCompletionOptions (line 2997) | type InlineCompletionOptions struct type InlineCompletionParams (line 3007) | type InlineCompletionParams struct type InlineCompletionRegistrationOptions (line 3021) | type InlineCompletionRegistrationOptions struct type InlineCompletionTriggerKind (line 3031) | type InlineCompletionTriggerKind type InlineValueClientCapabilities (line 3050) | type InlineValueClientCapabilities struct type InlineValueContext (line 3058) | type InlineValueContext struct type InlineValueEvaluatableExpression (line 3073) | type InlineValueEvaluatableExpression struct type InlineValueOptions (line 3086) | type InlineValueOptions struct type InlineValueParams (line 3095) | type InlineValueParams struct type InlineValueRegistrationOptions (line 3111) | type InlineValueRegistrationOptions struct type InlineValueText (line 3122) | type InlineValueText struct type InlineValueVariableLookup (line 3136) | type InlineValueVariableLookup struct type InlineValueWorkspaceClientCapabilities (line 3151) | type InlineValueWorkspaceClientCapabilities struct type InsertReplaceEdit (line 3167) | type InsertReplaceEdit struct type InsertTextFormat (line 3178) | type InsertTextFormat type InsertTextMode (line 3184) | type InsertTextMode type LSPErrorCodes (line 3192) | type LSPErrorCodes type LanguageKind (line 3201) | type LanguageKind type LinkedEditingRangeClientCapabilities (line 3208) | type LinkedEditingRangeClientCapabilities struct type LinkedEditingRangeOptions (line 3216) | type LinkedEditingRangeOptions struct type LinkedEditingRangeParams (line 3221) | type LinkedEditingRangeParams struct type LinkedEditingRangeRegistrationOptions (line 3227) | type LinkedEditingRangeRegistrationOptions struct type LinkedEditingRanges (line 3238) | type LinkedEditingRanges struct type Lit_ClientSemanticTokensRequestOptions_range_Item1 (line 3249) | type Lit_ClientSemanticTokensRequestOptions_range_Item1 struct type Location (line 3256) | type Location struct type LocationLink (line 3265) | type LocationLink struct type LocationUriOnly (line 3287) | type LocationUriOnly struct type LogMessageParams (line 3294) | type LogMessageParams struct type LogTraceParams (line 3302) | type LogTraceParams struct type MarkdownClientCapabilities (line 3312) | type MarkdownClientCapabilities struct type MarkedStringWithLanguage (line 3343) | type MarkedStringWithLanguage struct type MarkupContent (line 3374) | type MarkupContent struct type MarkupKind (line 3386) | type MarkupKind type MessageActionItem (line 3389) | type MessageActionItem struct type MessageType (line 3395) | type MessageType type Moniker (line 3402) | type Moniker struct type MonikerClientCapabilities (line 3419) | type MonikerClientCapabilities struct type MonikerKind (line 3429) | type MonikerKind type MonikerOptions (line 3432) | type MonikerOptions struct type MonikerParams (line 3437) | type MonikerParams struct type MonikerRegistrationOptions (line 3444) | type MonikerRegistrationOptions struct type NotebookCell (line 3458) | type NotebookCell struct type NotebookCellArrayChange (line 3479) | type NotebookCellArrayChange struct type NotebookCellKind (line 3491) | type NotebookCellKind type NotebookCellLanguage (line 3496) | type NotebookCellLanguage struct type NotebookCellTextDocumentFilter (line 3506) | type NotebookCellTextDocumentFilter struct type NotebookDocument (line 3524) | type NotebookDocument struct type NotebookDocumentCellChangeStructure (line 3546) | type NotebookDocumentCellChangeStructure struct type NotebookDocumentCellChanges (line 3560) | type NotebookDocumentCellChanges struct type NotebookDocumentCellContentChanges (line 3576) | type NotebookDocumentCellContentChanges struct type NotebookDocumentChangeEvent (line 3586) | type NotebookDocumentChangeEvent struct type NotebookDocumentClientCapabilities (line 3600) | type NotebookDocumentClientCapabilities struct type NotebookDocumentFilterNotebookType (line 3620) | type NotebookDocumentFilterNotebookType struct type NotebookDocumentFilterPattern (line 3634) | type NotebookDocumentFilterPattern struct type NotebookDocumentFilterScheme (line 3648) | type NotebookDocumentFilterScheme struct type NotebookDocumentFilterWithCells (line 3660) | type NotebookDocumentFilterWithCells struct type NotebookDocumentFilterWithNotebook (line 3672) | type NotebookDocumentFilterWithNotebook struct type NotebookDocumentIdentifier (line 3686) | type NotebookDocumentIdentifier struct type NotebookDocumentSyncClientCapabilities (line 3696) | type NotebookDocumentSyncClientCapabilities struct type NotebookDocumentSyncOptions (line 3721) | type NotebookDocumentSyncOptions struct type NotebookDocumentSyncRegistrationOptions (line 3734) | type NotebookDocumentSyncRegistrationOptions struct type OptionalVersionedTextDocumentIdentifier (line 3742) | type OptionalVersionedTextDocumentIdentifier struct type OrPLocation_workspace_symbol (line 3753) | type OrPLocation_workspace_symbol struct type OrPSection_workspace_didChangeConfiguration (line 3758) | type OrPSection_workspace_didChangeConfiguration struct type OrPTooltipPLabel (line 3763) | type OrPTooltipPLabel struct type OrPTooltip_textDocument_inlayHint (line 3768) | type OrPTooltip_textDocument_inlayHint struct type Or_CancelParams_id (line 3773) | type Or_CancelParams_id struct type Or_ClientSemanticTokensRequestOptions_full (line 3778) | type Or_ClientSemanticTokensRequestOptions_full struct type Or_ClientSemanticTokensRequestOptions_range (line 3783) | type Or_ClientSemanticTokensRequestOptions_range struct type Or_CompletionItemDefaults_editRange (line 3788) | type Or_CompletionItemDefaults_editRange struct type Or_CompletionItem_documentation (line 3793) | type Or_CompletionItem_documentation struct type Or_CompletionItem_textEdit (line 3798) | type Or_CompletionItem_textEdit struct type Or_Definition (line 3803) | type Or_Definition struct type Or_Diagnostic_code (line 3808) | type Or_Diagnostic_code struct type Or_DocumentDiagnosticReport (line 3813) | type Or_DocumentDiagnosticReport struct type Or_DocumentDiagnosticReportPartialResult_relatedDocuments_Value (line 3818) | type Or_DocumentDiagnosticReportPartialResult_relatedDocuments_Value struct type Or_DocumentFilter (line 3823) | type Or_DocumentFilter struct type Or_GlobPattern (line 3828) | type Or_GlobPattern struct type Or_Hover_contents (line 3833) | type Or_Hover_contents struct type Or_InlayHint_label (line 3838) | type Or_InlayHint_label struct type Or_InlineCompletionItem_insertText (line 3843) | type Or_InlineCompletionItem_insertText struct type Or_InlineValue (line 3848) | type Or_InlineValue struct type Or_MarkedString (line 3853) | type Or_MarkedString struct type Or_NotebookCellTextDocumentFilter_notebook (line 3858) | type Or_NotebookCellTextDocumentFilter_notebook struct type Or_NotebookDocumentFilter (line 3863) | type Or_NotebookDocumentFilter struct type Or_NotebookDocumentFilterWithCells_notebook (line 3868) | type Or_NotebookDocumentFilterWithCells_notebook struct type Or_NotebookDocumentFilterWithNotebook_notebook (line 3873) | type Or_NotebookDocumentFilterWithNotebook_notebook struct type Or_NotebookDocumentSyncOptions_notebookSelector_Elem (line 3878) | type Or_NotebookDocumentSyncOptions_notebookSelector_Elem struct type Or_RelatedFullDocumentDiagnosticReport_relatedDocuments_Value (line 3883) | type Or_RelatedFullDocumentDiagnosticReport_relatedDocuments_Value struct type Or_RelatedUnchangedDocumentDiagnosticReport_relatedDocuments_Value (line 3888) | type Or_RelatedUnchangedDocumentDiagnosticReport_relatedDocuments_Value ... type Or_Result_textDocument_codeAction_Item0_Elem (line 3893) | type Or_Result_textDocument_codeAction_Item0_Elem struct type Or_Result_textDocument_inlineCompletion (line 3898) | type Or_Result_textDocument_inlineCompletion struct type Or_SemanticTokensOptions_full (line 3903) | type Or_SemanticTokensOptions_full struct type Or_SemanticTokensOptions_range (line 3908) | type Or_SemanticTokensOptions_range struct type Or_ServerCapabilities_callHierarchyProvider (line 3913) | type Or_ServerCapabilities_callHierarchyProvider struct type Or_ServerCapabilities_codeActionProvider (line 3918) | type Or_ServerCapabilities_codeActionProvider struct type Or_ServerCapabilities_colorProvider (line 3923) | type Or_ServerCapabilities_colorProvider struct type Or_ServerCapabilities_declarationProvider (line 3928) | type Or_ServerCapabilities_declarationProvider struct type Or_ServerCapabilities_definitionProvider (line 3933) | type Or_ServerCapabilities_definitionProvider struct type Or_ServerCapabilities_diagnosticProvider (line 3938) | type Or_ServerCapabilities_diagnosticProvider struct type Or_ServerCapabilities_documentFormattingProvider (line 3943) | type Or_ServerCapabilities_documentFormattingProvider struct type Or_ServerCapabilities_documentHighlightProvider (line 3948) | type Or_ServerCapabilities_documentHighlightProvider struct type Or_ServerCapabilities_documentRangeFormattingProvider (line 3953) | type Or_ServerCapabilities_documentRangeFormattingProvider struct type Or_ServerCapabilities_documentSymbolProvider (line 3958) | type Or_ServerCapabilities_documentSymbolProvider struct type Or_ServerCapabilities_foldingRangeProvider (line 3963) | type Or_ServerCapabilities_foldingRangeProvider struct type Or_ServerCapabilities_hoverProvider (line 3968) | type Or_ServerCapabilities_hoverProvider struct type Or_ServerCapabilities_implementationProvider (line 3973) | type Or_ServerCapabilities_implementationProvider struct type Or_ServerCapabilities_inlayHintProvider (line 3978) | type Or_ServerCapabilities_inlayHintProvider struct type Or_ServerCapabilities_inlineCompletionProvider (line 3983) | type Or_ServerCapabilities_inlineCompletionProvider struct type Or_ServerCapabilities_inlineValueProvider (line 3988) | type Or_ServerCapabilities_inlineValueProvider struct type Or_ServerCapabilities_linkedEditingRangeProvider (line 3993) | type Or_ServerCapabilities_linkedEditingRangeProvider struct type Or_ServerCapabilities_monikerProvider (line 3998) | type Or_ServerCapabilities_monikerProvider struct type Or_ServerCapabilities_notebookDocumentSync (line 4003) | type Or_ServerCapabilities_notebookDocumentSync struct type Or_ServerCapabilities_referencesProvider (line 4008) | type Or_ServerCapabilities_referencesProvider struct type Or_ServerCapabilities_renameProvider (line 4013) | type Or_ServerCapabilities_renameProvider struct type Or_ServerCapabilities_selectionRangeProvider (line 4018) | type Or_ServerCapabilities_selectionRangeProvider struct type Or_ServerCapabilities_semanticTokensProvider (line 4023) | type Or_ServerCapabilities_semanticTokensProvider struct type Or_ServerCapabilities_textDocumentSync (line 4028) | type Or_ServerCapabilities_textDocumentSync struct type Or_ServerCapabilities_typeDefinitionProvider (line 4033) | type Or_ServerCapabilities_typeDefinitionProvider struct type Or_ServerCapabilities_typeHierarchyProvider (line 4038) | type Or_ServerCapabilities_typeHierarchyProvider struct type Or_ServerCapabilities_workspaceSymbolProvider (line 4043) | type Or_ServerCapabilities_workspaceSymbolProvider struct type Or_SignatureInformation_documentation (line 4048) | type Or_SignatureInformation_documentation struct type Or_TextDocumentEdit_edits_Elem (line 4053) | type Or_TextDocumentEdit_edits_Elem struct type Or_TextDocumentFilter (line 4058) | type Or_TextDocumentFilter struct type Or_TextDocumentSyncOptions_save (line 4063) | type Or_TextDocumentSyncOptions_save struct type Or_WorkspaceDocumentDiagnosticReport (line 4068) | type Or_WorkspaceDocumentDiagnosticReport struct type Or_WorkspaceEdit_documentChanges_Elem (line 4073) | type Or_WorkspaceEdit_documentChanges_Elem struct type Or_WorkspaceOptions_textDocumentContent (line 4078) | type Or_WorkspaceOptions_textDocumentContent struct type Or_textDocument_declaration (line 4083) | type Or_textDocument_declaration struct type PRangeESemanticTokensOptions (line 4088) | type PRangeESemanticTokensOptions struct type ParamConfiguration (line 4094) | type ParamConfiguration struct type ParamInitialize (line 4099) | type ParamInitialize struct type ParameterInformation (line 4108) | type ParameterInformation struct type PartialResultParams (line 4128) | type PartialResultParams struct type Position (line 4176) | type Position struct type PositionEncodingKind (line 4189) | type PositionEncodingKind type PrepareRenameDefaultBehavior (line 4194) | type PrepareRenameDefaultBehavior struct type PrepareRenameParams (line 4199) | type PrepareRenameParams struct type PrepareRenamePlaceholder (line 4207) | type PrepareRenamePlaceholder struct type PrepareSupportDefaultBehavior (line 4214) | type PrepareSupportDefaultBehavior type PreviousResultID (line 4221) | type PreviousResultID struct type PreviousResultId (line 4234) | type PreviousResultId struct type ProgressParams (line 4243) | type ProgressParams struct type PublishDiagnosticsClientCapabilities (line 4255) | type PublishDiagnosticsClientCapabilities struct type PublishDiagnosticsParams (line 4267) | type PublishDiagnosticsParams struct type Range (line 4293) | type Range struct type ReferenceClientCapabilities (line 4303) | type ReferenceClientCapabilities struct type ReferenceContext (line 4312) | type ReferenceContext struct type ReferenceOptions (line 4320) | type ReferenceOptions struct type ReferenceParams (line 4327) | type ReferenceParams struct type ReferenceRegistrationOptions (line 4337) | type ReferenceRegistrationOptions struct type Registration (line 4345) | type Registration struct type RegistrationParams (line 4356) | type RegistrationParams struct type RegularExpressionsClientCapabilities (line 4367) | type RegularExpressionsClientCapabilities struct type RelatedFullDocumentDiagnosticReport (line 4379) | type RelatedFullDocumentDiagnosticReport struct type RelatedUnchangedDocumentDiagnosticReport (line 4396) | type RelatedUnchangedDocumentDiagnosticReport struct type RelativePattern (line 4415) | type RelativePattern struct type RenameClientCapabilities (line 4424) | type RenameClientCapabilities struct type RenameFile (line 4452) | type RenameFile struct type RenameFileOptions (line 4467) | type RenameFileOptions struct type RenameFilesParams (line 4480) | type RenameFilesParams struct type RenameOptions (line 4489) | type RenameOptions struct type RenameParams (line 4500) | type RenameParams struct type RenameRegistrationOptions (line 4512) | type RenameRegistrationOptions struct type ResourceOperation (line 4520) | type ResourceOperation struct type ResourceOperationKind (line 4528) | type ResourceOperationKind type SaveOptions (line 4533) | type SaveOptions struct type SelectedCompletionInfo (line 4544) | type SelectedCompletionInfo struct type SelectionRange (line 4555) | type SelectionRange struct type SelectionRangeClientCapabilities (line 4563) | type SelectionRangeClientCapabilities struct type SelectionRangeOptions (line 4571) | type SelectionRangeOptions struct type SelectionRangeParams (line 4578) | type SelectionRangeParams struct type SelectionRangeRegistrationOptions (line 4588) | type SelectionRangeRegistrationOptions struct type SemanticTokenModifiers (line 4599) | type SemanticTokenModifiers type SemanticTokenTypes (line 4606) | type SemanticTokenTypes type SemanticTokens (line 4611) | type SemanticTokens struct type SemanticTokensClientCapabilities (line 4624) | type SemanticTokensClientCapabilities struct type SemanticTokensDelta (line 4671) | type SemanticTokensDelta struct type SemanticTokensDeltaParams (line 4680) | type SemanticTokensDeltaParams struct type SemanticTokensDeltaPartialResult (line 4693) | type SemanticTokensDeltaPartialResult struct type SemanticTokensEdit (line 4700) | type SemanticTokensEdit struct type SemanticTokensFullDelta (line 4714) | type SemanticTokensFullDelta struct type SemanticTokensLegend (line 4722) | type SemanticTokensLegend struct type SemanticTokensOptions (line 4732) | type SemanticTokensOptions struct type SemanticTokensParams (line 4746) | type SemanticTokensParams struct type SemanticTokensPartialResult (line 4756) | type SemanticTokensPartialResult struct type SemanticTokensRangeParams (line 4763) | type SemanticTokensRangeParams struct type SemanticTokensRegistrationOptions (line 4775) | type SemanticTokensRegistrationOptions struct type SemanticTokensWorkspaceClientCapabilities (line 4784) | type SemanticTokensWorkspaceClientCapabilities struct type ServerCapabilities (line 4799) | type ServerCapabilities struct type ServerCompletionItemOptions (line 4912) | type ServerCompletionItemOptions struct type ServerInfo (line 4927) | type ServerInfo struct type SetTraceParams (line 4935) | type SetTraceParams struct type ShowDocumentClientCapabilities (line 4944) | type ShowDocumentClientCapabilities struct type ShowDocumentParams (line 4955) | type ShowDocumentParams struct type ShowDocumentResult (line 4979) | type ShowDocumentResult struct type ShowMessageParams (line 4987) | type ShowMessageParams struct type ShowMessageRequestClientCapabilities (line 4997) | type ShowMessageRequestClientCapabilities struct type ShowMessageRequestParams (line 5003) | type ShowMessageRequestParams struct type SignatureHelp (line 5017) | type SignatureHelp struct type SignatureHelpClientCapabilities (line 5052) | type SignatureHelpClientCapabilities struct type SignatureHelpContext (line 5072) | type SignatureHelpContext struct type SignatureHelpOptions (line 5094) | type SignatureHelpOptions struct type SignatureHelpParams (line 5110) | type SignatureHelpParams struct type SignatureHelpRegistrationOptions (line 5123) | type SignatureHelpRegistrationOptions struct type SignatureHelpTriggerKind (line 5131) | type SignatureHelpTriggerKind type SignatureInformation (line 5138) | type SignatureInformation struct type SnippetTextEdit (line 5167) | type SnippetTextEdit struct type StaleRequestSupportOptions (line 5179) | type StaleRequestSupportOptions struct type StaticRegistrationOptions (line 5192) | type StaticRegistrationOptions struct type StringValue (line 5210) | type StringValue struct type SymbolInformation (line 5221) | type SymbolInformation struct type SymbolKind (line 5253) | type SymbolKind type SymbolTag (line 5258) | type SymbolTag type TextDocumentChangeRegistrationOptions (line 5263) | type TextDocumentChangeRegistrationOptions struct type TextDocumentClientCapabilities (line 5272) | type TextDocumentClientCapabilities struct type TextDocumentContentChangePartial (line 5381) | type TextDocumentContentChangePartial struct type TextDocumentContentChangeWholeDocument (line 5395) | type TextDocumentContentChangeWholeDocument struct type TextDocumentContentClientCapabilities (line 5406) | type TextDocumentContentClientCapabilities struct type TextDocumentContentOptions (line 5417) | type TextDocumentContentOptions struct type TextDocumentContentParams (line 5428) | type TextDocumentContentParams struct type TextDocumentContentRefreshParams (line 5439) | type TextDocumentContentRefreshParams struct type TextDocumentContentRegistrationOptions (line 5450) | type TextDocumentContentRegistrationOptions struct type TextDocumentContentResult (line 5461) | type TextDocumentContentResult struct type TextDocumentEdit (line 5475) | type TextDocumentEdit struct type TextDocumentFilterClientCapabilities (line 5509) | type TextDocumentFilterClientCapabilities struct type TextDocumentFilterLanguage (line 5521) | type TextDocumentFilterLanguage struct type TextDocumentFilterPattern (line 5539) | type TextDocumentFilterPattern struct type TextDocumentFilterScheme (line 5557) | type TextDocumentFilterScheme struct type TextDocumentIdentifier (line 5573) | type TextDocumentIdentifier struct type TextDocumentItem (line 5582) | type TextDocumentItem struct type TextDocumentPositionParams (line 5598) | type TextDocumentPositionParams struct type TextDocumentRegistrationOptions (line 5615) | type TextDocumentRegistrationOptions struct type TextDocumentSaveReason (line 5622) | type TextDocumentSaveReason type TextDocumentSaveRegistrationOptions (line 5627) | type TextDocumentSaveRegistrationOptions struct type TextDocumentSyncClientCapabilities (line 5633) | type TextDocumentSyncClientCapabilities struct type TextDocumentSyncKind (line 5648) | type TextDocumentSyncKind type TextDocumentSyncOptions (line 5651) | type TextDocumentSyncOptions struct type TextEdit (line 5672) | type TextEdit struct type TokenFormat (line 5680) | type TokenFormat type TraceValue (line 5681) | type TraceValue type TypeDefinitionClientCapabilities (line 5686) | type TypeDefinitionClientCapabilities struct type TypeDefinitionOptions (line 5698) | type TypeDefinitionOptions struct type TypeDefinitionParams (line 5703) | type TypeDefinitionParams struct type TypeDefinitionRegistrationOptions (line 5710) | type TypeDefinitionRegistrationOptions struct type TypeHierarchyClientCapabilities (line 5719) | type TypeHierarchyClientCapabilities struct type TypeHierarchyItem (line 5729) | type TypeHierarchyItem struct type TypeHierarchyOptions (line 5759) | type TypeHierarchyOptions struct type TypeHierarchyPrepareParams (line 5768) | type TypeHierarchyPrepareParams struct type TypeHierarchyRegistrationOptions (line 5778) | type TypeHierarchyRegistrationOptions struct type TypeHierarchySubtypesParams (line 5789) | type TypeHierarchySubtypesParams struct type TypeHierarchySupertypesParams (line 5800) | type TypeHierarchySupertypesParams struct type UIntCommaUInt (line 5807) | type UIntCommaUInt struct type UnchangedDocumentDiagnosticReport (line 5818) | type UnchangedDocumentDiagnosticReport struct type UniquenessLevel (line 5832) | type UniquenessLevel type Unregistration (line 5837) | type Unregistration struct type UnregistrationParams (line 5846) | type UnregistrationParams struct type VersionedNotebookDocumentIdentifier (line 5855) | type VersionedNotebookDocumentIdentifier struct type VersionedTextDocumentIdentifier (line 5865) | type VersionedTextDocumentIdentifier struct type WillSaveTextDocumentParams (line 5872) | type WillSaveTextDocumentParams struct type WindowClientCapabilities (line 5880) | type WindowClientCapabilities struct type WorkDoneProgressBegin (line 5902) | type WorkDoneProgressBegin struct type WorkDoneProgressCancelParams (line 5929) | type WorkDoneProgressCancelParams struct type WorkDoneProgressCreateParams (line 5935) | type WorkDoneProgressCreateParams struct type WorkDoneProgressEnd (line 5941) | type WorkDoneProgressEnd struct type WorkDoneProgressOptions (line 5949) | type WorkDoneProgressOptions struct type WorkDoneProgressOptionsAndTextDocumentRegistrationOptions (line 5954) | type WorkDoneProgressOptionsAndTextDocumentRegistrationOptions struct type WorkDoneProgressParams (line 5960) | type WorkDoneProgressParams struct type WorkDoneProgressReport (line 5966) | type WorkDoneProgressReport struct type WorkspaceClientCapabilities (line 5991) | type WorkspaceClientCapabilities struct type WorkspaceDiagnosticParams (line 6060) | type WorkspaceDiagnosticParams struct type WorkspaceDiagnosticReport (line 6075) | type WorkspaceDiagnosticReport struct type WorkspaceDiagnosticReportPartialResult (line 6084) | type WorkspaceDiagnosticReportPartialResult struct type WorkspaceEdit (line 6108) | type WorkspaceEdit struct type WorkspaceEditClientCapabilities (line 6132) | type WorkspaceEditClientCapabilities struct type WorkspaceEditMetadata (line 6176) | type WorkspaceEditMetadata struct type WorkspaceFolder (line 6184) | type WorkspaceFolder struct type WorkspaceFolders5Gn (line 6193) | type WorkspaceFolders5Gn struct type WorkspaceFoldersChangeEvent (line 6209) | type WorkspaceFoldersChangeEvent struct type WorkspaceFoldersInitializeParams (line 6217) | type WorkspaceFoldersInitializeParams struct type WorkspaceFoldersServerCapabilities (line 6229) | type WorkspaceFoldersServerCapabilities struct type WorkspaceFullDocumentDiagnosticReport (line 6247) | type WorkspaceFullDocumentDiagnosticReport struct type WorkspaceOptions (line 6261) | type WorkspaceOptions struct type WorkspaceSymbol (line 6284) | type WorkspaceSymbol struct type WorkspaceSymbolClientCapabilities (line 6300) | type WorkspaceSymbolClientCapabilities struct type WorkspaceSymbolOptions (line 6321) | type WorkspaceSymbolOptions struct type WorkspaceSymbolParams (line 6333) | type WorkspaceSymbolParams struct type WorkspaceSymbolRegistrationOptions (line 6350) | type WorkspaceSymbolRegistrationOptions struct type WorkspaceUnchangedDocumentDiagnosticReport (line 6359) | type WorkspaceUnchangedDocumentDiagnosticReport struct type XInitializeParams (line 6371) | type XInitializeParams struct type _InitializeParams (line 6414) | type _InitializeParams struct constant Replace (line 6461) | Replace ApplyKind = 1 constant Merge (line 6466) | Merge ApplyKind = 2 constant Empty (line 6469) | Empty CodeActionKind = "" constant QuickFix (line 6471) | QuickFix CodeActionKind = "quickfix" constant Refactor (line 6473) | Refactor CodeActionKind = "refactor" constant RefactorExtract (line 6484) | RefactorExtract CodeActionKind = "refactor.extract" constant RefactorInline (line 6494) | RefactorInline CodeActionKind = "refactor.inline" constant RefactorMove (line 6507) | RefactorMove CodeActionKind = "refactor.move" constant RefactorRewrite (line 6519) | RefactorRewrite CodeActionKind = "refactor.rewrite" constant Source (line 6523) | Source CodeActionKind = "source" constant SourceOrganizeImports (line 6525) | SourceOrganizeImports CodeActionKind = "source.organizeImports" constant SourceFixAll (line 6532) | SourceFixAll CodeActionKind = "source.fixAll" constant Notebook (line 6537) | Notebook CodeActionKind = "notebook" constant LLMGenerated (line 6542) | LLMGenerated CodeActionTag = 1 constant CodeActionInvoked (line 6547) | CodeActionInvoked CodeActionTriggerKind = 1 constant CodeActionAutomatic (line 6552) | CodeActionAutomatic CodeActionTriggerKind = 2 constant TextCompletion (line 6554) | TextCompletion CompletionItemKind = 1 constant MethodCompletion (line 6555) | MethodCompletion CompletionItemKind = 2 constant FunctionCompletion (line 6556) | FunctionCompletion CompletionItemKind = 3 constant ConstructorCompletion (line 6557) | ConstructorCompletion CompletionItemKind = 4 constant FieldCompletion (line 6558) | FieldCompletion CompletionItemKind = 5 constant VariableCompletion (line 6559) | VariableCompletion CompletionItemKind = 6 constant ClassCompletion (line 6560) | ClassCompletion CompletionItemKind = 7 constant InterfaceCompletion (line 6561) | InterfaceCompletion CompletionItemKind = 8 constant ModuleCompletion (line 6562) | ModuleCompletion CompletionItemKind = 9 constant PropertyCompletion (line 6563) | PropertyCompletion CompletionItemKind = 10 constant UnitCompletion (line 6564) | UnitCompletion CompletionItemKind = 11 constant ValueCompletion (line 6565) | ValueCompletion CompletionItemKind = 12 constant EnumCompletion (line 6566) | EnumCompletion CompletionItemKind = 13 constant KeywordCompletion (line 6567) | KeywordCompletion CompletionItemKind = 14 constant SnippetCompletion (line 6568) | SnippetCompletion CompletionItemKind = 15 constant ColorCompletion (line 6569) | ColorCompletion CompletionItemKind = 16 constant FileCompletion (line 6570) | FileCompletion CompletionItemKind = 17 constant ReferenceCompletion (line 6571) | ReferenceCompletion CompletionItemKind = 18 constant FolderCompletion (line 6572) | FolderCompletion CompletionItemKind = 19 constant EnumMemberCompletion (line 6573) | EnumMemberCompletion CompletionItemKind = 20 constant ConstantCompletion (line 6574) | ConstantCompletion CompletionItemKind = 21 constant StructCompletion (line 6575) | StructCompletion CompletionItemKind = 22 constant EventCompletion (line 6576) | EventCompletion CompletionItemKind = 23 constant OperatorCompletion (line 6577) | OperatorCompletion CompletionItemKind = 24 constant TypeParameterCompletion (line 6578) | TypeParameterCompletion CompletionItemKind = 25 constant ComplDeprecated (line 6584) | ComplDeprecated CompletionItemTag = 1 constant Invoked (line 6588) | Invoked CompletionTriggerKind = 1 constant TriggerCharacter (line 6591) | TriggerCharacter CompletionTriggerKind = 2 constant TriggerForIncompleteCompletions (line 6593) | TriggerForIncompleteCompletions CompletionTriggerKind = 3 constant SeverityError (line 6596) | SeverityError DiagnosticSeverity = 1 constant SeverityWarning (line 6598) | SeverityWarning DiagnosticSeverity = 2 constant SeverityInformation (line 6600) | SeverityInformation DiagnosticSeverity = 3 constant SeverityHint (line 6602) | SeverityHint DiagnosticSeverity = 4 constant Unnecessary (line 6610) | Unnecessary DiagnosticTag = 1 constant Deprecated (line 6614) | Deprecated DiagnosticTag = 2 constant DiagnosticFull (line 6620) | DiagnosticFull DocumentDiagnosticReportKind = "full" constant DiagnosticUnchanged (line 6623) | DiagnosticUnchanged DocumentDiagnosticReportKind = "unchanged" constant Text (line 6626) | Text DocumentHighlightKind = 1 constant Read (line 6628) | Read DocumentHighlightKind = 2 constant Write (line 6630) | Write DocumentHighlightKind = 3 constant ParseError (line 6632) | ParseError ErrorCodes = -32700 constant InvalidRequest (line 6633) | InvalidRequest ErrorCodes = -32600 constant MethodNotFound (line 6634) | MethodNotFound ErrorCodes = -32601 constant InvalidParams (line 6635) | InvalidParams ErrorCodes = -32602 constant InternalError (line 6636) | InternalError ErrorCodes = -32603 constant ServerNotInitialized (line 6639) | ServerNotInitialized ErrorCodes = -32002 constant UnknownErrorCode (line 6640) | UnknownErrorCode ErrorCodes = -32001 constant Abort (line 6643) | Abort FailureHandlingKind = "abort" constant Transactional (line 6646) | Transactional FailureHandlingKind = "transactional" constant TextOnlyTransactional (line 6650) | TextOnlyTransactional FailureHandlingKind = "textOnlyTransactional" constant Undo (line 6653) | Undo FailureHandlingKind = "undo" constant Created (line 6656) | Created FileChangeType = 1 constant Changed (line 6658) | Changed FileChangeType = 2 constant Deleted (line 6660) | Deleted FileChangeType = 3 constant FilePattern (line 6666) | FilePattern FileOperationPatternKind = "file" constant FolderPattern (line 6668) | FolderPattern FileOperationPatternKind = "folder" constant Comment (line 6671) | Comment FoldingRangeKind = "comment" constant Imports (line 6673) | Imports FoldingRangeKind = "imports" constant Region (line 6675) | Region FoldingRangeKind = "region" constant Type (line 6680) | Type InlayHintKind = 1 constant Parameter (line 6682) | Parameter InlayHintKind = 2 constant InlineInvoked (line 6688) | InlineInvoked InlineCompletionTriggerKind = 1 constant InlineAutomatic (line 6690) | InlineAutomatic InlineCompletionTriggerKind = 2 constant PlainTextTextFormat (line 6694) | PlainTextTextFormat InsertTextFormat = 1 constant SnippetTextFormat (line 6703) | SnippetTextFormat InsertTextFormat = 2 constant AsIs (line 6713) | AsIs InsertTextMode = 1 constant AdjustIndentation (line 6721) | AdjustIndentation InsertTextMode = 2 constant RequestFailed (line 6728) | RequestFailed LSPErrorCodes = -32803 constant ServerCancelled (line 6734) | ServerCancelled LSPErrorCodes = -32802 constant ContentModified (line 6743) | ContentModified LSPErrorCodes = -32801 constant RequestCancelled (line 6746) | RequestCancelled LSPErrorCodes = -32800 constant LangABAP (line 6749) | LangABAP LanguageKind = "abap" constant LangWindowsBat (line 6750) | LangWindowsBat LanguageKind = "bat" constant LangBibTeX (line 6751) | LangBibTeX LanguageKind = "bibtex" constant LangClojure (line 6752) | LangClojure LanguageKind = "clojure" constant LangCoffeescript (line 6753) | LangCoffeescript LanguageKind = "coffeescript" constant LangC (line 6754) | LangC LanguageKind = "c" constant LangCPP (line 6755) | LangCPP LanguageKind = "cpp" constant LangCSharp (line 6756) | LangCSharp LanguageKind = "csharp" constant LangCSS (line 6757) | LangCSS LanguageKind = "css" constant LangD (line 6760) | LangD LanguageKind = "d" constant LangDelphi (line 6763) | LangDelphi LanguageKind = "pascal" constant LangDiff (line 6764) | LangDiff LanguageKind = "diff" constant LangDart (line 6765) | LangDart LanguageKind = "dart" constant LangDockerfile (line 6766) | LangDockerfile LanguageKind = "dockerfile" constant LangElixir (line 6767) | LangElixir LanguageKind = "elixir" constant LangErlang (line 6768) | LangErlang LanguageKind = "erlang" constant LangFSharp (line 6769) | LangFSharp LanguageKind = "fsharp" constant LangGitCommit (line 6770) | LangGitCommit LanguageKind = "git-commit" constant LangGitRebase (line 6771) | LangGitRebase LanguageKind = "rebase" constant LangGo (line 6772) | LangGo LanguageKind = "go" constant LangGroovy (line 6773) | LangGroovy LanguageKind = "groovy" constant LangHandlebars (line 6774) | LangHandlebars LanguageKind = "handlebars" constant LangHaskell (line 6775) | LangHaskell LanguageKind = "haskell" constant LangHTML (line 6776) | LangHTML LanguageKind = "html" constant LangIni (line 6777) | LangIni LanguageKind = "ini" constant LangJava (line 6778) | LangJava LanguageKind = "java" constant LangJavaScript (line 6779) | LangJavaScript LanguageKind = "javascript" constant LangJavaScriptReact (line 6780) | LangJavaScriptReact LanguageKind = "javascriptreact" constant LangJSON (line 6781) | LangJSON LanguageKind = "json" constant LangLaTeX (line 6782) | LangLaTeX LanguageKind = "latex" constant LangLess (line 6783) | LangLess LanguageKind = "less" constant LangLua (line 6784) | LangLua LanguageKind = "lua" constant LangMakefile (line 6785) | LangMakefile LanguageKind = "makefile" constant LangMarkdown (line 6786) | LangMarkdown LanguageKind = "markdown" constant LangObjectiveC (line 6787) | LangObjectiveC LanguageKind = "objective-c" constant LangObjectiveCPP (line 6788) | LangObjectiveCPP LanguageKind = "objective-cpp" constant LangPascal (line 6791) | LangPascal LanguageKind = "pascal" constant LangPerl (line 6792) | LangPerl LanguageKind = "perl" constant LangPerl6 (line 6793) | LangPerl6 LanguageKind = "perl6" constant LangPHP (line 6794) | LangPHP LanguageKind = "php" constant LangPowershell (line 6795) | LangPowershell LanguageKind = "powershell" constant LangPug (line 6796) | LangPug LanguageKind = "jade" constant LangPython (line 6797) | LangPython LanguageKind = "python" constant LangR (line 6798) | LangR LanguageKind = "r" constant LangRazor (line 6799) | LangRazor LanguageKind = "razor" constant LangRuby (line 6800) | LangRuby LanguageKind = "ruby" constant LangRust (line 6801) | LangRust LanguageKind = "rust" constant LangSCSS (line 6802) | LangSCSS LanguageKind = "scss" constant LangSASS (line 6803) | LangSASS LanguageKind = "sass" constant LangScala (line 6804) | LangScala LanguageKind = "scala" constant LangShaderLab (line 6805) | LangShaderLab LanguageKind = "shaderlab" constant LangShellScript (line 6806) | LangShellScript LanguageKind = "shellscript" constant LangSQL (line 6807) | LangSQL LanguageKind = "sql" constant LangSwift (line 6808) | LangSwift LanguageKind = "swift" constant LangTypeScript (line 6809) | LangTypeScript LanguageKind = "typescript" constant LangTypeScriptReact (line 6810) | LangTypeScriptReact LanguageKind = "typescriptreact" constant LangTeX (line 6811) | LangTeX LanguageKind = "tex" constant LangVisualBasic (line 6812) | LangVisualBasic LanguageKind = "vb" constant LangXML (line 6813) | LangXML LanguageKind = "xml" constant LangXSL (line 6814) | LangXSL LanguageKind = "xsl" constant LangYAML (line 6815) | LangYAML LanguageKind = "yaml" constant PlainText (line 6822) | PlainText MarkupKind = "plaintext" constant Markdown (line 6824) | Markdown MarkupKind = "markdown" constant Error (line 6827) | Error MessageType = 1 constant Warning (line 6829) | Warning MessageType = 2 constant Info (line 6831) | Info MessageType = 3 constant Log (line 6833) | Log MessageType = 4 constant Debug (line 6838) | Debug MessageType = 5 constant Import (line 6843) | Import MonikerKind = "import" constant Export (line 6845) | Export MonikerKind = "export" constant Local (line 6848) | Local MonikerKind = "local" constant Markup (line 6853) | Markup NotebookCellKind = 1 constant Code (line 6855) | Code NotebookCellKind = 2 constant UTF8 (line 6860) | UTF8 PositionEncodingKind = "utf-8" constant UTF16 (line 6865) | UTF16 PositionEncodingKind = "utf-16" constant UTF32 (line 6871) | UTF32 PositionEncodingKind = "utf-32" constant Identifier (line 6874) | Identifier PrepareSupportDefaultBehavior = 1 constant Create (line 6876) | Create ResourceOperationKind = "create" constant Rename (line 6878) | Rename ResourceOperationKind = "rename" constant Delete (line 6880) | Delete ResourceOperationKind = "delete" constant ModDeclaration (line 6886) | ModDeclaration SemanticTokenModifiers = "declaration" constant ModDefinition (line 6887) | ModDefinition SemanticTokenModifiers = "definition" constant ModReadonly (line 6888) | ModReadonly SemanticTokenModifiers = "readonly" constant ModStatic (line 6889) | ModStatic SemanticTokenModifiers = "static" constant ModDeprecated (line 6890) | ModDeprecated SemanticTokenModifiers = "deprecated" constant ModAbstract (line 6891) | ModAbstract SemanticTokenModifiers = "abstract" constant ModAsync (line 6892) | ModAsync SemanticTokenModifiers = "async" constant ModModification (line 6893) | ModModification SemanticTokenModifiers = "modification" constant ModDocumentation (line 6894) | ModDocumentation SemanticTokenModifiers = "documentation" constant ModDefaultLibrary (line 6895) | ModDefaultLibrary SemanticTokenModifiers = "defaultLibrary" constant NamespaceType (line 6901) | NamespaceType SemanticTokenTypes = "namespace" constant TypeType (line 6904) | TypeType SemanticTokenTypes = "type" constant ClassType (line 6905) | ClassType SemanticTokenTypes = "class" constant EnumType (line 6906) | EnumType SemanticTokenTypes = "enum" constant InterfaceType (line 6907) | InterfaceType SemanticTokenTypes = "interface" constant StructType (line 6908) | StructType SemanticTokenTypes = "struct" constant TypeParameterType (line 6909) | TypeParameterType SemanticTokenTypes = "typeParameter" constant ParameterType (line 6910) | ParameterType SemanticTokenTypes = "parameter" constant VariableType (line 6911) | VariableType SemanticTokenTypes = "variable" constant PropertyType (line 6912) | PropertyType SemanticTokenTypes = "property" constant EnumMemberType (line 6913) | EnumMemberType SemanticTokenTypes = "enumMember" constant EventType (line 6914) | EventType SemanticTokenTypes = "event" constant FunctionType (line 6915) | FunctionType SemanticTokenTypes = "function" constant MethodType (line 6916) | MethodType SemanticTokenTypes = "method" constant MacroType (line 6917) | MacroType SemanticTokenTypes = "macro" constant KeywordType (line 6918) | KeywordType SemanticTokenTypes = "keyword" constant ModifierType (line 6919) | ModifierType SemanticTokenTypes = "modifier" constant CommentType (line 6920) | CommentType SemanticTokenTypes = "comment" constant StringType (line 6921) | StringType SemanticTokenTypes = "string" constant NumberType (line 6922) | NumberType SemanticTokenTypes = "number" constant RegexpType (line 6923) | RegexpType SemanticTokenTypes = "regexp" constant OperatorType (line 6924) | OperatorType SemanticTokenTypes = "operator" constant DecoratorType (line 6926) | DecoratorType SemanticTokenTypes = "decorator" constant LabelType (line 6928) | LabelType SemanticTokenTypes = "label" constant SigInvoked (line 6933) | SigInvoked SignatureHelpTriggerKind = 1 constant SigTriggerCharacter (line 6935) | SigTriggerCharacter SignatureHelpTriggerKind = 2 constant SigContentChange (line 6937) | SigContentChange SignatureHelpTriggerKind = 3 constant File (line 6939) | File SymbolKind = 1 constant Module (line 6940) | Module SymbolKind = 2 constant Namespace (line 6941) | Namespace SymbolKind = 3 constant Package (line 6942) | Package SymbolKind = 4 constant Class (line 6943) | Class SymbolKind = 5 constant Method (line 6944) | Method SymbolKind = 6 constant Property (line 6945) | Property SymbolKind = 7 constant Field (line 6946) | Field SymbolKind = 8 constant Constructor (line 6947) | Constructor SymbolKind = 9 constant Enum (line 6948) | Enum SymbolKind = 10 constant Interface (line 6949) | Interface SymbolKind = 11 constant Function (line 6950) | Function SymbolKind = 12 constant Variable (line 6951) | Variable SymbolKind = 13 constant Constant (line 6952) | Constant SymbolKind = 14 constant String (line 6953) | String SymbolKind = 15 constant Number (line 6954) | Number SymbolKind = 16 constant Boolean (line 6955) | Boolean SymbolKind = 17 constant Array (line 6956) | Array SymbolKind = 18 constant Object (line 6957) | Object SymbolKind = 19 constant Key (line 6958) | Key SymbolKind = 20 constant Null (line 6959) | Null SymbolKind = 21 constant EnumMember (line 6960) | EnumMember SymbolKind = 22 constant Struct (line 6961) | Struct SymbolKind = 23 constant Event (line 6962) | Event SymbolKind = 24 constant Operator (line 6963) | Operator SymbolKind = 25 constant TypeParameter (line 6964) | TypeParameter SymbolKind = 26 constant DeprecatedSymbol (line 6969) | DeprecatedSymbol SymbolTag = 1 constant Manual (line 6973) | Manual TextDocumentSaveReason = 1 constant AfterDelay (line 6975) | AfterDelay TextDocumentSaveReason = 2 constant FocusOut (line 6977) | FocusOut TextDocumentSaveReason = 3 constant None (line 6981) | None TextDocumentSyncKind = 0 constant Full (line 6984) | Full TextDocumentSyncKind = 1 constant Incremental (line 6988) | Incremental TextDocumentSyncKind = 2 constant Relative (line 6989) | Relative TokenFormat = "relative" constant Off (line 6991) | Off TraceValue = "off" constant Messages (line 6993) | Messages TraceValue = "messages" constant Verbose (line 6995) | Verbose TraceValue = "verbose" constant Document (line 7000) | Document UniquenessLevel = "document" constant Project (line 7002) | Project UniquenessLevel = "project" constant Group (line 7004) | Group UniquenessLevel = "group" constant Scheme (line 7006) | Scheme UniquenessLevel = "scheme" constant Global (line 7008) | Global UniquenessLevel = "global" constant WatchCreate (line 7010) | WatchCreate WatchKind = 1 constant WatchChange (line 7012) | WatchChange WatchKind = 2 constant WatchDelete (line 7014) | WatchDelete WatchKind = 4 FILE: gopls/internal/protocol/tsserver.go type Server (line 21) | type Server interface function serverDispatch (line 206) | func serverDispatch(ctx context.Context, server Server, reply jsonrpc2.R... function ServerDispatchCall (line 219) | func ServerDispatchCall(ctx context.Context, server Server, method strin... method Progress (line 1119) | func (s *serverDispatcher) Progress(ctx context.Context, params *Progres... method SetTrace (line 1122) | func (s *serverDispatcher) SetTrace(ctx context.Context, params *SetTrac... method IncomingCalls (line 1125) | func (s *serverDispatcher) IncomingCalls(ctx context.Context, params *Ca... method OutgoingCalls (line 1132) | func (s *serverDispatcher) OutgoingCalls(ctx context.Context, params *Ca... method ResolveCodeAction (line 1139) | func (s *serverDispatcher) ResolveCodeAction(ctx context.Context, params... method ResolveCodeLens (line 1146) | func (s *serverDispatcher) ResolveCodeLens(ctx context.Context, params *... method ResolveCommand (line 1153) | func (s *serverDispatcher) ResolveCommand(ctx context.Context, params *E... method ResolveCompletionItem (line 1160) | func (s *serverDispatcher) ResolveCompletionItem(ctx context.Context, pa... method ResolveDocumentLink (line 1167) | func (s *serverDispatcher) ResolveDocumentLink(ctx context.Context, para... method Exit (line 1174) | func (s *serverDispatcher) Exit(ctx context.Context) error { method Initialize (line 1177) | func (s *serverDispatcher) Initialize(ctx context.Context, params *Param... method Initialized (line 1184) | func (s *serverDispatcher) Initialized(ctx context.Context, params *Init... method Resolve (line 1187) | func (s *serverDispatcher) Resolve(ctx context.Context, params *InlayHin... method InteractiveListEnum (line 1194) | func (s *serverDispatcher) InteractiveListEnum(ctx context.Context, para... method DidChangeNotebookDocument (line 1201) | func (s *serverDispatcher) DidChangeNotebookDocument(ctx context.Context... method DidCloseNotebookDocument (line 1204) | func (s *serverDispatcher) DidCloseNotebookDocument(ctx context.Context,... method DidOpenNotebookDocument (line 1207) | func (s *serverDispatcher) DidOpenNotebookDocument(ctx context.Context, ... method DidSaveNotebookDocument (line 1210) | func (s *serverDispatcher) DidSaveNotebookDocument(ctx context.Context, ... method Shutdown (line 1213) | func (s *serverDispatcher) Shutdown(ctx context.Context) error { method CodeAction (line 1216) | func (s *serverDispatcher) CodeAction(ctx context.Context, params *CodeA... method CodeLens (line 1223) | func (s *serverDispatcher) CodeLens(ctx context.Context, params *CodeLen... method ColorPresentation (line 1230) | func (s *serverDispatcher) ColorPresentation(ctx context.Context, params... method Completion (line 1237) | func (s *serverDispatcher) Completion(ctx context.Context, params *Compl... method Declaration (line 1244) | func (s *serverDispatcher) Declaration(ctx context.Context, params *Decl... method Definition (line 1251) | func (s *serverDispatcher) Definition(ctx context.Context, params *Defin... method Diagnostic (line 1258) | func (s *serverDispatcher) Diagnostic(ctx context.Context, params *Docum... method DidChange (line 1265) | func (s *serverDispatcher) DidChange(ctx context.Context, params *DidCha... method DidClose (line 1268) | func (s *serverDispatcher) DidClose(ctx context.Context, params *DidClos... method DidOpen (line 1271) | func (s *serverDispatcher) DidOpen(ctx context.Context, params *DidOpenT... method DidSave (line 1274) | func (s *serverDispatcher) DidSave(ctx context.Context, params *DidSaveT... method DocumentColor (line 1277) | func (s *serverDispatcher) DocumentColor(ctx context.Context, params *Do... method DocumentHighlight (line 1284) | func (s *serverDispatcher) DocumentHighlight(ctx context.Context, params... method DocumentLink (line 1291) | func (s *serverDispatcher) DocumentLink(ctx context.Context, params *Doc... method DocumentSymbol (line 1298) | func (s *serverDispatcher) DocumentSymbol(ctx context.Context, params *D... method FoldingRange (line 1305) | func (s *serverDispatcher) FoldingRange(ctx context.Context, params *Fol... method Formatting (line 1312) | func (s *serverDispatcher) Formatting(ctx context.Context, params *Docum... method Hover (line 1319) | func (s *serverDispatcher) Hover(ctx context.Context, params *HoverParam... method Implementation (line 1326) | func (s *serverDispatcher) Implementation(ctx context.Context, params *I... method InlayHint (line 1333) | func (s *serverDispatcher) InlayHint(ctx context.Context, params *InlayH... method InlineCompletion (line 1340) | func (s *serverDispatcher) InlineCompletion(ctx context.Context, params ... method InlineValue (line 1347) | func (s *serverDispatcher) InlineValue(ctx context.Context, params *Inli... method LinkedEditingRange (line 1354) | func (s *serverDispatcher) LinkedEditingRange(ctx context.Context, param... method Moniker (line 1361) | func (s *serverDispatcher) Moniker(ctx context.Context, params *MonikerP... method OnTypeFormatting (line 1368) | func (s *serverDispatcher) OnTypeFormatting(ctx context.Context, params ... method PrepareCallHierarchy (line 1375) | func (s *serverDispatcher) PrepareCallHierarchy(ctx context.Context, par... method PrepareRename (line 1382) | func (s *serverDispatcher) PrepareRename(ctx context.Context, params *Pr... method PrepareTypeHierarchy (line 1389) | func (s *serverDispatcher) PrepareTypeHierarchy(ctx context.Context, par... method RangeFormatting (line 1396) | func (s *serverDispatcher) RangeFormatting(ctx context.Context, params *... method RangesFormatting (line 1403) | func (s *serverDispatcher) RangesFormatting(ctx context.Context, params ... method References (line 1410) | func (s *serverDispatcher) References(ctx context.Context, params *Refer... method Rename (line 1417) | func (s *serverDispatcher) Rename(ctx context.Context, params *RenamePar... method SelectionRange (line 1424) | func (s *serverDispatcher) SelectionRange(ctx context.Context, params *S... method SemanticTokensFull (line 1431) | func (s *serverDispatcher) SemanticTokensFull(ctx context.Context, param... method SemanticTokensFullDelta (line 1438) | func (s *serverDispatcher) SemanticTokensFullDelta(ctx context.Context, ... method SemanticTokensRange (line 1445) | func (s *serverDispatcher) SemanticTokensRange(ctx context.Context, para... method SignatureHelp (line 1452) | func (s *serverDispatcher) SignatureHelp(ctx context.Context, params *Si... method TypeDefinition (line 1459) | func (s *serverDispatcher) TypeDefinition(ctx context.Context, params *T... method WillSave (line 1466) | func (s *serverDispatcher) WillSave(ctx context.Context, params *WillSav... method WillSaveWaitUntil (line 1469) | func (s *serverDispatcher) WillSaveWaitUntil(ctx context.Context, params... method Subtypes (line 1476) | func (s *serverDispatcher) Subtypes(ctx context.Context, params *TypeHie... method Supertypes (line 1483) | func (s *serverDispatcher) Supertypes(ctx context.Context, params *TypeH... method WorkDoneProgressCancel (line 1490) | func (s *serverDispatcher) WorkDoneProgressCancel(ctx context.Context, p... method DiagnosticWorkspace (line 1493) | func (s *serverDispatcher) DiagnosticWorkspace(ctx context.Context, para... method DidChangeConfiguration (line 1500) | func (s *serverDispatcher) DidChangeConfiguration(ctx context.Context, p... method DidChangeWatchedFiles (line 1503) | func (s *serverDispatcher) DidChangeWatchedFiles(ctx context.Context, pa... method DidChangeWorkspaceFolders (line 1506) | func (s *serverDispatcher) DidChangeWorkspaceFolders(ctx context.Context... method DidCreateFiles (line 1509) | func (s *serverDispatcher) DidCreateFiles(ctx context.Context, params *C... method DidDeleteFiles (line 1512) | func (s *serverDispatcher) DidDeleteFiles(ctx context.Context, params *D... method DidRenameFiles (line 1515) | func (s *serverDispatcher) DidRenameFiles(ctx context.Context, params *R... method ExecuteCommand (line 1518) | func (s *serverDispatcher) ExecuteCommand(ctx context.Context, params *E... method Symbol (line 1525) | func (s *serverDispatcher) Symbol(ctx context.Context, params *Workspace... method TextDocumentContent (line 1532) | func (s *serverDispatcher) TextDocumentContent(ctx context.Context, para... method WillCreateFiles (line 1539) | func (s *serverDispatcher) WillCreateFiles(ctx context.Context, params *... method WillDeleteFiles (line 1546) | func (s *serverDispatcher) WillDeleteFiles(ctx context.Context, params *... method WillRenameFiles (line 1553) | func (s *serverDispatcher) WillRenameFiles(ctx context.Context, params *... method ResolveWorkspaceSymbol (line 1560) | func (s *serverDispatcher) ResolveWorkspaceSymbol(ctx context.Context, p... FILE: gopls/internal/protocol/uri.go type DocumentURI (line 44) | type DocumentURI method UnmarshalText (line 65) | func (uri *DocumentURI) UnmarshalText(data []byte) (err error) { method Clean (line 71) | func (uri DocumentURI) Clean() DocumentURI { method Path (line 80) | func (uri DocumentURI) Path() string { method Base (line 95) | func (uri DocumentURI) Base() string { method Dir (line 100) | func (uri DocumentURI) Dir() DocumentURI { method DirPath (line 108) | func (uri DocumentURI) DirPath() string { method Encloses (line 114) | func (uri DocumentURI) Encloses(file DocumentURI) bool { method Location (line 119) | func (uri DocumentURI) Location(rng Range) Location { function filename (line 123) | func filename(uri DocumentURI) (string, error) { function ParseDocumentURI (line 170) | func ParseDocumentURI(s string) (DocumentURI, error) { function URIFromPath (line 205) | func URIFromPath(path string) DocumentURI { constant fileScheme (line 226) | fileScheme = "file" function IsWindowsDrivePath (line 231) | func IsWindowsDrivePath(path string) bool { function isWindowsDriveURIPath (line 241) | func isWindowsDriveURIPath(uri string) bool { FILE: gopls/internal/protocol/uri_test.go function TestURIFromPath (line 19) | func TestURIFromPath(t *testing.T) { function TestParseDocumentURI (line 71) | func TestParseDocumentURI(t *testing.T) { FILE: gopls/internal/protocol/uri_windows_test.go function TestURIFromPath (line 20) | func TestURIFromPath(t *testing.T) { function TestParseDocumentURI (line 81) | func TestParseDocumentURI(t *testing.T) { FILE: gopls/internal/server/assets/common.js function httpGET (line 7) | function httpGET(url) { FILE: gopls/internal/server/assets/splitpkg.js function onClickAddComponent (line 21) | function onClickAddComponent(event) { function onClickDeleteComponent (line 40) | function onClickDeleteComponent(event) { function postComponents (line 64) | function postComponents() { function onClickApplyAssignment (line 82) | function onClickApplyAssignment(event) { function reload (line 103) | function reload() { function makeURL (line 213) | function makeURL(path) { function createFileDiv (line 220) | function createFileDiv(fileData) { function createSpecItem (line 269) | function createSpecItem(kind, specData, checkboxes) { function createRefItem (line 312) | function createRefItem(refData) { FILE: gopls/internal/server/call_hierarchy.go method PrepareCallHierarchy (line 16) | func (s *server) PrepareCallHierarchy(ctx context.Context, params *proto... method IncomingCalls (line 32) | func (s *server) IncomingCalls(ctx context.Context, params *protocol.Cal... method OutgoingCalls (line 48) | func (s *server) OutgoingCalls(ctx context.Context, params *protocol.Cal... FILE: gopls/internal/server/code_action.go method CodeAction (line 23) | func (s *server) CodeAction(ctx context.Context, params *protocol.CodeAc... function triggerKind (line 219) | func triggerKind(params *protocol.CodeActionParams) protocol.CodeActionT... method ResolveCodeAction (line 235) | func (s *server) ResolveCodeAction(ctx context.Context, ca *protocol.Cod... method codeActionsMatchingDiagnostics (line 286) | func (s *server) codeActionsMatchingDiagnostics(ctx context.Context, uri... function codeActionsForDiagnostic (line 318) | func codeActionsForDiagnostic(ctx context.Context, snapshot *cache.Snaps... method findMatchingDiagnostics (line 344) | func (s *server) findMatchingDiagnostics(uri protocol.DocumentURI, pd pr... method getSupportedCodeActions (line 367) | func (s *server) getSupportedCodeActions() []protocol.CodeActionKind { FILE: gopls/internal/server/code_lens.go type codeLensMetadata (line 23) | type codeLensMetadata struct method CodeLens (line 29) | func (s *server) CodeLens(ctx context.Context, params *protocol.CodeLens... FILE: gopls/internal/server/command.go method ExecuteCommand (line 51) | func (s *server) ExecuteCommand(ctx context.Context, params *protocol.Ex... type commandHandler (line 88) | type commandHandler struct method Modules (line 93) | func (h *commandHandler) Modules(ctx context.Context, args command.Mod... method Packages (line 165) | func (h *commandHandler) Packages(ctx context.Context, args command.Pa... method MaybePromptForTelemetry (line 276) | func (h *commandHandler) MaybePromptForTelemetry(ctx context.Context) ... method AddTelemetryCounters (line 285) | func (*commandHandler) AddTelemetryCounters(_ context.Context, args co... method AddTest (line 300) | func (c *commandHandler) AddTest(ctx context.Context, loc protocol.Loc... method LSP (line 324) | func (c *commandHandler) LSP(ctx context.Context, param command.LSPArg... method run (line 368) | func (c *commandHandler) run(ctx context.Context, cfg commandConfig, r... method ApplyFix (line 452) | func (c *commandHandler) ApplyFix(ctx context.Context, args command.Ap... method RegenerateCgo (line 472) | func (c *commandHandler) RegenerateCgo(ctx context.Context, args comma... method modifyState (line 490) | func (c *commandHandler) modifyState(ctx context.Context, source Modif... method CheckUpgrades (line 516) | func (c *commandHandler) CheckUpgrades(ctx context.Context, args comma... method AddDependency (line 533) | func (c *commandHandler) AddDependency(ctx context.Context, args comma... method UpgradeDependency (line 537) | func (c *commandHandler) UpgradeDependency(ctx context.Context, args c... method ResetGoModDiagnostics (line 541) | func (c *commandHandler) ResetGoModDiagnostics(ctx context.Context, ar... method GoGetModule (line 558) | func (c *commandHandler) GoGetModule(ctx context.Context, args command... method UpdateGoSum (line 570) | func (c *commandHandler) UpdateGoSum(ctx context.Context, args command... method Tidy (line 591) | func (c *commandHandler) Tidy(ctx context.Context, args command.URIArg... method Vendor (line 612) | func (c *commandHandler) Vendor(ctx context.Context, args command.URIA... method EditGoDirective (line 640) | func (c *commandHandler) EditGoDirective(ctx context.Context, args com... method RemoveDependency (line 660) | func (c *commandHandler) RemoveDependency(ctx context.Context, args co... method Doc (line 712) | func (c *commandHandler) Doc(ctx context.Context, args command.DocArgs... method RunTests (line 752) | func (c *commandHandler) RunTests(ctx context.Context, args command.Ru... method runTests (line 763) | func (c *commandHandler) runTests(ctx context.Context, snapshot *cache... method Generate (line 841) | func (c *commandHandler) Generate(ctx context.Context, args command.Ge... method GoGetPackage (line 870) | func (c *commandHandler) GoGetPackage(ctx context.Context, args comman... method GCDetails (line 1044) | func (c *commandHandler) GCDetails(ctx context.Context, uri protocol.D... method ListKnownPackages (line 1067) | func (c *commandHandler) ListKnownPackages(ctx context.Context, args c... method ListImports (line 1082) | func (c *commandHandler) ListImports(ctx context.Context, args command... method AddImport (line 1127) | func (c *commandHandler) AddImport(ctx context.Context, args command.A... method ExtractToNewFile (line 1140) | func (c *commandHandler) ExtractToNewFile(ctx context.Context, args pr... method StartDebugging (line 1153) | func (c *commandHandler) StartDebugging(ctx context.Context, args comm... method StartProfile (line 1171) | func (c *commandHandler) StartProfile(ctx context.Context, args comman... method StopProfile (line 1194) | func (c *commandHandler) StopProfile(ctx context.Context, args command... method FetchVulncheckResult (line 1213) | func (c *commandHandler) FetchVulncheckResult(ctx context.Context, arg... method Vulncheck (line 1234) | func (c *commandHandler) Vulncheck(ctx context.Context, args command.V... method RunGovulncheck (line 1289) | func (c *commandHandler) RunGovulncheck(ctx context.Context, args comm... method MemStats (line 1380) | func (c *commandHandler) MemStats(ctx context.Context) (command.MemSta... method WorkspaceStats (line 1396) | func (c *commandHandler) WorkspaceStats(ctx context.Context) (command.... method RunGoWorkCommand (line 1497) | func (c *commandHandler) RunGoWorkCommand(ctx context.Context, args co... method invokeGoWork (line 1540) | func (c *commandHandler) invokeGoWork(ctx context.Context, viewDir, go... method ChangeSignature (line 1635) | func (c *commandHandler) ChangeSignature(ctx context.Context, args com... method DiagnoseFiles (line 1669) | func (c *commandHandler) DiagnoseFiles(ctx context.Context, args comma... method Views (line 1711) | func (c *commandHandler) Views(ctx context.Context) ([]command.View, e... method FreeSymbols (line 1725) | func (c *commandHandler) FreeSymbols(ctx context.Context, viewID strin... method SplitPackage (line 1735) | func (c *commandHandler) SplitPackage(ctx context.Context, viewID, pac... method Assembly (line 1745) | func (c *commandHandler) Assembly(ctx context.Context, viewID, package... method ClientOpenURL (line 1755) | func (c *commandHandler) ClientOpenURL(ctx context.Context, url string... method ScanImports (line 1762) | func (c *commandHandler) ScanImports(ctx context.Context) error { method PackageSymbols (line 1769) | func (c *commandHandler) PackageSymbols(ctx context.Context, args comm... method ModifyTags (line 1812) | func (c *commandHandler) ModifyTags(ctx context.Context, args command.... method MoveType (line 1888) | func (c *commandHandler) MoveType(ctx context.Context, args command.Mo... type commandConfig (line 334) | type commandConfig struct type commandDeps (line 345) | type commandDeps struct type commandFunc (line 351) | type commandFunc constant CommandCanceled (line 356) | CommandCanceled = "canceled" constant CommandFailed (line 357) | CommandFailed = "failed" constant CommandCompleted (line 358) | CommandCompleted = "completed" function dropDependency (line 692) | func dropDependency(pm *cache.ParsedModule, modulePath string) ([]protoc... method runGoModUpdateCommands (line 911) | func (s *server) runGoModUpdateCommands(ctx context.Context, snapshot *c... function computeEditChange (line 951) | func computeEditChange(ctx context.Context, snapshot *cache.Snapshot, ur... function applyChanges (line 982) | func applyChanges(ctx context.Context, cli protocol.Client, changes []pr... function runGoGetModule (line 998) | func runGoGetModule(invoke func(...string) (*bytes.Buffer, error), addRe... function addModuleRequire (line 1008) | func addModuleRequire(invoke func(...string) (*bytes.Buffer, error), arg... method getUpgrades (line 1018) | func (s *server) getUpgrades(ctx context.Context, snapshot *cache.Snapsh... constant GoVulncheckCommandTitle (line 1232) | GoVulncheckCommandTitle = "govulncheck" method runVulncheck (line 1355) | func (s *server) runVulncheck(ctx context.Context, snapshot *cache.Snaps... function collectViewStats (line 1410) | func collectViewStats(ctx context.Context, view *cache.View) (command.Vi... function collectPackageStats (line 1452) | func collectPackageStats(mps []*metadata.Package) command.PackageStats { function showMessage (line 1557) | func showMessage(ctx context.Context, cli protocol.Client, typ protocol.... function openClientBrowser (line 1574) | func openClientBrowser(ctx context.Context, cli protocol.Client, title s... function openClientEditor (line 1593) | func openClientEditor(ctx context.Context, cli protocol.Client, loc prot... function showDocumentImpl (line 1600) | func showDocumentImpl(ctx context.Context, cli protocol.Client, url prot... function optionsStringToMap (line 1800) | func optionsStringToMap(options string) (map[string][]string, error) { function parseTransform (line 1867) | func parseTransform(input string) (modifytags.Transform, error) { FILE: gopls/internal/server/completion.go method Completion (line 24) | func (s *server) Completion(ctx context.Context, params *protocol.Comple... method saveLastCompletion (line 101) | func (s *server) saveLastCompletion(uri protocol.DocumentURI, version in... function toProtocolCompletionItems (line 112) | func toProtocolCompletionItems(candidates []completion.CompletionItem, s... FILE: gopls/internal/server/debug.go function assert (line 8) | func assert(cond bool, msg string) { FILE: gopls/internal/server/definition.go method Definition (line 21) | func (s *server) Definition(ctx context.Context, params *protocol.Defini... method TypeDefinition (line 48) | func (s *server) TypeDefinition(ctx context.Context, params *protocol.Ty... FILE: gopls/internal/server/diagnostics.go method Diagnostic (line 46) | func (s *server) Diagnostic(ctx context.Context, params *protocol.Docume... type fileDiagnostics (line 80) | type fileDiagnostics struct type viewDiagnostics (line 97) | type viewDiagnostics struct function sortDiagnostics (line 109) | func sortDiagnostics(d []*cache.Diagnostic) { method diagnoseChangedViews (line 122) | func (s *server) diagnoseChangedViews(ctx context.Context, modID uint64,... method diagnoseSnapshot (line 201) | func (s *server) diagnoseSnapshot(ctx context.Context, snapshot *cache.S... function diagnoseChangedFiles (line 242) | func diagnoseChangedFiles(ctx context.Context, snapshot *cache.Snapshot,... method diagnose (line 312) | func (s *server) diagnose(ctx context.Context, snapshot *cache.Snapshot)... method compilerOptDetailsDiagnostics (line 549) | func (s *server) compilerOptDetailsDiagnostics(ctx context.Context, snap... method mustPublishDiagnostics (line 585) | func (s *server) mustPublishDiagnostics(uri protocol.DocumentURI) { constant WorkspaceLoadFailure (line 595) | WorkspaceLoadFailure = "Error loading workspace" method updateCriticalErrorStatus (line 602) | func (s *server) updateCriticalErrorStatus(ctx context.Context, snapshot... method updateDiagnostics (line 633) | func (s *server) updateDiagnostics(ctx context.Context, snapshot *cache.... method updateOrphanedFileDiagnostics (line 736) | func (s *server) updateOrphanedFileDiagnostics(ctx context.Context, modI... method publishFileDiagnosticsLocked (line 788) | func (s *server) publishFileDiagnosticsLocked(ctx context.Context, views... method shouldIgnoreError (line 909) | func (s *server) shouldIgnoreError(snapshot *cache.Snapshot, err error) ... FILE: gopls/internal/server/folding_range.go method FoldingRange (line 17) | func (s *server) FoldingRange(ctx context.Context, params *protocol.Fold... FILE: gopls/internal/server/format.go method Formatting (line 19) | func (s *server) Formatting(ctx context.Context, params *protocol.Docume... FILE: gopls/internal/server/general.go method Initialize (line 40) | func (s *server) Initialize(ctx context.Context, params *protocol.ParamI... method Initialized (line 223) | func (s *server) Initialized(ctx context.Context, params *protocol.Initi... method checkViewGoVersions (line 272) | func (s *server) checkViewGoVersions() { function go1Point (line 300) | func go1Point() int { method addFolders (line 315) | func (s *server) addFolders(ctx context.Context, folders []protocol.Work... method updateWatchedDirectories (line 413) | func (s *server) updateWatchedDirectories(ctx context.Context) error { function watchedFilesCapabilityID (line 444) | func watchedFilesCapabilityID(id int) string { method registerWatchedDirectoriesLocked (line 451) | func (s *server) registerWatchedDirectoriesLocked(ctx context.Context, p... method Options (line 496) | func (s *server) Options() *settings.Options { method SetOptions (line 505) | func (s *server) SetOptions(opts *settings.Options) { method newFolder (line 511) | func (s *server) newFolder(ctx context.Context, folder protocol.Document... method fetchFolderOptions (line 552) | func (s *server) fetchFolderOptions(ctx context.Context, folder protocol... method eventuallyShowMessage (line 581) | func (s *server) eventuallyShowMessage(ctx context.Context, msg *protoco... method handleOptionResult (line 590) | func (s *server) handleOptionResult(ctx context.Context, applied []telem... method Shutdown (line 639) | func (s *server) Shutdown(ctx context.Context) error { method Exit (line 661) | func (s *server) Exit(ctx context.Context) error { function recordClientInfo (line 680) | func recordClientInfo(clientName string) { FILE: gopls/internal/server/highlight.go method DocumentHighlight (line 18) | func (s *server) DocumentHighlight(ctx context.Context, params *protocol... FILE: gopls/internal/server/hover.go method Hover (line 22) | func (s *server) Hover(ctx context.Context, params *protocol.HoverParams... FILE: gopls/internal/server/implementation.go method Implementation (line 18) | func (s *server) Implementation(ctx context.Context, params *protocol.Im... FILE: gopls/internal/server/inlay_hint.go method InlayHint (line 18) | func (s *server) InlayHint(ctx context.Context, params *protocol.InlayHi... FILE: gopls/internal/server/link.go method DocumentLink (line 33) | func (s *server) DocumentLink(ctx context.Context, params *protocol.Docu... function modLinks (line 57) | func modLinks(ctx context.Context, snapshot *cache.Snapshot, fh file.Han... function goLinks (line 149) | func goLinks(ctx context.Context, snapshot *cache.Snapshot, fh file.Hand... function findLinksInString (line 254) | func findLinksInString(urlRegexp *regexp.Regexp, src string, srcOffset i... function getIssueRegexp (line 301) | func getIssueRegexp() *regexp.Regexp { function toProtocolLink (line 313) | func toProtocolLink(m *protocol.Mapper, targetURL string, start, end int... FILE: gopls/internal/server/prompt.go constant promptTimeout (line 28) | promptTimeout = 24 * time.Hour constant gracePeriod (line 33) | gracePeriod = 7 * 24 * time.Hour constant samplesPerMille (line 39) | samplesPerMille = 10 constant TelemetryPromptWorkTitle (line 43) | TelemetryPromptWorkTitle = "Checking telemetry prompt" constant GoplsConfigDirEnvvar (line 44) | GoplsConfigDirEnvvar = "GOPLS_CONFIG_DIR" constant FakeTelemetryModefileEnvvar (line 45) | FakeTelemetryModefileEnvvar = "GOPLS_FAKE_TELEMETRY_MODEFILE" constant FakeSamplesPerMille (line 46) | FakeSamplesPerMille = "GOPLS_FAKE_SAMPLES_PER_MILLE" constant TelemetryYes (line 47) | TelemetryYes = "Yes, I'd like to help." constant TelemetryNo (line 48) | TelemetryNo = "No, thanks." constant GoTelemetryGoplsClientStartTimeEnvvar (line 54) | GoTelemetryGoplsClientStartTimeEnvvar = "GOTELEMETRY_GOPLS_CLIENT_START_... constant GoTelemetryGoplsClientTokenEnvvar (line 55) | GoTelemetryGoplsClientTokenEnvvar = "GOTELEMETRY_GOPLS_CLIENT_TOKEN" method getenv (line 61) | func (s *server) getenv(key string) string { method telemetryMode (line 70) | func (s *server) telemetryMode() string { method setTelemetryMode (line 83) | func (s *server) setTelemetryMode(mode string) error { method maybePromptForTelemetry (line 98) | func (s *server) maybePromptForTelemetry(ctx context.Context, enabled bo... function showMessageRequest (line 351) | func showMessageRequest(ctx context.Context, cli protocol.Client, typ pr... function telemetryOnMessage (line 380) | func telemetryOnMessage(linkify bool) string { function acquireLockFile (line 399) | func acquireLockFile(path string) (func(), bool, error) { FILE: gopls/internal/server/prompt_test.go function TestAcquireFileLock (line 14) | func TestAcquireFileLock(t *testing.T) { function TestReleaseAndAcquireFileLock (line 51) | func TestReleaseAndAcquireFileLock(t *testing.T) { FILE: gopls/internal/server/references.go method References (line 20) | func (s *server) References(ctx context.Context, params *protocol.Refere... FILE: gopls/internal/server/rename.go method Rename (line 18) | func (s *server) Rename(ctx context.Context, params *protocol.RenamePara... method PrepareRename (line 46) | func (s *server) PrepareRename(ctx context.Context, params *protocol.Pre... FILE: gopls/internal/server/resolve.go method ResolveCommand (line 100) | func (s *server) ResolveCommand(ctx context.Context, param *protocol.Exe... function resolveModifyTags (line 108) | func resolveModifyTags(param *protocol.ExecuteCommandParams) (*protocol.... FILE: gopls/internal/server/selection_range.go method SelectionRange (line 29) | func (s *server) SelectionRange(ctx context.Context, params *protocol.Se... FILE: gopls/internal/server/semantic.go method SemanticTokensFull (line 18) | func (s *server) SemanticTokensFull(ctx context.Context, params *protoco... method SemanticTokensRange (line 22) | func (s *server) SemanticTokensRange(ctx context.Context, params *protoc... method semanticTokens (line 26) | func (s *server) semanticTokens(ctx context.Context, td protocol.TextDoc... FILE: gopls/internal/server/server.go function New (line 41) | func New(session *cache.Session, client protocol.ClientCloser, options *... type serverState (line 59) | type serverState method String (line 68) | func (s serverState) String() string { constant serverCreated (line 62) | serverCreated = serverState(iota) constant serverInitializing (line 63) | serverInitializing constant serverInitialized (line 64) | serverInitialized constant serverShutDown (line 65) | serverShutDown type server (line 87) | type server struct method WorkDoneProgressCancel (line 191) | func (s *server) WorkDoneProgressCancel(ctx context.Context, params *p... method getWeb (line 229) | func (s *server) getWeb() (*web, error) { method initWeb (line 240) | func (s *server) initWeb() (*web, error) { type web (line 221) | type web struct method SrcURL (line 556) | func (w *web) SrcURL(filename string, line, col8 int) protocol.URI { method PkgURL (line 566) | func (w *web) PkgURL(viewID string, path golang.PackagePath, fragment ... method freesymbolsURL (line 573) | func (w *web) freesymbolsURL(viewID string, loc protocol.Location) pro... method assemblyURL (line 585) | func (w *web) assemblyURL(viewID, packageID, symbol string) protocol.U... method splitpkgURL (line 594) | func (w *web) splitpkgURL(viewID, packageID string) protocol.URI { method url (line 604) | func (w *web) url(path, query, fragment string) protocol.URI { function withPanicHandler (line 615) | func withPanicHandler(h http.Handler) http.HandlerFunc { FILE: gopls/internal/server/signature_help.go method SignatureHelp (line 17) | func (s *server) SignatureHelp(ctx context.Context, params *protocol.Sig... FILE: gopls/internal/server/symbols.go method DocumentSymbol (line 18) | func (s *server) DocumentSymbol(ctx context.Context, params *protocol.Do... FILE: gopls/internal/server/text_synchronization.go type ModificationSource (line 27) | type ModificationSource method String (line 69) | func (m ModificationSource) String() string { constant FromDidOpen (line 31) | FromDidOpen = ModificationSource(iota) constant FromDidChange (line 34) | FromDidChange constant FromDidChangeWatchedFiles (line 37) | FromDidChangeWatchedFiles constant FromDidSave (line 40) | FromDidSave constant FromDidClose (line 43) | FromDidClose constant FromDidChangeConfiguration (line 46) | FromDidChangeConfiguration constant FromRegenerateCgo (line 50) | FromRegenerateCgo constant FromInitialWorkspaceLoad (line 54) | FromInitialWorkspaceLoad constant FromCheckUpgrades (line 58) | FromCheckUpgrades constant FromResetGoModDiagnostics (line 62) | FromResetGoModDiagnostics constant FromToggleCompilerOptDetails (line 66) | FromToggleCompilerOptDetails method DidOpen (line 94) | func (s *server) DidOpen(ctx context.Context, params *protocol.DidOpenTe... method DidChange (line 123) | func (s *server) DidChange(ctx context.Context, params *protocol.DidChan... method warnAboutModifyingGeneratedFiles (line 146) | func (s *server) warnAboutModifyingGeneratedFiles(ctx context.Context, u... method DidChangeWatchedFiles (line 177) | func (s *server) DidChangeWatchedFiles(ctx context.Context, params *prot... method DidSave (line 193) | func (s *server) DidSave(ctx context.Context, params *protocol.DidSaveTe... method DidClose (line 207) | func (s *server) DidClose(ctx context.Context, params *protocol.DidClose... method didModifyFiles (line 221) | func (s *server) didModifyFiles(ctx context.Context, modifications []fil... method handleModuleChanges (line 281) | func (s *server) handleModuleChanges(ctx context.Context, modifications ... method needsDiagnosis (line 318) | func (s *server) needsDiagnosis(ctx context.Context, viewsToDiagnose map... function DiagnosticWorkTitle (line 339) | func DiagnosticWorkTitle(cause ModificationSource) string { method changedText (line 343) | func (s *server) changedText(ctx context.Context, uri protocol.DocumentU... method applyIncrementalChanges (line 357) | func (s *server) applyIncrementalChanges(ctx context.Context, uri protoc... method checkEfficacy (line 396) | func (s *server) checkEfficacy(uri protocol.DocumentURI, version int32, ... function changeTypeToFileAction (line 445) | func changeTypeToFileAction(ct protocol.FileChangeType) file.Action { FILE: gopls/internal/server/type_hierarchy.go method PrepareTypeHierarchy (line 17) | func (s *server) PrepareTypeHierarchy(ctx context.Context, params *proto... method Subtypes (line 33) | func (s *server) Subtypes(ctx context.Context, params *protocol.TypeHier... method Supertypes (line 49) | func (s *server) Supertypes(ctx context.Context, params *protocol.TypeHi... FILE: gopls/internal/server/unimplemented.go method ColorPresentation (line 17) | func (s *server) ColorPresentation(context.Context, *protocol.ColorPrese... method Declaration (line 21) | func (s *server) Declaration(context.Context, *protocol.DeclarationParam... method DiagnosticWorkspace (line 25) | func (s *server) DiagnosticWorkspace(context.Context, *protocol.Workspac... method DidChangeNotebookDocument (line 29) | func (s *server) DidChangeNotebookDocument(context.Context, *protocol.Di... method DidCloseNotebookDocument (line 33) | func (s *server) DidCloseNotebookDocument(context.Context, *protocol.Did... method DidDeleteFiles (line 37) | func (s *server) DidDeleteFiles(context.Context, *protocol.DeleteFilesPa... method DidOpenNotebookDocument (line 41) | func (s *server) DidOpenNotebookDocument(context.Context, *protocol.DidO... method DidRenameFiles (line 45) | func (s *server) DidRenameFiles(context.Context, *protocol.RenameFilesPa... method DidSaveNotebookDocument (line 49) | func (s *server) DidSaveNotebookDocument(context.Context, *protocol.DidS... method DocumentColor (line 53) | func (s *server) DocumentColor(context.Context, *protocol.DocumentColorP... method InlineCompletion (line 57) | func (s *server) InlineCompletion(context.Context, *protocol.InlineCompl... method InlineValue (line 61) | func (s *server) InlineValue(context.Context, *protocol.InlineValueParam... method InteractiveListEnum (line 65) | func (s *server) InteractiveListEnum(context.Context, *protocol.Interact... method LinkedEditingRange (line 69) | func (s *server) LinkedEditingRange(context.Context, *protocol.LinkedEdi... method Moniker (line 73) | func (s *server) Moniker(context.Context, *protocol.MonikerParams) ([]pr... method OnTypeFormatting (line 77) | func (s *server) OnTypeFormatting(context.Context, *protocol.DocumentOnT... method Progress (line 81) | func (s *server) Progress(context.Context, *protocol.ProgressParams) err... method RangeFormatting (line 85) | func (s *server) RangeFormatting(context.Context, *protocol.DocumentRang... method RangesFormatting (line 89) | func (s *server) RangesFormatting(context.Context, *protocol.DocumentRan... method Resolve (line 93) | func (s *server) Resolve(context.Context, *protocol.InlayHint) (*protoco... method ResolveCodeLens (line 97) | func (s *server) ResolveCodeLens(context.Context, *protocol.CodeLens) (*... method ResolveCompletionItem (line 101) | func (s *server) ResolveCompletionItem(context.Context, *protocol.Comple... method ResolveDocumentLink (line 105) | func (s *server) ResolveDocumentLink(context.Context, *protocol.Document... method ResolveWorkspaceSymbol (line 109) | func (s *server) ResolveWorkspaceSymbol(context.Context, *protocol.Works... method SemanticTokensFullDelta (line 113) | func (s *server) SemanticTokensFullDelta(context.Context, *protocol.Sema... method SetTrace (line 117) | func (s *server) SetTrace(context.Context, *protocol.SetTraceParams) err... method WillCreateFiles (line 121) | func (s *server) WillCreateFiles(context.Context, *protocol.CreateFilesP... method WillDeleteFiles (line 125) | func (s *server) WillDeleteFiles(context.Context, *protocol.DeleteFilesP... method WillRenameFiles (line 129) | func (s *server) WillRenameFiles(context.Context, *protocol.RenameFilesP... method WillSave (line 133) | func (s *server) WillSave(context.Context, *protocol.WillSaveTextDocumen... method WillSaveWaitUntil (line 137) | func (s *server) WillSaveWaitUntil(context.Context, *protocol.WillSaveTe... method TextDocumentContent (line 141) | func (s *server) TextDocumentContent(context.Context, *protocol.TextDocu... function notImplemented (line 145) | func notImplemented(method string) error { FILE: gopls/internal/server/vulncheck_prompt.go constant dependencyHashKind (line 35) | dependencyHashKind = "dephash" constant maxVulnsToShow (line 36) | maxVulnsToShow = 10 type vulncheckAction (line 39) | type vulncheckAction constant vulncheckActionYes (line 42) | vulncheckActionYes vulncheckAction = "Yes" constant vulncheckActionNo (line 43) | vulncheckActionNo vulncheckAction = "No" constant vulncheckActionAlways (line 44) | vulncheckActionAlways vulncheckAction = "Always" constant vulncheckActionNever (line 45) | vulncheckActionNever vulncheckAction = "Never" constant vulncheckActionEmpty (line 46) | vulncheckActionEmpty vulncheckAction = "" type vulnupgradeAction (line 49) | type vulnupgradeAction constant vulnupgradeActionUpgradeAll (line 52) | vulnupgradeActionUpgradeAll vulnupgradeAction = "Upgrade All" constant vulnupgradeActionIgnore (line 53) | vulnupgradeActionIgnore vulnupgradeAction = "Ignore" constant vulnupgradeActionEmpty (line 54) | vulnupgradeActionEmpty vulnupgradeAction = "" function computeGoModHash (line 60) | func computeGoModHash(file *modfile.File) (string, error) { function computeGoWorkHash (line 83) | func computeGoWorkHash(file *modfile.WorkFile) (string, error) { function getDependencyHashes (line 98) | func getDependencyHashes(uri protocol.DocumentURI) (contentHash string, ... method checkDependencyChanges (line 130) | func (s *server) checkDependencyChanges(ctx context.Context, uri protoco... function recordVulncheckAction (line 199) | func recordVulncheckAction(action vulncheckAction) { function recordVulncheckupgradeAction (line 212) | func recordVulncheckupgradeAction(action vulnupgradeAction) { method handleVulncheck (line 221) | func (s *server) handleVulncheck(ctx context.Context, uri protocol.Docum... function computeModulesToUpgrade (line 298) | func computeModulesToUpgrade(findings []*govulncheck.Finding) (affecting... method upgradeModules (line 328) | func (s *server) upgradeModules(ctx context.Context, snapshot *cache.Sna... method runGoGet (line 358) | func (s *server) runGoGet(ctx context.Context, snapshot *cache.Snapshot,... method runGoModTidy (line 375) | func (s *server) runGoModTidy(ctx context.Context, snapshot *cache.Snaps... function runGoCommand (line 387) | func runGoCommand(ctx context.Context, snapshot *cache.Snapshot, uri pro... type vulncheckConfig (line 401) | type vulncheckConfig struct function getVulncheckPreference (line 405) | func getVulncheckPreference() (vulncheckAction, error) { function setVulncheckPreference (line 425) | func setVulncheckPreference(preference vulncheckAction) error { FILE: gopls/internal/server/vulncheck_prompt_test.go function TestComputeGoModHash (line 25) | func TestComputeGoModHash(t *testing.T) { function TestComputeGoWorkHash (line 100) | func TestComputeGoWorkHash(t *testing.T) { type mockClient (line 159) | type mockClient struct method ShowMessageRequest (line 164) | func (c *mockClient) ShowMessageRequest(ctx context.Context, params *p... method ShowMessage (line 171) | func (c *mockClient) ShowMessage(ctx context.Context, params *protocol... method Close (line 175) | func (c *mockClient) Close() error { function TestCheckDependencyChanges (line 179) | func TestCheckDependencyChanges(t *testing.T) { function TestVulncheckPreference (line 343) | func TestVulncheckPreference(t *testing.T) { FILE: gopls/internal/server/workspace.go method DidChangeWorkspaceFolders (line 23) | func (s *server) DidChangeWorkspaceFolders(ctx context.Context, params *... method addView (line 45) | func (s *server) addView(ctx context.Context, name string, dir protocol.... method DidChangeConfiguration (line 64) | func (s *server) DidChangeConfiguration(ctx context.Context, _ *protocol... method DidCreateFiles (line 148) | func (s *server) DidCreateFiles(ctx context.Context, params *protocol.Cr... FILE: gopls/internal/server/workspace_symbol.go method Symbol (line 17) | func (s *server) Symbol(ctx context.Context, params *protocol.WorkspaceS... FILE: gopls/internal/settings/analysis.go type Analyzer (line 82) | type Analyzer struct method Analyzer (line 92) | func (a *Analyzer) Analyzer() *analysis.Analyzer { return a.analyzer } method Enabled (line 96) | func (a *Analyzer) Enabled(o *Options) bool { method ActionKinds (line 121) | func (a *Analyzer) ActionKinds() []protocol.CodeActionKind { return a.... method Severity (line 146) | func (a *Analyzer) Severity() protocol.DiagnosticSeverity { method Tags (line 155) | func (a *Analyzer) Tags() []protocol.DiagnosticTag { return a.tags } method String (line 158) | func (a *Analyzer) String() string { return a.analyzer.String() } function init (line 291) | func init() { FILE: gopls/internal/settings/codeactionkind.go constant GoAssembly (line 78) | GoAssembly protocol.CodeActionKind = "source.assembly" constant GoDoc (line 79) | GoDoc protocol.CodeActionKind = "source.doc" constant GoFreeSymbols (line 80) | GoFreeSymbols protocol.CodeActionKind = "source.freesymbols" constant GoSplitPackage (line 81) | GoSplitPackage protocol.CodeActionKind = "source.splitPackage" constant GoTest (line 82) | GoTest protocol.CodeActionKind = "source.test" constant GoToggleCompilerOptDetails (line 83) | GoToggleCompilerOptDetails protocol.CodeActionKind = "source.toggleCompi... constant AddTest (line 84) | AddTest protocol.CodeActionKind = "source.addTest" constant OrganizeImports (line 85) | OrganizeImports protocol.CodeActionKind = "source.organizeImp... constant GoplsDocFeatures (line 88) | GoplsDocFeatures protocol.CodeActionKind = "gopls.doc.features" constant RefactorRewriteChangeQuote (line 91) | RefactorRewriteChangeQuote protocol.CodeActionKind = "refactor.re... constant RefactorRewriteFillStruct (line 92) | RefactorRewriteFillStruct protocol.CodeActionKind = "refactor.re... constant RefactorRewriteFillSwitch (line 93) | RefactorRewriteFillSwitch protocol.CodeActionKind = "refactor.re... constant RefactorRewriteInvertIf (line 94) | RefactorRewriteInvertIf protocol.CodeActionKind = "refactor.re... constant RefactorRewriteJoinLines (line 95) | RefactorRewriteJoinLines protocol.CodeActionKind = "refactor.re... constant RefactorRewriteRemoveUnusedParam (line 96) | RefactorRewriteRemoveUnusedParam protocol.CodeActionKind = "refactor.re... constant RefactorRewriteMoveParamLeft (line 97) | RefactorRewriteMoveParamLeft protocol.CodeActionKind = "refactor.re... constant RefactorRewriteMoveParamRight (line 98) | RefactorRewriteMoveParamRight protocol.CodeActionKind = "refactor.re... constant RefactorRewriteSplitLines (line 99) | RefactorRewriteSplitLines protocol.CodeActionKind = "refactor.re... constant RefactorRewriteEliminateDotImport (line 100) | RefactorRewriteEliminateDotImport protocol.CodeActionKind = "refactor.re... constant RefactorRewriteAddTags (line 101) | RefactorRewriteAddTags protocol.CodeActionKind = "refactor.re... constant RefactorRewriteRemoveTags (line 102) | RefactorRewriteRemoveTags protocol.CodeActionKind = "refactor.re... constant RefactorInlineCall (line 105) | RefactorInlineCall protocol.CodeActionKind = "refactor.inline.call" constant RefactorInlineVariable (line 106) | RefactorInlineVariable protocol.CodeActionKind = "refactor.inline.variable" constant RefactorExtractConstant (line 109) | RefactorExtractConstant protocol.CodeActionKind = "refactor.extract.c... constant RefactorExtractConstantAll (line 110) | RefactorExtractConstantAll protocol.CodeActionKind = "refactor.extract.c... constant RefactorExtractFunction (line 111) | RefactorExtractFunction protocol.CodeActionKind = "refactor.extract.f... constant RefactorExtractMethod (line 112) | RefactorExtractMethod protocol.CodeActionKind = "refactor.extract.m... constant RefactorExtractVariable (line 113) | RefactorExtractVariable protocol.CodeActionKind = "refactor.extract.v... constant RefactorExtractVariableAll (line 114) | RefactorExtractVariableAll protocol.CodeActionKind = "refactor.extract.v... constant RefactorExtractToNewFile (line 115) | RefactorExtractToNewFile protocol.CodeActionKind = "refactor.extract.t... constant RefactorMoveType (line 118) | RefactorMoveType protocol.CodeActionKind = "refactor.move.moveType" FILE: gopls/internal/settings/default.go function DefaultOptions (line 26) | func DefaultOptions(overrides ...func(*Options)) *Options { FILE: gopls/internal/settings/settings.go type Annotation (line 24) | type Annotation constant Nil (line 28) | Nil Annotation = "nil" constant Escape (line 31) | Escape Annotation = "escape" constant Inline (line 34) | Inline Annotation = "inline" constant Bounds (line 37) | Bounds Annotation = "bounds" type Options (line 54) | type Options struct method Debug (line 62) | func (o *Options) Debug() []string { method Set (line 963) | func (o *Options) Set(value any) (applied []CounterPath, errs []error) { method ForClientCapabilities (line 1006) | func (o *Options) ForClientCapabilities(clientInfo *protocol.ClientInf... method Clone (line 1082) | func (o *Options) Clone() *Options { method setOne (line 1128) | func (o *Options) setOne(name string, value any) (applied []CounterPat... method EnabledSemanticTokenModifiers (line 1491) | func (o *Options) EnabledSemanticTokenModifiers() map[semtok.Modifier]... method EnabledSemanticTokenTypes (line 1500) | func (o *Options) EnabledSemanticTokenTypes() map[semtok.Type]bool { type ClientOptions (line 89) | type ClientOptions struct type ServerOptions (line 122) | type ServerOptions struct type BuildOptions (line 128) | type BuildOptions struct type UIOptions (line 205) | type UIOptions struct type CodeLensSource (line 265) | type CodeLensSource constant CodeLensGenerate (line 288) | CodeLensGenerate CodeLensSource = "generate" constant CodeLensRegenerateCgo (line 299) | CodeLensRegenerateCgo CodeLensSource = "regenerate_cgo" constant CodeLensVulncheck (line 312) | CodeLensVulncheck CodeLensSource = "vulncheck" constant CodeLensRunGovulncheck (line 323) | CodeLensRunGovulncheck CodeLensSource = "run_govulncheck" constant CodeLensTest (line 337) | CodeLensTest CodeLensSource = "test" constant CodeLensTidy (line 345) | CodeLensTidy CodeLensSource = "tidy" constant CodeLensUpgradeDependency (line 355) | CodeLensUpgradeDependency CodeLensSource = "upgrade_dependency" constant CodeLensVendor (line 365) | CodeLensVendor CodeLensSource = "vendor" type CompletionOptions (line 369) | type CompletionOptions struct type DocumentationOptions (line 398) | type DocumentationOptions struct type LinksInHoverEnum (line 431) | type LinksInHoverEnum method MarshalJSON (line 442) | func (l LinksInHoverEnum) MarshalJSON() ([]byte, error) { constant LinksInHover_None (line 434) | LinksInHover_None LinksInHoverEnum = iota constant LinksInHover_LinkTarget (line 435) | LinksInHover_LinkTarget constant LinksInHover_Gopls (line 436) | LinksInHover_Gopls type FormattingOptions (line 456) | type FormattingOptions struct type DiagnosticOptions (line 474) | type DiagnosticOptions struct type InlayHintOptions (line 547) | type InlayHintOptions struct type InlayHint (line 556) | type InlayHint constant ParameterNames (line 564) | ParameterNames InlayHint = "parameterNames" constant AssignVariableTypes (line 570) | AssignVariableTypes InlayHint = "assignVariableTypes" constant ConstantValues (line 581) | ConstantValues InlayHint = "constantValues" constant RangeVariableTypes (line 589) | RangeVariableTypes InlayHint = "rangeVariableTypes" constant CompositeLiteralTypes (line 599) | CompositeLiteralTypes InlayHint = "compositeLiteralTypes" constant CompositeLiteralFieldNames (line 605) | CompositeLiteralFieldNames InlayHint = "compositeLiteralFields" constant FunctionTypeParameters (line 611) | FunctionTypeParameters InlayHint = "functionTypeParameters" constant IgnoredError (line 626) | IgnoredError InlayHint = "ignoredError" type NavigationOptions (line 629) | type NavigationOptions struct type UserOptions (line 661) | type UserOptions struct method EnvSlice (line 679) | func (u *UserOptions) EnvSlice() []string { method SetEnvSlice (line 688) | func (u *UserOptions) SetEnvSlice(env []string) { type WorkDoneProgressStyle (line 699) | type WorkDoneProgressStyle constant WorkDoneProgressStyleLog (line 701) | WorkDoneProgressStyleLog WorkDoneProgressStyle = "log" type InteractiveInputType (line 703) | type InteractiveInputType constant InteractiveInputTypeString (line 706) | InteractiveInputTypeString InteractiveInputType = "string" constant InteractiveInputTypeFileURI (line 707) | InteractiveInputTypeFileURI InteractiveInputType = "fileURI" constant InteractiveInputTypeBool (line 708) | InteractiveInputTypeBool InteractiveInputType = "bool" constant InteractiveInputTypeNumber (line 709) | InteractiveInputTypeNumber InteractiveInputType = "number" constant InteractiveInputTypeEnum (line 710) | InteractiveInputTypeEnum InteractiveInputType = "enum" constant InteractiveInputTypeList (line 711) | InteractiveInputTypeList InteractiveInputType = "list" type InternalOptions (line 721) | type InternalOptions struct type SubdirWatchPatterns (line 829) | type SubdirWatchPatterns constant SubdirWatchPatternsOn (line 832) | SubdirWatchPatternsOn SubdirWatchPatterns = "on" constant SubdirWatchPatternsOff (line 833) | SubdirWatchPatternsOff SubdirWatchPatterns = "off" constant SubdirWatchPatternsAuto (line 834) | SubdirWatchPatternsAuto SubdirWatchPatterns = "auto" type ImportShortcut (line 837) | type ImportShortcut method ShowLinks (line 845) | func (s ImportShortcut) ShowLinks() bool { method ShowDefinition (line 849) | func (s ImportShortcut) ShowDefinition() bool { constant BothShortcuts (line 840) | BothShortcuts ImportShortcut = "Both" constant LinkShortcut (line 841) | LinkShortcut ImportShortcut = "Link" constant DefinitionShortcut (line 842) | DefinitionShortcut ImportShortcut = "Definition" type ImportsSourceEnum (line 858) | type ImportsSourceEnum constant ImportsSourceOff (line 861) | ImportsSourceOff ImportsSourceEnum = "off" constant ImportsSourceGopls (line 862) | ImportsSourceGopls ImportsSourceEnum = "gopls" constant ImportsSourceGoimports (line 863) | ImportsSourceGoimports ImportsSourceEnum = "goimports" type Matcher (line 866) | type Matcher constant Fuzzy (line 869) | Fuzzy Matcher = "Fuzzy" constant CaseInsensitive (line 870) | CaseInsensitive Matcher = "CaseInsensitive" constant CaseSensitive (line 871) | CaseSensitive Matcher = "CaseSensitive" type SymbolMatcher (line 876) | type SymbolMatcher constant SymbolFuzzy (line 879) | SymbolFuzzy SymbolMatcher = "Fuzzy" constant SymbolFastFuzzy (line 880) | SymbolFastFuzzy SymbolMatcher = "FastFuzzy" constant SymbolCaseInsensitive (line 881) | SymbolCaseInsensitive SymbolMatcher = "CaseInsensitive" constant SymbolCaseSensitive (line 882) | SymbolCaseSensitive SymbolMatcher = "CaseSensitive" type SymbolStyle (line 886) | type SymbolStyle constant PackageQualifiedSymbols (line 891) | PackageQualifiedSymbols SymbolStyle = "Package" constant FullyQualifiedSymbols (line 894) | FullyQualifiedSymbols SymbolStyle = "Full" constant DynamicSymbols (line 899) | DynamicSymbols SymbolStyle = "Dynamic" type SymbolScope (line 903) | type SymbolScope constant WorkspaceSymbolScope (line 907) | WorkspaceSymbolScope SymbolScope = "workspace" constant AllSymbolScope (line 910) | AllSymbolScope SymbolScope = "all" type HoverKind (line 913) | type HoverKind constant SingleLine (line 916) | SingleLine HoverKind = "SingleLine" constant NoDocumentation (line 917) | NoDocumentation HoverKind = "NoDocumentation" constant SynopsisDocumentation (line 918) | SynopsisDocumentation HoverKind = "SynopsisDocumentation" constant FullDocumentation (line 919) | FullDocumentation HoverKind = "FullDocumentation" constant Structured (line 924) | Structured HoverKind = "Structured" type VulncheckMode (line 927) | type VulncheckMode constant ModeVulncheckPrompt (line 931) | ModeVulncheckPrompt VulncheckMode = "Prompt" constant ModeVulncheckOff (line 933) | ModeVulncheckOff VulncheckMode = "Off" constant ModeVulncheckImports (line 936) | ModeVulncheckImports VulncheckMode = "Imports" type DiagnosticsTrigger (line 941) | type DiagnosticsTrigger constant DiagnosticsOnEdit (line 945) | DiagnosticsOnEdit DiagnosticsTrigger = "Edit" constant DiagnosticsOnSave (line 948) | DiagnosticsOnSave DiagnosticsTrigger = "Save" function validateDirectoryFilter (line 1093) | func validateDirectoryFilter(ifilter string) (string, error) { type SoftError (line 1515) | type SoftError struct method Error (line 1519) | func (e *SoftError) Error() string { function deprecatedError (line 1525) | func deprecatedError(replacement string) error { function setBool (line 1536) | func setBool(dest *bool, value any) ([]CounterPath, error) { function asBool (line 1545) | func asBool(value any) (bool, error) { function setDuration (line 1553) | func setDuration(dest *time.Duration, value any) error { function setAnnotationMap (line 1566) | func setAnnotationMap(dest *map[Annotation]bool, value any) ([]CounterPa... function setBoolMap (line 1611) | func setBoolMap[K ~string](dest *map[K]bool, value any) ([]CounterPath, ... function asBoolMap (line 1624) | func asBoolMap[K ~string](value any) (map[K]bool, error) { function setString (line 1640) | func setString(dest *string, value any) error { function asString (line 1649) | func asString(value any) (string, error) { function setStringSlice (line 1657) | func setStringSlice(dest *[]string, value any) error { function asStringSlice (line 1666) | func asStringSlice(value any) ([]string, error) { function setEnum (line 1682) | func setEnum[S ~string](dest *S, value any, options ...S) ([]CounterPath... function asEnum (line 1691) | func asEnum[S ~string](value any, options ...S) (S, error) { function setInt64 (line 1704) | func setInt64(dest *int64, value any) ([]CounterPath, error) { function asInt64 (line 1713) | func asInt64(value any) (int64, error) { function isFinite (line 1740) | func isFinite(f float64) bool { FILE: gopls/internal/settings/settings_test.go function TestDefaultsEquivalence (line 17) | func TestDefaultsEquivalence(t *testing.T) { function TestOptions_Set (line 25) | func TestOptions_Set(t *testing.T) { function TestOptions_Clone (line 247) | func TestOptions_Clone(t *testing.T) { FILE: gopls/internal/settings/staticcheck.go function initStaticcheckAnalyzers (line 183) | func initStaticcheckAnalyzers() (res []*Analyzer) { FILE: gopls/internal/settings/vet_test.go function TestVetSuite (line 22) | func TestVetSuite(t *testing.T) { FILE: gopls/internal/telemetry/counterpath.go type CounterPath (line 18) | type CounterPath method FullName (line 21) | func (p CounterPath) FullName() string { FILE: gopls/internal/telemetry/counterpath_test.go function TestCounterPath (line 12) | func TestCounterPath(t *testing.T) { FILE: gopls/internal/telemetry/latency.go type latencyKey (line 19) | type latencyKey struct function ForEachLatencyCounter (line 47) | func ForEachLatencyCounter(operation string, isError bool, f func(*count... function getLatencyCounter (line 60) | func getLatencyCounter(operation, bucket string, isError bool) *counter.... function StartLatencyTimer (line 84) | func StartLatencyTimer(operation string) func(context.Context, error) { FILE: gopls/internal/telemetry/telemetry_test.go function TestMain (line 27) | func TestMain(m *testing.M) { function TestTelemetry (line 38) | func TestTelemetry(t *testing.T) { function TestSettingTelemetry (line 121) | func TestSettingTelemetry(t *testing.T) { function addForwardedCounters (line 165) | func addForwardedCounters(env *Env, names []string, values []int64) { function hasEntry (line 182) | func hasEntry(counts map[string]uint64, pattern string, want uint64) bool { function TestLatencyCounter (line 191) | func TestLatencyCounter(t *testing.T) { function TestLatencyCounter_Error (line 204) | func TestLatencyCounter_Error(t *testing.T) { function TestLatencyCounter_Cancellation (line 217) | func TestLatencyCounter_Cancellation(t *testing.T) { function totalLatencySamples (line 232) | func totalLatencySamples(t *testing.T, operation string, isError bool) u... function TestLatencyInstrumentation (line 245) | func TestLatencyInstrumentation(t *testing.T) { FILE: gopls/internal/template/completion.go type completer (line 21) | type completer struct method complete (line 124) | func (c *completer) complete() (*protocol.CompletionList, error) { function Completion (line 29) | func Completion(ctx context.Context, snapshot *cache.Snapshot, fh file.H... function filterSyms (line 61) | func filterSyms(syms map[string]symbol, ns []symbol) { function enclosingTokenStart (line 81) | func enclosingTokenStart(fc *parsed, pos protocol.Position) (int, error) { function scan (line 207) | func scan(buf []byte) []string { function weakMatch (line 233) | func weakMatch(choice, pattern string) float64 { FILE: gopls/internal/template/completion_test.go function init (line 16) | func init() { type tparse (line 20) | type tparse struct function TestParsed (line 27) | func TestParsed(t *testing.T) { function testCompleter (line 76) | func testCompleter(t *testing.T, tx tparse) *completer { FILE: gopls/internal/template/highlight.go function Highlight (line 17) | func Highlight(ctx context.Context, snapshot *cache.Snapshot, fh file.Ha... function markSymbols (line 52) | func markSymbols(p *parsed, sym symbol) ([]protocol.DocumentHighlight, e... function markWordInToken (line 74) | func markWordInToken(p *parsed, wordAt string) ([]protocol.DocumentHighl... function wordAt (line 97) | func wordAt(buf []byte, pos int) string { FILE: gopls/internal/template/implementations.go function Diagnostics (line 26) | func Diagnostics(snapshot *cache.Snapshot) map[protocol.DocumentURI][]*c... function diagnoseOne (line 34) | func diagnoseOne(fh file.Handle) []*cache.Diagnostic { function Definition (line 100) | func Definition(snapshot *cache.Snapshot, fh file.Handle, rng protocol.R... function Hover (line 124) | func Hover(ctx context.Context, snapshot *cache.Snapshot, fh file.Handle... function References (line 168) | func References(ctx context.Context, snapshot *cache.Snapshot, fh file.H... function SemanticTokens (line 198) | func SemanticTokens(ctx context.Context, snapshot *cache.Snapshot, spn p... function symAtRange (line 236) | func symAtRange(fh file.Handle, rng protocol.Range) (*symbol, *parsed, e... FILE: gopls/internal/template/parse.go type parsed (line 30) | type parsed struct method findLiteralBefore (line 128) | func (p *parsed) findLiteralBefore(pos int) (int, int) { method setTokens (line 151) | func (p *parsed) setTokens() { method elideAt (line 211) | func (p *parsed) elideAt(left int) { method writeNode (line 254) | func (p *parsed) writeNode(w io.Writer, n parse.Node) { type token (line 46) | type token struct type set (line 51) | type set struct function parseSet (line 59) | func parseSet(tmpls map[protocol.DocumentURI]file.Handle) *set { function parseBuffer (line 73) | func parseBuffer(uri protocol.DocumentURI, buf []byte) *parsed { function isEscaped (line 224) | func isEscaped(buf []byte) bool { function lineRange (line 233) | func lineRange(m *protocol.Mapper, line int) (protocol.Range, error) { type wrNode (line 259) | type wrNode struct method writeNode (line 264) | func (wr wrNode) writeNode(n parse.Node, indent string) { FILE: gopls/internal/template/parse_test.go function TestSymbols (line 9) | func TestSymbols(t *testing.T) { function TestWordAt (line 70) | func TestWordAt(t *testing.T) { function TestQuotes (line 83) | func TestQuotes(t *testing.T) { FILE: gopls/internal/template/symbols.go type symbol (line 20) | type symbol struct method offsets (line 30) | func (s symbol) offsets() (start, end int) { method String (line 34) | func (s symbol) String() string { method fields (line 39) | func (p *parsed) fields(flds []string, x parse.Node) []symbol { method findSymbols (line 102) | func (p *parsed) findSymbols() { function DocumentSymbols (line 197) | func DocumentSymbols(snapshot *cache.Snapshot, fh file.Handle) ([]protoc... function kindStr (line 235) | func kindStr(k protocol.SymbolKind) string { FILE: gopls/internal/test/compare/text.go function Text (line 18) | func Text(want, got string) string { function NamedText (line 24) | func NamedText(wantName, gotName, want, got string) string { function Bytes (line 44) | func Bytes(want, got []byte) string { FILE: gopls/internal/test/compare/text_test.go function TestText (line 13) | func TestText(t *testing.T) { FILE: gopls/internal/test/integration/bench/bench_test.go constant runAsGopls (line 55) | runAsGopls = "_GOPLS_BENCH_RUN_AS_GOPLS" function TestMain (line 57) | func TestMain(m *testing.M) { function getTempDir (line 76) | func getTempDir() string { function shallowClone (line 91) | func shallowClone(dir, repo, commitish string) error { function connectEditor (line 112) | func connectEditor(dir string, config fake.EditorConfig, ts servertest.C... function newGoplsConnector (line 132) | func newGoplsConnector(args []string) (servertest.Connector, error) { function profileArgs (line 170) | func profileArgs(name string, wantCPU bool) []string { function qualifiedName (line 190) | func qualifiedName(args ...string) string { function getInstalledGopls (line 196) | func getInstalledGopls() string { type SidecarServer (line 226) | type SidecarServer struct method Connect (line 235) | func (s *SidecarServer) Connect(ctx context.Context) jsonrpc2.Conn { function startProfileIfSupported (line 294) | func startProfileIfSupported(b *testing.B, env *integration.Env, name st... function totalCPUForProfile (line 328) | func totalCPUForProfile(filename string) (time.Duration, error) { function closeBuffer (line 349) | func closeBuffer(b *testing.B, env *integration.Env, name string) { FILE: gopls/internal/test/integration/bench/codeaction_test.go function BenchmarkCodeAction (line 15) | func BenchmarkCodeAction(b *testing.B) { function BenchmarkCodeActionFollowingEdit (line 38) | func BenchmarkCodeActionFollowingEdit(b *testing.B) { FILE: gopls/internal/test/integration/bench/completion_test.go type completionBenchOptions (line 20) | type completionBenchOptions struct function benchmarkCompletion (line 29) | func benchmarkCompletion(options completionBenchOptions, b *testing.B) { function endRangeInBuffer (line 67) | func endRangeInBuffer(env *Env, name string) protocol.Range { function BenchmarkStructCompletion (line 78) | func BenchmarkStructCompletion(b *testing.B) { function BenchmarkImportCompletion (line 97) | func BenchmarkImportCompletion(b *testing.B) { function BenchmarkSliceCompletion (line 107) | func BenchmarkSliceCompletion(b *testing.B) { function BenchmarkFuncDeepCompletion (line 126) | func BenchmarkFuncDeepCompletion(b *testing.B) { type completionTest (line 150) | type completionTest struct function BenchmarkCompletion (line 243) | func BenchmarkCompletion(b *testing.B) { function runCompletion (line 267) | func runCompletion(b *testing.B, test completionTest, followingEdit, com... FILE: gopls/internal/test/integration/bench/definition_test.go function BenchmarkDefinition (line 11) | func BenchmarkDefinition(b *testing.B) { FILE: gopls/internal/test/integration/bench/diagnostic_test.go function BenchmarkDiagnosePackageFiles (line 22) | func BenchmarkDiagnosePackageFiles(b *testing.B) { FILE: gopls/internal/test/integration/bench/didchange_test.go type changeTest (line 23) | type changeTest struct function BenchmarkDidChange (line 47) | func BenchmarkDidChange(b *testing.B) { function makeEditFunc (line 80) | func makeEditFunc(env *Env, file string) func() { function BenchmarkDiagnoseChange (line 98) | func BenchmarkDiagnoseChange(b *testing.B) { function BenchmarkDiagnoseSave (line 106) | func BenchmarkDiagnoseSave(b *testing.B) { function runChangeDiagnosticsBenchmark (line 114) | func runChangeDiagnosticsBenchmark(b *testing.B, test changeTest, save b... FILE: gopls/internal/test/integration/bench/hover_test.go function BenchmarkHover (line 11) | func BenchmarkHover(b *testing.B) { FILE: gopls/internal/test/integration/bench/implementations_test.go function BenchmarkImplementations (line 9) | func BenchmarkImplementations(b *testing.B) { FILE: gopls/internal/test/integration/bench/imports_test.go function BenchmarkInitialGoimportsScan (line 21) | func BenchmarkInitialGoimportsScan(b *testing.B) { FILE: gopls/internal/test/integration/bench/iwl_test.go function BenchmarkInitialWorkspaceLoad (line 23) | func BenchmarkInitialWorkspaceLoad(b *testing.B) { function BenchmarkInitialWorkspaceLoadOpenFiles (line 57) | func BenchmarkInitialWorkspaceLoadOpenFiles(b *testing.B) { function doIWL (line 71) | func doIWL(b *testing.B, gopath string, repo *repo, openfiles []string) { FILE: gopls/internal/test/integration/bench/references_test.go function BenchmarkReferences (line 9) | func BenchmarkReferences(b *testing.B) { FILE: gopls/internal/test/integration/bench/reload_test.go function BenchmarkReload (line 19) | func BenchmarkReload(b *testing.B) { FILE: gopls/internal/test/integration/bench/rename_test.go function BenchmarkRename (line 12) | func BenchmarkRename(b *testing.B) { FILE: gopls/internal/test/integration/bench/repo_test.go function getRepo (line 117) | func getRepo(tb testing.TB, name string) *repo { type repo (line 135) | type repo struct method reusableDir (line 158) | func (r *repo) reusableDir() string { method getDir (line 167) | func (r *repo) getDir() string { method sharedEnv (line 198) | func (r *repo) sharedEnv(tb testing.TB) *Env { method newEnv (line 233) | func (r *repo) newEnv(tb testing.TB, config fake.EditorConfig, forOper... method Close (line 256) | func (r *repo) Close() error { function cleanup (line 280) | func cleanup() error { FILE: gopls/internal/test/integration/bench/stress_test.go function TestPilosaStress (line 29) | func TestPilosaStress(t *testing.T) { FILE: gopls/internal/test/integration/bench/tests_test.go function BenchmarkPackagesCommand (line 15) | func BenchmarkPackagesCommand(b *testing.B) { function executePackagesCmd (line 85) | func executePackagesCmd(t testing.TB, env *integration.Env, args command... FILE: gopls/internal/test/integration/bench/typing_test.go function BenchmarkTyping (line 21) | func BenchmarkTyping(b *testing.B) { FILE: gopls/internal/test/integration/bench/unimported_test.go function BenchmarkLocalModcache (line 30) | func BenchmarkLocalModcache(b *testing.B) { function runModcacheCompletion (line 45) | func runModcacheCompletion(b *testing.B, budget, source string) { function findSym (line 123) | func findSym(t testing.TB) (pkg, name, gomodcache string) { function initForTest (line 157) | func initForTest(t testing.TB) { FILE: gopls/internal/test/integration/bench/workspace_symbols_test.go function BenchmarkWorkspaceSymbols (line 18) | func BenchmarkWorkspaceSymbols(b *testing.B) { FILE: gopls/internal/test/integration/codelens/codelens_test.go function TestMain (line 23) | func TestMain(m *testing.M) { function TestDisablingCodeLens (line 28) | func TestDisablingCodeLens(t *testing.T) { constant proxyWithLatest (line 77) | proxyWithLatest = ` function TestUpgradeCodelens_Workspace (line 102) | func TestUpgradeCodelens_Workspace(t *testing.T) { function TestUpgradeCodelens_ModVendor (line 251) | func TestUpgradeCodelens_ModVendor(t *testing.T) { function TestUnusedDependenciesCodelens (line 306) | func TestUnusedDependenciesCodelens(t *testing.T) { function TestRegenerateCgo (line 368) | func TestRegenerateCgo(t *testing.T) { FILE: gopls/internal/test/integration/completion/completion18_test.go function TestGenericReceiver (line 19) | func TestGenericReceiver(t *testing.T) { function TestFuzzFunc (line 60) | func TestFuzzFunc(t *testing.T) { FILE: gopls/internal/test/integration/completion/completion_test.go function TestMain (line 30) | func TestMain(m *testing.M) { constant proxy (line 35) | proxy = ` function TestPackageCompletion (line 54) | func TestPackageCompletion(t *testing.T) { function TestPackageNameCompletion (line 242) | func TestPackageNameCompletion(t *testing.T) { function compareCompletionLabels (line 272) | func compareCompletionLabels(want []string, gotItems []protocol.Completi... function TestIssue74611 (line 305) | func TestIssue74611(t *testing.T) { function TestUnimportedCompletion (line 348) | func TestUnimportedCompletion(t *testing.T) { function TestUndownloadedModule (line 415) | func TestUndownloadedModule(t *testing.T) { function TestSourceFixup (line 452) | func TestSourceFixup(t *testing.T) { function TestCompletion_Issue45510 (line 485) | func TestCompletion_Issue45510(t *testing.T) { function TestCompletionDeprecation (line 546) | func TestCompletionDeprecation(t *testing.T) { function TestUnimportedCompletion_VSCodeIssue1489 (line 593) | func TestUnimportedCompletion_VSCodeIssue1489(t *testing.T) { function TestUnimportedCompletion_VSCodeIssue3365 (line 633) | func TestUnimportedCompletion_VSCodeIssue3365(t *testing.T) { function TestUnimportedCompletionHasPlaceholders60269 (line 725) | func TestUnimportedCompletionHasPlaceholders60269(t *testing.T) { function TestPackageMemberCompletionAfterSyntaxError (line 778) | func TestPackageMemberCompletionAfterSyntaxError(t *testing.T) { function TestCompleteAllFields (line 819) | func TestCompleteAllFields(t *testing.T) { function TestDefinition (line 879) | func TestDefinition(t *testing.T) { function TestDefinitionReplaceRange (line 928) | func TestDefinitionReplaceRange(t *testing.T) { function TestGoWorkCompletion (line 1008) | func TestGoWorkCompletion(t *testing.T) { constant reverseInferenceSrcPrelude (line 1055) | reverseInferenceSrcPrelude = ` function TestReverseInferCompletion (line 1113) | func TestReverseInferCompletion(t *testing.T) { function TestInterfaceReverseInferCompletion (line 1144) | func TestInterfaceReverseInferCompletion(t *testing.T) { function TestInvalidReverseInferenceDefaultsToConstraintCompletion (line 1178) | func TestInvalidReverseInferenceDefaultsToConstraintCompletion(t *testin... function TestInterfaceReverseInferTypeParamCompletion (line 1202) | func TestInterfaceReverseInferTypeParamCompletion(t *testing.T) { function TestInvalidReverseInferenceTypeParamDefaultsToConstraintCompletion (line 1225) | func TestInvalidReverseInferenceTypeParamDefaultsToConstraintCompletion(... function TestReverseInferDoubleTypeParamCompletion (line 1248) | func TestReverseInferDoubleTypeParamCompletion(t *testing.T) { function TestDoubleParamReturnCompletion (line 1286) | func TestDoubleParamReturnCompletion(t *testing.T) { function TestBuiltinCompletion (line 1320) | func TestBuiltinCompletion(t *testing.T) { function TestOverlayCompletion (line 1366) | func TestOverlayCompletion(t *testing.T) { function TestToolchainCompletions (line 1405) | func TestToolchainCompletions(t *testing.T) { function TestIssue61208 (line 1468) | func TestIssue61208(t *testing.T) { function TestCounters (line 1533) | func TestCounters(t *testing.T) { function TestImportAlias (line 1593) | func TestImportAlias(t *testing.T) { function TestModIndexDirEmpty (line 1626) | func TestModIndexDirEmpty(t *testing.T) { FILE: gopls/internal/test/integration/completion/fixedbugs_test.go function TestPackageCompletionCrash_Issue68169 (line 13) | func TestPackageCompletionCrash_Issue68169(t *testing.T) { function TestFixInitStatementCrash_Issue72026 (line 42) | func TestFixInitStatementCrash_Issue72026(t *testing.T) { FILE: gopls/internal/test/integration/completion/postfix_snippet_test.go function TestPostfixSnippetCompletion (line 14) | func TestPostfixSnippetCompletion(t *testing.T) { FILE: gopls/internal/test/integration/debug/debug_test.go function TestMain (line 22) | func TestMain(m *testing.M) { function TestBugNotification (line 26) | func TestBugNotification(t *testing.T) { function TestStartDebugging (line 41) | func TestStartDebugging(t *testing.T) { function startDebugging (line 77) | func startDebugging(ctx context.Context, server protocol.Server, args *c... FILE: gopls/internal/test/integration/diagnostics/analysis_test.go function TestTimeFormatAnalyzer (line 21) | func TestTimeFormatAnalyzer(t *testing.T) { function TestAnalysisProgressReporting (line 54) | func TestAnalysisProgressReporting(t *testing.T) { function TestNoSuggestedFixesForEmbedDirectiveDeclaration (line 95) | func TestNoSuggestedFixesForEmbedDirectiveDeclaration(t *testing.T) { function TestAnalysisFiltering (line 130) | func TestAnalysisFiltering(t *testing.T) { function TestModernizationConsistency_Issue75000 (line 159) | func TestModernizationConsistency_Issue75000(t *testing.T) { FILE: gopls/internal/test/integration/diagnostics/builtin_test.go function TestIssue44866 (line 14) | func TestIssue44866(t *testing.T) { FILE: gopls/internal/test/integration/diagnostics/diagnostics_test.go function TestMain (line 22) | func TestMain(m *testing.M) { constant exampleProgram (line 28) | exampleProgram = ` function TestDiagnosticErrorInEditedFile (line 42) | func TestDiagnosticErrorInEditedFile(t *testing.T) { function TestMissingImportDiagsClearOnFirstFile (line 68) | func TestMissingImportDiagsClearOnFirstFile(t *testing.T) { function TestDiagnosticErrorInNewFile (line 95) | func TestDiagnosticErrorInNewFile(t *testing.T) { constant badPackage (line 115) | badPackage = ` function TestDiagnosticClearingOnEdit (line 130) | func TestDiagnosticClearingOnEdit(t *testing.T) { function TestDiagnosticClearingOnDelete_Issue37049 (line 162) | func TestDiagnosticClearingOnDelete_Issue37049(t *testing.T) { function TestDiagnosticClearingOnClose (line 178) | func TestDiagnosticClearingOnClose(t *testing.T) { function TestIssue37978 (line 198) | func TestIssue37978(t *testing.T) { constant test38878 (line 225) | test38878 = ` function TestDeleteTestVariant (line 249) | func TestDeleteTestVariant(t *testing.T) { function TestDeleteTestVariant_DiskOnly (line 265) | func TestDeleteTestVariant_DiskOnly(t *testing.T) { function TestNoMod (line 276) | func TestNoMod(t *testing.T) { function TestIssue38267 (line 350) | func TestIssue38267(t *testing.T) { function TestPackageChange_Issue38328 (line 398) | func TestPackageChange_Issue38328(t *testing.T) { constant testPackageWithRequire (line 417) | testPackageWithRequire = ` constant testPackageWithRequireProxy (line 438) | testPackageWithRequireProxy = ` function TestResolveDiagnosticWithDownload (line 449) | func TestResolveDiagnosticWithDownload(t *testing.T) { function TestMissingDependency (line 466) | func TestMissingDependency(t *testing.T) { function TestAdHocPackages_Issue36951 (line 478) | func TestAdHocPackages_Issue36951(t *testing.T) { function TestNoGOPATH_Issue37984 (line 496) | func TestNoGOPATH_Issue37984(t *testing.T) { function TestEqualInEnv_Issue38669 (line 519) | func TestEqualInEnv_Issue38669(t *testing.T) { function TestNoSuggestedFixesForGeneratedFiles_Issue38467 (line 544) | func TestNoSuggestedFixesForGeneratedFiles_Issue38467(t *testing.T) { function TestBrokenWorkspace_OutsideModule (line 583) | func TestBrokenWorkspace_OutsideModule(t *testing.T) { function TestNonGoFolder (line 614) | func TestNonGoFolder(t *testing.T) { function TestConflictingMainPackageErrors (line 635) | func TestConflictingMainPackageErrors(t *testing.T) { constant ardanLabsProxy (line 672) | ardanLabsProxy = ` function Test_issue38211 (line 684) | func Test_issue38211(t *testing.T) { function TestNewModule_Issue38207 (line 787) | func TestNewModule_Issue38207(t *testing.T) { function TestNewFileBadImports_Issue36960 (line 820) | func TestNewFileBadImports_Issue36960(t *testing.T) { function TestManuallyCreatingXTest (line 851) | func TestManuallyCreatingXTest(t *testing.T) { function TestCreateOnlyXTest (line 918) | func TestCreateOnlyXTest(t *testing.T) { function TestChangePackageName (line 946) | func TestChangePackageName(t *testing.T) { function TestIgnoredFiles (line 968) | func TestIgnoredFiles(t *testing.T) { function TestDeletePackage (line 990) | func TestDeletePackage(t *testing.T) { function TestQuickFixEmptyFiles (line 1031) | func TestQuickFixEmptyFiles(t *testing.T) { function TestSingleFile (line 1117) | func TestSingleFile(t *testing.T) { function TestPkgm (line 1143) | func TestPkgm(t *testing.T) { function TestClosingBuffer (line 1170) | func TestClosingBuffer(t *testing.T) { function TestCutAndPaste (line 1190) | func TestCutAndPaste(t *testing.T) { function TestInvalidPackageName (line 1232) | func TestInvalidPackageName(t *testing.T) { function TestExpandWorkspaceToModule (line 1256) | func TestExpandWorkspaceToModule(t *testing.T) { function TestWorkspaceModules (line 1297) | func TestWorkspaceModules(t *testing.T) { function TestSimplifyCompositeLitDiagnostic (line 1341) | func TestSimplifyCompositeLitDiagnostic(t *testing.T) { function TestSecondaryDiagnostics (line 1380) | func TestSecondaryDiagnostics(t *testing.T) { function TestOrphanedFiles (line 1421) | func TestOrphanedFiles(t *testing.T) { function TestSwig (line 1471) | func TestSwig(t *testing.T) { function TestRenamePackage (line 1525) | func TestRenamePackage(t *testing.T) { function TestProgressBarErrors (line 1586) | func TestProgressBarErrors(t *testing.T) { function TestDeleteDirectory (line 1618) | func TestDeleteDirectory(t *testing.T) { function TestCircularImports (line 1658) | func TestCircularImports(t *testing.T) { function TestResolveImportCycle (line 1702) | func TestResolveImportCycle(t *testing.T) { function TestBadImport (line 1750) | func TestBadImport(t *testing.T) { function TestNestedModules (line 1785) | func TestNestedModules(t *testing.T) { function TestAdHocPackagesReloading (line 1844) | func TestAdHocPackagesReloading(t *testing.T) { function TestBuildTagChange (line 1858) | func TestBuildTagChange(t *testing.T) { function TestIssue44736 (line 1885) | func TestIssue44736(t *testing.T) { function TestInitialization (line 1921) | func TestInitialization(t *testing.T) { function TestNoReinitialize (line 1943) | func TestNoReinitialize(t *testing.T) { function TestLangVersion (line 1965) | func TestLangVersion(t *testing.T) { function TestNoQuickFixForUndeclaredConstraint (line 1988) | func TestNoQuickFixForUndeclaredConstraint(t *testing.T) { function TestEditGoDirective (line 2014) | func TestEditGoDirective(t *testing.T) { function TestEditGoDirectiveWorkspace (line 2041) | func TestEditGoDirectiveWorkspace(t *testing.T) { function TestInterpackageAnalysis (line 2080) | func TestInterpackageAnalysis(t *testing.T) { function TestErrorsThatPreventAnalysis (line 2127) | func TestErrorsThatPreventAnalysis(t *testing.T) { function TestDeprecatedAnalysis (line 2191) | func TestDeprecatedAnalysis(t *testing.T) { function TestDiagnosticsOnlyOnSaveFile (line 2226) | func TestDiagnosticsOnlyOnSaveFile(t *testing.T) { FILE: gopls/internal/test/integration/diagnostics/golist_test.go function TestGoListErrors (line 15) | func TestGoListErrors(t *testing.T) { FILE: gopls/internal/test/integration/diagnostics/gopackagesdriver_test.go function TestBrokenWorkspace_GOPACKAGESDRIVER (line 15) | func TestBrokenWorkspace_GOPACKAGESDRIVER(t *testing.T) { function TestValidImportCheck_GoPackagesDriver (line 47) | func TestValidImportCheck_GoPackagesDriver(t *testing.T) { FILE: gopls/internal/test/integration/diagnostics/invalidation_test.go function TestDiagnosticsAreResentAfterCloseOrOpen (line 17) | func TestDiagnosticsAreResentAfterCloseOrOpen(t *testing.T) { function TestChattyDiagnostics (line 57) | func TestChattyDiagnostics(t *testing.T) { function TestCreatingPackageInvalidatesDiagnostics_Issue66384 (line 108) | func TestCreatingPackageInvalidatesDiagnostics_Issue66384(t *testing.T) { FILE: gopls/internal/test/integration/diagnostics/undeclared_test.go function TestUndeclaredDiagnostics (line 15) | func TestUndeclaredDiagnostics(t *testing.T) { FILE: gopls/internal/test/integration/env.go type Env (line 28) | type Env struct method Await (line 327) | func (e *Env) Await(expectations ...Expectation) { method OnceMet (line 337) | func (e *Env) OnceMet(pre Expectation, mustMeets ...Expectation) { type Awaiter (line 59) | type Awaiter struct method Hooks (line 87) | func (a *Awaiter) Hooks() fake.ClientHooks { method onDiagnostics (line 139) | func (a *Awaiter) onDiagnostics(_ context.Context, d *protocol.Publish... method onShowDocument (line 149) | func (a *Awaiter) onShowDocument(_ context.Context, params *protocol.S... method ListenToShownDocuments (line 167) | func (a *Awaiter) ListenToShownDocuments() func() []*protocol.ShowDocu... method onShowMessage (line 187) | func (a *Awaiter) onShowMessage(_ context.Context, params *protocol.Sh... method ListenToShownMessages (line 209) | func (a *Awaiter) ListenToShownMessages() func() []*protocol.ShowMessa... method onShowMessageRequest (line 229) | func (a *Awaiter) onShowMessageRequest(_ context.Context, m *protocol.... method onLogMessage (line 238) | func (a *Awaiter) onLogMessage(_ context.Context, m *protocol.LogMessa... method onWorkDoneProgressCreate (line 247) | func (a *Awaiter) onWorkDoneProgressCreate(_ context.Context, m *proto... method onProgress (line 255) | func (a *Awaiter) onProgress(_ context.Context, m *protocol.ProgressPa... method onRegisterCapability (line 288) | func (a *Awaiter) onRegisterCapability(_ context.Context, m *protocol.... method onUnregisterCapability (line 303) | func (a *Awaiter) onUnregisterCapability(_ context.Context, m *protoco... method checkConditionsLocked (line 312) | func (a *Awaiter) checkConditionsLocked() { method Await (line 344) | func (a *Awaiter) Await(ctx context.Context, expectation Expectation) ... function NewAwaiter (line 73) | func NewAwaiter(workdir *fake.Workdir) *Awaiter { type State (line 102) | type State struct type workProgress (line 121) | type workProgress struct type awaitResult (line 127) | type awaitResult struct type condition (line 134) | type condition struct function indent (line 379) | func indent(msg string) string { function CleanModCache (line 393) | func CleanModCache(t *testing.T, modcache string) { function CodeActionByKind (line 402) | func CodeActionByKind(actions []protocol.CodeAction, kind protocol.CodeA... FILE: gopls/internal/test/integration/env_test.go function TestProgressUpdating (line 15) | func TestProgressUpdating(t *testing.T) { function varOf (line 71) | func varOf[T any](x T) *T { return &x } FILE: gopls/internal/test/integration/expectation.go type Verdict (line 29) | type Verdict method String (line 44) | func (v Verdict) String() string { constant Met (line 35) | Met Verdict = iota constant Unmet (line 38) | Unmet constant Unmeetable (line 41) | Unmeetable type Expectation (line 61) | type Expectation struct function OnceMet (line 75) | func OnceMet(pre, post Expectation) Expectation { function Not (line 100) | func Not(e Expectation) Expectation { function AnyOf (line 119) | func AnyOf(anyOf ...Expectation) Expectation { function AllOf (line 140) | func AllOf(allOf ...Expectation) Expectation { function describeExpectations (line 165) | func describeExpectations(expectations ...Expectation) string { function ReadDiagnostics (line 178) | func ReadDiagnostics(fileName string, into *protocol.PublishDiagnosticsP... function ReadAllDiagnostics (line 198) | func ReadAllDiagnostics(into *map[string]*protocol.PublishDiagnosticsPar... function ShownDocument (line 212) | func ShownDocument(uri protocol.URI) Expectation { function ShownDocuments (line 233) | func ShownDocuments(into *[]*protocol.ShowDocumentParams) Expectation { function NoShownMessage (line 245) | func NoShownMessage(containing string) Expectation { function ShownMessage (line 270) | func ShownMessage(containing string) Expectation { function ShownMessageRequest (line 287) | func ShownMessageRequest(matchingRegexp string) Expectation { method DoneDiagnosingChanges (line 315) | func (e *Env) DoneDiagnosingChanges() Expectation { method AfterChange (line 354) | func (e *Env) AfterChange(expectations ...Expectation) { method DoneWithOpen (line 364) | func (e *Env) DoneWithOpen() Expectation { method StartedChange (line 371) | func (e *Env) StartedChange() Expectation { method DoneWithChange (line 378) | func (e *Env) DoneWithChange() Expectation { method DoneWithSave (line 385) | func (e *Env) DoneWithSave() Expectation { method StartedChangeWatchedFiles (line 392) | func (e *Env) StartedChangeWatchedFiles() Expectation { method DoneWithChangeWatchedFiles (line 399) | func (e *Env) DoneWithChangeWatchedFiles() Expectation { method DoneWithClose (line 406) | func (e *Env) DoneWithClose() Expectation { function StartedWork (line 414) | func StartedWork(title string, atLeast uint64) Expectation { function CompletedWork (line 432) | func CompletedWork(title string, count uint64, atLeast bool) Expectation { function pluralize (line 451) | func pluralize[T constraints.Integer](name string, n T) string { type WorkStatus (line 458) | type WorkStatus struct function CompletedProgressToken (line 471) | func CompletedProgressToken(token protocol.ProgressToken, into *WorkStat... function CompletedProgress (line 499) | func CompletedProgress(title string, into *WorkStatus) Expectation { function OutstandingWork (line 532) | func OutstandingWork(title, msg string) Expectation { function NoOutstandingWork (line 558) | func NoOutstandingWork(ignore func(title, msg string) bool) Expectation { function IgnoreTelemetryPromptWork (line 586) | func IgnoreTelemetryPromptWork(title, msg string) bool { function NoErrorLogs (line 592) | func NoErrorLogs() Expectation { function LogMatching (line 606) | func LogMatching(typ protocol.MessageType, re string, count int, atLeast... function NoLogMatching (line 643) | func NoLogMatching(typ protocol.MessageType, re string) Expectation { function FileWatchMatching (line 674) | func FileWatchMatching(re string) Expectation { function NoFileWatchMatching (line 682) | func NoFileWatchMatching(re string) Expectation { function checkFileWatch (line 689) | func checkFileWatch(re string, onMatch, onNoMatch Verdict) func(State) (... function jsonProperty (line 715) | func jsonProperty(obj any, path ...string) any { function formatDiagnostic (line 723) | func formatDiagnostic(d protocol.Diagnostic) string { function Diagnostics (line 729) | func Diagnostics(filters ...DiagnosticFilter) Expectation { function NoDiagnostics (line 770) | func NoDiagnostics(filters ...DiagnosticFilter) Expectation { type flatDiagnostic (line 799) | type flatDiagnostic struct function flattenDiagnostics (line 804) | func flattenDiagnostics(state State) []flatDiagnostic { type DiagnosticFilter (line 818) | type DiagnosticFilter struct function ForFile (line 824) | func ForFile(name string) DiagnosticFilter { function FromSource (line 834) | func FromSource(source string) DiagnosticFilter { method AtRegexp (line 848) | func (e *Env) AtRegexp(name, pattern string) DiagnosticFilter { function AtPosition (line 864) | func AtPosition(name string, line, character uint32) DiagnosticFilter { function WithMessage (line 876) | func WithMessage(substring string) DiagnosticFilter { function WithSeverityTags (line 887) | func WithSeverityTags(diagName string, severity protocol.DiagnosticSever... FILE: gopls/internal/test/integration/fake/client.go type ClientHooks (line 23) | type ClientHooks struct type Client (line 38) | type Client struct method SetApplyEditHandler (line 50) | func (c *Client) SetApplyEditHandler(h ApplyEditHandler) func() { method CodeLensRefresh (line 62) | func (c *Client) CodeLensRefresh(context.Context) error { return nil } method InlayHintRefresh (line 64) | func (c *Client) InlayHintRefresh(context.Context) error { return nil } method DiagnosticRefresh (line 66) | func (c *Client) DiagnosticRefresh(context.Context) error { return nil } method FoldingRangeRefresh (line 68) | func (c *Client) FoldingRangeRefresh(context.Context) error { return n... method InlineValueRefresh (line 70) | func (c *Client) InlineValueRefresh(context.Context) error { return nil } method SemanticTokensRefresh (line 72) | func (c *Client) SemanticTokensRefresh(context.Context) error { return... method LogTrace (line 74) | func (c *Client) LogTrace(context.Context, *protocol.LogTraceParams) e... method TextDocumentContentRefresh (line 76) | func (c *Client) TextDocumentContentRefresh(context.Context, *protocol... method ShowMessage (line 80) | func (c *Client) ShowMessage(ctx context.Context, params *protocol.Sho... method ShowMessageRequest (line 87) | func (c *Client) ShowMessageRequest(ctx context.Context, params *proto... method LogMessage (line 99) | func (c *Client) LogMessage(ctx context.Context, params *protocol.LogM... method Event (line 106) | func (c *Client) Event(ctx context.Context, event *any) error { method PublishDiagnostics (line 110) | func (c *Client) PublishDiagnostics(ctx context.Context, params *proto... method WorkspaceFolders (line 117) | func (c *Client) WorkspaceFolders(context.Context) ([]protocol.Workspa... method Configuration (line 121) | func (c *Client) Configuration(_ context.Context, p *protocol.ParamCon... method RegisterCapability (line 135) | func (c *Client) RegisterCapability(ctx context.Context, params *proto... method UnregisterCapability (line 182) | func (c *Client) UnregisterCapability(ctx context.Context, params *pro... method Progress (line 189) | func (c *Client) Progress(ctx context.Context, params *protocol.Progre... method WorkDoneProgressCreate (line 196) | func (c *Client) WorkDoneProgressCreate(ctx context.Context, params *p... method ShowDocument (line 203) | func (c *Client) ShowDocument(ctx context.Context, params *protocol.Sh... method ApplyEdit (line 213) | func (c *Client) ApplyEdit(ctx context.Context, params *protocol.Apply... FILE: gopls/internal/test/integration/fake/edit.go function NewEdit (line 16) | func NewEdit(startLine, startColumn, endLine, endColumn uint32, text str... function applyEdits (line 29) | func applyEdits(mapper *protocol.Mapper, edits []protocol.TextEdit, wind... FILE: gopls/internal/test/integration/fake/edit_test.go function TestApplyEdits (line 13) | func TestApplyEdits(t *testing.T) { FILE: gopls/internal/test/integration/fake/editor.go type Editor (line 36) | type Editor struct method Connect (line 173) | func (e *Editor) Connect(ctx context.Context, connector servertest.Con... method Stats (line 206) | func (e *Editor) Stats() CallCounts { method Shutdown (line 213) | func (e *Editor) Shutdown(ctx context.Context) error { method Exit (line 223) | func (e *Editor) Exit(ctx context.Context) error { method Close (line 236) | func (e *Editor) Close(ctx context.Context) error { method Client (line 258) | func (e *Editor) Client() *Client { method initialize (line 314) | func (e *Editor) initialize(ctx context.Context) error { method ServerCapabilities (line 426) | func (e *Editor) ServerCapabilities() protocol.ServerCapabilities { method HasCommand (line 444) | func (e *Editor) HasCommand(cmd command.Command) bool { method onFileChanges (line 477) | func (e *Editor) onFileChanges(ctx context.Context, evts []protocol.Fi... method OpenFile (line 536) | func (e *Editor) OpenFile(ctx context.Context, path string) error { method CreateBuffer (line 576) | func (e *Editor) CreateBuffer(ctx context.Context, path, content strin... method createBuffer (line 580) | func (e *Editor) createBuffer(ctx context.Context, path string, dirty ... method textDocumentItem (line 606) | func (e *Editor) textDocumentItem(buf buffer) protocol.TextDocumentItem { method sendDidOpen (line 615) | func (e *Editor) sendDidOpen(ctx context.Context, item protocol.TextDo... method CloseBuffer (line 658) | func (e *Editor) CloseBuffer(ctx context.Context, path string) error { method sendDidClose (line 671) | func (e *Editor) sendDidClose(ctx context.Context, doc protocol.TextDo... method DocumentURI (line 685) | func (e *Editor) DocumentURI(path string) protocol.DocumentURI { method TextDocumentIdentifier (line 689) | func (e *Editor) TextDocumentIdentifier(path string) protocol.TextDocu... method SaveBuffer (line 697) | func (e *Editor) SaveBuffer(ctx context.Context, path string) error { method SaveBufferWithoutActions (line 707) | func (e *Editor) SaveBufferWithoutActions(ctx context.Context, path st... method RegexpSearch (line 792) | func (e *Editor) RegexpSearch(bufName, re string) (protocol.Location, ... method RegexpReplace (line 807) | func (e *Editor) RegexpReplace(ctx context.Context, path, re, replace ... method EditBuffer (line 830) | func (e *Editor) EditBuffer(ctx context.Context, path string, edits []... method SetBufferContent (line 836) | func (e *Editor) SetBufferContent(ctx context.Context, path, content s... method HasBuffer (line 843) | func (e *Editor) HasBuffer(name string) bool { method BufferText (line 853) | func (e *Editor) BufferText(name string) (string, bool) { method Mapper (line 864) | func (e *Editor) Mapper(name string) (*protocol.Mapper, error) { method BufferVersion (line 876) | func (e *Editor) BufferVersion(name string) int { method editBufferLocked (line 882) | func (e *Editor) editBufferLocked(ctx context.Context, path string, ed... method setBufferContentLocked (line 894) | func (e *Editor) setBufferContentLocked(ctx context.Context, path stri... method Definitions (line 933) | func (e *Editor) Definitions(ctx context.Context, loc protocol.Locatio... method TypeDefinitions (line 946) | func (e *Editor) TypeDefinitions(ctx context.Context, loc protocol.Loc... method Symbol (line 959) | func (e *Editor) Symbol(ctx context.Context, query string) ([]protocol... method OrganizeImports (line 965) | func (e *Editor) OrganizeImports(ctx context.Context, path string) err... method RefactorRewrite (line 972) | func (e *Editor) RefactorRewrite(ctx context.Context, loc protocol.Loc... method ApplyQuickFixes (line 984) | func (e *Editor) ApplyQuickFixes(ctx context.Context, loc protocol.Loc... method ApplyCodeAction (line 993) | func (e *Editor) ApplyCodeAction(ctx context.Context, action protocol.... method Diagnostics (line 1037) | func (e *Editor) Diagnostics(ctx context.Context, path string) ([]prot... method GetQuickFixes (line 1074) | func (e *Editor) GetQuickFixes(ctx context.Context, loc protocol.Locat... method applyCodeActions (line 1078) | func (e *Editor) applyCodeActions(ctx context.Context, loc protocol.Lo... method CodeActions (line 1098) | func (e *Editor) CodeActions(ctx context.Context, loc protocol.Locatio... method ExecuteCodeLensCommand (line 1112) | func (e *Editor) ExecuteCodeLensCommand(ctx context.Context, path stri... method ExecuteCommand (line 1138) | func (e *Editor) ExecuteCommand(ctx context.Context, params *protocol.... method FormatBuffer (line 1184) | func (e *Editor) FormatBuffer(ctx context.Context, path string) error { method checkBufferLocation (line 1208) | func (e *Editor) checkBufferLocation(loc protocol.Location) error { method RunGenerate (line 1226) | func (e *Editor) RunGenerate(ctx context.Context, dir string) error { method CodeLens (line 1250) | func (e *Editor) CodeLens(ctx context.Context, path string) ([]protoco... method Completion (line 1271) | func (e *Editor) Completion(ctx context.Context, loc protocol.Location... method DidCreateFiles (line 1292) | func (e *Editor) DidCreateFiles(ctx context.Context, files ...protocol... method SetSuggestionInsertReplaceMode (line 1305) | func (e *Editor) SetSuggestionInsertReplaceMode(_ context.Context, use... method AcceptCompletion (line 1316) | func (e *Editor) AcceptCompletion(ctx context.Context, loc protocol.Lo... method Symbols (line 1337) | func (e *Editor) Symbols(ctx context.Context, sym string) ([]protocol.... method InlayHint (line 1347) | func (e *Editor) InlayHint(ctx context.Context, path string) ([]protoc... method References (line 1369) | func (e *Editor) References(ctx context.Context, loc protocol.Location... method Rename (line 1395) | func (e *Editor) Rename(ctx context.Context, loc protocol.Location, ne... method Implementations (line 1422) | func (e *Editor) Implementations(ctx context.Context, loc protocol.Loc... method SignatureHelp (line 1439) | func (e *Editor) SignatureHelp(ctx context.Context, loc protocol.Locat... method RenameFile (line 1456) | func (e *Editor) RenameFile(ctx context.Context, oldPath, newPath stri... method renameBuffers (line 1483) | func (e *Editor) renameBuffers(oldPath, newPath string) (closed []prot... method applyWorkspaceEdit (line 1531) | func (e *Editor) applyWorkspaceEdit(ctx context.Context, wsedit *proto... method applyTextDocumentEdit (line 1587) | func (e *Editor) applyTextDocumentEdit(ctx context.Context, change pro... method Config (line 1608) | func (e *Editor) Config() EditorConfig { method SetConfig (line 1614) | func (e *Editor) SetConfig(cfg EditorConfig) { method ChangeConfiguration (line 1624) | func (e *Editor) ChangeConfiguration(ctx context.Context, newConfig Ed... method ChangeWorkspaceFolders (line 1642) | func (e *Editor) ChangeWorkspaceFolders(ctx context.Context, folders [... method ResolveCodeAction (line 1688) | func (e *Editor) ResolveCodeAction(ctx context.Context, action *protoc... method CodeAction (line 1699) | func (e *Editor) CodeAction(ctx context.Context, loc protocol.Location... method EditResolveSupport (line 1726) | func (e *Editor) EditResolveSupport() (bool, error) { method Hover (line 1736) | func (e *Editor) Hover(ctx context.Context, loc protocol.Location) (*p... method DocumentLink (line 1755) | func (e *Editor) DocumentLink(ctx context.Context, path string) ([]pro... method DocumentHighlight (line 1764) | func (e *Editor) DocumentHighlight(ctx context.Context, loc protocol.L... method SemanticTokensFull (line 1780) | func (e *Editor) SemanticTokensFull(ctx context.Context, path string) ... method SemanticTokensRange (line 1799) | func (e *Editor) SemanticTokensRange(ctx context.Context, loc protocol... method interpretTokens (line 1826) | func (e *Editor) interpretTokens(x []uint32, contents string) []Semant... type CallCounts (line 66) | type CallCounts struct type buffer (line 71) | type buffer struct method text (line 78) | func (b buffer) text() string { type EditorConfig (line 87) | type EditorConfig struct function NewEditor (line 158) | func NewEditor(sandbox *Sandbox, config EditorConfig) *Editor { function DelayedHandler (line 195) | func DelayedHandler(maxDelay time.Duration, handler jsonrpc2.Handler) js... function makeSettings (line 263) | func makeSettings(sandbox *Sandbox, config EditorConfig, scopeURI *proto... function clientCapabilities (line 364) | func clientCapabilities(cfg EditorConfig) (protocol.ClientCapabilities, ... function marshalUnmarshal (line 433) | func marshalUnmarshal[T any](v any) (T, error) { function makeWorkspaceFolders (line 453) | func makeWorkspaceFolders(sandbox *Sandbox, paths []string, useEmpty boo... function toWindowsLineEndings (line 553) | func toWindowsLineEndings(content []byte) []byte { function languageID (line 640) | func languageID(p string, fileAssociations map[protocol.LanguageKind]str... function regexpLocation (line 762) | func regexpLocation(mapper *protocol.Mapper, re string) (protocol.Locati... type SemanticToken (line 1818) | type SemanticToken struct FILE: gopls/internal/test/integration/fake/editor_test.go constant exampleProgram (line 14) | exampleProgram = ` function TestClientEditing (line 27) | func TestClientEditing(t *testing.T) { FILE: gopls/internal/test/integration/fake/glob/glob.go type Glob (line 42) | type Glob struct method parseLiteral (line 158) | func (g *Glob) parseLiteral(pattern string, nested bool) string { method String (line 173) | func (g *Glob) String() string { method Match (line 215) | func (g *Glob) Match(input string) bool { function Parse (line 48) | func Parse(pattern string) (*Glob, error) { function parse (line 53) | func parse(pattern string, nested bool) (*Glob, string, error) { function readRangeRune (line 138) | func readRangeRune(input string) (rune, int, error) { type element (line 182) | type element type slash (line 186) | type slash struct method String (line 198) | func (s slash) String() string { return "/" } type literal (line 187) | type literal method String (line 199) | func (l literal) String() string { return string(l) } type star (line 188) | type star struct method String (line 200) | func (s star) String() string { return "*" } type anyChar (line 189) | type anyChar struct method String (line 201) | func (a anyChar) String() string { return "?" } type starStar (line 190) | type starStar struct method String (line 202) | func (s starStar) String() string { return "**" } type group (line 191) | type group method String (line 203) | func (g group) String() string { type charRange (line 192) | type charRange struct method String (line 210) | func (r charRange) String() string { function match (line 219) | func match(elems []element, input string) (ok bool) { function split (line 337) | func split(input string) (first, rest string) { FILE: gopls/internal/test/integration/fake/glob/glob_test.go function TestParseErrors (line 13) | func TestParseErrors(t *testing.T) { function TestMatch (line 30) | func TestMatch(t *testing.T) { FILE: gopls/internal/test/integration/fake/proxy.go function WriteProxy (line 16) | func WriteProxy(tmpdir string, files map[string][]byte) (string, error) { FILE: gopls/internal/test/integration/fake/sandbox.go type Sandbox (line 22) | type Sandbox struct method RootDir (line 192) | func (sb *Sandbox) RootDir() string { method GOPATH (line 197) | func (sb *Sandbox) GOPATH() string { method GoEnv (line 203) | func (sb *Sandbox) GoEnv() map[string]string { method goCommandInvocation (line 219) | func (sb *Sandbox) goCommandInvocation() gocommand.Invocation { method RunGoCommand (line 239) | func (sb *Sandbox) RunGoCommand(ctx context.Context, dir, verb string,... method GoVersion (line 266) | func (sb *Sandbox) GoVersion(ctx context.Context) (int, error) { method Close (line 272) | func (sb *Sandbox) Close() error { type SandboxConfig (line 32) | type SandboxConfig struct function NewSandbox (line 75) | func NewSandbox(config *SandboxConfig) (_ *Sandbox, err error) { function UnpackTxt (line 147) | func UnpackTxt(txt string) map[string][]byte { function validateConfig (line 159) | func validateConfig(config SandboxConfig) error { function splitModuleVersionPath (line 177) | func splitModuleVersionPath(path string) (modulePath, version, suffix st... FILE: gopls/internal/test/integration/fake/workdir.go type RelativeTo (line 27) | type RelativeTo method AbsPath (line 30) | func (r RelativeTo) AbsPath(path string) string { method RelPath (line 40) | func (r RelativeTo) RelPath(fp string) string { function writeFileData (line 51) | func writeFileData(path string, content []byte, rel RelativeTo) error { type Workdir (line 81) | type Workdir struct method RootURI (line 131) | func (w *Workdir) RootURI() protocol.DocumentURI { method AddWatcher (line 136) | func (w *Workdir) AddWatcher(watcher func(context.Context, []protocol.... method URI (line 143) | func (w *Workdir) URI(path string) protocol.DocumentURI { method URIToPath (line 149) | func (w *Workdir) URIToPath(uri protocol.DocumentURI) string { method EntireFile (line 154) | func (w *Workdir) EntireFile(path string) protocol.Location { method ReadFile (line 159) | func (w *Workdir) ReadFile(path string) ([]byte, error) { method RegexpSearch (line 179) | func (w *Workdir) RegexpSearch(path string, re string) (protocol.Locat... method RemoveFile (line 190) | func (w *Workdir) RemoveFile(ctx context.Context, path string) error { method WriteFiles (line 201) | func (w *Workdir) WriteFiles(ctx context.Context, files map[string]str... method WriteFile (line 217) | func (w *Workdir) WriteFile(ctx context.Context, path, content string)... method RenameFile (line 225) | func (w *Workdir) RenameFile(ctx context.Context, oldPath, newPath str... method ListFiles (line 308) | func (w *Workdir) ListFiles(dir string) ([]string, error) { method CheckForFileChanges (line 328) | func (w *Workdir) CheckForFileChanges(ctx context.Context) error { method pollFiles (line 347) | func (w *Workdir) pollFiles() ([]protocol.FileEvent, error) { function NewWorkdir (line 108) | func NewWorkdir(dir string, files map[string][]byte) (*Workdir, error) { type fileID (line 120) | type fileID struct function hashFile (line 125) | func hashFile(data []byte) string { FILE: gopls/internal/test/integration/fake/workdir_test.go constant sharedData (line 17) | sharedData = ` function newWorkdir (line 31) | func newWorkdir(t *testing.T, txt string) (*Workdir, *eventBuffer, func(... type eventBuffer (line 54) | type eventBuffer struct method onEvents (line 60) | func (c *eventBuffer) onEvents(_ context.Context, events []protocol.Fi... method take (line 68) | func (c *eventBuffer) take() []protocol.FileEvent { function TestWorkdir_ReadFile (line 77) | func TestWorkdir_ReadFile(t *testing.T) { function TestWorkdir_WriteFile (line 91) | func TestWorkdir_WriteFile(t *testing.T) { function TestWorkdir_FileWatching (line 131) | func TestWorkdir_FileWatching(t *testing.T) { function TestWorkdir_CheckForFileChanges (line 163) | func TestWorkdir_CheckForFileChanges(t *testing.T) { function TestSplitModuleVersionPath (line 200) | func TestSplitModuleVersionPath(t *testing.T) { FILE: gopls/internal/test/integration/fake/workdir_windows.go function init (line 12) | func init() { FILE: gopls/internal/test/integration/hover/hover_test.go function TestMain (line 15) | func TestMain(m *testing.M) { function TestIssue77675 (line 22) | func TestIssue77675(t *testing.T) { FILE: gopls/internal/test/integration/inlayhints/inlayhints_test.go function TestMain (line 15) | func TestMain(m *testing.M) { function TestEnablingInlayHints (line 20) | func TestEnablingInlayHints(t *testing.T) { FILE: gopls/internal/test/integration/misc/addtest_test.go function TestAddTest (line 17) | func TestAddTest(t *testing.T) { FILE: gopls/internal/test/integration/misc/call_hierarchy_test.go function TestCallHierarchy_Issue49125 (line 15) | func TestCallHierarchy_Issue49125(t *testing.T) { FILE: gopls/internal/test/integration/misc/codeactions_test.go function TestCodeActionsInGeneratedFiles (line 22) | func TestCodeActionsInGeneratedFiles(t *testing.T) { function TestVSCodeIssue65167 (line 115) | func TestVSCodeIssue65167(t *testing.T) { function TestDescendingRange (line 157) | func TestDescendingRange(t *testing.T) { function TestIssue76235 (line 182) | func TestIssue76235(t *testing.T) { FILE: gopls/internal/test/integration/misc/compileropt_test.go function TestCompilerOptDetails (line 18) | func TestCompilerOptDetails(t *testing.T) { function TestCompilerOptDetails_perDirectory (line 87) | func TestCompilerOptDetails_perDirectory(t *testing.T) { function TestCompilerOptDetails_config (line 173) | func TestCompilerOptDetails_config(t *testing.T) { function cond (line 226) | func cond[T any](cond bool, x, y T) T { FILE: gopls/internal/test/integration/misc/configuration_test.go function TestChangeConfiguration (line 17) | func TestChangeConfiguration(t *testing.T) { function TestIdenticalConfiguration (line 47) | func TestIdenticalConfiguration(t *testing.T) { function TestWorkspaceConfiguration (line 117) | func TestWorkspaceConfiguration(t *testing.T) { function TestMajorOptionsChange (line 161) | func TestMajorOptionsChange(t *testing.T) { function TestStaticcheckWarning (line 199) | func TestStaticcheckWarning(t *testing.T) { function TestDeprecatedSettings (line 227) | func TestDeprecatedSettings(t *testing.T) { FILE: gopls/internal/test/integration/misc/debugserver_test.go function TestStartDebugging (line 17) | func TestStartDebugging(t *testing.T) { FILE: gopls/internal/test/integration/misc/definition_test.go constant internalDefinition (line 23) | internalDefinition = ` function TestGoToInternalDefinition (line 42) | func TestGoToInternalDefinition(t *testing.T) { constant linknameDefinition (line 56) | linknameDefinition = ` function TestGoToLinknameDefinition (line 88) | func TestGoToLinknameDefinition(t *testing.T) { constant linknameDefinitionReverse (line 105) | linknameDefinitionReverse = ` function TestGoToLinknameDefinitionInReverseDep (line 137) | func TestGoToLinknameDefinitionInReverseDep(t *testing.T) { constant linknameDefinitionDisconnected (line 155) | linknameDefinitionDisconnected = ` function TestGoToLinknameDefinitionDisconnected (line 176) | func TestGoToLinknameDefinitionDisconnected(t *testing.T) { constant stdlibDefinition (line 193) | stdlibDefinition = ` function TestGoToStdlibDefinition_Issue37045 (line 207) | func TestGoToStdlibDefinition_Issue37045(t *testing.T) { function TestUnexportedStdlib_Issue40809 (line 230) | func TestUnexportedStdlib_Issue40809(t *testing.T) { function TestHoverOnError (line 260) | func TestHoverOnError(t *testing.T) { function TestImportShortcut (line 286) | func TestImportShortcut(t *testing.T) { function TestImportTestVariant (line 326) | func TestImportTestVariant(t *testing.T) { function TestGoToCrashingDefinition_Issue49223 (line 366) | func TestGoToCrashingDefinition_Issue49223(t *testing.T) { function TestVendoringInvalidatesMetadata (line 380) | func TestVendoringInvalidatesMetadata(t *testing.T) { constant embedDefinition (line 460) | embedDefinition = ` function TestEmbedDefinition (line 486) | func TestEmbedDefinition(t *testing.T) { function TestDefinitionOfErrorErrorMethod (line 500) | func TestDefinitionOfErrorErrorMethod(t *testing.T) { function TestAssemblyDefinition (line 528) | func TestAssemblyDefinition(t *testing.T) { function TestPackageKeyInvalidationAfterSave (line 573) | func TestPackageKeyInvalidationAfterSave(t *testing.T) { function TestCommentDefinition_Issue69616 (line 618) | func TestCommentDefinition_Issue69616(t *testing.T) { function TestUndefinedLabel_Issue76625 (line 665) | func TestUndefinedLabel_Issue76625(t *testing.T) { function TestDefinition_embedSeparator (line 697) | func TestDefinition_embedSeparator(t *testing.T) { FILE: gopls/internal/test/integration/misc/embed_test.go function TestMissingPatternDiagnostic (line 13) | func TestMissingPatternDiagnostic(t *testing.T) { FILE: gopls/internal/test/integration/misc/extract_test.go function TestExtractFunction (line 17) | func TestExtractFunction(t *testing.T) { function TestExtractLabel (line 69) | func TestExtractLabel(t *testing.T) { FILE: gopls/internal/test/integration/misc/failures_test.go function TestHoverFailure (line 17) | func TestHoverFailure(t *testing.T) { function TestFailingDiagnosticClearingOnEdit (line 49) | func TestFailingDiagnosticClearingOnEdit(t *testing.T) { FILE: gopls/internal/test/integration/misc/filecache_test.go function TestMaxFileCacheBytes (line 14) | func TestMaxFileCacheBytes(t *testing.T) { FILE: gopls/internal/test/integration/misc/fix_test.go function TestFillStruct (line 18) | func TestFillStruct(t *testing.T) { function TestFillReturns (line 98) | func TestFillReturns(t *testing.T) { function TestUnusedParameter_Issue63755 (line 134) | func TestUnusedParameter_Issue63755(t *testing.T) { FILE: gopls/internal/test/integration/misc/formatting_test.go constant unformattedProgram (line 15) | unformattedProgram = ` function TestFormatting (line 32) | func TestFormatting(t *testing.T) { function TestFormattingOneLine36824 (line 45) | func TestFormattingOneLine36824(t *testing.T) { function TestFormattingOneLineImports36824 (line 67) | func TestFormattingOneLineImports36824(t *testing.T) { function TestFormattingOneLineRmImports36824 (line 90) | func TestFormattingOneLineRmImports36824(t *testing.T) { constant disorganizedProgram (line 111) | disorganizedProgram = ` function TestOrganizeImports (line 145) | func TestOrganizeImports(t *testing.T) { function TestFormattingOnSave (line 157) | func TestFormattingOnSave(t *testing.T) { function TestCRLFLineEndings (line 171) | func TestCRLFLineEndings(t *testing.T) { function TestGofumptFormatting (line 271) | func TestGofumptFormatting(t *testing.T) { function TestGofumpt_Issue61692 (line 334) | func TestGofumpt_Issue61692(t *testing.T) { FILE: gopls/internal/test/integration/misc/generate_test.go function TestGenerateProgress (line 17) | func TestGenerateProgress(t *testing.T) { function TestGenerateUseNetwork (line 72) | func TestGenerateUseNetwork(t *testing.T) { function TestEditingGeneratedFileWarning (line 106) | func TestEditingGeneratedFileWarning(t *testing.T) { FILE: gopls/internal/test/integration/misc/highlight_test.go function TestWorkspacePackageHighlight (line 15) | func TestWorkspacePackageHighlight(t *testing.T) { function TestStdPackageHighlight_Issue43511 (line 39) | func TestStdPackageHighlight_Issue43511(t *testing.T) { function TestThirdPartyPackageHighlight_Issue43511 (line 65) | func TestThirdPartyPackageHighlight_Issue43511(t *testing.T) { function checkHighlights (line 129) | func checkHighlights(env *Env, loc protocol.Location, highlightCount int) { FILE: gopls/internal/test/integration/misc/hover_test.go function TestHoverUnexported (line 19) | func TestHoverUnexported(t *testing.T) { function TestHoverIntLiteral (line 86) | func TestHoverIntLiteral(t *testing.T) { function TestPanicInHoverBrokenCode (line 117) | func TestPanicInHoverBrokenCode(t *testing.T) { function TestHoverRune_48492 (line 131) | func TestHoverRune_48492(t *testing.T) { function TestHoverImport (line 147) | func TestHoverImport(t *testing.T) { function TestHoverPackageIdent (line 232) | func TestHoverPackageIdent(t *testing.T) { function TestHoverTags (line 321) | func TestHoverTags(t *testing.T) { function TestHoverModMissingModuleStmt (line 359) | func TestHoverModMissingModuleStmt(t *testing.T) { function TestHoverCompletionMarkdown (line 370) | func TestHoverCompletionMarkdown(t *testing.T) { function TestHoverLinks (line 429) | func TestHoverLinks(t *testing.T) { constant linknameHover (line 465) | linknameHover = ` function TestHoverLinknameDirective (line 488) | func TestHoverLinknameDirective(t *testing.T) { function TestHoverGoWork_Issue60821 (line 504) | func TestHoverGoWork_Issue60821(t *testing.T) { constant embedHover (line 524) | embedHover = ` function TestHoverEmbedDirective (line 550) | func TestHoverEmbedDirective(t *testing.T) { function TestHoverBrokenImport_Issue60592 (line 579) | func TestHoverBrokenImport_Issue60592(t *testing.T) { function TestHoverInternalLinks (line 602) | func TestHoverInternalLinks(t *testing.T) { function TestHoverInternalLinksIssue68116 (line 640) | func TestHoverInternalLinksIssue68116(t *testing.T) { function TestHoverBuiltinFile (line 690) | func TestHoverBuiltinFile(t *testing.T) { function TestHoverStdlibWithAvailableVersion (line 745) | func TestHoverStdlibWithAvailableVersion(t *testing.T) { FILE: gopls/internal/test/integration/misc/import_test.go function TestAddImport (line 17) | func TestAddImport(t *testing.T) { function TestListImports (line 56) | func TestListImports(t *testing.T) { FILE: gopls/internal/test/integration/misc/imports_test.go function TestIssue38815 (line 24) | func TestIssue38815(t *testing.T) { function TestIssue59124 (line 60) | func TestIssue59124(t *testing.T) { function TestIssue66407 (line 88) | func TestIssue66407(t *testing.T) { function TestVim1 (line 133) | func TestVim1(t *testing.T) { function TestVim2 (line 173) | func TestVim2(t *testing.T) { constant exampleProxy (line 202) | exampleProxy = ` function TestGOMODCACHE (line 217) | func TestGOMODCACHE(t *testing.T) { function Test58382 (line 293) | func Test58382(t *testing.T) { function Test61208 (line 357) | func Test61208(t *testing.T) { function Test60663 (line 405) | func Test60663(t *testing.T) { function Test44510 (line 456) | func Test44510(t *testing.T) { function TestIssue67156 (line 480) | func TestIssue67156(t *testing.T) { function TestAcceptImportsQuickFixTestVariant (line 532) | func TestAcceptImportsQuickFixTestVariant(t *testing.T) { function TestQuickFixIssue70755 (line 576) | func TestQuickFixIssue70755(t *testing.T) { function TestGoWorkImports (line 612) | func TestGoWorkImports(t *testing.T) { function TestDeprecated70736 (line 657) | func TestDeprecated70736(t *testing.T) { function TestTestImports (line 709) | func TestTestImports(t *testing.T) { function Test67973 (line 769) | func Test67973(t *testing.T) { FILE: gopls/internal/test/integration/misc/link_test.go function TestHoverAndDocumentLink (line 17) | func TestHoverAndDocumentLink(t *testing.T) { FILE: gopls/internal/test/integration/misc/misc_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function TestDocumentURIFix (line 35) | func TestDocumentURIFix(t *testing.T) { FILE: gopls/internal/test/integration/misc/modify_tags_test.go function TestModifyTags (line 16) | func TestModifyTags(t *testing.T) { FILE: gopls/internal/test/integration/misc/multiple_adhoc_test.go function TestMultipleAdHocPackages (line 13) | func TestMultipleAdHocPackages(t *testing.T) { FILE: gopls/internal/test/integration/misc/package_symbols_test.go function TestPackageSymbols (line 17) | func TestPackageSymbols(t *testing.T) { FILE: gopls/internal/test/integration/misc/prompt_test.go function TestTelemetryPrompt_PromptFile (line 26) | func TestTelemetryPrompt_PromptFile(t *testing.T) { function TestTelemetryPrompt_Conditions_Mode (line 147) | func TestTelemetryPrompt_Conditions_Mode(t *testing.T) { function TestTelemetryPrompt_Conditions_StartTimeAndSamplingToken (line 201) | func TestTelemetryPrompt_Conditions_StartTimeAndSamplingToken(t *testing... function TestTelemetryPrompt_Response (line 255) | func TestTelemetryPrompt_Response(t *testing.T) { function TestTelemetryPrompt_GivingUp (line 412) | func TestTelemetryPrompt_GivingUp(t *testing.T) { function TestTelemetryPrompt_Conditions_Command (line 459) | func TestTelemetryPrompt_Conditions_Command(t *testing.T) { FILE: gopls/internal/test/integration/misc/references_test.go function TestStdlibReferences (line 22) | func TestStdlibReferences(t *testing.T) { function TestReferencesOnErrorMethod (line 58) | func TestReferencesOnErrorMethod(t *testing.T) { function TestDefsRefsBuiltins (line 105) | func TestDefsRefsBuiltins(t *testing.T) { function TestPackageReferences (line 156) | func TestPackageReferences(t *testing.T) { function TestReferencesInTestVariants (line 247) | func TestReferencesInTestVariants(t *testing.T) { function TestImplementationsInVendor (line 363) | func TestImplementationsInVendor(t *testing.T) { function TestReferencesFromWorkspacePackages59674 (line 443) | func TestReferencesFromWorkspacePackages59674(t *testing.T) { function TestImplementationsOfError (line 507) | func TestImplementationsOfError(t *testing.T) { function fileLocations (line 557) | func fileLocations(env *integration.Env, locs []protocol.Location) []str... FILE: gopls/internal/test/integration/misc/rename_test.go function TestPrepareRenameMainPackage (line 17) | func TestPrepareRenameMainPackage(t *testing.T) { function TestRenameWithUnsafeSlice (line 53) | func TestRenameWithUnsafeSlice(t *testing.T) { function TestPrepareRenameWithNoPackageDeclaration (line 81) | func TestPrepareRenameWithNoPackageDeclaration(t *testing.T) { function TestPrepareRenameFailWithUnknownModule (line 111) | func TestPrepareRenameFailWithUnknownModule(t *testing.T) { function TestRenamePackageWithConflicts (line 145) | func TestRenamePackageWithConflicts(t *testing.T) { function TestRenamePackageWithAlias (line 206) | func TestRenamePackageWithAlias(t *testing.T) { function TestRenamePackageWithDifferentDirectoryPath (line 245) | func TestRenamePackageWithDifferentDirectoryPath(t *testing.T) { function TestRenamePackage (line 296) | func TestRenamePackage(t *testing.T) { function TestRenameInTestVariant (line 342) | func TestRenameInTestVariant(t *testing.T) { function TestRenameFileFromEditor (line 388) | func TestRenameFileFromEditor(t *testing.T) { function TestRenamePackage_Tests (line 447) | func TestRenamePackage_Tests(t *testing.T) { function TestRenamePackage_NestedModule (line 515) | func TestRenamePackage_NestedModule(t *testing.T) { function TestRenamePackage_DuplicateImport (line 614) | func TestRenamePackage_DuplicateImport(t *testing.T) { function TestRenamePackage_DuplicateBlankImport (line 668) | func TestRenamePackage_DuplicateBlankImport(t *testing.T) { function TestRenamePackage_TestVariant (line 722) | func TestRenamePackage_TestVariant(t *testing.T) { function TestRenamePackage_IntermediateTestVariant (line 765) | func TestRenamePackage_IntermediateTestVariant(t *testing.T) { function TestRenamePackage_Nesting (line 845) | func TestRenamePackage_Nesting(t *testing.T) { function TestRenamePackage_InvalidName (line 894) | func TestRenamePackage_InvalidName(t *testing.T) { function TestRenamePackage_InternalPackage (line 920) | func TestRenamePackage_InternalPackage(t *testing.T) { function TestRenamePackage_InvalidPackageMove (line 976) | func TestRenamePackage_InvalidPackageMove(t *testing.T) { function checkTestdata (line 1012) | func checkTestdata(t *testing.T, env *Env) { FILE: gopls/internal/test/integration/misc/semantictokens_test.go function TestBadURICrash_VSCodeIssue1498 (line 18) | func TestBadURICrash_VSCodeIssue1498(t *testing.T) { function TestSemantic_2527 (line 51) | func TestSemantic_2527(t *testing.T) { function TestSemantic_57619 (line 109) | func TestSemantic_57619(t *testing.T) { function TestSemanticGoDirectives (line 142) | func TestSemanticGoDirectives(t *testing.T) { function TestSemantic_65254 (line 197) | func TestSemantic_65254(t *testing.T) { FILE: gopls/internal/test/integration/misc/settings_test.go function TestEmptyDirectoryFilters_Issue51843 (line 13) | func TestEmptyDirectoryFilters_Issue51843(t *testing.T) { FILE: gopls/internal/test/integration/misc/shared_test.go function TestSimultaneousEdits (line 14) | func TestSimultaneousEdits(t *testing.T) { FILE: gopls/internal/test/integration/misc/signature_help_test.go function TestSignatureHelpInNonWorkspacePackage (line 15) | func TestSignatureHelpInNonWorkspacePackage(t *testing.T) { FILE: gopls/internal/test/integration/misc/staticcheck_test.go function TestStaticcheckGenerics (line 13) | func TestStaticcheckGenerics(t *testing.T) { function TestStaticcheckRelatedInfo (line 83) | func TestStaticcheckRelatedInfo(t *testing.T) { FILE: gopls/internal/test/integration/misc/test_test.go function TestRunTestsAndBenchmarks (line 20) | func TestRunTestsAndBenchmarks(t *testing.T) { FILE: gopls/internal/test/integration/misc/vendor_test.go constant basicProxy (line 15) | basicProxy = ` function TestInconsistentVendoring (line 26) | func TestInconsistentVendoring(t *testing.T) { function TestWindowsVendoring_Issue56291 (line 64) | func TestWindowsVendoring_Issue56291(t *testing.T) { FILE: gopls/internal/test/integration/misc/vuln_test.go function TestRunGovulncheckError (line 28) | func TestRunGovulncheckError(t *testing.T) { function TestVulncheckError (line 55) | func TestVulncheckError(t *testing.T) { constant vulnsData (line 97) | vulnsData = ` function TestRunGovulncheckStd (line 168) | func TestRunGovulncheckStd(t *testing.T) { function TestFetchVulncheckResultStd (line 241) | func TestFetchVulncheckResultStd(t *testing.T) { type fetchVulncheckResult (line 292) | type fetchVulncheckResult struct function testFetchVulncheckResult (line 312) | func testFetchVulncheckResult(t *testing.T, env *Env, runPath string, fr... constant workspace1 (line 357) | workspace1 = ` constant proxy1 (line 396) | proxy1 = ` function vulnTestEnv (line 471) | func vulnTestEnv(proxyData string) (*vulntest.DB, []RunOption, error) { function TestRunVulncheckPackageDiagnostics (line 494) | func TestRunVulncheckPackageDiagnostics(t *testing.T) { function TestRunGovulncheck_Expiry (line 636) | func TestRunGovulncheck_Expiry(t *testing.T) { function stringify (line 669) | func stringify(a any) string { function TestRunVulncheckWarning (line 674) | func TestRunVulncheckWarning(t *testing.T) { function diffCodeActions (line 792) | func diffCodeActions(gotActions []protocol.CodeAction, want []string) st... constant workspace2 (line 800) | workspace2 = ` constant proxy2 (line 819) | proxy2 = ` function TestGovulncheckInfo (line 827) | func TestGovulncheckInfo(t *testing.T) { function testVulnDiagnostics (line 905) | func testVulnDiagnostics(t *testing.T, env *Env, pattern string, want vu... type vulnRelatedInfo (line 946) | type vulnRelatedInfo struct type vulnDiag (line 952) | type vulnDiag struct type vulnDiagExpectation (line 968) | type vulnDiagExpectation struct FILE: gopls/internal/test/integration/misc/workspace_symbol_test.go function TestWorkspaceSymbolMissingMetadata (line 15) | func TestWorkspaceSymbolMissingMetadata(t *testing.T) { function TestWorkspaceSymbolSorting (line 46) | func TestWorkspaceSymbolSorting(t *testing.T) { function TestWorkspaceSymbolSpecialPatterns (line 78) | func TestWorkspaceSymbolSpecialPatterns(t *testing.T) { function checkSymbols (line 105) | func checkSymbols(env *Env, query string, want ...string) { FILE: gopls/internal/test/integration/modfile/modfile_test.go function TestMain (line 20) | func TestMain(m *testing.M) { constant workspaceProxy (line 25) | workspaceProxy = ` constant proxy (line 48) | proxy = ` function TestModFileModification (line 67) | func TestModFileModification(t *testing.T) { function TestGoGetFix (line 145) | func TestGoGetFix(t *testing.T) { function TestMissingDependencyFixes (line 194) | func TestMissingDependencyFixes(t *testing.T) { function TestMissingDependencyFixesWithGoWork (line 241) | func TestMissingDependencyFixesWithGoWork(t *testing.T) { function TestIndirectDependencyFix (line 293) | func TestIndirectDependencyFix(t *testing.T) { function TestNewDepWithUnusedDep (line 338) | func TestNewDepWithUnusedDep(t *testing.T) { function TestModuleChangesOnDisk (line 408) | func TestModuleChangesOnDisk(t *testing.T) { function TestBadlyVersionedModule (line 443) | func TestBadlyVersionedModule(t *testing.T) { function TestUnknownRevision (line 518) | func TestUnknownRevision(t *testing.T) { function TestErrorInIndirectDependency (line 615) | func TestErrorInIndirectDependency(t *testing.T) { function TestGovimModReadonly (line 664) | func TestGovimModReadonly(t *testing.T) { function TestMultiModuleModDiagnostics (line 701) | func TestMultiModuleModDiagnostics(t *testing.T) { function TestModTidyWithBuildTags (line 752) | func TestModTidyWithBuildTags(t *testing.T) { function TestModTypoDiagnostic (line 780) | func TestModTypoDiagnostic(t *testing.T) { function TestSumUpdateFixesDiagnostics (line 800) | func TestSumUpdateFixesDiagnostics(t *testing.T) { function TestGoModInvalidatesOnSave (line 843) | func TestGoModInvalidatesOnSave(t *testing.T) { function TestRemoveUnusedDependency (line 884) | func TestRemoveUnusedDependency(t *testing.T) { function TestSumUpdateQuickFix (line 990) | func TestSumUpdateQuickFix(t *testing.T) { function TestDownloadDeps (line 1034) | func TestDownloadDeps(t *testing.T) { function TestInvalidGoVersion (line 1099) | func TestInvalidGoVersion(t *testing.T) { function TestIssue57627 (line 1120) | func TestIssue57627(t *testing.T) { function TestInconsistentMod (line 1132) | func TestInconsistentMod(t *testing.T) { FILE: gopls/internal/test/integration/modfile/tempmodfile_test.go function TestTempModfileUnchanged (line 17) | func TestTempModfileUnchanged(t *testing.T) { FILE: gopls/internal/test/integration/options.go type runConfig (line 18) | type runConfig struct function defaultConfig (line 26) | func defaultConfig() runConfig { type RunOption (line 39) | type RunOption interface type optionSetter (line 43) | type optionSetter method set (line 45) | func (f optionSetter) set(opts *runConfig) { function ProxyFiles (line 50) | func ProxyFiles(txt string) RunOption { function WriteGoSum (line 61) | func WriteGoSum(dirs ...string) RunOption { function Modes (line 72) | func Modes(modes Mode) RunOption { function NoLogsOnError (line 82) | func NoLogsOnError() RunOption { function WindowsLineEndings (line 89) | func WindowsLineEndings() RunOption { function ClientName (line 96) | func ClientName(name string) RunOption { function CapabilitiesJSON (line 103) | func CapabilitiesJSON(capabilities []byte) RunOption { type Settings (line 113) | type Settings method set (line 115) | func (s Settings) set(opts *runConfig) { function WorkspaceFolders (line 126) | func WorkspaceFolders(relFolders ...string) RunOption { function NoDefaultWorkspaceFiles (line 140) | func NoDefaultWorkspaceFiles() RunOption { function RootPath (line 147) | func RootPath(relpath string) RunOption { type FolderSettings (line 158) | type FolderSettings method set (line 160) | func (fs FolderSettings) set(opts *runConfig) { type EnvVars (line 173) | type EnvVars method set (line 175) | func (e EnvVars) set(opts *runConfig) { function FakeGoPackagesDriver (line 184) | func FakeGoPackagesDriver(t *testing.T) RunOption { function InGOPATH (line 196) | func InGOPATH() RunOption { function MessageResponder (line 204) | func MessageResponder(f func(*protocol.ShowMessageRequestParams) (*proto... function DelayMessages (line 215) | func DelayMessages(upto time.Duration) RunOption { FILE: gopls/internal/test/integration/regtest.go function defaultTimeout (line 37) | func defaultTimeout() time.Duration { function Run (line 52) | func Run(t *testing.T, files string, f TestFunc) { function WithOptions (line 56) | func WithOptions(opts ...RunOption) configuredRunner { type configuredRunner (line 60) | type configuredRunner struct method Run (line 64) | func (r configuredRunner) Run(t *testing.T, files string, f TestFunc) { type RunMultiple (line 84) | type RunMultiple method Run (line 91) | func (r RunMultiple) Run(t *testing.T, files string, f TestFunc) { function DefaultModes (line 101) | func DefaultModes() Mode { function Main (line 118) | func Main(m *testing.M) (code int) { function FilterToolchainPathAndGOROOT (line 212) | func FilterToolchainPathAndGOROOT() { function findLocalGo (line 225) | func findLocalGo() (path string, first bool) { FILE: gopls/internal/test/integration/runner.go type Mode (line 56) | type Mode method String (line 78) | func (m Mode) String() string { constant Default (line 65) | Default Mode = 1 << iota constant Forwarded (line 69) | Forwarded constant SeparateProcess (line 75) | SeparateProcess type Runner (line 95) | type Runner struct method Run (line 122) | func (r *Runner) Run(t *testing.T, files string, test TestFunc, opts .... method defaultServer (line 343) | func (r *Runner) defaultServer() jsonrpc2.StreamServer { method forwardedServer (line 348) | func (r *Runner) forwardedServer() jsonrpc2.StreamServer { method separateProcessServer (line 364) | func (r *Runner) separateProcessServer() jsonrpc2.StreamServer { method Close (line 415) | func (r *Runner) Close() error { type TestFunc (line 117) | type TestFunc function ConnectGoplsEnv (line 248) | func ConnectGoplsEnv(t testing.TB, ctx context.Context, sandbox *fake.Sa... function checkBuilder (line 282) | func checkBuilder() string { type loggingFramer (line 294) | type loggingFramer struct method framer (line 311) | func (s *loggingFramer) framer(f jsonrpc2.Framer) jsonrpc2.Framer { method printBuffers (line 328) | func (s *loggingFramer) printBuffers(testname string, w io.Writer) { type safeBuffer (line 300) | type safeBuffer struct method Write (line 305) | func (b *safeBuffer) Write(p []byte) (int, error) { constant runTestAsGoplsEnvvar (line 361) | runTestAsGoplsEnvvar = "_GOPLS_TEST_BINARY_RUN_AS_GOPLS" function newForwarder (line 405) | func newForwarder(network, address string) jsonrpc2.StreamServer { FILE: gopls/internal/test/integration/template/template_test.go function TestMain (line 17) | func TestMain(m *testing.M) { function TestMultilineTokens (line 22) | func TestMultilineTokens(t *testing.T) { function TestMultilineTokensAgain (line 55) | func TestMultilineTokensAgain(t *testing.T) { function TestTemplatesFromExtensions (line 84) | func TestTemplatesFromExtensions(t *testing.T) { function TestTemplatesObserveDirectoryFilters (line 132) | func TestTemplatesObserveDirectoryFilters(t *testing.T) { function TestTemplatesFromLangID (line 158) | func TestTemplatesFromLangID(t *testing.T) { function TestClosingTemplatesMakesDiagnosticsDisappear (line 178) | func TestClosingTemplatesMakesDiagnosticsDisappear(t *testing.T) { function TestMultipleSuffixes (line 204) | func TestMultipleSuffixes(t *testing.T) { function shorten (line 249) | func shorten(fn protocol.DocumentURI) string { function TestCompletionPanic_Issue57621 (line 261) | func TestCompletionPanic_Issue57621(t *testing.T) { FILE: gopls/internal/test/integration/watch/setting_test.go function TestSubdirWatchPatterns (line 14) | func TestSubdirWatchPatterns(t *testing.T) { function TestSubdirWatchPatterns_BadValues (line 61) | func TestSubdirWatchPatterns_BadValues(t *testing.T) { FILE: gopls/internal/test/integration/watch/watch_test.go function TestMain (line 18) | func TestMain(m *testing.M) { function TestEditFile (line 23) | func TestEditFile(t *testing.T) { function TestEditDependency (line 69) | func TestEditDependency(t *testing.T) { function TestEditFileAndDependency (line 102) | func TestEditFileAndDependency(t *testing.T) { function TestDeleteDependency (line 147) | func TestDeleteDependency(t *testing.T) { function TestCreateDependency (line 179) | func TestCreateDependency(t *testing.T) { function TestCreateAndAddDependency (line 214) | func TestCreateAndAddDependency(t *testing.T) { function TestCreateFile (line 235) | func TestCreateFile(t *testing.T) { function TestCreateImplementation (line 262) | func TestCreateImplementation(t *testing.T) { function TestDeleteFiles (line 365) | func TestDeleteFiles(t *testing.T) { function TestMoveSymbol (line 454) | func TestMoveSymbol(t *testing.T) { function TestChangeVersion (line 490) | func TestChangeVersion(t *testing.T) { function TestSwitchFromGOPATHToModuleMode (line 566) | func TestSwitchFromGOPATHToModuleMode(t *testing.T) { function TestSwitchFromModulesToGOPATH (line 608) | func TestSwitchFromModulesToGOPATH(t *testing.T) { function TestNewSymbolInTestVariant (line 643) | func TestNewSymbolInTestVariant(t *testing.T) { FILE: gopls/internal/test/integration/web/assembly_test.go function TestAssembly (line 19) | func TestAssembly(t *testing.T) { function TestTestAssembly (line 111) | func TestTestAssembly(t *testing.T) { function asmFor (line 153) | func asmFor(t *testing.T, env *Env, loc protocol.Location) []byte { FILE: gopls/internal/test/integration/web/flight_test.go function TestFlightRecorder (line 19) | func TestFlightRecorder(t *testing.T) { FILE: gopls/internal/test/integration/web/freesymbols_test.go function TestFreeSymbols (line 17) | func TestFreeSymbols(t *testing.T) { FILE: gopls/internal/test/integration/web/pkdoc_test.go function TestBrowsePkgDoc (line 23) | func TestBrowsePkgDoc(t *testing.T) { function TestShowDocumentUnsupported (line 88) | func TestShowDocumentUnsupported(t *testing.T) { function TestPkgDocNoPanic66449 (line 157) | func TestPkgDocNoPanic66449(t *testing.T) { function TestPkgDocNavigation (line 225) | func TestPkgDocNavigation(t *testing.T) { function TestPkgDocContext (line 270) | func TestPkgDocContext(t *testing.T) { function TestPkgDocFileImports (line 340) | func TestPkgDocFileImports(t *testing.T) { function TestPkgDocConstructorOfUnexported (line 416) | func TestPkgDocConstructorOfUnexported(t *testing.T) { function viewPkgDoc (line 458) | func viewPkgDoc(t *testing.T, env *Env, loc protocol.Location) protocol.... FILE: gopls/internal/test/integration/web/splitpkg_test.go function TestSplitPackage (line 25) | func TestSplitPackage(t *testing.T) { FILE: gopls/internal/test/integration/web/util_test.go function TestMain (line 23) | func TestMain(m *testing.M) { function shownDocument (line 31) | func shownDocument(t *testing.T, shown []*protocol.ShowDocumentParams, p... function get (line 47) | func get(t *testing.T, url string) []byte { function checkMatch (line 62) | func checkMatch(t *testing.T, want bool, got []byte, pattern string) { function codeActionWebPage (line 74) | func codeActionWebPage(t *testing.T, env *integration.Env, kind protocol... FILE: gopls/internal/test/integration/workspace/adhoc_test.go function TestAdhoc_Edits (line 15) | func TestAdhoc_Edits(t *testing.T) { FILE: gopls/internal/test/integration/workspace/broken_test.go function TestBrokenWorkspace_DuplicateModules (line 24) | func TestBrokenWorkspace_DuplicateModules(t *testing.T) { function TestBrokenWorkspace_WrongModulePath (line 120) | func TestBrokenWorkspace_WrongModulePath(t *testing.T) { function TestMultipleModules_Warning (line 167) | func TestMultipleModules_Warning(t *testing.T) { FILE: gopls/internal/test/integration/workspace/didcreatefiles_test.go function TestAutoFillPackageDecl (line 17) | func TestAutoFillPackageDecl(t *testing.T) { FILE: gopls/internal/test/integration/workspace/directoryfilters_test.go function TestDirectoryFilters (line 21) | func TestDirectoryFilters(t *testing.T) { function TestDirectoryFiltersLoads (line 39) | func TestDirectoryFiltersLoads(t *testing.T) { function TestDirectoryFiltersTransitiveDep (line 62) | func TestDirectoryFiltersTransitiveDep(t *testing.T) { function TestDirectoryFilters_Wildcard (line 94) | func TestDirectoryFilters_Wildcard(t *testing.T) { function TestDirectoryFilters_ImportScanning (line 115) | func TestDirectoryFilters_ImportScanning(t *testing.T) { function TestDirectoryFilters_MultiRootImportScanning (line 155) | func TestDirectoryFilters_MultiRootImportScanning(t *testing.T) { FILE: gopls/internal/test/integration/workspace/fromenv_test.go function TestUseGoWorkOutsideTheWorkspace (line 16) | func TestUseGoWorkOutsideTheWorkspace(t *testing.T) { FILE: gopls/internal/test/integration/workspace/goversion_test.go function TestCanHandlePatchVersions (line 20) | func TestCanHandlePatchVersions(t *testing.T) { FILE: gopls/internal/test/integration/workspace/metadata_test.go function TestFixImportDecl (line 17) | func TestFixImportDecl(t *testing.T) { function TestIgnoreFile (line 43) | func TestIgnoreFile(t *testing.T) { function TestReinitializeRepeatedly (line 93) | func TestReinitializeRepeatedly(t *testing.T) { function TestNestedModuleLoading_Issue59458 (line 171) | func TestNestedModuleLoading_Issue59458(t *testing.T) { FILE: gopls/internal/test/integration/workspace/misspelling_test.go function TestFormattingMisspelledURI (line 16) | func TestFormattingMisspelledURI(t *testing.T) { function TestPackageForMisspelledURI (line 56) | func TestPackageForMisspelledURI(t *testing.T) { FILE: gopls/internal/test/integration/workspace/modules_test.go function TestModulesCmd (line 18) | func TestModulesCmd(t *testing.T) { function checkModules (line 140) | func checkModules(t testing.TB, env *Env, dir protocol.DocumentURI, maxD... FILE: gopls/internal/test/integration/workspace/multi_folder_test.go function TestMultiView_Diagnostics (line 15) | func TestMultiView_Diagnostics(t *testing.T) { function TestMultiView_LocalReplace (line 55) | func TestMultiView_LocalReplace(t *testing.T) { FILE: gopls/internal/test/integration/workspace/packages_test.go function TestPackages (line 18) | func TestPackages(t *testing.T) { function TestPackagesWithTests (line 112) | func TestPackagesWithTests(t *testing.T) { function TestPackagesWithSubtests (line 332) | func TestPackagesWithSubtests(t *testing.T) { function TestRecursiveSubtest (line 436) | func TestRecursiveSubtest(t *testing.T) { function checkPackages (line 496) | func checkPackages(t testing.TB, env *Env, files []protocol.DocumentURI,... FILE: gopls/internal/test/integration/workspace/quickfix_test.go function TestQuickFix_UseModule (line 17) | func TestQuickFix_UseModule(t *testing.T) { function TestQuickFix_AddGoWork (line 102) | func TestQuickFix_AddGoWork(t *testing.T) { function TestQuickFix_UnsavedGoWork (line 212) | func TestQuickFix_UnsavedGoWork(t *testing.T) { function TestQuickFix_GOWORKOff (line 277) | func TestQuickFix_GOWORKOff(t *testing.T) { function TestStubMethods64087 (line 343) | func TestStubMethods64087(t *testing.T) { function TestStubMethods64545 (line 406) | func TestStubMethods64545(t *testing.T) { function TestIssue70755 (line 461) | func TestIssue70755(t *testing.T) { FILE: gopls/internal/test/integration/workspace/standalone_test.go function TestStandaloneFiles (line 16) | func TestStandaloneFiles(t *testing.T) { function TestStandaloneFiles_Configuration (line 156) | func TestStandaloneFiles_Configuration(t *testing.T) { FILE: gopls/internal/test/integration/workspace/std_test.go function TestStdWorkspace (line 18) | func TestStdWorkspace(t *testing.T) { FILE: gopls/internal/test/integration/workspace/vendor_test.go function TestWorkspacePackagesExcludesVendor (line 13) | func TestWorkspacePackagesExcludesVendor(t *testing.T) { FILE: gopls/internal/test/integration/workspace/workspace_test.go function TestMain (line 29) | func TestMain(m *testing.M) { constant workspaceProxy (line 34) | workspaceProxy = ` constant workspaceModule (line 60) | workspaceModule = ` function TestReferences (line 117) | func TestReferences(t *testing.T) { function TestClearAnalysisDiagnostics (line 152) | func TestClearAnalysisDiagnostics(t *testing.T) { function TestReloadOnlyOnce (line 174) | func TestReloadOnlyOnce(t *testing.T) { constant workspaceModuleProxy (line 190) | workspaceModuleProxy = ` constant multiModule (line 213) | multiModule = ` function TestAutomaticWorkspaceModule_Interdependent (line 243) | func TestAutomaticWorkspaceModule_Interdependent(t *testing.T) { function TestWorkspaceVendoring (line 257) | func TestWorkspaceVendoring(t *testing.T) { function TestModuleWithExclude (line 276) | func TestModuleWithExclude(t *testing.T) { function TestDeleteModule_Interdependent (line 335) | func TestDeleteModule_Interdependent(t *testing.T) { function TestCreateModule_Interdependent (line 400) | func TestCreateModule_Interdependent(t *testing.T) { function TestOneBrokenModule (line 463) | func TestOneBrokenModule(t *testing.T) { function TestBadGoWork (line 514) | func TestBadGoWork(t *testing.T) { function TestUseGoWork (line 526) | func TestUseGoWork(t *testing.T) { function TestUseGoWorkDiagnosticMissingModule (line 687) | func TestUseGoWorkDiagnosticMissingModule(t *testing.T) { function TestUseGoWorkDiagnosticSyntaxError (line 718) | func TestUseGoWorkDiagnosticSyntaxError(t *testing.T) { function TestUseGoWorkHover (line 735) | func TestUseGoWorkHover(t *testing.T) { function TestExpandToGoWork (line 770) | func TestExpandToGoWork(t *testing.T) { function TestInnerGoWork (line 819) | func TestInnerGoWork(t *testing.T) { function TestNonWorkspaceFileCreation (line 864) | func TestNonWorkspaceFileCreation(t *testing.T) { function TestGoWork_V2Module (line 888) | func TestGoWork_V2Module(t *testing.T) { function TestMultiModule_OneBrokenModule (line 973) | func TestMultiModule_OneBrokenModule(t *testing.T) { function TestChangeTestVariant_Issue52500 (line 1041) | func TestChangeTestVariant_Issue52500(t *testing.T) { function TestClearNonWorkspaceDiagnostics (line 1086) | func TestClearNonWorkspaceDiagnostics(t *testing.T) { function TestClearNonWorkspaceDiagnostics_NoView (line 1145) | func TestClearNonWorkspaceDiagnostics_NoView(t *testing.T) { function TestOldGoNotification_SupportedVersion (line 1263) | func TestOldGoNotification_SupportedVersion(t *testing.T) { function TestOldGoNotification_UnsupportedVersion (line 1280) | func TestOldGoNotification_UnsupportedVersion(t *testing.T) { function TestOldGoNotification_Fake (line 1295) | func TestOldGoNotification_Fake(t *testing.T) { function goVersion (line 1323) | func goVersion(t *testing.T) int { function TestGoworkMutation (line 1333) | func TestGoworkMutation(t *testing.T) { function TestInitializeWithNonFileWorkspaceFolders (line 1353) | func TestInitializeWithNonFileWorkspaceFolders(t *testing.T) { function TestChangeAddedWorkspaceFolders (line 1417) | func TestChangeAddedWorkspaceFolders(t *testing.T) { function TestChangeNonFileWorkspaceFolders (line 1472) | func TestChangeNonFileWorkspaceFolders(t *testing.T) { FILE: gopls/internal/test/integration/workspace/zero_config_test.go function TestAddAndRemoveGoWork (line 19) | func TestAddAndRemoveGoWork(t *testing.T) { function TestOpenAndClosePorts (line 100) | func TestOpenAndClosePorts(t *testing.T) { function TestCriticalErrorsInOrphanedFiles (line 167) | func TestCriticalErrorsInOrphanedFiles(t *testing.T) { function TestGoModReplace (line 191) | func TestGoModReplace(t *testing.T) { function TestDisableZeroConfig (line 240) | func TestDisableZeroConfig(t *testing.T) { function TestVendorExcluded (line 274) | func TestVendorExcluded(t *testing.T) { FILE: gopls/internal/test/integration/wrappers.go method RemoveWorkspaceFile (line 20) | func (e *Env) RemoveWorkspaceFile(name string) { method ReadWorkspaceFile (line 29) | func (e *Env) ReadWorkspaceFile(name string) string { method WriteWorkspaceFile (line 40) | func (e *Env) WriteWorkspaceFile(name, content string) { method WriteWorkspaceFiles (line 49) | func (e *Env) WriteWorkspaceFiles(files map[string]string) { method ListFiles (line 58) | func (e *Env) ListFiles(dir string) []string { method OpenFile (line 68) | func (e *Env) OpenFile(name string) { method CreateBuffer (line 76) | func (e *Env) CreateBuffer(name string, content string) { method BufferText (line 85) | func (e *Env) BufferText(name string) string { method CloseBuffer (line 96) | func (e *Env) CloseBuffer(name string) { method EditBuffer (line 104) | func (e *Env) EditBuffer(name string, edits ...protocol.TextEdit) { method SetBufferContent (line 111) | func (e *Env) SetBufferContent(name string, content string) { method FileContent (line 121) | func (e *Env) FileContent(name string) string { method FileContentAt (line 140) | func (e *Env) FileContentAt(location protocol.Location) string { method RegexpSearch (line 156) | func (e *Env) RegexpSearch(name, re string) protocol.Location { method RegexpReplace (line 170) | func (e *Env) RegexpReplace(name, regexpStr, replace string) { method SaveBuffer (line 178) | func (e *Env) SaveBuffer(name string) { method SaveBufferWithoutActions (line 185) | func (e *Env) SaveBufferWithoutActions(name string) { method FirstDefinition (line 194) | func (e *Env) FirstDefinition(loc protocol.Location) protocol.Location { method FirstTypeDefinition (line 208) | func (e *Env) FirstTypeDefinition(loc protocol.Location) protocol.Locati... method FormatBuffer (line 221) | func (e *Env) FormatBuffer(name string) { method OrganizeImports (line 230) | func (e *Env) OrganizeImports(name string) { method ApplyQuickFixes (line 238) | func (e *Env) ApplyQuickFixes(path string, diagnostics []protocol.Diagno... method ApplyCodeAction (line 247) | func (e *Env) ApplyCodeAction(action protocol.CodeAction) { method Diagnostics (line 256) | func (e *Env) Diagnostics(name string) []protocol.Diagnostic { method GetQuickFixes (line 267) | func (e *Env) GetQuickFixes(path string, diagnostics []protocol.Diagnost... method Hover (line 279) | func (e *Env) Hover(loc protocol.Location) (*protocol.MarkupContent, pro... method DocumentLink (line 288) | func (e *Env) DocumentLink(name string) []protocol.DocumentLink { method DocumentHighlight (line 297) | func (e *Env) DocumentHighlight(loc protocol.Location) []protocol.Docume... method RunGenerate (line 309) | func (e *Env) RunGenerate(dir string) { method RunGoCommand (line 323) | func (e *Env) RunGoCommand(verb string, args ...string) []byte { method RunGoCommandInDir (line 334) | func (e *Env) RunGoCommandInDir(dir, verb string, args ...string) { method RunGoCommandInDirWithEnv (line 343) | func (e *Env) RunGoCommandInDirWithEnv(dir string, env []string, verb st... method GoVersion (line 352) | func (e *Env) GoVersion() int { method DumpGoSum (line 363) | func (e *Env) DumpGoSum(dir string) { method CheckForFileChanges (line 377) | func (e *Env) CheckForFileChanges() { method CodeLens (line 386) | func (e *Env) CodeLens(path string) []protocol.CodeLens { method ExecuteCodeLensCommand (line 399) | func (e *Env) ExecuteCodeLensCommand(path string, cmd command.Command, r... method ExecuteCommand (line 410) | func (e *Env) ExecuteCommand(params *protocol.ExecuteCommandParams, resu... method Views (line 418) | func (e *Env) Views() []command.View { method StartProfile (line 433) | func (e *Env) StartProfile() (stop func() string) { method InlayHints (line 465) | func (e *Env) InlayHints(path string) []protocol.InlayHint { method Symbol (line 475) | func (e *Env) Symbol(query string) []protocol.SymbolInformation { method References (line 485) | func (e *Env) References(loc protocol.Location) []protocol.Location { method Rename (line 495) | func (e *Env) Rename(loc protocol.Location, newName string) { method Implementations (line 503) | func (e *Env) Implementations(loc protocol.Location) []protocol.Location { method RenameFile (line 513) | func (e *Env) RenameFile(oldPath, newPath string) { method SignatureHelp (line 521) | func (e *Env) SignatureHelp(loc protocol.Location) *protocol.SignatureHe... method Completion (line 531) | func (e *Env) Completion(loc protocol.Location) *protocol.CompletionList { method DidCreateFiles (line 540) | func (e *Env) DidCreateFiles(files ...protocol.DocumentURI) { method SetSuggestionInsertReplaceMode (line 548) | func (e *Env) SetSuggestionInsertReplaceMode(useReplaceMode bool) { method AcceptCompletion (line 555) | func (e *Env) AcceptCompletion(loc protocol.Location, item protocol.Comp... method CodeActionForFile (line 564) | func (e *Env) CodeActionForFile(path string, diagnostics []protocol.Diag... method CodeAction (line 570) | func (e *Env) CodeAction(loc protocol.Location, diagnostics []protocol.D... method ChangeConfiguration (line 580) | func (e *Env) ChangeConfiguration(newConfig fake.EditorConfig) { method ChangeWorkspaceFolders (line 589) | func (e *Env) ChangeWorkspaceFolders(newFolders ...string) { method SemanticTokensFull (line 598) | func (e *Env) SemanticTokensFull(path string) []fake.SemanticToken { method SemanticTokensRange (line 609) | func (e *Env) SemanticTokensRange(loc protocol.Location) []fake.Semantic... method Close (line 620) | func (e *Env) Close() { FILE: gopls/internal/test/marker/marker_test.go function TestMain (line 56) | func TestMain(m *testing.M) { function Test (line 91) | func Test(t *testing.T) { function checkDifferences (line 344) | func checkDifferences(t *testing.T, result, disk []byte) { type marker (line 367) | type marker struct method ctx (line 373) | func (m marker) ctx() context.Context { return m.run.env.Ctx } method T (line 376) | func (m marker) T() testing.TB { return m.run.env.TB } method editor (line 379) | func (m marker) editor() *fake.Editor { return m.run.env.Editor } method server (line 382) | func (m marker) server() protocol.Server { return m.run.env.Editor.Ser... method uri (line 385) | func (mark marker) uri() protocol.DocumentURI { method document (line 390) | func (mark marker) document() protocol.TextDocumentIdentifier { method path (line 395) | func (mark marker) path() string { method mapper (line 400) | func (mark marker) mapper() *protocol.Mapper { method errorf (line 412) | func (mark marker) errorf(format string, args ...any) { method getGolden (line 725) | func (mark *marker) getGolden(id expect.Identifier) *Golden { method sprintf (line 1092) | func (c *marker) sprintf(format string, args ...any) string { method consumeExtraNotes (line 2369) | func (mark marker) consumeExtraNotes(name string, f func(marker)) { function valueMarkerFunc (line 443) | func valueMarkerFunc(fn any) func(marker) { function actionMarkerFunc (line 481) | func actionMarkerFunc(fn any, allowedNames ...string) func(marker) { function convertArgs (line 515) | func convertArgs(mark marker, ftype reflect.Type, args []any) ([]reflect... function namedArg (line 559) | func namedArg[T any](mark marker, name string, dflt T) T { function namedArgFunc (line 575) | func namedArgFunc[T any](mark marker, name string, f func(marker, any) (... function exactlyOneNamedArg (line 586) | func exactlyOneNamedArg(mark marker, names ...string) bool { function is (line 601) | func is[T any](arg any) bool { type markerTest (line 658) | type markerTest struct method flagSet (line 691) | func (t *markerTest) flagSet() *flag.FlagSet { type stringListValue (line 710) | type stringListValue method Set (line 712) | func (l *stringListValue) Set(s string) error { method String (line 721) | func (l stringListValue) String() string { type Golden (line 750) | type Golden struct method Get (line 770) | func (g *Golden) Get(t testing.TB, name string, updated []byte) ([]byt... function loadMarkerTests (line 795) | func loadMarkerTests(dir string) ([]*markerTest, error) { function loadMarkerTest (line 816) | func loadMarkerTest(name string, content []byte) (*markerTest, error) { function formatTest (line 933) | func formatTest(test *markerTest) ([]byte, error) { function newEnv (line 1006) | func newEnv(t *testing.T, cache *cache.Cache, files, proxyFiles map[stri... type markerTestRun (line 1072) | type markerTestRun struct method fmtPos (line 1113) | func (run *markerTestRun) fmtPos(pos token.Pos) string { method fmtLoc (line 1134) | func (run *markerTestRun) fmtLoc(loc protocol.Location) string { method mapLocation (line 1176) | func (run *markerTestRun) mapLocation(loc protocol.Location) (name str... method fmtLocForGolden (line 1201) | func (run *markerTestRun) fmtLocForGolden(loc protocol.Location) string { function summarizeLoc (line 1219) | func summarizeLoc(name string, startLine, startCol, endLine, endCol int)... function converter (line 1253) | func converter[T any](f func(marker, any) (T, error)) func(marker, any) ... function convert (line 1259) | func convert(mark marker, arg any, paramType reflect.Type) (any, error) { function convertNamedArgLocation (line 1297) | func convertNamedArgLocation(mark marker, arg any) (protocol.Location, e... function convertLocation (line 1312) | func convertLocation(mark marker, arg any) (protocol.Location, error) { type completionLabel (line 1376) | type completionLabel function convertCompletionLabel (line 1386) | func convertCompletionLabel(mark marker, arg any) (completionLabel, erro... function convertStringMatcher (line 1402) | func convertStringMatcher(mark marker, arg any) (stringMatcher, error) { type stringMatcher (line 1423) | type stringMatcher struct method empty (line 1430) | func (sm stringMatcher) empty() bool { method String (line 1434) | func (sm stringMatcher) String() string { method checkErr (line 1445) | func (sm stringMatcher) checkErr(mark marker, err error) { method check (line 1454) | func (sm stringMatcher) check(mark marker, got string) { function checkChangedFiles (line 1469) | func checkChangedFiles(mark marker, changed map[string][]byte, golden *G... function checkDiffs (line 1496) | func checkDiffs(mark marker, changed map[string][]byte, golden *Golden) { type completionItem (line 1552) | type completionItem struct function completionItemMarker (line 1556) | func completionItemMarker(mark marker, label string, other ...string) co... function rankMarker (line 1575) | func rankMarker(mark marker, src protocol.Location, items ...completionL... function snippetMarker (line 1612) | func snippetMarker(mark marker, src protocol.Location, label completionL... function completeMarker (line 1644) | func completeMarker(mark marker, src protocol.Location, want ...completi... function filterBuiltinsAndKeywords (line 1689) | func filterBuiltinsAndKeywords(mark marker, items []protocol.CompletionI... function acceptCompletionMarker (line 1708) | func acceptCompletionMarker(mark marker, src protocol.Location, label st... function defMarker (line 1740) | func defMarker(mark marker, loc protocol.Location, want ...protocol.Loca... function typedefMarker (line 1754) | func typedefMarker(mark marker, loc protocol.Location, want ...protocol.... function foldingRangeMarker (line 1773) | func foldingRangeMarker(mark marker, g *Golden) { function formatMarker (line 1816) | func formatMarker(mark marker, golden *Golden) { function highlightLocationMarker (line 1841) | func highlightLocationMarker(mark marker, loc protocol.Location, kindNam... function sortDocumentHighlights (line 1860) | func sortDocumentHighlights(s []protocol.DocumentHighlight) { function highlightAllMarker (line 1875) | func highlightAllMarker(mark marker, all ...protocol.DocumentHighlight) { function highlightMarker (line 1888) | func highlightMarker(mark marker, src protocol.DocumentHighlight, dsts .... function hoverMarker (line 1900) | func hoverMarker(mark marker, src, dst protocol.Location, sc stringMatch... function hoverErrMarker (line 1921) | func hoverErrMarker(mark marker, src protocol.Location, em stringMatcher) { function locMarker (line 1927) | func locMarker(mark marker, loc protocol.Location) protocol.Location { r... function defLocMarker (line 1931) | func defLocMarker(mark marker, loc protocol.Location) protocol.Location { function diagMarker (line 1937) | func diagMarker(mark marker, loc protocol.Location, re *regexp.Regexp) { function removeDiagnostic (line 1950) | func removeDiagnostic(mark marker, loc protocol.Location, matchEnd bool,... function renameMarker (line 1964) | func renameMarker(mark marker, loc protocol.Location, newName string, go... function renameErrMarker (line 1974) | func renameErrMarker(mark marker, loc protocol.Location, newName string,... function selectionRangeMarker (line 1979) | func selectionRangeMarker(mark marker, loc protocol.Location, g *Golden) { function tokenMarker (line 2019) | func tokenMarker(mark marker, loc protocol.Location, tokenType, mod stri... function signatureMarker (line 2034) | func signatureMarker(mark marker, src protocol.Location, label string, a... function rename (line 2069) | func rename(env *integration.Env, loc protocol.Location, newName string)... function changedFiles (line 2096) | func changedFiles(env *integration.Env, changes []protocol.DocumentChang... function codeActionMarker (line 2226) | func codeActionMarker(mark marker, loc protocol.Location, kind string) { function codeLensesMarker (line 2316) | func codeLensesMarker(mark marker) { function documentLinkMarker (line 2352) | func documentLinkMarker(mark marker, g *Golden) { function quickfixMarker (line 2383) | func quickfixMarker(mark marker, loc protocol.Location, re *regexp.Regex... function quickfixErrMarker (line 2403) | func quickfixErrMarker(mark marker, loc protocol.Location, re *regexp.Re... function codeAction (line 2424) | func codeAction(env *integration.Env, uri protocol.DocumentURI, rng prot... function resolveCodeAction (line 2438) | func resolveCodeAction(env *integration.Env, uri protocol.DocumentURI, r... function applyCodeAction (line 2497) | func applyCodeAction(env *integration.Env, action *protocol.CodeAction) ... function refsMarker (line 2562) | func refsMarker(mark marker, src protocol.Location, want ...protocol.Loc... function implementationMarker (line 2593) | func implementationMarker(mark marker, src protocol.Location, want ...pr... function mcpToolMarker (line 2612) | func mcpToolMarker(mark marker, tool string, rawArgs string) { function incomingCallsMarker (line 2688) | func incomingCallsMarker(mark marker, src protocol.Location, want ...pro... function outgoingCallsMarker (line 2703) | func outgoingCallsMarker(mark marker, src protocol.Location, want ...pro... function callHierarchy (line 2720) | func callHierarchy(mark marker, src protocol.Location, getCalls callHier... function inlayhintsMarker (line 2747) | func inlayhintsMarker(mark marker, g *Golden) { function prepareRenameMarker (line 2776) | func prepareRenameMarker(mark marker, src protocol.Location, placeholder... function subtypesMarker (line 2804) | func subtypesMarker(mark marker, src protocol.Location, want ...protocol... function supertypesMarker (line 2810) | func supertypesMarker(mark marker, src protocol.Location, want ...protoc... function typeHierarchy (line 2818) | func typeHierarchy(mark marker, src protocol.Location, want []protocol.L... function symbolMarker (line 2849) | func symbolMarker(mark marker, golden *Golden) { function compareLocations (line 2919) | func compareLocations(mark marker, got, want []protocol.Location) error { function workspaceSymbolMarker (line 2935) | func workspaceSymbolMarker(mark marker, query string, golden *Golden) { function compareGolden (line 2963) | func compareGolden(mark marker, got []byte, g *Golden) { FILE: gopls/internal/util/asm/parse.go type Kind (line 17) | type Kind method String (line 28) | func (k Kind) String() string { constant Invalid (line 20) | Invalid Kind = iota constant Ref (line 21) | Ref constant Text (line 22) | Text constant Global (line 23) | Global constant Data (line 24) | Data constant Label (line 25) | Label type File (line 45) | type File struct type Ident (line 53) | type Ident struct method End (line 60) | func (id Ident) End() int { return id.Offset + len(id.Name) } function Parse (line 64) | func Parse(content []byte) *File { function isIdent (line 199) | func isIdent(s string) bool { function cutBefore (line 209) | func cutBefore(s, sep string) string { function cleanup (line 217) | func cleanup(sym string) string { function isNonDigit (line 226) | func isNonDigit(r rune) bool { return !unicode.IsDigit(r) } function isIdentRune (line 231) | func isIdentRune(ch rune, i int) bool { FILE: gopls/internal/util/asm/parse_test.go function TestIdents (line 18) | func TestIdents(t *testing.T) { FILE: gopls/internal/util/browser/browser.go function Commands (line 16) | func Commands() [][]string { function Open (line 42) | func Open(url string) bool { function appearsSuccessful (line 55) | func appearsSuccessful(cmd *exec.Cmd, timeout time.Duration) bool { FILE: gopls/internal/util/bug/bug.go type Bug (line 43) | type Bug struct function Reportf (line 53) | func Reportf(format string, args ...any) { function Errorf (line 59) | func Errorf(format string, args ...any) error { function Report (line 67) | func Report(description string) { function report (line 74) | func report(description string) { function Handle (line 122) | func Handle(h func(Bug)) { function List (line 130) | func List() []Bug { FILE: gopls/internal/util/bug/bug_test.go function resetForTesting (line 16) | func resetForTesting() { function TestListBugs (line 21) | func TestListBugs(t *testing.T) { function wantBugs (line 35) | func wantBugs(t *testing.T, want ...string) { function TestBugHandler (line 51) | func TestBugHandler(t *testing.T) { function TestBugJSON (line 70) | func TestBugJSON(t *testing.T) { FILE: gopls/internal/util/constraints/constraint.go type Signed (line 14) | type Signed interface type Unsigned (line 21) | type Unsigned interface type Integer (line 28) | type Integer interface type Float (line 35) | type Float interface type Complex (line 42) | type Complex interface type Ordered (line 50) | type Ordered interface FILE: gopls/internal/util/cursorutil/util.go function FirstEnclosing (line 29) | func FirstEnclosing[N ast.Node](cur inspector.Cursor) (N, inspector.Curs... function Path (line 40) | func Path(cur inspector.Cursor) (path []ast.Node) { FILE: gopls/internal/util/fakenet/conn.go function NewConn (line 18) | func NewConn(name string, in io.ReadCloser, out io.WriteCloser) net.Conn { type fakeConn (line 31) | type fakeConn struct method Close (line 59) | func (c *fakeConn) Close() error { method Read (line 67) | func (c *fakeConn) Read(b []byte) (n int, err error) { return c.read... method Write (line 68) | func (c *fakeConn) Write(b []byte) (n int, err error) { return c.writ... method LocalAddr (line 69) | func (c *fakeConn) LocalAddr() net.Addr { return fakeAd... method RemoteAddr (line 70) | func (c *fakeConn) RemoteAddr() net.Addr { return fakeAd... method SetDeadline (line 71) | func (c *fakeConn) SetDeadline(t time.Time) error { return nil } method SetReadDeadline (line 72) | func (c *fakeConn) SetReadDeadline(t time.Time) error { return nil } method SetWriteDeadline (line 73) | func (c *fakeConn) SetWriteDeadline(t time.Time) error { return nil } type fakeAddr (line 39) | type fakeAddr method Network (line 74) | func (a fakeAddr) Network() string { return "fake" } method String (line 75) | func (a fakeAddr) String() string { return string... type connFeeder (line 45) | type connFeeder struct method close (line 86) | func (f *connFeeder) close() { method do (line 95) | func (f *connFeeder) do(b []byte) (n int, err error) { method run (line 111) | func (f *connFeeder) run() { type feedResult (line 54) | type feedResult struct function newFeeder (line 77) | func newFeeder(source func([]byte) (int, error)) *connFeeder { FILE: gopls/internal/util/fingerprint/fingerprint.go function Encode (line 40) | func Encode(t types.Type) (_ string, tricky bool) { return fingerprint(t) } type Tree (line 43) | type Tree struct method String (line 46) | func (tree Tree) String() string { function Parse (line 56) | func Parse(fp string) Tree { function Matches (line 63) | func Matches(x, y Tree) bool { function fingerprint (line 93) | func fingerprint(t types.Type) (string, bool) { type sexpr (line 240) | type sexpr type symbol (line 241) | type symbol type cons (line 242) | type cons struct function parseFingerprint (line 249) | func parseFingerprint(fp string) sexpr { function writeSexpr (line 308) | func writeSexpr(out *strings.Builder, x sexpr) { function unify (line 344) | func unify(x, y sexpr) bool { function typeParamIndex (line 457) | func typeParamIndex(x sexpr) int { constant symTypeparam (line 466) | symTypeparam = "typeparam" FILE: gopls/internal/util/fingerprint/fingerprint_test.go function Test (line 21) | func Test(t *testing.T) { function TestMatches (line 78) | func TestMatches(t *testing.T) { FILE: gopls/internal/util/frob/frob.go type Codec (line 41) | type Codec struct function CodecFor (line 45) | func CodecFor[T any]() Codec[T] { method Encode (line 51) | func (codec Codec[T]) Encode(v T) []byte { return codec.frob.En... method Decode (line 52) | func (codec Codec[T]) Decode(data []byte, ptr *T) { codec.frob.Decode(da... type frob (line 60) | type frob struct method addElem (line 119) | func (fr *frob) addElem(t reflect.Type) { method Encode (line 125) | func (fr *frob) Encode(v any) []byte { method encode (line 140) | func (fr *frob) encode(out *writer, v reflect.Value) { method Decode (line 241) | func (fr *frob) Decode(data []byte, ptr any) { method decode (line 258) | func (fr *frob) decode(in *reader, addr reflect.Value) { function frobFor (line 68) | func frobFor(t reflect.Type) *frob { constant magic (line 123) | magic = "frob" type reader (line 364) | type reader struct method uint8 (line 366) | func (r *reader) uint8() uint8 { method uint16 (line 372) | func (r *reader) uint16() uint16 { method uint32 (line 378) | func (r *reader) uint32() uint32 { method uint64 (line 384) | func (r *reader) uint64() uint64 { method bytes (line 390) | func (r *reader) bytes(n int) []byte { type writer (line 396) | type writer struct method uint8 (line 398) | func (w *writer) uint8(v uint8) { w.data = append(w.data, v) } method uint16 (line 399) | func (w *writer) uint16(v uint16) { w.data = le.AppendUint16(w.data, v) } method uint32 (line 400) | func (w *writer) uint32(v uint32) { w.data = le.AppendUint32(w.data, v) } method uint64 (line 401) | func (w *writer) uint64(v uint64) { w.data = le.AppendUint64(w.data, v) } method bytes (line 402) | func (w *writer) bytes(v []byte) { w.data = append(w.data, v...) } FILE: gopls/internal/util/frob/frob_test.go function TestBasics (line 15) | func TestBasics(t *testing.T) { function TestInts (line 44) | func TestInts(t *testing.T) { FILE: gopls/internal/util/goversion/goversion.go type Support (line 16) | type Support struct function OldestSupported (line 52) | func OldestSupported() int { function Message (line 65) | func Message(goVersion int, fromBuild bool) (string, bool) { FILE: gopls/internal/util/goversion/goversion_test.go function TestMessage (line 15) | func TestMessage(t *testing.T) { FILE: gopls/internal/util/immutable/immutable.go type Map (line 17) | type Map struct function MapOf (line 24) | func MapOf[K comparable, V any](m map[K]V) Map[K, V] { method Value (line 31) | func (m Map[K, V]) Value(k K) (V, bool) { method Len (line 37) | func (m Map[K, V]) Len() int { method All (line 42) | func (m Map[K, V]) All() iter.Seq2[K, V] { FILE: gopls/internal/util/lru/lru.go type Cache (line 16) | type Cache struct method Get (line 24) | func (c *Cache[K, V]) Get(key K) (V, bool) { method Set (line 45) | func (c *Cache[K, V]) Set(key K, value V, size int) { function New (line 53) | func New[K comparable, V any](capacity int) *Cache[K, V] { type cache (line 68) | type cache struct method get (line 86) | func (c *cache) get(key any) (any, bool) { method set (line 101) | func (c *cache) set(key, value any, size int) { type entry (line 78) | type entry struct type queue (line 155) | type queue method Len (line 157) | func (q queue) Len() int { return len(q) } method Less (line 159) | func (q queue) Less(i, j int) bool { return q[i].atime < q[j].atime } method Swap (line 161) | func (q queue) Swap(i, j int) { method Push (line 167) | func (q *queue) Push(x any) { method Pop (line 173) | func (q *queue) Pop() any { FILE: gopls/internal/util/lru/lru_fuzz_test.go function FuzzCache (line 14) | func FuzzCache(f *testing.F) { FILE: gopls/internal/util/lru/lru_nil_test.go function TestSetUntypedNil (line 13) | func TestSetUntypedNil(t *testing.T) { FILE: gopls/internal/util/lru/lru_test.go function TestCache (line 20) | func TestCache(t *testing.T) { function TestConcurrency (line 86) | func TestConcurrency(t *testing.T) { function uniqueKey (line 147) | func uniqueKey() (key [32]byte) { FILE: gopls/internal/util/memoize/memoize.go type Function (line 45) | type Function type RefCounted (line 58) | type RefCounted interface type Promise (line 65) | type Promise struct method Cached (line 127) | func (p *Promise) Cached() any { method Get (line 147) | func (p *Promise) Get(ctx context.Context, arg any) (any, error) { method run (line 166) | func (p *Promise) run(ctx context.Context, arg any) (any, error) { method wait (line 213) | func (p *Promise) wait(ctx context.Context) (any, error) { function NewPromise (line 105) | func NewPromise(debug string, function Function) *Promise { type state (line 115) | type state constant stateIdle (line 118) | stateIdle = iota constant stateRunning (line 119) | stateRunning constant stateCompleted (line 120) | stateCompleted type EvictionPolicy (line 243) | type EvictionPolicy constant ImmediatelyEvict (line 247) | ImmediatelyEvict EvictionPolicy = iota constant NeverEvict (line 250) | NeverEvict type Store (line 257) | type Store struct method Promise (line 279) | func (store *Store) Promise(key any, function Function) (*Promise, fun... method Stats (line 311) | func (s *Store) Stats() map[reflect.Type]int { method DebugOnlyIterate (line 326) | func (s *Store) DebugOnlyIterate(f func(k, v any)) { function NewStore (line 265) | func NewStore(policy EvictionPolicy) *Store { FILE: gopls/internal/util/memoize/memoize_test.go function TestGet (line 16) | func TestGet(t *testing.T) { function expectGet (line 33) | func expectGet(t *testing.T, h *memoize.Promise, wantV any) { function TestNewPromise (line 41) | func TestNewPromise(t *testing.T) { function TestStoredPromiseRefCounting (line 62) | func TestStoredPromiseRefCounting(t *testing.T) { function TestPromiseDestroyedWhileRunning (line 105) | func TestPromiseDestroyedWhileRunning(t *testing.T) { function TestDoubleReleasePanics (line 147) | func TestDoubleReleasePanics(t *testing.T) { FILE: gopls/internal/util/moremaps/maps.go function Arbitrary (line 16) | func Arbitrary[K comparable, V any](m map[K]V) (_ K, _ V, ok bool) { function Group (line 25) | func Group[K comparable, V any](s []V, key func(V) K) map[K][]V { function KeySlice (line 35) | func KeySlice[M ~map[K]V, K comparable, V any](m M) []K { function ValueSlice (line 44) | func ValueSlice[M ~map[K]V, K comparable, V any](m M) []V { function SameKeys (line 53) | func SameKeys[K comparable, V1, V2 any](x map[K]V1, y map[K]V2) bool { function Sorted (line 59) | func Sorted[M ~map[K]V, K cmp.Ordered, V any](m M) iter.Seq2[K, V] { function SortedFunc (line 73) | func SortedFunc[M ~map[K]V, K comparable, V any](m M, cmp func(x, y K) i... FILE: gopls/internal/util/moreslices/slices.go function Remove (line 12) | func Remove[T comparable](slice []T, elem T) []T { function ConvertStrings (line 24) | func ConvertStrings[B, A ~string](input []A) []B { FILE: gopls/internal/util/morestrings/strings.go function CutLast (line 10) | func CutLast(s, sep string) (before, after string, ok bool) { FILE: gopls/internal/util/pathutil/util.go function InDir (line 17) | func InDir(dir, path string) bool { FILE: gopls/internal/util/persistent/map.go type Map (line 47) | type Map struct method less (line 53) | func (*Map[K, V]) less(l, r any) bool { method String (line 57) | func (m *Map[K, V]) String() string { type mapNode (line 69) | type mapNode struct method shallowCloneWithRef (line 96) | func (node *mapNode) shallowCloneWithRef() *mapNode { method incref (line 106) | func (node *mapNode) incref() *mapNode { method decref (line 113) | func (node *mapNode) decref() { method forEach (line 171) | func (node *mapNode) forEach(yield func(key, value any) bool) bool { type refValue (line 77) | type refValue struct function newNodeWithRef (line 83) | func newNodeWithRef[K constraints.Ordered, V any](key K, value V, releas... method Clone (line 132) | func (pm *Map[K, V]) Clone() *Map[K, V] { method Destroy (line 141) | func (pm *Map[K, V]) Destroy() { method Clear (line 148) | func (pm *Map[K, V]) Clear() { method Keys (line 154) | func (pm *Map[K, V]) Keys() iter.Seq[K] { method All (line 163) | func (pm *Map[K, V]) All() iter.Seq2[K, V] { method Get (line 180) | func (pm *Map[K, V]) Get(key K) (V, bool) { method SetAll (line 197) | func (pm *Map[K, V]) SetAll(other *Map[K, V]) { method Set (line 208) | func (pm *Map[K, V]) Set(key K, value V, release func(key, value any)) { function union (line 222) | func union(first, second *mapNode, less func(any, any) bool, overwrite b... function split (line 260) | func split(n *mapNode, key any, less func(any, any) bool, requireMid boo... method Delete (line 291) | func (pm *Map[K, V]) Delete(key K) bool { function merge (line 311) | func merge(left, right *mapNode) *mapNode { FILE: gopls/internal/util/persistent/map_test.go type mapEntry (line 16) | type mapEntry struct type validatedMap (line 21) | type validatedMap struct method validate (line 228) | func (vm *validatedMap) validate(t *testing.T) { method setAll (line 281) | func (vm *validatedMap) setAll(t *testing.T, other *validatedMap) { method set (line 290) | func (vm *validatedMap) set(t *testing.T, key, value int) { method remove (line 312) | func (vm *validatedMap) remove(t *testing.T, key int) { method clone (line 327) | func (vm *validatedMap) clone() *validatedMap { method destroy (line 339) | func (vm *validatedMap) destroy() { function TestSimpleMap (line 29) | func TestSimpleMap(t *testing.T) { function TestRandomMap (line 120) | func TestRandomMap(t *testing.T) { function entrySet (line 152) | func entrySet(m map[mapEntry]int) map[mapEntry]struct{} { function TestUpdate (line 160) | func TestUpdate(t *testing.T) { function validateRef (line 183) | func validateRef(t *testing.T, maps ...*validatedMap) { function dfsRef (line 199) | func dfsRef(node *mapNode, countByEntry map[mapEntry]int32, nodesByEntry... function dumpMap (line 218) | func dumpMap(t *testing.T, prefix string, n *mapNode) { function validateNode (line 254) | func validateNode(t *testing.T, node *mapNode) { function assertSameMap (line 343) | func assertSameMap(t *testing.T, map1, map2 any) { FILE: gopls/internal/util/persistent/race_test.go function TestConcurrency (line 20) | func TestConcurrency(t *testing.T) { FILE: gopls/internal/util/persistent/set.go type Set (line 19) | type Set struct method Clone (line 24) | func (s *Set[K]) Clone() *Set[K] { method Destroy (line 35) | func (s *Set[K]) Destroy() { method Contains (line 42) | func (s *Set[K]) Contains(key K) bool { method All (line 51) | func (s *Set[K]) All() iter.Seq[K] { method AddAll (line 62) | func (s *Set[K]) AddAll(other *Set[K]) { method Add (line 72) | func (s *Set[K]) Add(key K) { method Remove (line 80) | func (s *Set[K]) Remove(key K) { FILE: gopls/internal/util/persistent/set_test.go function TestSet (line 16) | func TestSet(t *testing.T) { function TestSet_Clone (line 64) | func TestSet_Clone(t *testing.T) { function TestSet_AddAll (line 79) | func TestSet_AddAll(t *testing.T) { function diff (line 108) | func diff[K constraints.Ordered](got *persistent.Set[K], want []K) string { FILE: gopls/internal/util/safetoken/safetoken.go function Offset (line 29) | func Offset(f *token.File, pos token.Pos) (int, error) { function Offsets (line 46) | func Offsets(f *token.File, start, end token.Pos) (int, int, error) { function Pos (line 63) | func Pos(f *token.File, offset int) (token.Pos, error) { function inRange (line 75) | func inRange(f *token.File, pos token.Pos) bool { function Position (line 86) | func Position(f *token.File, pos token.Pos) token.Position { function Line (line 99) | func Line(f *token.File, pos token.Pos) int { function StartPosition (line 109) | func StartPosition(fset *token.FileSet, start token.Pos) (_ token.Positi... function EndPosition (line 120) | func EndPosition(fset *token.FileSet, end token.Pos) (_ token.Position) { FILE: gopls/internal/util/safetoken/safetoken_test.go function TestWorkaroundIssue57490 (line 20) | func TestWorkaroundIssue57490(t *testing.T) { function TestGoplsSourceDoesNotCallTokenFileMethods (line 73) | func TestGoplsSourceDoesNotCallTokenFileMethods(t *testing.T) { FILE: gopls/internal/util/tokeninternal/tokeninternal.go function FileSetFor (line 19) | func FileSetFor(files ...*token.File) *token.FileSet { function CloneFileSet (line 28) | func CloneFileSet(fset *token.FileSet) *token.FileSet { FILE: gopls/internal/util/typesutil/typesutil.go function FormatTypeParams (line 22) | func FormatTypeParams(tparams *types.TypeParamList) string { function TypesFromContext (line 49) | func TypesFromContext(info *types.Info, cur inspector.Cursor) []types.Ty... function containsInvalid (line 182) | func containsInvalid(t types.Type) bool { function EnclosingSignature (line 191) | func EnclosingSignature(cur inspector.Cursor, info *types.Info) *types.S... FILE: gopls/internal/version/version.go function Version (line 19) | func Version() string { FILE: gopls/internal/vulncheck/copier.go function main (line 31) | func main() { type rewrite (line 49) | type rewrite struct function copyFiles (line 57) | func copyFiles(dst, src string, cfg rewrite) { function downloadModule (line 114) | func downloadModule(srcModVers string) (dir, ver string) { function currentPackagePath (line 132) | func currentPackagePath() string { FILE: gopls/internal/vulncheck/govulncheck/govulncheck.go constant ProtocolVersion (line 18) | ProtocolVersion = "v1.0.0" type Message (line 23) | type Message struct type Config (line 33) | type Config struct type Progress (line 66) | type Progress struct type Finding (line 75) | type Finding struct type Frame (line 110) | type Frame struct type Position (line 138) | type Position struct type ScanLevel (line 150) | type ScanLevel method WantSymbols (line 160) | func (l ScanLevel) WantSymbols() bool { return l == scanLevelSymbol } constant scanLevelModule (line 153) | scanLevelModule = "module" constant scanLevelPackage (line 154) | scanLevelPackage = "package" constant scanLevelSymbol (line 155) | scanLevelSymbol = "symbol" FILE: gopls/internal/vulncheck/govulncheck/handler.go type Handler (line 18) | type Handler interface function HandleJSON (line 34) | func HandleJSON(from io.Reader, to Handler) error { FILE: gopls/internal/vulncheck/govulncheck/jsonhandler.go type jsonHandler (line 17) | type jsonHandler struct method Config (line 29) | func (h *jsonHandler) Config(config *Config) error { method Progress (line 34) | func (h *jsonHandler) Progress(progress *Progress) error { method OSV (line 39) | func (h *jsonHandler) OSV(entry *osv.Entry) error { method Finding (line 44) | func (h *jsonHandler) Finding(finding *Finding) error { function NewJSONHandler (line 22) | func NewJSONHandler(w io.Writer) Handler { FILE: gopls/internal/vulncheck/osv/osv.go type RangeType (line 28) | type RangeType constant RangeTypeSemver (line 32) | RangeTypeSemver RangeType = "SEMVER" type Ecosystem (line 36) | type Ecosystem constant GoEcosystem (line 39) | GoEcosystem Ecosystem = "Go" constant GoStdModulePath (line 46) | GoStdModulePath = "stdlib" constant GoCmdModulePath (line 49) | GoCmdModulePath = "toolchain" type Module (line 56) | type Module struct type RangeEvent (line 74) | type RangeEvent struct type Range (line 87) | type Range struct type ReferenceType (line 103) | type ReferenceType constant ReferenceTypeAdvisory (line 108) | ReferenceTypeAdvisory = ReferenceType("ADVISORY") constant ReferenceTypeArticle (line 110) | ReferenceTypeArticle = ReferenceType("ARTICLE") constant ReferenceTypeReport (line 113) | ReferenceTypeReport = ReferenceType("REPORT") constant ReferenceTypeFix (line 115) | ReferenceTypeFix = ReferenceType("FIX") constant ReferenceTypePackage (line 117) | ReferenceTypePackage = ReferenceType("PACKAGE") constant ReferenceTypeEvidence (line 119) | ReferenceTypeEvidence = ReferenceType("EVIDENCE") constant ReferenceTypeWeb (line 121) | ReferenceTypeWeb = ReferenceType("WEB") type Reference (line 128) | type Reference struct type Affected (line 138) | type Affected struct type Package (line 150) | type Package struct type EcosystemSpecific (line 172) | type EcosystemSpecific struct type Entry (line 182) | type Entry struct type Credit (line 226) | type Credit struct type DatabaseSpecific (line 236) | type DatabaseSpecific struct FILE: gopls/internal/vulncheck/scan/command.go function Main (line 26) | func Main(ctx context.Context, args ...string) error { function RunGovulncheck (line 41) | func RunGovulncheck(ctx context.Context, pattern string, snapshot *cache... type govulncheckHandler (line 114) | type govulncheckHandler struct method Config (line 122) | func (h *govulncheckHandler) Config(config *govulncheck.Config) error { method Finding (line 144) | func (h *govulncheckHandler) Finding(finding *govulncheck.Finding) err... method OSV (line 150) | func (h *govulncheckHandler) OSV(entry *osv.Entry) error { method Progress (line 156) | func (h *govulncheckHandler) Progress(progress *govulncheck.Progress) ... function getEnvSlices (line 163) | func getEnvSlices(snapshot *cache.Snapshot) []string { FILE: gopls/internal/vulncheck/semver/semver.go function addSemverPrefix (line 18) | func addSemverPrefix(s string) string { function removeSemverPrefix (line 27) | func removeSemverPrefix(s string) string { function CanonicalizeSemverPrefix (line 37) | func CanonicalizeSemverPrefix(s string) string { function Valid (line 43) | func Valid(v string) bool { FILE: gopls/internal/vulncheck/semver/semver_test.go function TestCanonicalize (line 11) | func TestCanonicalize(t *testing.T) { FILE: gopls/internal/vulncheck/types.go type Result (line 17) | type Result struct type AnalysisMode (line 41) | type AnalysisMode constant ModeInvalid (line 44) | ModeInvalid AnalysisMode = "" constant ModeGovulncheck (line 45) | ModeGovulncheck AnalysisMode = "govulncheck" constant ModeImports (line 46) | ModeImports AnalysisMode = "imports" FILE: gopls/internal/vulncheck/vulntest/db.go function NewDatabase (line 40) | func NewDatabase(ctx context.Context, txtarReports []byte) (*DB, error) { type DB (line 56) | type DB struct method URI (line 62) | func (db *DB) URI() string { method Clean (line 68) | func (db *DB) Clean() error { constant dbURL (line 77) | dbURL = "https://pkg.go.dev/vuln/" constant idDirectory (line 81) | idDirectory = "ID" constant cmdModule (line 85) | cmdModule = "cmd" constant stdModule (line 88) | stdModule = "std" function generateDB (line 92) | func generateDB(ctx context.Context, txtarData []byte, jsonDir string, i... function generateEntries (line 102) | func generateEntries(_ context.Context, archive *txtar.Archive) ([]osv.E... function writeEntriesByID (line 121) | func writeEntriesByID(idDir string, entries []osv.Entry, indent bool) er... function writeJSON (line 135) | func writeJSON(filename string, value any, indent bool) (err error) { function jsonMarshal (line 143) | func jsonMarshal(v any, indent bool) ([]byte, error) { function generateOSVEntry (line 153) | func generateOSVEntry(id, url string, lastModified time.Time, r Report) ... function AffectedRanges (line 185) | func AffectedRanges(versions []VersionRange) []osv.Range { function toOSVPackages (line 201) | func toOSVPackages(pkgs []*Package) (imps []osv.Package) { function toAffected (line 216) | func toAffected(m *Module) osv.Affected { FILE: gopls/internal/vulncheck/vulntest/db_test.go function TestNewDatabase (line 23) | func TestNewDatabase(t *testing.T) { function updateTestData (line 54) | func updateTestData(t *testing.T, got *osv.Entry, fname string) { function readOSVEntry (line 65) | func readOSVEntry(t *testing.T, filename string) *osv.Entry { FILE: gopls/internal/vulncheck/vulntest/report.go function readReport (line 24) | func readReport(in io.Reader) (*Report, error) { type Report (line 38) | type Report struct method Write (line 56) | func (r *Report) Write(filename string) (err error) { method ToString (line 70) | func (r *Report) ToString() (string, error) { method encode (line 78) | func (r *Report) encode(w io.Writer) error { type VersionRange (line 85) | type VersionRange struct type Module (line 90) | type Module struct type Package (line 96) | type Package struct type Version (line 109) | type Version method V (line 112) | func (v Version) V() string { method IsValid (line 117) | func (v Version) IsValid() bool { method Before (line 122) | func (v Version) Before(v2 Version) bool { method Canonical (line 127) | func (v Version) Canonical() string { type Reference (line 135) | type Reference method MarshalYAML (line 137) | func (r *Reference) MarshalYAML() (any, error) { method UnmarshalYAML (line 143) | func (r *Reference) UnmarshalYAML(n *yaml.Node) (err error) { FILE: gopls/internal/vulncheck/vulntest/report_test.go function readAll (line 17) | func readAll(t *testing.T, filename string) io.Reader { function TestRoundTrip (line 25) | func TestRoundTrip(t *testing.T) { FILE: gopls/internal/vulncheck/vulntest/stdlib.go function maybeStdlib (line 15) | func maybeStdlib(path string) bool { FILE: gopls/internal/vulncheck/vulntest/stdlib_test.go function TestMaybeStdlib (line 9) | func TestMaybeStdlib(t *testing.T) { FILE: gopls/internal/work/completion.go function Completion (line 23) | func Completion(ctx context.Context, snapshot *cache.Snapshot, fh file.H... function dirNonClean (line 144) | func dirNonClean(path string) string { function join (line 153) | func join(a, b string) string { FILE: gopls/internal/work/diagnostics.go function Diagnostics (line 20) | func Diagnostics(ctx context.Context, snapshot *cache.Snapshot) (map[pro... function diagnoseOne (line 49) | func diagnoseOne(ctx context.Context, snapshot *cache.Snapshot, fh file.... function modFileURI (line 83) | func modFileURI(pw *cache.ParsedWorkFile, use *modfile.Use) protocol.Doc... FILE: gopls/internal/work/format.go function Format (line 18) | func Format(ctx context.Context, snapshot *cache.Snapshot, fh file.Handl... FILE: gopls/internal/work/hover.go function Hover (line 19) | func Hover(ctx context.Context, snapshot *cache.Snapshot, fh file.Handle... function usePath (line 76) | func usePath(pw *cache.ParsedWorkFile, startOffset, endOffset int) (use ... FILE: gopls/main.go function main (line 28) | func main() { FILE: imports/forward.go type Options (line 18) | type Options struct function Process (line 44) | func Process(filename string, src []byte, opt *Options) ([]byte, error) { function VendorlessPath (line 75) | func VendorlessPath(ipath string) string { FILE: internal/aliases/aliases.go function New (line 14) | func New(pos token.Pos, pkg *types.Package, name string, rhs types.Type,... FILE: internal/aliases/aliases_test.go function TestNew (line 20) | func TestNew(t *testing.T) { function TestNewParameterizedAlias (line 66) | func TestNewParameterizedAlias(t *testing.T) { FILE: internal/analysis/analyzerutil/extractdoc.go function MustExtractDoc (line 41) | func MustExtractDoc(content, name string) string { function ExtractDoc (line 88) | func ExtractDoc(content, name string) (string, error) { FILE: internal/analysis/analyzerutil/extractdoc_test.go function TestExtractDoc (line 13) | func TestExtractDoc(t *testing.T) { FILE: internal/analysis/analyzerutil/readfile.go function ReadFile (line 18) | func ReadFile(pass *analysis.Pass, filename string) ([]byte, *token.File... FILE: internal/analysis/analyzerutil/version.go function FileUsesGoVersion (line 29) | func FileUsesGoVersion(pass *analysis.Pass, file *ast.File, version stri... FILE: internal/analysis/driverutil/fix.go type FixAction (line 35) | type FixAction struct function ApplyFixes (line 102) | func ApplyFixes(actions []FixAction, writeFile func(filename string, con... function FormatSourceRemoveImports (line 346) | func FormatSourceRemoveImports(pkg *types.Package, src []byte) ([]byte, ... function removeUnneededImports (line 388) | func removeUnneededImports(fset *token.FileSet, pkg *types.Package, file... function plural (line 460) | func plural(n int, singular, plural string) string { FILE: internal/analysis/driverutil/print.go function PrintPlain (line 28) | func PrintPlain(out io.Writer, fset *token.FileSet, contextLines int, di... type JSONTree (line 59) | type JSONTree method Add (line 99) | func (tree JSONTree) Add(fset *token.FileSet, id, name string, diags [... method Print (line 155) | func (tree JSONTree) Print(out io.Writer) error { type JSONTextEdit (line 64) | type JSONTextEdit struct type JSONSuggestedFix (line 74) | type JSONSuggestedFix struct type JSONDiagnostic (line 80) | type JSONDiagnostic struct type JSONRelatedInformation (line 91) | type JSONRelatedInformation struct FILE: internal/analysis/driverutil/readfile.go function CheckedReadFile (line 22) | func CheckedReadFile(pass *analysis.Pass, readFile ReadFileFunc) ReadFil... function CheckReadable (line 32) | func CheckReadable(pass *analysis.Pass, filename string) error { FILE: internal/analysis/driverutil/url.go function ResolveURL (line 16) | func ResolveURL(a *analysis.Analyzer, d analysis.Diagnostic) (string, er... FILE: internal/analysis/driverutil/url_test.go function TestResolveURLs (line 16) | func TestResolveURLs(t *testing.T) { function TestResolveURLErrors (line 51) | func TestResolveURLErrors(t *testing.T) { FILE: internal/analysis/driverutil/validatefix.go function ValidateFixes (line 24) | func ValidateFixes(fset *token.FileSet, a *analysis.Analyzer, fixes []an... function validateFix (line 43) | func validateFix(fset *token.FileSet, fix *analysis.SuggestedFix) error { FILE: internal/analysis/generated/generated.go type Result (line 33) | type Result struct method IsGenerated (line 39) | func (r *Result) IsGenerated(pos token.Pos) bool { FILE: internal/astutil/clone.go function CloneNode (line 14) | func CloneNode[T ast.Node](n T) T { function cloneNode (line 18) | func cloneNode(n ast.Node) ast.Node { FILE: internal/astutil/comment.go function Deprecation (line 18) | func Deprecation(doc *ast.CommentGroup) string { type Directive (line 49) | type Directive struct function isDirective (line 58) | func isDirective(c string) bool { function Directives (line 86) | func Directives(g *ast.CommentGroup) (res []*Directive) { function Comments (line 117) | func Comments(file *ast.File, start, end token.Pos) iter.Seq[*ast.Commen... FILE: internal/astutil/comment_test.go function TestComments (line 17) | func TestComments(t *testing.T) { FILE: internal/astutil/equal.go function Equal (line 22) | func Equal(x, y ast.Node, identical func(x, y *ast.Ident) bool) bool { function EqualSyntax (line 32) | func EqualSyntax(x, y ast.Expr) bool { function equal (line 37) | func equal(x, y reflect.Value, identical func(x, y *ast.Ident) bool) bool { FILE: internal/astutil/fields.go function FlatFields (line 15) | func FlatFields(list *ast.FieldList) iter.Seq2[*ast.Ident, *ast.Field] { FILE: internal/astutil/fields_test.go function TestFlatFields (line 18) | func TestFlatFields(t *testing.T) { FILE: internal/astutil/free/free.go function Names (line 44) | func Names(n ast.Node, includeComplitIdents bool) map[string]bool { type freeVisitor (line 63) | type freeVisitor struct method Visit (line 85) | func (v *freeVisitor) Visit(n ast.Node) ast.Visitor { method openScope (line 278) | func (v *freeVisitor) openScope() { method closeScope (line 282) | func (v *freeVisitor) closeScope() { method walk (line 286) | func (v *freeVisitor) walk(n ast.Node) { method walkFuncType (line 292) | func (v *freeVisitor) walkFuncType(recv *ast.FieldList, typ *ast.FuncT... method walkRecvFieldType (line 306) | func (v *freeVisitor) walkRecvFieldType(list *ast.FieldList) { method walkTypeParams (line 341) | func (v *freeVisitor) walkTypeParams(list *ast.FieldList) { method walkBody (line 346) | func (v *freeVisitor) walkBody(body *ast.BlockStmt) { method walkFieldList (line 353) | func (v *freeVisitor) walkFieldList(list *ast.FieldList) { method shortVarDecl (line 361) | func (v *freeVisitor) shortVarDecl(lhs []ast.Expr) { method walkFieldTypes (line 385) | func (v *freeVisitor) walkFieldTypes(list *ast.FieldList) { method declareFieldNames (line 396) | func (v *freeVisitor) declareFieldNames(list *ast.FieldList) { method use (line 405) | func (v *freeVisitor) use(ident *ast.Ident) { method declare (line 412) | func (v *freeVisitor) declare(idents ...*ast.Ident) { type scope (line 71) | type scope struct method defined (line 76) | func (s *scope) defined(name string) bool { function walkSlice (line 377) | func walkSlice[S ~[]E, E ast.Node](r *freeVisitor, list S) { FILE: internal/astutil/free/free_test.go function TestNames (line 20) | func TestNames(t *testing.T) { function TestFreeNames_scope (line 265) | func TestFreeNames_scope(t *testing.T) { function mustParse (line 273) | func mustParse(t *testing.T, filename string, content any) (*token.FileS... FILE: internal/astutil/purge.go function PurgeFuncBodies (line 23) | func PurgeFuncBodies(src []byte) []byte { FILE: internal/astutil/purge_test.go function TestPurgeFuncBodies (line 22) | func TestPurgeFuncBodies(t *testing.T) { FILE: internal/astutil/stringlit.go function RangeInStringLiteral (line 17) | func RangeInStringLiteral(lit *ast.BasicLit, start, end int) (Range, err... function PosInStringLiteral (line 32) | func PosInStringLiteral(lit *ast.BasicLit, offset int) (token.Pos, error) { function OffsetInStringLiteral (line 49) | func OffsetInStringLiteral(lit *ast.BasicLit, pos token.Pos) (int, error) { function walkStringLiteral (line 70) | func walkStringLiteral(lit *ast.BasicLit, targetPos token.Pos, targetOff... FILE: internal/astutil/stringlit_test.go function TestPosInStringLiteral (line 19) | func TestPosInStringLiteral(t *testing.T) { function TestOffsetInStringLiteral (line 102) | func TestOffsetInStringLiteral(t *testing.T) { FILE: internal/astutil/unpack.go function UnpackRecv (line 18) | func UnpackRecv(rtyp ast.Expr) (ptr bool, rname *ast.Ident, tparams []*a... FILE: internal/astutil/util.go function NodeContains (line 28) | func NodeContains(n ast.Node, rng Range) bool { function NodeContainsPos (line 37) | func NodeContainsPos(n ast.Node, pos token.Pos) bool { function EnclosingFile (line 44) | func EnclosingFile(c inspector.Cursor) *ast.File { function DocComment (line 50) | func DocComment(n ast.Node) *ast.CommentGroup { function Format (line 71) | func Format(fset *token.FileSet, n ast.Node) string { type Range (line 81) | type Range struct method Pos (line 106) | func (r Range) Pos() token.Pos { return r.Start } method End (line 107) | func (r Range) End() token.Pos { return r.EndPos } method ContainsPos (line 111) | func (r Range) ContainsPos(pos token.Pos) bool { method Contains (line 117) | func (r Range) Contains(rng Range) bool { method IsValid (line 122) | func (r Range) IsValid() bool { return r.Start.IsValid() && r.Start <=... function RangeOf (line 88) | func RangeOf(start, end token.Pos) Range { return Range{start, end} } function NodeRange (line 99) | func NodeRange(n ast.Node) Range { function Select (line 150) | func Select(curFile inspector.Cursor, start, end token.Pos) (_enclosing,... function MaybeParenthesize (line 195) | func MaybeParenthesize(parentNode ast.Node, old, new ast.Expr) ast.Expr { function needsParens (line 202) | func needsParens(parentNode ast.Node, old, new ast.Expr) bool { FILE: internal/bisect/bisect.go function New (line 156) | func New(pattern string) (*Matcher, error) { type Matcher (line 261) | type Matcher struct method Verbose (line 279) | func (m *Matcher) Verbose() bool { method ShouldEnable (line 284) | func (m *Matcher) ShouldEnable(id uint64) bool { method ShouldReport (line 298) | func (m *Matcher) ShouldReport(id uint64) bool { type cond (line 269) | type cond struct function Marker (line 314) | func Marker(id uint64) string { function AppendMarker (line 319) | func AppendMarker(dst []byte, id uint64) []byte { function CutMarker (line 336) | func CutMarker(line string) (short string, id uint64, ok bool) { function Hash (line 407) | func Hash(data ...any) uint64 { type parseError (line 479) | type parseError struct method Error (line 481) | func (e *parseError) Error() string { return e.text } constant offset64 (line 488) | offset64 uint64 = 14695981039346656037 constant prime64 (line 489) | prime64 uint64 = 1099511628211 function fnv (line 492) | func fnv(h uint64, x byte) uint64 { function fnvString (line 498) | func fnvString(h uint64, x string) uint64 { function fnvUint64 (line 506) | func fnvUint64(h uint64, x uint64) uint64 { function fnvUint32 (line 515) | func fnvUint32(h uint64, x uint32) uint64 { FILE: internal/bisect/bisect_test.go function TestNoImports (line 17) | func TestNoImports(t *testing.T) { FILE: internal/diff/diff.go type Edit (line 16) | type Edit struct method String (line 21) | func (e Edit) String() string { function Apply (line 31) | func Apply(src string, edits []Edit) (string, error) { function ApplyBytes (line 58) | func ApplyBytes(src []byte, edits []Edit) ([]byte, error) { function validate (line 66) | func validate(src string, edits []Edit) ([]Edit, int, error) { function SortEdits (line 94) | func SortEdits(edits []Edit) { type editsSort (line 98) | type editsSort method Len (line 100) | func (a editsSort) Len() int { return len(a) } method Less (line 101) | func (a editsSort) Less(i, j int) bool { method Swap (line 107) | func (a editsSort) Swap(i, j int) { a[i], a[j] = a[j], a[i] } function lineEdits (line 112) | func lineEdits(src string, edits []Edit) ([]Edit, error) { function expandEdit (line 155) | func expandEdit(edit Edit, src string) Edit { FILE: internal/diff/diff_test.go function TestApply (line 23) | func TestApply(t *testing.T) { function TestNEdits (line 46) | func TestNEdits(t *testing.T) { function TestNRandom (line 62) | func TestNRandom(t *testing.T) { function FuzzRoundTrip (line 79) | func FuzzRoundTrip(f *testing.F) { function TestLineEdits (line 95) | func TestLineEdits(t *testing.T) { function TestToUnified (line 122) | func TestToUnified(t *testing.T) { function TestRegressionOld001 (line 165) | func TestRegressionOld001(t *testing.T) { function TestRegressionOld002 (line 183) | func TestRegressionOld002(t *testing.T) { function randstr (line 201) | func randstr(rnd *rand.Rand, s string, n int) string { FILE: internal/diff/difftest/difftest.go constant FileA (line 24) | FileA = "from" constant FileB (line 25) | FileB = "to" constant UnifiedPrefix (line 26) | UnifiedPrefix = "--- " + FileA + "\n+++ " + FileB + "\n" function DiffTest (line 302) | func DiffTest(t *testing.T, compute func(before, after string) []diff.Ed... FILE: internal/diff/difftest/difftest_test.go function TestVerifyUnified (line 22) | func TestVerifyUnified(t *testing.T) { function getDiffOutput (line 43) | func getDiffOutput(a, b string) (string, error) { FILE: internal/diff/lcs/common.go type lcs (line 13) | type lcs method sort (line 23) | func (l lcs) sort() lcs { method valid (line 36) | func (l lcs) valid() bool { method fix (line 50) | func (l lcs) fix() lcs { method prepend (line 144) | func (lcs lcs) prepend(x, y int) lcs { method append (line 163) | func (lcs lcs) append(x, y int) lcs { type diag (line 17) | type diag struct type direction (line 81) | type direction constant empty (line 84) | empty direction = iota constant leftdown (line 85) | leftdown constant rightup (line 86) | rightup constant bad (line 87) | bad function overlap (line 92) | func overlap(exist, prop diag) (direction, diag) { function ok (line 177) | func ok(d, k int) bool { FILE: internal/diff/lcs/common_test.go type Btest (line 15) | type Btest struct type stringSeqs (line 62) | type stringSeqs struct method lengths (line 64) | func (s stringSeqs) lengths() (int, int) { return len(s.a), len(s.b) } method commonPrefixLen (line 65) | func (s stringSeqs) commonPrefixLen(ai, aj, bi, bj int) int { method commonSuffixLen (line 68) | func (s stringSeqs) commonSuffixLen(ai, aj, bi, bj int) int { function commonPrefixLenString (line 72) | func commonPrefixLenString(a, b string) int { function commonSuffixLenString (line 80) | func commonSuffixLenString(a, b string) int { function init (line 89) | func init() { function check (line 93) | func check(t *testing.T, str string, lcs lcs, want []string) { function checkDiffs (line 109) | func checkDiffs(t *testing.T, before string, diffs []Diff, after string) { function lcslen (line 126) | func lcslen(l lcs) int { function randstr (line 135) | func randstr(rng *rand.Rand, s string, n int) string { function TestLcsFix (line 144) | func TestLcsFix(t *testing.T) { FILE: internal/diff/lcs/labels.go type label (line 13) | type label struct method set (line 29) | func (t *label) set(D, k, x int) { method get (line 42) | func (t *label) get(d, k int) int { constant debug (line 18) | debug = false function checkDK (line 22) | func checkDK(D, k int) { function newtriang (line 49) | func newtriang(limit int) label { FILE: internal/diff/lcs/old.go type Diff (line 14) | type Diff struct function DiffBytes (line 21) | func DiffBytes(a, b []byte) []Diff { return diff(bytesSeqs{a, b}) } function DiffRunes (line 24) | func DiffRunes(a, b []rune) []Diff { return diff(runesSeqs{a, b}) } function DiffLines (line 27) | func DiffLines(a, b []string) []Diff { return diff(linesSeqs{a, b}) } function diff (line 32) | func diff(seqs sequences) []Diff { function compute (line 40) | func compute(seqs sequences, algo func(*editGraph) lcs, limit int) ([]Di... type editGraph (line 60) | type editGraph struct method fdone (line 91) | func (e *editGraph) fdone(D, k int) (bool, lcs) { method forwardlcs (line 147) | func (e *editGraph) forwardlcs(D, k int) lcs { method lookForward (line 169) | func (e *editGraph) lookForward(k, relx int) int { method setForward (line 178) | func (e *editGraph) setForward(d, k, relx int) { method getForward (line 183) | func (e *editGraph) getForward(d, k int) int { method bdone (line 191) | func (e *editGraph) bdone(D, k int) (bool, lcs) { method backwardlcs (line 252) | func (e *editGraph) backwardlcs(D, k int) lcs { method lookBackward (line 272) | func (e *editGraph) lookBackward(k, relx int) int { method setBackward (line 282) | func (e *editGraph) setBackward(d, k, relx int) { method getBackward (line 287) | func (e *editGraph) getBackward(d, k int) int { method twoDone (line 376) | func (e *editGraph) twoDone(df, db int) (int, bool) { method twolcs (line 402) | func (e *editGraph) twolcs(df, db, kf int) lcs { method toDiffs (line 71) | func (lcs lcs) toDiffs(alen, blen int) []Diff { function forward (line 102) | func forward(e *editGraph) lcs { function backward (line 203) | func backward(e *editGraph) lcs { function twosided (line 294) | func twosided(e *editGraph) lcs { FILE: internal/diff/lcs/old_test.go function TestAlgosOld (line 16) | func TestAlgosOld(t *testing.T) { function TestIntOld (line 34) | func TestIntOld(t *testing.T) { function TestSpecialOld (line 62) | func TestSpecialOld(t *testing.T) { // exercises lcs.fix function TestRegressionOld001 (line 71) | func TestRegressionOld001(t *testing.T) { function TestRegressionOld002 (line 84) | func TestRegressionOld002(t *testing.T) { function TestRegressionOld003 (line 96) | func TestRegressionOld003(t *testing.T) { function TestRandOld (line 108) | func TestRandOld(t *testing.T) { function TestDiffAPI (line 134) | func TestDiffAPI(t *testing.T) { function BenchmarkTwoOld (line 156) | func BenchmarkTwoOld(b *testing.B) { function BenchmarkForwOld (line 168) | func BenchmarkForwOld(b *testing.B) { function rng (line 182) | func rng(tb testing.TB) *rand.Rand { function genBench (line 188) | func genBench(rng *rand.Rand, set string, n int) []struct{ before, after... function BenchmarkLargeFileSmallDiff (line 223) | func BenchmarkLargeFileSmallDiff(b *testing.B) { FILE: internal/diff/lcs/sequence.go type sequences (line 10) | type sequences interface type bytesSeqs (line 18) | type bytesSeqs struct method lengths (line 20) | func (s bytesSeqs) lengths() (int, int) { return len(s.a), len(s.b) } method commonPrefixLen (line 21) | func (s bytesSeqs) commonPrefixLen(ai, aj, bi, bj int) int { method commonSuffixLen (line 24) | func (s bytesSeqs) commonSuffixLen(ai, aj, bi, bj int) int { type runesSeqs (line 28) | type runesSeqs struct method lengths (line 30) | func (s runesSeqs) lengths() (int, int) { return len(s.a), len(s.b) } method commonPrefixLen (line 31) | func (s runesSeqs) commonPrefixLen(ai, aj, bi, bj int) int { method commonSuffixLen (line 34) | func (s runesSeqs) commonSuffixLen(ai, aj, bi, bj int) int { type linesSeqs (line 38) | type linesSeqs struct method lengths (line 40) | func (s linesSeqs) lengths() (int, int) { return len(s.a), len(s.b) } method commonPrefixLen (line 41) | func (s linesSeqs) commonPrefixLen(ai, aj, bi, bj int) int { method commonSuffixLen (line 44) | func (s linesSeqs) commonSuffixLen(ai, aj, bi, bj int) int { function commonPrefixLen (line 53) | func commonPrefixLen[T comparable](a, b []T) int { function commonSuffixLen (line 63) | func commonSuffixLen[T comparable](a, b []T) int { FILE: internal/diff/merge.go function Merge (line 24) | func Merge(x, y []Edit) ([]Edit, bool) { FILE: internal/diff/merge_test.go function TestMerge (line 13) | func TestMerge(t *testing.T) { FILE: internal/diff/ndiff.go function Lines (line 16) | func Lines(before, after string) []Edit { function Strings (line 35) | func Strings(before, after string) []Edit { function Bytes (line 49) | func Bytes(before, after []byte) []Edit { function diffASCII (line 60) | func diffASCII(before, after []byte) []Edit { function diffRunes (line 71) | func diffRunes(before, after []rune) []Edit { function runes (line 91) | func runes(bytes []byte) []rune { function runesLen (line 103) | func runesLen(runes []rune) (len int) { function isASCII (line 111) | func isASCII[S string | []byte](s S) bool { FILE: internal/diff/unified.go constant DefaultContextLines (line 17) | DefaultContextLines = 3 function Unified (line 22) | func Unified(oldLabel, newLabel, old, new string) string { function ToUnified (line 36) | func ToUnified(oldLabel, newLabel, content string, edits []Edit, context... type unified (line 45) | type unified struct method String (line 213) | func (u unified) String() string { type hunk (line 55) | type hunk struct type line (line 65) | type line struct type opKind (line 75) | type opKind method String (line 90) | func (k opKind) String() string { constant opDelete (line 80) | opDelete opKind = iota constant opInsert (line 82) | opInsert constant opEqual (line 85) | opEqual function toUnified (line 105) | func toUnified(fromName, toName string, content string, edits []Edit, co... function splitLines (line 178) | func splitLines(text string) ([]string, []int) { function addEqualLines (line 196) | func addEqualLines(h *hunk, lines []string, start, end int) int { function ApplyUnified (line 269) | func ApplyUnified(udiffs, bef string) (string, error) { FILE: internal/diffp/diff.go type pair (line 19) | type pair struct function Diff (line 49) | func Diff(oldName string, old []byte, newName string, new []byte) []byte { function lines (line 169) | func lines(x []byte) []string { function tgs (line 189) | func tgs(x, y []string) []pair { FILE: internal/diffp/diff_test.go function clean (line 15) | func clean(text []byte) []byte { function Test (line 21) | func Test(t *testing.T) { FILE: internal/drivertest/driver.go constant runAsDriverEnv (line 24) | runAsDriverEnv = "DRIVERTEST_RUN_AS_DRIVER" function RunIfChild (line 30) | func RunIfChild() { function Env (line 41) | func Env(t interface{ Fatal(...any) }) []string { function main (line 49) | func main() { FILE: internal/drivertest/driver_test.go function TestMain (line 24) | func TestMain(m *testing.M) { function TestDriverConformance (line 30) | func TestDriverConformance(t *testing.T) { FILE: internal/edit/edit.go type Buffer (line 14) | type Buffer struct method Insert (line 46) | func (b *Buffer) Insert(pos int, new string) { method Delete (line 54) | func (b *Buffer) Delete(start, end int) { method Replace (line 62) | func (b *Buffer) Replace(start, end int, new string) { method Bytes (line 71) | func (b *Buffer) Bytes() []byte { method String (line 94) | func (b *Buffer) String() string { type edit (line 20) | type edit struct type edits (line 27) | type edits method Len (line 29) | func (x edits) Len() int { return len(x) } method Swap (line 30) | func (x edits) Swap(i, j int) { x[i], x[j] = x[j], x[i] } method Less (line 31) | func (x edits) Less(i, j int) bool { function NewBuffer (line 41) | func NewBuffer(old []byte) *Buffer { FILE: internal/edit/edit_test.go function TestEdit (line 9) | func TestEdit(t *testing.T) { FILE: internal/event/bench_test.go type Hooks (line 20) | type Hooks struct method runBenchmark (line 140) | func (hooks Hooks) runBenchmark(b *testing.B) { type namedBenchmark (line 98) | type namedBenchmark struct function Benchmark (line 103) | func Benchmark(b *testing.B) { function A (line 128) | func A(ctx context.Context, hooks Hooks, a int) int { function B (line 134) | func B(ctx context.Context, hooks Hooks, a int, b string) int { function init (line 152) | func init() { function noopExporter (line 156) | func noopExporter(ctx context.Context, ev core.Event, lm label.Map) cont... FILE: internal/event/core/event.go type Event (line 17) | type Event struct method At (line 32) | func (ev Event) At() time.Time { return ev.at } method Format (line 34) | func (ev Event) Format(f fmt.State, r rune) { method Valid (line 43) | func (ev Event) Valid(index int) bool { method Label (line 47) | func (ev Event) Label(index int) label.Label { method Labels (line 55) | func (ev Event) Labels() iter.Seq[label.Label] { method Find (line 70) | func (ev Event) Find(key label.Key) label.Label { function MakeEvent (line 84) | func MakeEvent(static [3]label.Label, labels []label.Label) Event { function CloneEvent (line 92) | func CloneEvent(ev Event, at time.Time) Event { FILE: internal/event/core/export.go type Exporter (line 17) | type Exporter function SetExporter (line 24) | func SetExporter(e Exporter) { function deliver (line 38) | func deliver(ctx context.Context, exporter Exporter, ev Event) context.C... function Export (line 46) | func Export(ctx context.Context, ev Event) context.Context { function ExportPair (line 59) | func ExportPair(ctx context.Context, begin, end Event) (context.Context,... FILE: internal/event/core/fast.go function Log1 (line 16) | func Log1(ctx context.Context, message string, t1 label.Label) { function Log2 (line 25) | func Log2(ctx context.Context, message string, t1 label.Label, t2 label.... function Metric1 (line 34) | func Metric1(ctx context.Context, t1 label.Label) context.Context { function Metric2 (line 42) | func Metric2(ctx context.Context, t1, t2 label.Label) context.Context { function Start1 (line 53) | func Start1(ctx context.Context, name string, t1 label.Label) (context.C... function Start2 (line 67) | func Start2(ctx context.Context, name string, t1, t2 label.Label) (conte... FILE: internal/event/event.go type Exporter (line 17) | type Exporter function SetExporter (line 22) | func SetExporter(e Exporter) { function Log (line 28) | func Log(ctx context.Context, message string, labels ...label.Label) { function IsLog (line 37) | func IsLog(ev core.Event) bool { function Error (line 44) | func Error(ctx context.Context, message string, err error, labels ...lab... function IsError (line 54) | func IsError(ev core.Event) bool { function Metric (line 60) | func Metric(ctx context.Context, labels ...label.Label) { function IsMetric (line 69) | func IsMetric(ev core.Event) bool { function Label (line 74) | func Label(ctx context.Context, labels ...label.Label) context.Context { function IsLabel (line 83) | func IsLabel(ev core.Event) bool { function Start (line 90) | func Start(ctx context.Context, name string, labels ...label.Label) (con... function IsStart (line 103) | func IsStart(ev core.Event) bool { function IsEnd (line 110) | func IsEnd(ev core.Event) bool { function Detach (line 116) | func Detach(ctx context.Context) context.Context { function IsDetach (line 125) | func IsDetach(ev core.Event) bool { FILE: internal/event/export/eventtest/eventtest.go function init (line 30) | func init() { type testingKeyType (line 37) | type testingKeyType constant testingKey (line 39) | testingKey = testingKeyType(0) function NewContext (line 42) | func NewContext(ctx context.Context, t testing.TB) context.Context { type testExporter (line 46) | type testExporter struct method processEvent (line 52) | func (w *testExporter) processEvent(ctx context.Context, ev core.Event... FILE: internal/event/export/id.go type TraceID (line 16) | type TraceID method String (line 19) | func (t TraceID) String() string { type SpanID (line 17) | type SpanID method String (line 23) | func (s SpanID) String() string { method IsValid (line 27) | func (s SpanID) IsValid() bool { function initGenerator (line 40) | func initGenerator() { function newTraceID (line 51) | func newTraceID() TraceID { function newSpanID (line 63) | func newSpanID() SpanID { FILE: internal/event/export/labels.go function Labels (line 20) | func Labels(output event.Exporter) event.Exporter { FILE: internal/event/export/log.go function LogWriter (line 22) | func LogWriter(w io.Writer, onlyErrors bool) event.Exporter { type logWriter (line 27) | type logWriter struct method ProcessEvent (line 34) | func (w *logWriter) ProcessEvent(ctx context.Context, ev core.Event, l... FILE: internal/event/export/log_test.go function ExampleLog (line 20) | func ExampleLog() { function timeFixer (line 34) | func timeFixer(output event.Exporter) event.Exporter { FILE: internal/event/export/metric/data.go type Data (line 21) | type Data interface type Int64Data (line 30) | type Int64Data struct method Handle (line 146) | func (data *Int64Data) Handle() string { return data.Info.Name } method Groups (line 147) | func (data *Int64Data) Groups() [][]label.Label { return data.groups } method modify (line 149) | func (data *Int64Data) modify(at time.Time, lm label.Map, f func(v int... method count (line 166) | func (data *Int64Data) count(at time.Time, lm label.Map, l label.Label... method sum (line 172) | func (data *Int64Data) sum(at time.Time, lm label.Map, l label.Label) ... method latest (line 178) | func (data *Int64Data) latest(at time.Time, lm label.Map, l label.Labe... type Float64Data (line 45) | type Float64Data struct method Handle (line 184) | func (data *Float64Data) Handle() string { return data.Info.N... method Groups (line 185) | func (data *Float64Data) Groups() [][]label.Label { return data.groups } method modify (line 187) | func (data *Float64Data) modify(at time.Time, lm label.Map, f func(v f... method sum (line 204) | func (data *Float64Data) sum(at time.Time, lm label.Map, l label.Label... method latest (line 210) | func (data *Float64Data) latest(at time.Time, lm label.Map, l label.La... type HistogramInt64Data (line 60) | type HistogramInt64Data struct method Handle (line 216) | func (data *HistogramInt64Data) Handle() string { return data... method Groups (line 217) | func (data *HistogramInt64Data) Groups() [][]label.Label { return data... method modify (line 219) | func (data *HistogramInt64Data) modify(at time.Time, lm label.Map, f f... method record (line 242) | func (data *HistogramInt64Data) record(at time.Time, lm label.Map, l l... type HistogramInt64Row (line 73) | type HistogramInt64Row struct type HistogramFloat64Data (line 87) | type HistogramFloat64Data struct method Handle (line 261) | func (data *HistogramFloat64Data) Handle() string { return da... method Groups (line 262) | func (data *HistogramFloat64Data) Groups() [][]label.Label { return da... method modify (line 264) | func (data *HistogramFloat64Data) modify(at time.Time, lm label.Map, f... method record (line 287) | func (data *HistogramFloat64Data) record(at time.Time, lm label.Map, l... type HistogramFloat64Row (line 100) | type HistogramFloat64Row struct function labelListEqual (line 113) | func labelListEqual(a, b []label.Label) bool { function labelListLess (line 118) | func labelListLess(a, b []label.Label) bool { function getGroup (line 123) | func getGroup(lm label.Map, g *[][]label.Label, keys []label.Key) (int, ... FILE: internal/event/export/metric/exporter.go type Config (line 21) | type Config struct method subscribe (line 27) | func (e *Config) subscribe(key label.Key, s subscriber) { method Exporter (line 34) | func (e *Config) Exporter(output event.Exporter) event.Exporter { type subscriber (line 25) | type subscriber FILE: internal/event/export/metric/info.go type Scalar (line 13) | type Scalar struct method Count (line 49) | func (info Scalar) Count(e *Config, key label.Key) { method SumInt64 (line 57) | func (info Scalar) SumInt64(e *Config, key *keys.Int) { method LatestInt64 (line 65) | func (info Scalar) LatestInt64(e *Config, key *keys.Int) { method SumFloat64 (line 73) | func (info Scalar) SumFloat64(e *Config, key *keys.Float) { method LatestFloat64 (line 81) | func (info Scalar) LatestFloat64(e *Config, key *keys.Float) { type HistogramInt64 (line 23) | type HistogramInt64 struct method Record (line 89) | func (info HistogramInt64) Record(e *Config, key *keys.Int) { type HistogramFloat64 (line 35) | type HistogramFloat64 struct method Record (line 97) | func (info HistogramFloat64) Record(e *Config, key *keys.Float) { FILE: internal/event/export/otel/common.go function labelToAttribute (line 16) | func labelToAttribute(l label.Label) (otlpAttribute, bool) { function varOf (line 46) | func varOf[T any](x T) *T { return &x } FILE: internal/event/export/otel/metrics.go function convertMetric (line 13) | func convertMetric(data metric.Data) otlpMetric { function convertInt64Data (line 28) | func convertInt64Data(d *metric.Int64Data) otlpMetric { function convertFloat64Data (line 59) | func convertFloat64Data(d *metric.Float64Data) otlpMetric { function convertHistogramInt64Data (line 90) | func convertHistogramInt64Data(d *metric.HistogramInt64Data) otlpMetric { function convertHistogramFloat64Data (line 138) | func convertHistogramFloat64Data(d *metric.HistogramFloat64Data) otlpMet... function labelsToAttributes (line 179) | func labelsToAttributes(labels []label.Label) []otlpAttribute { method exportMetrics (line 190) | func (e *Exporter) exportMetrics(metrics []otlpMetric) error { FILE: internal/event/export/otel/metrics_test.go function captureMetricData (line 19) | func captureMetricData(name string, setup func(*metric.Config), record f... function TestConvertInt64Data_Counter (line 45) | func TestConvertInt64Data_Counter(t *testing.T) { function TestConvertInt64Data_Gauge (line 82) | func TestConvertInt64Data_Gauge(t *testing.T) { function TestConvertFloat64Data (line 107) | func TestConvertFloat64Data(t *testing.T) { function TestConvertHistogramInt64Data (line 129) | func TestConvertHistogramInt64Data(t *testing.T) { function TestConvertInt64Data_WithAttributes (line 203) | func TestConvertInt64Data_WithAttributes(t *testing.T) { FILE: internal/event/export/otel/options.go constant DefaultEndpoint (line 13) | DefaultEndpoint = "http://localhost:4318" constant DefaultServiceName (line 14) | DefaultServiceName = "unknown_service" constant DefaultTimeout (line 15) | DefaultTimeout = 10 * time.Second constant DefaultFlushPeriod (line 16) | DefaultFlushPeriod = 2 * time.Second type Option (line 20) | type Option function WithEndpoint (line 23) | func WithEndpoint(endpoint string) Option { function WithServiceName (line 30) | func WithServiceName(name string) Option { function WithTimeout (line 37) | func WithTimeout(timeout time.Duration) Option { function WithFlushPeriod (line 44) | func WithFlushPeriod(period time.Duration) Option { function WithServiceVersion (line 51) | func WithServiceVersion(version string) Option { FILE: internal/event/export/otel/otel.go type Exporter (line 43) | type Exporter struct method ProcessEvent (line 90) | func (e *Exporter) ProcessEvent(ctx context.Context, ev core.Event, lm... method Flush (line 115) | func (e *Exporter) Flush() { method post (line 148) | func (e *Exporter) post(path string, payload any) error { method buildResource (line 175) | func (e *Exporter) buildResource() otlpResource { function NewExporter (line 58) | func NewExporter(ctx context.Context, opts ...Option) *Exporter { FILE: internal/event/export/otel/otel_test.go function TestLabelToAttribute_String (line 14) | func TestLabelToAttribute_String(t *testing.T) { function TestLabelToAttribute_Int (line 30) | func TestLabelToAttribute_Int(t *testing.T) { function TestLabelToAttribute_Float (line 46) | func TestLabelToAttribute_Float(t *testing.T) { function TestLabelToAttribute_Error (line 62) | func TestLabelToAttribute_Error(t *testing.T) { function TestLabelToAttribute_NilError (line 78) | func TestLabelToAttribute_NilError(t *testing.T) { FILE: internal/event/export/otel/otlp.go type intAsString (line 24) | type intAsString method MarshalJSON (line 26) | func (i intAsString) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 30) | func (i *intAsString) UnmarshalJSON(data []byte) error { type otlpResource (line 48) | type otlpResource struct type otlpScope (line 54) | type otlpScope struct type otlpAttribute (line 61) | type otlpAttribute struct type otlpAttributeValue (line 68) | type otlpAttributeValue struct type otlpTraceExportRequest (line 79) | type otlpTraceExportRequest struct type otlpResourceSpans (line 85) | type otlpResourceSpans struct type otlpScopeSpans (line 92) | type otlpScopeSpans struct type otlpSpan (line 99) | type otlpSpan struct type otlpSpanStatus (line 113) | type otlpSpanStatus struct type otlpMetricsRequest (line 122) | type otlpMetricsRequest struct type otlpResourceMetrics (line 128) | type otlpResourceMetrics struct type otlpScopeMetrics (line 135) | type otlpScopeMetrics struct type otlpMetric (line 142) | type otlpMetric struct type otlpGauge (line 153) | type otlpGauge struct type otlpSum (line 159) | type otlpSum struct type otlpHistogram (line 167) | type otlpHistogram struct type otlpNumberDataPoint (line 174) | type otlpNumberDataPoint struct type otlpHistogramDataPoint (line 183) | type otlpHistogramDataPoint struct FILE: internal/event/export/otel/traces.go method exportTraces (line 17) | func (e *Exporter) exportTraces(spans []otlpSpan) error { function convertSpan (line 31) | func convertSpan(span *export.Span) otlpSpan { function extractAttributes (line 68) | func extractAttributes(span *export.Span) []otlpAttribute { function appendEventAttributes (line 84) | func appendEventAttributes(attrs []otlpAttribute, ev core.Event) []otlpA... FILE: internal/event/export/otel/traces_test.go function TestConvertSpan (line 22) | func TestConvertSpan(t *testing.T) { function TestE2E_SpanExport (line 55) | func TestE2E_SpanExport(t *testing.T) { FILE: internal/event/export/printer.go type Printer (line 15) | type Printer struct method WriteEvent (line 20) | func (p *Printer) WriteEvent(w io.Writer, ev core.Event, lm label.Map) { FILE: internal/event/export/prometheus/prometheus.go function New (line 21) | func New() *Exporter { type Exporter (line 25) | type Exporter struct method ProcessEvent (line 30) | func (e *Exporter) ProcessEvent(ctx context.Context, ev core.Event, lm... method header (line 57) | func (e *Exporter) header(w http.ResponseWriter, name, description str... method row (line 69) | func (e *Exporter) row(w http.ResponseWriter, name string, group []lab... method Serve (line 87) | func (e *Exporter) Serve(w http.ResponseWriter, r *http.Request) { FILE: internal/event/export/trace.go type SpanContext (line 18) | type SpanContext struct method Format (line 88) | func (s *SpanContext) Format(f fmt.State, r rune) { type Span (line 23) | type Span struct method Start (line 92) | func (s *Span) Start() core.Event { method Finish (line 97) | func (s *Span) Finish() core.Event { method Events (line 103) | func (s *Span) Events() []core.Event { method Format (line 109) | func (s *Span) Format(f fmt.State, r rune) { type contextKeyType (line 33) | type contextKeyType constant spanContextKey (line 36) | spanContextKey = contextKeyType(iota) constant labelContextKey (line 37) | labelContextKey function GetSpan (line 40) | func GetSpan(ctx context.Context) *Span { function Spans (line 53) | func Spans(output event.Exporter) event.Exporter { FILE: internal/event/keys/keys.go type Value (line 16) | type Value struct method Name (line 26) | func (k *Value) Name() string { return k.name } method Description (line 27) | func (k *Value) Description() string { return k.description } method Append (line 29) | func (k *Value) Append(buf []byte, l label.Label) []byte { method Get (line 34) | func (k *Value) Get(lm label.Map) any { method From (line 42) | func (k *Value) From(t label.Label) any { return t.UnpackValue() } method Of (line 45) | func (k *Value) Of(value any) label.Label { return label.OfValue(k, va... function New (line 22) | func New(name, description string) *Value { type Tag (line 51) | type Tag struct method Name (line 61) | func (k *Tag) Name() string { return k.name } method Description (line 62) | func (k *Tag) Description() string { return k.description } method Append (line 64) | func (k *Tag) Append(buf []byte, l label.Label) []byte { return buf } method New (line 67) | func (k *Tag) New() label.Label { return label.OfValue(k, nil) } function NewTag (line 57) | func NewTag(name, description string) *Tag { type Int (line 70) | type Int struct method Name (line 80) | func (k *Int) Name() string { return k.name } method Description (line 81) | func (k *Int) Description() string { return k.description } method Append (line 83) | func (k *Int) Append(buf []byte, l label.Label) []byte { method Of (line 88) | func (k *Int) Of(v int) label.Label { return k.Of64(int64(v)) } method Of64 (line 91) | func (k *Int) Of64(v int64) label.Label { return label.Of64(k, uint64(... method Get (line 94) | func (k *Int) Get(lm label.Map) int64 { method From (line 102) | func (k *Int) From(t label.Label) int64 { return int64(t.Unpack64()) } function NewInt (line 76) | func NewInt(name, description string) *Int { type Uint (line 105) | type Uint struct method Name (line 115) | func (k *Uint) Name() string { return k.name } method Description (line 116) | func (k *Uint) Description() string { return k.description } method Append (line 118) | func (k *Uint) Append(buf []byte, l label.Label) []byte { method Of (line 123) | func (k *Uint) Of(v uint64) label.Label { return label.Of64(k, v) } method Get (line 126) | func (k *Uint) Get(lm label.Map) uint64 { method From (line 134) | func (k *Uint) From(t label.Label) uint64 { return t.Unpack64() } function NewUint (line 111) | func NewUint(name, description string) *Uint { type Float (line 137) | type Float struct method Name (line 147) | func (k *Float) Name() string { return k.name } method Description (line 148) | func (k *Float) Description() string { return k.description } method Append (line 150) | func (k *Float) Append(buf []byte, l label.Label) []byte { method Of (line 155) | func (k *Float) Of(v float64) label.Label { method Get (line 160) | func (k *Float) Get(lm label.Map) float64 { method From (line 168) | func (k *Float) From(t label.Label) float64 { function NewFloat (line 143) | func NewFloat(name, description string) *Float { type String (line 173) | type String struct method Name (line 183) | func (k *String) Name() string { return k.name } method Description (line 184) | func (k *String) Description() string { return k.description } method Append (line 186) | func (k *String) Append(buf []byte, l label.Label) []byte { method Of (line 191) | func (k *String) Of(v string) label.Label { return label.OfString(k, v) } method Get (line 194) | func (k *String) Get(lm label.Map) string { method From (line 202) | func (k *String) From(t label.Label) string { return t.UnpackString() } function NewString (line 179) | func NewString(name, description string) *String { type Error (line 205) | type Error struct method Name (line 215) | func (k *Error) Name() string { return k.name } method Description (line 216) | func (k *Error) Description() string { return k.description } method Append (line 218) | func (k *Error) Append(buf []byte, l label.Label) []byte { method Of (line 223) | func (k *Error) Of(v error) label.Label { return label.OfValue(k, v) } method Get (line 226) | func (k *Error) Get(lm label.Map) error { method From (line 234) | func (k *Error) From(t label.Label) error { function NewError (line 211) | func NewError(name, description string) *Error { FILE: internal/event/keys/util.go function Join (line 14) | func Join[S ~[]T, T ~string](s S) string { FILE: internal/event/keys/util_test.go function TestJoin (line 9) | func TestJoin(t *testing.T) { FILE: internal/event/label/label.go type Key (line 17) | type Key interface type Label (line 28) | type Label struct method UnpackValue (line 81) | func (t Label) UnpackValue() any { return t.untyped } method Unpack64 (line 93) | func (t Label) Unpack64() uint64 { return t.packed } method UnpackString (line 112) | func (t Label) UnpackString() string { method Valid (line 117) | func (t Label) Valid() bool { return t.key != nil } method Key (line 120) | func (t Label) Key() Key { return t.key } method Format (line 123) | func (t Label) Format(f fmt.State, r rune) { type Map (line 35) | type Map interface type List (line 43) | type List interface type list (line 52) | type list struct method Valid (line 133) | func (l *list) Valid(index int) bool { method Label (line 137) | func (l *list) Label(index int) Label { type filter (line 57) | type filter struct method Valid (line 141) | func (f *filter) Valid(index int) bool { method Label (line 145) | func (f *filter) Label(index int) Label { type listMap (line 63) | type listMap struct method Find (line 153) | func (lm listMap) Find(key Key) Label { type mapChain (line 68) | type mapChain struct method Find (line 162) | func (c mapChain) Find(key Key) Label { function OfValue (line 75) | func OfValue(k Key, value any) Label { return Label{key: k, untyped: val... function Of64 (line 87) | func Of64(k Key, v uint64) Label { return Label{key: k, packed: v} } type stringptr (line 95) | type stringptr function OfString (line 100) | func OfString(k Key, v string) Label { function NewList (line 174) | func NewList(labels ...Label) List { function Filter (line 181) | func Filter(l List, keys ...Key) List { function NewMap (line 188) | func NewMap(labels ...Label) Map { function MergeMaps (line 192) | func MergeMaps(srcs ...Map) Map { FILE: internal/event/label/label_test.go function TestList (line 28) | func TestList(t *testing.T) { function TestFilter (line 85) | func TestFilter(t *testing.T) { function TestMap (line 130) | func TestMap(t *testing.T) { function TestMapMerge (line 186) | func TestMapMerge(t *testing.T) { function printList (line 247) | func printList(list label.List) string { function printMap (line 262) | func printMap(lm label.Map, keys []label.Key) string { function TestAttemptedStringCorruption (line 273) | func TestAttemptedStringCorruption(t *testing.T) { FILE: internal/expect/expect.go type Note (line 68) | type Note struct type ReadFile (line 79) | type ReadFile function MatchBefore (line 89) | func MatchBefore(f *token.File, readFile ReadFile, end token.Pos, patter... FILE: internal/expect/expect_test.go function TestMarker (line 18) | func TestMarker(t *testing.T) { function checkMarker (line 158) | func checkMarker(t *testing.T, fset *token.FileSet, readFile expect.Read... FILE: internal/expect/extract.go constant commentStart (line 23) | commentStart = "@" constant commentStartLen (line 24) | commentStartLen = len(commentStart) type Identifier (line 27) | type Identifier function Parse (line 36) | func Parse(fset *token.FileSet, filename string, content []byte) ([]*Not... function extractModWork (line 131) | func extractModWork(fset *token.FileSet, exprs []modfile.Expr) ([]*Note,... function ExtractGo (line 162) | func ExtractGo(tokFile *token.File, file *ast.File) ([]*Note, error) { function getAdjustedNote (line 180) | func getAdjustedNote(text string) (string, int) { constant invalidToken (line 208) | invalidToken rune = 0 type tokens (line 210) | type tokens struct method Init (line 217) | func (t *tokens) Init(base token.Pos, text string) *tokens { method Consume (line 228) | func (t *tokens) Consume() string { method Token (line 233) | func (t *tokens) Token() rune { method Skip (line 243) | func (t *tokens) Skip(r rune) int { method TokenString (line 252) | func (t *tokens) TokenString() string { method Pos (line 256) | func (t *tokens) Pos() token.Pos { method Errorf (line 260) | func (t *tokens) Errorf(msg string, args ...any) { function parse (line 267) | func parse(tokFile *token.File, base token.Pos, text string) ([]*Note, e... function parseComment (line 276) | func parseComment(t *tokens) []*Note { function parseNote (line 301) | func parseNote(t *tokens) *Note { function parseArgumentList (line 320) | func parseArgumentList(t *tokens) (args []any, named map[string]any) { function parseArgument (line 360) | func parseArgument(t *tokens) (name string, value any) { FILE: internal/expect/testdata/test.go constant _ (line 13) | _ int = iota constant αSimpleMarkerα (line 14) | αSimpleMarkerα constant offsetββMarker (line 15) | offsetββMarker constant regexγMaγrker (line 16) | regexγMaγrker constant εMultipleεζMarkersζ (line 17) | εMultipleεζMarkersζ constant ηBlockMarkerη (line 18) | ηBlockMarkerη function someFunc (line 25) | func someFunc(a, b int) int { FILE: internal/facts/facts.go constant debug (line 53) | debug = false type Set (line 62) | type Set struct method ImportObjectFact (line 75) | func (s *Set) ImportObjectFact(obj types.Object, ptr analysis.Fact) bo... method ExportObjectFact (line 90) | func (s *Set) ExportObjectFact(obj types.Object, fact analysis.Fact) { method AllObjectFacts (line 101) | func (s *Set) AllObjectFacts(filter map[reflect.Type]bool) []analysis.... method ImportPackageFact (line 114) | func (s *Set) ImportPackageFact(pkg *types.Package, ptr analysis.Fact)... method ExportPackageFact (line 129) | func (s *Set) ExportPackageFact(fact analysis.Fact) { method AllPackageFacts (line 136) | func (s *Set) AllPackageFacts(filter map[reflect.Type]bool) []analysis... method Encode (line 271) | func (s *Set) Encode() []byte { method String (line 373) | func (s *Set) String() string { type key (line 68) | type key struct type gobFact (line 149) | type gobFact struct type Decoder (line 160) | type Decoder struct method Decode (line 207) | func (d *Decoder) Decode(read func(pkgPath string) ([]byte, error)) (*... function NewDecoder (line 171) | func NewDecoder(pkg *types.Package) *Decoder { function NewDecoderFunc (line 187) | func NewDecoderFunc(pkg *types.Package, getPackage GetPackageFunc) *Deco... FILE: internal/facts/facts_test.go type myFact (line 27) | type myFact struct method String (line 31) | func (f *myFact) String() string { return fmt.Sprintf("myFact(%s)", f.... method AFact (line 32) | func (f *myFact) AFact() {} function init (line 34) | func init() { function TestEncodeDecode (line 38) | func TestEncodeDecode(t *testing.T) { function TestEncodeDecodeAliases (line 255) | func TestEncodeDecodeAliases(t *testing.T) { type lookup (line 282) | type lookup struct type pkgLookups (line 287) | type pkgLookups struct function testEncodeDecode (line 309) | func testEncodeDecode(t *testing.T, files map[string]string, tests []pkg... function find (line 386) | func find(p *types.Package, expr string) types.Object { function load (line 409) | func load(t *testing.T, dir string, path string) (*types.Package, error) { type otherFact (line 429) | type otherFact struct method String (line 433) | func (f *otherFact) String() string { return fmt.Sprintf("otherFact(%s... method AFact (line 434) | func (f *otherFact) AFact() {} function TestFactFilter (line 436) | func TestFactFilter(t *testing.T) { function TestMalformed (line 482) | func TestMalformed(t *testing.T) { type closure (line 597) | type closure method Import (line 599) | func (c closure) Import(path string) (*types.Package, error) { return ... FILE: internal/facts/imports.go function importMap (line 30) | func importMap(imports []*types.Package) map[string]*types.Package { FILE: internal/fmtstr/main.go function main (line 28) | func main() { function is (line 83) | func is[T any](x any) bool { function formatNode (line 88) | func formatNode(fset *token.FileSet, n ast.Node) string { FILE: internal/fmtstr/parse.go type Operation (line 17) | type Operation struct method addOffset (line 188) | func (s *Operation) addOffset(parsedLen int) { type Size (line 28) | type Size struct type Verb (line 39) | type Verb struct type Range (line 47) | type Range struct function Parse (line 64) | func Parse(format string, idx int) ([]*Operation, error) { type state (line 95) | type state struct method parseFlags (line 207) | func (s *state) parseFlags() { method parseIndex (line 221) | func (s *state) parseIndex() error { method scanNum (line 258) | func (s *state) scanNum() (int, bool) { method parseSize (line 283) | func (s *state) parseSize(kind sizeType) { method parsePrecision (line 360) | func (s *state) parsePrecision() error { function parseOperation (line 112) | func parseOperation(format string, firstArg, argNum int) (*state, error) { function prefixOf (line 213) | func prefixOf(s, set string) string { type sizeType (line 274) | type sizeType constant Width (line 277) | Width sizeType = iota constant Precision (line 278) | Precision FILE: internal/gcimporter/bexport_test.go function fileLine (line 26) | func fileLine(fset *token.FileSet, obj types.Object) string { function equalType (line 32) | func equalType(x, y types.Type) error { function cmpNamed (line 212) | func cmpNamed(x, y *types.Named) error { function makeExplicit (line 255) | func makeExplicit(typ types.Type) types.Type { function equalTypeArgs (line 270) | func equalTypeArgs(x, y *types.TypeList) error { function equalTypeParams (line 282) | func equalTypeParams(x, y *types.TypeParamList) error { function TestVeryLongFile (line 297) | func TestVeryLongFile(t *testing.T) { constant src (line 335) | src = ` function checkPkg (line 346) | func checkPkg(t *testing.T, pkg *types.Package, label string) { FILE: internal/gcimporter/bimport.go function errorf (line 17) | func errorf(format string, args ...any) { constant deltaNewFile (line 21) | deltaNewFile = -64 type fakeFileSet (line 24) | type fakeFileSet struct method pos (line 36) | func (s *fakeFileSet) pos(file string, line, column int) token.Pos { method setLines (line 59) | func (s *fakeFileSet) setLines() { type fileInfo (line 29) | type fileInfo struct constant maxlines (line 34) | maxlines = 64 * 1024 function chanDir (line 76) | func chanDir(d int) types.ChanDir { FILE: internal/gcimporter/exportdata.go function FindExportData (line 33) | func FindExportData(r *bufio.Reader) (size int64, err error) { function ReadUnified (line 114) | func ReadUnified(r *bufio.Reader) (data []byte, err error) { function FindPackageDefinition (line 179) | func FindPackageDefinition(r *bufio.Reader) (size int, err error) { function ReadObjectHeaders (line 211) | func ReadObjectHeaders(r *bufio.Reader) (objapi string, headers []string... function ReadExportDataHeader (line 255) | func ReadExportDataHeader(r *bufio.Reader) (n int, err error) { function FindPkg (line 301) | func FindPkg(path, srcDir string) (filename, id string, err error) { function lookupGorootExport (line 385) | func lookupGorootExport(pkgDir string) (string, error) { FILE: internal/gcimporter/gcimporter.go constant debug (line 36) | debug = false constant trace (line 39) | trace = false function Import (line 47) | func Import(fset *token.FileSet, packages map[string]*types.Package, pat... FILE: internal/gcimporter/gcimporter_test.go function TestMain (line 35) | func TestMain(m *testing.M) { function needsCompiler (line 42) | func needsCompiler(t *testing.T, compiler string) { function compile (line 55) | func compile(t *testing.T, dirname, filename, outdirname string, package... function compilePkg (line 59) | func compilePkg(t *testing.T, dirname, filename, outdirname string, pack... function testPath (line 94) | func testPath(t *testing.T, path, srcDir string) *types.Package { function mktmpdir (line 105) | func mktmpdir(t *testing.T) string { constant testfile (line 117) | testfile = "exports.go" function TestImportTestdata (line 119) | func TestImportTestdata(t *testing.T) { function TestImportTypeparamTests (line 159) | func TestImportTypeparamTests(t *testing.T) { function checkFile (line 244) | func checkFile(t *testing.T, filename string, src []byte) *types.Package { function TestVersionHandling (line 260) | func TestVersionHandling(t *testing.T) { function TestImportStdLib (line 330) | func TestImportStdLib(t *testing.T) { function TestImportedTypes (line 387) | func TestImportedTypes(t *testing.T) { function TestImportedConsts (line 414) | func TestImportedConsts(t *testing.T) { function importObject (line 439) | func importObject(t *testing.T, name string) types.Object { function verifyInterfaceMethodRecvs (line 463) | func verifyInterfaceMethodRecvs(t *testing.T, named *types.Named, level ... function TestIssue5815 (line 496) | func TestIssue5815(t *testing.T) { function TestCorrectMethodPackage (line 521) | func TestCorrectMethodPackage(t *testing.T) { function TestIssue13566 (line 541) | func TestIssue13566(t *testing.T) { function TestIssue13898 (line 578) | func TestIssue13898(t *testing.T) { function TestIssue15517 (line 621) | func TestIssue15517(t *testing.T) { function TestIssue15920 (line 651) | func TestIssue15920(t *testing.T) { function TestIssue20046 (line 659) | func TestIssue20046(t *testing.T) { function TestIssue25301 (line 672) | func TestIssue25301(t *testing.T) { function TestIssue51836 (line 680) | func TestIssue51836(t *testing.T) { function TestIssue61561 (line 704) | func TestIssue61561(t *testing.T) { function TestIssue57015 (line 768) | func TestIssue57015(t *testing.T) { function TestExportInvalid (line 784) | func TestExportInvalid(t *testing.T) { function TestIssue58296 (line 848) | func TestIssue58296(t *testing.T) { function TestIssueAliases (line 897) | func TestIssueAliases(t *testing.T) { function apkg (line 957) | func apkg(testoutdir string) string { function importPkg (line 965) | func importPkg(t *testing.T, path, srcDir string) *types.Package { function compileAndImportPkg (line 973) | func compileAndImportPkg(t *testing.T, name string) *types.Package { function lookupObj (line 980) | func lookupObj(t *testing.T, scope *types.Scope, name string) types.Obje... function skipWindows (line 992) | func skipWindows(t *testing.T) { type importMap (line 998) | type importMap method Import (line 1000) | func (m importMap) Import(path string) (*types.Package, error) { retur... function TestIssue69912 (line 1002) | func TestIssue69912(t *testing.T) { FILE: internal/gcimporter/iexport.go function IExportShallow (line 278) | func IExportShallow(fset *token.FileSet, pkg *types.Package, reportf Rep... function IImportShallow (line 302) | func IImportShallow(fset *token.FileSet, getPackages GetPackagesFunc, da... constant bundleVersion (line 317) | bundleVersion = 0 function IExportData (line 324) | func IExportData(out io.Writer, fset *token.FileSet, pkg *types.Package)... function IExportBundle (line 330) | func IExportBundle(out io.Writer, fset *token.FileSet, pkgs []*types.Pac... function iexportCommon (line 335) | func iexportCommon(out io.Writer, fset *token.FileSet, bundle, shallow b... type iexporter (line 569) | type iexporter struct method encodeFile (line 459) | func (p *iexporter) encodeFile(w *intWriter, file *token.File, needed ... method exportName (line 562) | func (p *iexporter) exportName(obj types.Object) (res string) { method trace (line 606) | func (p *iexporter) trace(format string, args ...any) { method objectpathEncoder (line 619) | func (p *iexporter) objectpathEncoder() *objectpath.Encoder { method stringOff (line 628) | func (p *iexporter) stringOff(s string) uint64 { method fileIndexAndOffset (line 641) | func (p *iexporter) fileIndexAndOffset(file *token.File, pos token.Pos... method pushDecl (line 660) | func (p *iexporter) pushDecl(obj types.Object) { method doDecl (line 697) | func (p *iexporter) doDecl(obj types.Object) { method newWriter (line 976) | func (p *iexporter) newWriter() *exportWriter { method typOff (line 986) | func (p *iexporter) typOff(t types.Type, pkg *types.Package) uint64 { type filePositions (line 601) | type filePositions struct type exportWriter (line 681) | type exportWriter struct method writeIndex (line 509) | func (w *exportWriter) writeIndex(index map[types.Object]uint64) { method exportPath (line 690) | func (w *exportWriter) exportPath(pkg *types.Package) string { method tag (line 847) | func (w *exportWriter) tag(tag byte) { method pos (line 851) | func (w *exportWriter) pos(pos token.Pos) { method posV2 (line 865) | func (w *exportWriter) posV2(pos token.Pos) { method posV1 (line 876) | func (w *exportWriter) posV1(pos token.Pos) { method posV0 (line 910) | func (w *exportWriter) posV0(pos token.Pos) { method pkg (line 944) | func (w *exportWriter) pkg(pkg *types.Package) { method qualifiedType (line 958) | func (w *exportWriter) qualifiedType(obj *types.TypeName) { method typ (line 972) | func (w *exportWriter) typ(t types.Type, pkg *types.Package) { method flush (line 980) | func (w *exportWriter) flush() uint64 { method startType (line 997) | func (w *exportWriter) startType(k itag) { method doTyp (line 1002) | func (w *exportWriter) doTyp(t types.Type, pkg *types.Package) { method objectPath (line 1188) | func (w *exportWriter) objectPath(obj types.Object) { method signature (line 1224) | func (w *exportWriter) signature(sig *types.Signature) { method typeList (line 1232) | func (w *exportWriter) typeList(ts *types.TypeList, pkg *types.Package) { method tparamList (line 1239) | func (w *exportWriter) tparamList(prefix string, list *types.TypeParam... method paramList (line 1281) | func (w *exportWriter) paramList(tup *types.Tuple) { method param (line 1289) | func (w *exportWriter) param(obj types.Object) { method value (line 1295) | func (w *exportWriter) value(typ types.Type, v constant.Value) { method mpint (line 1398) | func (w *exportWriter) mpint(x *big.Int, typ types.Type) { method mpfloat (line 1466) | func (w *exportWriter) mpfloat(f *big.Float, typ types.Type) { method bool (line 1490) | func (w *exportWriter) bool(b bool) bool { method int64 (line 1499) | func (w *exportWriter) int64(x int64) { w.data.int64(x) } method uint64 (line 1500) | func (w *exportWriter) uint64(x uint64) { w.data.uint64(x) } method string (line 1501) | func (w *exportWriter) string(s string) { w.uint64(w.p.stringOff(s)) } method localIdent (line 1503) | func (w *exportWriter) localIdent(obj types.Object) { constant blankMarker (line 1250) | blankMarker = "$" function tparamExportName (line 1256) | func tparamExportName(prefix string, tparam *types.TypeParam) string { function tparamName (line 1268) | func tparamName(exportName string) string { function constantToFloat (line 1344) | func constantToFloat(x constant.Value) *big.Float { function valueToRat (line 1368) | func valueToRat(x constant.Value) *big.Rat { type intWriter (line 1519) | type intWriter struct method int64 (line 1523) | func (w *intWriter) int64(x int64) { method uint64 (line 1529) | func (w *intWriter) uint64(x uint64) { function assert (line 1535) | func assert(cond bool) { type objQueue (line 1545) | type objQueue struct method empty (line 1551) | func (q *objQueue) empty() bool { method pushTail (line 1556) | func (q *objQueue) pushTail(obj types.Object) { method popHead (line 1579) | func (q *objQueue) popHead() types.Object { type internalError (line 1589) | type internalError method Error (line 1591) | func (e internalError) Error() string { return "gcimporter: " + string... function internalErrorf (line 1600) | func internalErrorf(format string, args ...any) error { FILE: internal/gcimporter/iexport_common_test.go constant IExportVersion (line 12) | IExportVersion = iexportVersionGenerics FILE: internal/gcimporter/iexport_go118_test.go function TestGenericExport (line 28) | func TestGenericExport(t *testing.T) { function testExportSrc (line 69) | func testExportSrc(t *testing.T, src []byte) { function TestIndexedImportTypeparamTests (line 99) | func TestIndexedImportTypeparamTests(t *testing.T) { function TestRecursiveExport_Issue51219 (line 135) | func TestRecursiveExport_Issue51219(t *testing.T) { type testImporter (line 213) | type testImporter struct method Import (line 218) | func (t *testImporter) Import(path string) (*types.Package, error) { FILE: internal/gcimporter/iexport_test.go function iexport (line 29) | func iexport(fset *token.FileSet, version int, pkg *types.Package) ([]by... function TestIExportData_stdlib (line 38) | func TestIExportData_stdlib(t *testing.T) { function testPkgData (line 141) | func testPkgData(t *testing.T, fset *token.FileSet, version int, pkg *ty... function testPkg (line 153) | func testPkg(t *testing.T, fset *token.FileSet, version int, pkg *types.... function TestIExportData_long (line 187) | func TestIExportData_long(t *testing.T) { function TestIExportData_typealiases (line 224) | func TestIExportData_typealiases(t *testing.T) { function cmpObj (line 263) | func cmpObj(x, y types.Object) error { constant mpprec (line 323) | mpprec = 512 function same (line 326) | func same(x, y constant.Value) bool { function constantToFloat (line 336) | func constantToFloat(x constant.Value) *big.Float { function valueToRat (line 359) | func valueToRat(x constant.Value) *big.Rat { function TestUnexportedStructFields (line 371) | func TestUnexportedStructFields(t *testing.T) { type importerFunc (line 412) | type importerFunc method Import (line 414) | func (f importerFunc) Import(path string) (*types.Package, error) { re... function TestIExportDataTypeParameterizedAliases (line 418) | func TestIExportDataTypeParameterizedAliases(t *testing.T) { FILE: internal/gcimporter/iimport.go type intReader (line 28) | type intReader struct method int64 (line 33) | func (r *intReader) int64() int64 { method uint64 (line 41) | func (r *intReader) uint64() uint64 { constant iexportVersionGo1_11 (line 51) | iexportVersionGo1_11 = 0 constant iexportVersionPosCol (line 52) | iexportVersionPosCol = 1 constant iexportVersionGo1_18 (line 53) | iexportVersionGo1_18 = 2 constant iexportVersionGenerics (line 54) | iexportVersionGenerics = 2 constant iexportVersion (line 55) | iexportVersion = iexportVersionGenerics constant iexportVersionCurrent (line 57) | iexportVersionCurrent = 2 type ident (line 60) | type ident struct constant predeclReserved (line 65) | predeclReserved = 32 type itag (line 67) | type itag constant definedType (line 71) | definedType itag = iota constant pointerType (line 72) | pointerType constant sliceType (line 73) | sliceType constant arrayType (line 74) | arrayType constant chanType (line 75) | chanType constant mapType (line 76) | mapType constant signatureType (line 77) | signatureType constant structType (line 78) | structType constant interfaceType (line 79) | interfaceType constant typeParamType (line 80) | typeParamType constant instanceType (line 81) | instanceType constant unionType (line 82) | unionType constant aliasType (line 83) | aliasType constant varTag (line 88) | varTag = 'V' constant funcTag (line 89) | funcTag = 'F' constant genericFuncTag (line 90) | genericFuncTag = 'G' constant constTag (line 91) | constTag = 'C' constant aliasTag (line 92) | aliasTag = 'A' constant genericAliasTag (line 93) | genericAliasTag = 'B' constant typeParamTag (line 94) | typeParamTag = 'P' constant typeTag (line 95) | typeTag = 'T' constant genericTypeTag (line 96) | genericTypeTag = 'U' function IImportData (line 103) | func IImportData(fset *token.FileSet, imports map[string]*types.Package,... function IImportBundle (line 112) | func IImportBundle(fset *token.FileSet, imports map[string]*types.Packag... type GetPackagesItem (line 127) | type GetPackagesItem struct function GetPackagesFromMap (line 141) | func GetPackagesFromMap(m map[string]*types.Package) GetPackagesFunc { function iimportCommon (line 155) | func iimportCommon(fset *token.FileSet, getPackages GetPackagesFunc, dat... type setConstraintArgs (line 363) | type setConstraintArgs struct type iimporter (line 368) | type iimporter struct method trace (line 402) | func (p *iimporter) trace(format string, args ...any) { method doDecl (line 411) | func (p *iimporter) doDecl(pkg *types.Package, name string) { method stringAt (line 439) | func (p *iimporter) stringAt(off uint64) string { method fileAt (line 454) | func (p *iimporter) fileAt(index uint64) *token.File { method decodeFile (line 464) | func (p *iimporter) decodeFile(rd intReader) *token.File { method pkgAt (line 503) | func (p *iimporter) pkgAt(off uint64) *types.Package { method typAt (line 512) | func (p *iimporter) typAt(off uint64, base *types.Named) types.Type { function canReuse (line 537) | func canReuse(def *types.Named, rhs types.Type) bool { type importReader (line 549) | type importReader struct method obj (line 566) | func (r *importReader) obj(pkg *types.Package, name string) { method declare (line 682) | func (r *importReader) declare(obj types.Object) { method value (line 686) | func (r *importReader) value() (typ types.Type, val constant.Value) { method mpint (line 752) | func (r *importReader) mpint(x *big.Int, typ *types.Basic) { method mpfloat (line 791) | func (r *importReader) mpfloat(typ *types.Basic) constant.Value { method ident (line 802) | func (r *importReader) ident() string { method qualifiedIdent (line 806) | func (r *importReader) qualifiedIdent() (*types.Package, string) { method pos (line 812) | func (r *importReader) pos() token.Pos { method posv0 (line 829) | func (r *importReader) posv0() { method posv1 (line 841) | func (r *importReader) posv1() { method posv2 (line 853) | func (r *importReader) posv2() token.Pos { method typ (line 862) | func (r *importReader) typ() types.Type { method pkg (line 871) | func (r *importReader) pkg() *types.Package { return r.p.pkgAt(r.uint6... method string (line 872) | func (r *importReader) string() string { return r.p.stringAt(r.ui... method doType (line 874) | func (r *importReader) doType(base *types.Named) (res types.Type) { method kind (line 1026) | func (r *importReader) kind() itag { method objectPathObject (line 1035) | func (r *importReader) objectPathObject() types.Object { method signature (line 1050) | func (r *importReader) signature(paramPkg *types.Package, recv *types.... method tparamList (line 1057) | func (r *importReader) tparamList() []*types.TypeParam { method paramList (line 1071) | func (r *importReader) paramList(pkg *types.Package) *types.Tuple { method param (line 1079) | func (r *importReader) param(pkg *types.Package) *types.Var { method bool (line 1086) | func (r *importReader) bool() bool { method int64 (line 1090) | func (r *importReader) int64() int64 { method uint64 (line 1098) | func (r *importReader) uint64() uint64 { method byte (line 1106) | func (r *importReader) byte() byte { function intSize (line 725) | func intSize(b *types.Basic) (signed bool, maxBytes uint) { function isInterface (line 866) | func isInterface(t types.Type) bool { type byPath (line 1114) | type byPath method Len (line 1116) | func (a byPath) Len() int { return len(a) } method Swap (line 1117) | func (a byPath) Swap(i, j int) { a[i], a[j] = a[j], a[i] } method Less (line 1118) | func (a byPath) Less(i, j int) bool { return a[i].Path() < a[j].Path() } FILE: internal/gcimporter/israce_test.go function init (line 9) | func init() { FILE: internal/gcimporter/main.go function main (line 29) | func main() { function printPackage (line 86) | func printPackage(pkg *types.Package) { FILE: internal/gcimporter/predeclared.go function predeclared (line 19) | func predeclared() []types.Type { type anyType (line 88) | type anyType struct method Underlying (line 90) | func (t anyType) Underlying() types.Type { return t } method String (line 91) | func (t anyType) String() string { return "any" } FILE: internal/gcimporter/shallow_test.go function TestShallowStd (line 24) | func TestShallowStd(t *testing.T) { function typecheck (line 70) | func typecheck(t *testing.T, ppkg *packages.Package) { function postTypeCheck (line 177) | func postTypeCheck(t *testing.T, fset *token.FileSet, pkg *types.Package) { FILE: internal/gcimporter/stdlib_test.go function TestStdlib (line 23) | func TestStdlib(t *testing.T) { FILE: internal/gcimporter/support.go function readArchiveHeader (line 15) | func readArchiveHeader(b *bufio.Reader, name string) int { FILE: internal/gcimporter/testdata/a.go type A (line 11) | type A struct FILE: internal/gcimporter/testdata/a/a.go type A (line 11) | type A struct FILE: internal/gcimporter/testdata/aliases/a/a.go function F (line 11) | func F() B { FILE: internal/gcimporter/testdata/b.go type A (line 11) | type A FILE: internal/gcimporter/testdata/exports.go constant init1 (line 15) | init1 = 0 function init (line 17) | func init() {} constant C0 (line 20) | C0 int = 0 constant C1 (line 21) | C1 = 3.14159265 constant C2 (line 22) | C2 = 2.718281828i constant C3 (line 23) | C3 = -123.456e-789 constant C4 (line 24) | C4 = +123.456E+789 constant C5 (line 25) | C5 = 1234i constant C6 (line 26) | C6 = "foo\n" constant C7 (line 27) | C7 = `bar\n` type T1 (line 31) | type T1 method M1 (line 89) | func (p *T1) M1() type T2 (line 32) | type T2 type T3 (line 33) | type T3 type T4 (line 34) | type T4 type T5 (line 35) | type T5 type T6a (line 36) | type T6a type T6b (line 37) | type T6b type T6c (line 38) | type T6c type T7 (line 39) | type T7 type T8 (line 40) | type T8 struct type T9 (line 41) | type T9 struct type T10 (line 46) | type T10 struct type T11 (line 51) | type T11 type T12 (line 52) | type T12 interface type T13 (line 53) | type T13 interface type T14 (line 57) | type T14 interface type T15 (line 62) | type T15 type T16 (line 63) | type T16 type T17 (line 64) | type T17 type T18 (line 65) | type T18 type T19 (line 66) | type T19 type T20 (line 67) | type T20 type T21 (line 68) | type T21 struct type T22 (line 69) | type T22 struct type T23 (line 70) | type T23 struct type T24 (line 71) | type T24 type T25 (line 72) | type T25 type T26 (line 73) | type T26 type T27 (line 74) | type T27 type T28 (line 75) | type T28 function F1 (line 83) | func F1() {} function F2 (line 84) | func F2(x int) {} function F3 (line 85) | func F3() int { return 0 } function F4 (line 86) | func F4() float32 { return 0 } function F5 (line 87) | func F5(a, b, c int, u, v, w struct{ x, y T1 }, more ...interface{}) (p,... FILE: internal/gcimporter/testdata/issue15920.go type Error (line 9) | type Error function F (line 11) | func F() Error { return nil } FILE: internal/gcimporter/testdata/issue25301.go type T (line 11) | type T interface type S (line 14) | type S struct method M (line 17) | func (S) M() { println("m") } FILE: internal/gcimporter/testdata/issue51836/a.go type T (line 7) | type T struct FILE: internal/gcimporter/testdata/issue51836/a/a.go type T (line 7) | type T struct FILE: internal/gcimporter/testdata/issue51836/aa.go type T (line 11) | type T struct FILE: internal/gcimporter/testdata/issue57015.go type E (line 7) | type E type X (line 9) | type X struct function F (line 11) | func F() X[interface { FILE: internal/gcimporter/testdata/issue58296/a/a.go type A (line 7) | type A method f (line 9) | func (A) f() {} FILE: internal/gcimporter/testdata/issue58296/b/b.go type B (line 9) | type B struct FILE: internal/gcimporter/testdata/issue58296/c/c.go type C (line 9) | type C struct FILE: internal/gcimporter/testdata/p.go constant C (line 9) | C = 0 function F (line 13) | func F() {} FILE: internal/gcimporter/testdata/versions/test.go type BlankField (line 25) | type BlankField struct FILE: internal/gcimporter/ureader_yes.go type pkgReader (line 22) | type pkgReader struct method later (line 48) | func (pr *pkgReader) later(fn func()) { method laterFor (line 79) | func (pr *pkgReader) laterFor(t types.Type, fn func()) { method newReader (line 174) | func (pr *pkgReader) newReader(k pkgbits.RelocKind, idx pkgbits.Index,... method tempReader (line 181) | func (pr *pkgReader) tempReader(k pkgbits.RelocKind, idx pkgbits.Index... method retireReader (line 188) | func (pr *pkgReader) retireReader(r *reader) { method posBaseIdx (line 211) | func (pr *pkgReader) posBaseIdx(idx pkgbits.Index) string { method pkgIdx (line 251) | func (pr *pkgReader) pkgIdx(idx pkgbits.Index) *types.Package { method typIdx (line 305) | func (pr *pkgReader) typIdx(info typeInfo, dict *readerDict) types.Type { method objIdx (line 494) | func (pr *pkgReader) objIdx(idx pkgbits.Index) (*types.Package, string) { method objDictIdx (line 631) | func (pr *pkgReader) objDictIdx(idx pkgbits.Index) *readerDict { type derivedInfo (line 53) | type derivedInfo struct type typeInfo (line 58) | type typeInfo struct function UImportData (line 63) | func UImportData(fset *token.FileSet, imports map[string]*types.Package,... function readUnifiedPackage (line 89) | func readUnifiedPackage(fset *token.FileSet, ctxt *types.Context, import... type reader (line 150) | type reader struct method pos (line 194) | func (r *reader) pos() token.Pos { method posBase (line 207) | func (r *reader) posBase() string { method pkg (line 246) | func (r *reader) pkg() *types.Package { method doPkg (line 263) | func (r *reader) doPkg() *types.Package { method typ (line 293) | func (r *reader) typ() types.Type { method typInfo (line 297) | func (r *reader) typInfo() typeInfo { method doTyp (line 337) | func (r *reader) doTyp() (res types.Type) { method structType (line 381) | func (r *reader) structType() *types.Struct { method unionType (line 402) | func (r *reader) unionType() *types.Union { method interfaceType (line 410) | func (r *reader) interfaceType() *types.Interface { method signature (line 443) | func (r *reader) signature(recv *types.Var, rtparams, tparams []*types... method params (line 453) | func (r *reader) params() *types.Tuple { method param (line 464) | func (r *reader) param() *types.Var { method obj (line 476) | func (r *reader) obj() (types.Object, []types.Type) { method typeParamNames (line 662) | func (r *reader) typeParamNames() []*types.TypeParam { method method (line 715) | func (r *reader) method() *types.Func { method qualifiedIdent (line 727) | func (r *reader) qualifiedIdent() (*types.Package, string) { return r.... method localIdent (line 728) | func (r *reader) localIdent() (*types.Package, string) { return r.... method selector (line 729) | func (r *reader) selector() (*types.Package, string) { return r.... method ident (line 731) | func (r *reader) ident(marker pkgbits.SyncMarker) (*types.Package, str... type readerDict (line 160) | type readerDict struct function pkgScope (line 740) | func pkgScope(pkg *types.Package) *types.Scope { function splitVargenSuffix (line 748) | func splitVargenSuffix(name string) (base, suffix string) { FILE: internal/gocommand/invoke.go type Runner (line 33) | type Runner struct method initialize (line 47) | func (runner *Runner) initialize() { method Run (line 70) | func (runner *Runner) Run(ctx context.Context, inv Invocation) (*bytes... method RunPiped (line 80) | func (runner *Runner) RunPiped(ctx context.Context, inv Invocation, st... method RunRaw (line 91) | func (runner *Runner) RunRaw(ctx context.Context, inv Invocation) (*by... method runConcurrent (line 114) | func (runner *Runner) runConcurrent(ctx context.Context, inv Invocatio... method runPiped (line 129) | func (runner *Runner) runPiped(ctx context.Context, inv Invocation, st... constant maxInFlight (line 45) | maxInFlight = 10 function invLabels (line 64) | func invLabels(inv Invocation) []label.Label { type Invocation (line 158) | type Invocation struct method runWithFriendlyError (line 186) | func (i *Invocation) runWithFriendlyError(ctx context.Context, stdout,... method logf (line 203) | func (i *Invocation) logf(format string, args ...any) { method run (line 209) | func (i *Invocation) run(ctx context.Context, stdout, stderr io.Writer... function runCmdContext (line 296) | func runCmdContext(ctx context.Context, cmd *exec.Cmd) (err error) { function handleHangingGoCommand (line 427) | func handleHangingGoCommand(start time.Time, cmd *exec.Cmd, resChan chan... function cmdDebugStr (line 477) | func cmdDebugStr(cmd *exec.Cmd) string { function WriteOverlays (line 506) | func WriteOverlays(overlay map[string][]byte) (filename string, cleanup ... FILE: internal/gocommand/invoke_test.go function TestGoVersion (line 23) | func TestGoVersion(t *testing.T) { function TestRmdirAfterGoList_Runner (line 44) | func TestRmdirAfterGoList_Runner(t *testing.T) { function TestRmdirAfterGoList_Direct (line 76) | func TestRmdirAfterGoList_Direct(t *testing.T) { function testRmdirAfterGoList (line 98) | func testRmdirAfterGoList(t *testing.T, f func(ctx context.Context, dir ... FILE: internal/gocommand/vendor.go type ModuleJSON (line 21) | type ModuleJSON struct function VendorEnabled (line 41) | func VendorEnabled(ctx context.Context, inv Invocation, r *Runner) (bool... function getMainModuleAnd114 (line 83) | func getMainModuleAnd114(ctx context.Context, inv Invocation, r *Runner)... function WorkspaceVendorEnabled (line 115) | func WorkspaceVendorEnabled(ctx context.Context, inv Invocation, r *Runn... function getWorkspaceMainModules (line 135) | func getWorkspaceMainModules(ctx context.Context, inv Invocation, r *Run... FILE: internal/gocommand/version.go function GoVersion (line 23) | func GoVersion(ctx context.Context, inv Invocation, r *Runner) (int, err... function GoVersionOutput (line 55) | func GoVersionOutput(ctx context.Context, inv Invocation, r *Runner) (st... function ParseGoVersionOutput (line 67) | func ParseGoVersionOutput(data string) string { FILE: internal/gocommand/version_test.go function TestParseGoVersionOutput (line 12) | func TestParseGoVersionOutput(t *testing.T) { FILE: internal/gopathwalk/walk.go type Options (line 24) | type Options struct type RootType (line 37) | type RootType constant RootUnknown (line 40) | RootUnknown RootType = iota constant RootGOROOT (line 41) | RootGOROOT constant RootGOPATH (line 42) | RootGOPATH constant RootCurrentModule (line 43) | RootCurrentModule constant RootModuleCache (line 44) | RootModuleCache constant RootOther (line 45) | RootOther type Root (line 49) | type Root struct function Walk (line 61) | func Walk(roots []Root, add func(root Root, dir string), opts Options) { function WalkSkip (line 76) | func WalkSkip(roots []Root, add func(root Root, dir string), skip func(r... function walkDir (line 83) | func walkDir(root Root, add func(Root, string), skip func(root Root, dir... type walker (line 132) | type walker struct method init (line 153) | func (w *walker) init() { method getIgnoredDirs (line 173) | func (w *walker) getIgnoredDirs(path string) []string { method shouldSkipDir (line 198) | func (w *walker) shouldSkipDir(dir string) bool { method walk (line 212) | func (w *walker) walk(path string, pathSymlinks *symlinkList, d fs.Dir... type symlinkList (line 147) | type symlinkList struct FILE: internal/gopathwalk/walk_test.go function TestSymlinkTraversal (line 18) | func TestSymlinkTraversal(t *testing.T) { function TestSkip (line 118) | func TestSkip(t *testing.T) { function TestSkipFunction (line 154) | func TestSkipFunction(t *testing.T) { function TestWalkSymlinkConcurrentDeletion (line 188) | func TestWalkSymlinkConcurrentDeletion(t *testing.T) { function mapToDir (line 222) | func mapToDir(destDir string, files map[string]string) error { FILE: internal/goroot/importcfg.go function PkgfileMap (line 22) | func PkgfileMap() (map[string]string, error) { FILE: internal/imports/fix.go function importGroup (line 67) | func importGroup(localPrefix, importPath string) int { type ImportFixType (line 76) | type ImportFixType constant AddImport (line 79) | AddImport ImportFixType = iota constant DeleteImport (line 80) | DeleteImport constant SetImportName (line 81) | SetImportName type ImportFix (line 84) | type ImportFix struct function parseOtherFiles (line 99) | func parseOtherFiles(ctx context.Context, fset *token.FileSet, srcDir, f... function addGlobals (line 134) | func addGlobals(f *ast.File, globals map[string]bool) { function collectReferences (line 153) | func collectReferences(f *ast.File) References { function collectImports (line 191) | func collectImports(f *ast.File) []*ImportInfo { type pass (line 239) | type pass struct method findMissingImport (line 212) | func (p *pass) findMissingImport(pkg string, syms map[string]bool) *Im... method loadPackageNames (line 262) | func (p *pass) loadPackageNames(ctx context.Context, imports []*Import... method importIdentifier (line 310) | func (p *pass) importIdentifier(imp *ImportInfo) string { method load (line 324) | func (p *pass) load(ctx context.Context) ([]*ImportFix, bool) { method fix (line 382) | func (p *pass) fix() ([]*ImportFix, bool) { method importSpecName (line 469) | func (p *pass) importSpecName(imp *ImportInfo) string { method assumeSiblingImportsValid (line 508) | func (p *pass) assumeSiblingImportsValid() { method addCandidate (line 534) | func (p *pass) addCandidate(imp *ImportInfo, pkg *PackageInfo) { function WithoutVersion (line 294) | func WithoutVersion(nm string) string { function sortFixes (line 449) | func sortFixes(fixes []*ImportFix) { function apply (line 484) | func apply(fset *token.FileSet, f *ast.File, fixes []*ImportFix) { function fixImportsDefault (line 557) | func fixImportsDefault(fset *token.FileSet, f *ast.File, filename string... function getFixes (line 568) | func getFixes(ctx context.Context, fset *token.FileSet, f *ast.File, fil... function getFixesWithSource (line 580) | func getFixesWithSource(ctx context.Context, fset *token.FileSet, f *ast... constant MaxRelevance (line 664) | MaxRelevance = 7.0 function getCandidatePkgs (line 669) | func getCandidatePkgs(ctx context.Context, wrappedCallback *scanCallback... function ScoreImportPaths (line 737) | func ScoreImportPaths(ctx context.Context, env *ProcessEnv, paths []stri... function PrimeCache (line 749) | func PrimeCache(ctx context.Context, resolver Resolver) error { function candidateImportName (line 766) | func candidateImportName(pkg *pkg) string { function GetAllCandidates (line 778) | func GetAllCandidates(ctx context.Context, wrapped func(ImportFix), sear... function GetImportPaths (line 813) | func GetImportPaths(ctx context.Context, wrapped func(ImportFix), search... type PackageExport (line 841) | type PackageExport struct function GetPackageExports (line 847) | func GetPackageExports(ctx context.Context, wrapped func(PackageExport),... type ProcessEnv (line 911) | type ProcessEnv struct method goEnv (line 946) | func (e *ProcessEnv) goEnv() (map[string]string, error) { method matchFile (line 953) | func (e *ProcessEnv) matchFile(dir, name string) (bool, error) { method CopyConfig (line 962) | func (e *ProcessEnv) CopyConfig() *ProcessEnv { method init (line 976) | func (e *ProcessEnv) init() error { method env (line 1010) | func (e *ProcessEnv) env() []string { method GetResolver (line 1018) | func (e *ProcessEnv) GetResolver() (Resolver, error) { method logf (line 1046) | func (e *ProcessEnv) logf(format string, args ...any) { method buildContext (line 1056) | func (e *ProcessEnv) buildContext() (*build.Context, error) { method invokeGo (line 1088) | func (e *ProcessEnv) invokeGo(ctx context.Context, verb string, args .... function addStdlibCandidates (line 1100) | func addStdlibCandidates(pass *pass, refs References) error { type Resolver (line 1147) | type Resolver interface type scanCallback (line 1172) | type scanCallback struct function addExternalCandidates (line 1188) | func addExternalCandidates(ctx context.Context, pass *pass, refs Referen... function notIdentifier (line 1218) | func notIdentifier(ch rune) bool { function ImportPathToAssumedName (line 1233) | func ImportPathToAssumedName(importPath string) string { type gopathResolver (line 1251) | type gopathResolver struct method ClearForNewScan (line 1267) | func (r *gopathResolver) ClearForNewScan() Resolver { method loadPackageNames (line 1271) | func (r *gopathResolver) loadPackageNames(importPaths []string, srcDir... method scan (line 1401) | func (r *gopathResolver) scan(ctx context.Context, callback *scanCallb... method scoreImportPath (line 1483) | func (r *gopathResolver) scoreImportPath(ctx context.Context, path str... method loadExports (line 1501) | func (r *gopathResolver) loadExports(ctx context.Context, pkg *pkg, in... function newGopathResolver (line 1257) | func newGopathResolver(env *ProcessEnv) *gopathResolver { function importPathToName (line 1284) | func importPathToName(bctx *build.Context, importPath, srcDir string) st... function packageDirToName (line 1305) | func packageDirToName(dir string) (packageName string, err error) { type pkg (line 1353) | type pkg struct type pkgDistance (line 1360) | type pkgDistance struct type byDistanceOrImportPathShortLength (line 1367) | type byDistanceOrImportPathShortLength method Len (line 1369) | func (s byDistanceOrImportPathShortLength) Len() int { return len(s) } method Less (line 1370) | func (s byDistanceOrImportPathShortLength) Less(i, j int) bool { method Swap (line 1388) | func (s byDistanceOrImportPathShortLength) Swap(i, j int) { s[i], s[j]... function distance (line 1390) | func distance(basepath, targetpath string) int { function filterRoots (line 1490) | func filterRoots(roots []gopathwalk.Root, include func(gopathwalk.Root) ... function VendorlessPath (line 1510) | func VendorlessPath(ipath string) string { function loadExportsFromFiles (line 1521) | func loadExportsFromFiles(ctx context.Context, env *ProcessEnv, dir stri... function sortSymbols (line 1598) | func sortSymbols(syms []stdlib.Symbol) { type symbolSearcher (line 1609) | type symbolSearcher struct method search (line 1620) | func (s *symbolSearcher) search(ctx context.Context, candidates []pkgD... method searchOne (line 1700) | func (s *symbolSearcher) searchOne(ctx context.Context, c pkgDistance,... function pkgIsCandidate (line 1736) | func pkgIsCandidate(filename string, refs References, pkg *pkg) bool { function CanUse (line 1763) | func CanUse(filename, dir string) bool { function matchesPath (line 1816) | func matchesPath(ident, path string) bool { type visitFn (line 1881) | type visitFn method Visit (line 1883) | func (fn visitFn) Visit(node ast.Node) ast.Visitor { function symbolNameSet (line 1887) | func symbolNameSet(symbols []stdlib.Symbol) map[string]bool { FILE: internal/imports/fix_test.go function TestSimpleCases (line 1204) | func TestSimpleCases(t *testing.T) { function TestAppengine (line 1260) | func TestAppengine(t *testing.T) { function TestReadFromFilesystem (line 1296) | func TestReadFromFilesystem(t *testing.T) { function TestImportSymlinks (line 1355) | func TestImportSymlinks(t *testing.T) { function TestImportSymlinkFiles (line 1391) | func TestImportSymlinkFiles(t *testing.T) { function TestImportSymlinksWithIgnore (line 1425) | func TestImportSymlinksWithIgnore(t *testing.T) { function TestModuleVersion (line 1460) | func TestModuleVersion(t *testing.T) { function TestVendorPackage (line 1493) | func TestVendorPackage(t *testing.T) { function TestInternal (line 1525) | func TestInternal(t *testing.T) { function TestProcessVendor (line 1563) | func TestProcessVendor(t *testing.T) { function TestFindStdlib (line 1586) | func TestFindStdlib(t *testing.T) { function TestStdlibNotPrefixed (line 1621) | func TestStdlibNotPrefixed(t *testing.T) { function TestStdlibSelfImports (line 1654) | func TestStdlibSelfImports(t *testing.T) { type testConfig (line 1676) | type testConfig struct method test (line 1685) | func (c testConfig) test(t *testing.T, fn func(*goimportTest)) { method processTest (line 1728) | func (c testConfig) processTest(t *testing.T, module, file string, con... type fm (line 1683) | type fm type goimportTest (line 1736) | type goimportTest struct method process (line 1743) | func (t *goimportTest) process(module, file string, contents []byte, o... method processNonModule (line 1752) | func (t *goimportTest) processNonModule(file string, contents []byte, ... method assertProcessEquals (line 1768) | func (t *goimportTest) assertProcessEquals(module, file string, conten... function TestRenameWhenPackageNameMismatch (line 1780) | func TestRenameWhenPackageNameMismatch(t *testing.T) { function TestPanicAstutils (line 1801) | func TestPanicAstutils(t *testing.T) { function TestPanic51916 (line 1842) | func TestPanic51916(t *testing.T) { function TestAddNameToMismatchedImport (line 1895) | func TestAddNameToMismatchedImport(t *testing.T) { function TestLocalPrefix (line 1944) | func TestLocalPrefix(t *testing.T) { function TestIgnoreDocumentationPackage (line 2062) | func TestIgnoreDocumentationPackage(t *testing.T) { function TestImportPathToNameGoPathParse (line 2090) | func TestImportPathToNameGoPathParse(t *testing.T) { function TestIgnoreConfiguration (line 2121) | func TestIgnoreConfiguration(t *testing.T) { function TestSkipNodeModules (line 2148) | func TestSkipNodeModules(t *testing.T) { function TestGlobalImports (line 2176) | func TestGlobalImports(t *testing.T) { function TestGlobalImports_DifferentPackage (line 2208) | func TestGlobalImports_DifferentPackage(t *testing.T) { function TestGlobalImports_MultipleMains (line 2233) | func TestGlobalImports_MultipleMains(t *testing.T) { function TestSiblingImports (line 2264) | func TestSiblingImports(t *testing.T) { function TestSiblingImport_Misnamed (line 2320) | func TestSiblingImport_Misnamed(t *testing.T) { function TestIgnoreOwnPackage (line 2348) | func TestIgnoreOwnPackage(t *testing.T) { function TestExternalTestImportsPackageUnderTest (line 2369) | func TestExternalTestImportsPackageUnderTest(t *testing.T) { function TestPkgIsCandidate (line 2395) | func TestPkgIsCandidate(t *testing.T) { function TestProcessStdin (line 2527) | func TestProcessStdin(t *testing.T) { function TestLocalPackagePromotion (line 2546) | func TestLocalPackagePromotion(t *testing.T) { function TestFindImportInLocalGoFiles (line 2583) | func TestFindImportInLocalGoFiles(t *testing.T) { function TestInMemoryFile (line 2610) | func TestInMemoryFile(t *testing.T) { function TestImportNoGoFiles (line 2628) | func TestImportNoGoFiles(t *testing.T) { function TestProcessLargeToken (line 2656) | func TestProcessLargeToken(t *testing.T) { function TestExternalTest (line 2696) | func TestExternalTest(t *testing.T) { function TestGetCandidates (line 2729) | func TestGetCandidates(t *testing.T) { function TestGetImportPaths (line 2785) | func TestGetImportPaths(t *testing.T) { function TestGetPackageCompletions (line 2835) | func TestGetPackageCompletions(t *testing.T) { function TestConcurrentProcess (line 2887) | func TestConcurrentProcess(t *testing.T) { function TestNonlocalDot (line 2928) | func TestNonlocalDot(t *testing.T) { function TestSymbolSearchStarvation (line 2961) | func TestSymbolSearchStarvation(t *testing.T) { function TestMatchesPath (line 3004) | func TestMatchesPath(t *testing.T) { function BenchmarkMatchesPath (line 3057) | func BenchmarkMatchesPath(b *testing.B) { FILE: internal/imports/imports.go type Options (line 29) | type Options struct function Process (line 48) | func Process(filename string, src []byte, opt *Options) (formatted []byt... function FixImports (line 76) | func FixImports(ctx context.Context, filename string, src []byte, goroot... function ApplyFixes (line 94) | func ApplyFixes(fixes []*ImportFix, filename string, src []byte, opt *Op... function formatFile (line 124) | func formatFile(fset *token.FileSet, file *ast.File, src []byte, adjust ... function parse (line 176) | func parse(fset *token.FileSet, filename string, src []byte, parserMode ... function containsMainFunc (line 254) | func containsMainFunc(file *ast.File) bool { function cutSpace (line 276) | func cutSpace(b []byte) (before, middle, after []byte) { function matchSpace (line 297) | func matchSpace(orig []byte, src []byte) []byte { function addImportSpaces (line 324) | func addImportSpaces(r io.Reader, breaks []string) ([]byte, error) { FILE: internal/imports/imports_test.go function TestMain (line 14) | func TestMain(m *testing.M) { FILE: internal/imports/mkindex.go function main (line 33) | func main() { constant pkgIndexHead (line 95) | pkgIndexHead = `package imports type pkg (line 107) | type pkg struct function loadPkg (line 114) | func loadPkg(root, importpath string) { function loadExports (line 149) | func loadExports(dir string) map[string]bool { FILE: internal/imports/mod.go type ModuleResolver (line 59) | type ModuleResolver struct method initAllMods (line 261) | func (r *ModuleResolver) initAllMods() error { method ClearForNewScan (line 292) | func (r *ModuleResolver) ClearForNewScan() Resolver { method findPackage (line 367) | func (r *ModuleResolver) findPackage(importPath string) (*gocommand.Mo... method cacheLoad (line 417) | func (r *ModuleResolver) cacheLoad(dir string) (directoryPackageInfo, ... method cacheStore (line 424) | func (r *ModuleResolver) cacheStore(info directoryPackageInfo) { method cachePackageName (line 433) | func (r *ModuleResolver) cachePackageName(info directoryPackageInfo) (... method cacheExports (line 440) | func (r *ModuleResolver) cacheExports(ctx context.Context, env *Proces... method findModuleByDir (line 449) | func (r *ModuleResolver) findModuleByDir(dir string) *gocommand.Module... method dirIsNestedModule (line 480) | func (r *ModuleResolver) dirIsNestedModule(dir string, mod *gocommand.... method modInfo (line 508) | func (r *ModuleResolver) modInfo(dir string) (modDir, modName string) { method dirInModuleCache (line 534) | func (r *ModuleResolver) dirInModuleCache(dir string) bool { method loadPackageNames (line 541) | func (r *ModuleResolver) loadPackageNames(importPaths []string, srcDir... method scan (line 558) | func (r *ModuleResolver) scan(ctx context.Context, callback *scanCallb... method scoreImportPath (line 659) | func (r *ModuleResolver) scoreImportPath(ctx context.Context, path str... method canonicalize (line 696) | func (r *ModuleResolver) canonicalize(info directoryPackageInfo) (*pkg... method loadExports (line 738) | func (r *ModuleResolver) loadExports(ctx context.Context, pkg *pkg, in... method scanDirForPackage (line 745) | func (r *ModuleResolver) scanDirForPackage(root gopathwalk.Root, dir s... function newModuleResolver (line 94) | func newModuleResolver(e *ProcessEnv, moduleCacheCache *DirInfoCache) (*... function gomodcacheForEnv (line 247) | func gomodcacheForEnv(goenv map[string]string) string { method ClearModuleInfo (line 335) | func (e *ProcessEnv) ClearModuleInfo() { method UpdateResolver (line 359) | func (e *ProcessEnv) UpdateResolver(r Resolver) { function readModName (line 500) | func readModName(modFile string) string { function modRelevance (line 667) | func modRelevance(mod *gocommand.ModuleJSON) float64 { function modulePath (line 809) | func modulePath(mod []byte) string { FILE: internal/imports/mod_cache.go type directoryPackageStatus (line 38) | type directoryPackageStatus constant _ (line 41) | _ directoryPackageStatus = iota constant directoryScanned (line 42) | directoryScanned constant nameLoaded (line 43) | nameLoaded constant exportsLoaded (line 44) | exportsLoaded type directoryPackageInfo (line 49) | type directoryPackageInfo struct method reachedStatus (line 82) | func (info *directoryPackageInfo) reachedStatus(target directoryPackag... type DirInfoCache (line 105) | type DirInfoCache struct method ScanAndListen (line 124) | func (d *DirInfoCache) ScanAndListen(ctx context.Context, listener cac... method Store (line 180) | func (d *DirInfoCache) Store(dir string, info directoryPackageInfo) { method Load (line 200) | func (d *DirInfoCache) Load(dir string) (directoryPackageInfo, bool) { method Keys (line 211) | func (d *DirInfoCache) Keys() (keys []string) { method CachePackageName (line 220) | func (d *DirInfoCache) CachePackageName(info directoryPackageInfo) (st... method CacheExports (line 233) | func (d *DirInfoCache) CacheExports(ctx context.Context, env *ProcessE... function NewDirInfoCache (line 112) | func NewDirInfoCache() *DirInfoCache { type cacheListener (line 119) | type cacheListener function ScanModuleCache (line 257) | func ScanModuleCache(dir string, cache *DirInfoCache, logf func(string, ... FILE: internal/imports/mod_cache_test.go function TestDirectoryPackageInfoReachedStatus (line 17) | func TestDirectoryPackageInfoReachedStatus(t *testing.T) { function TestModCacheInfo (line 63) | func TestModCacheInfo(t *testing.T) { function BenchmarkScanModuleCache (line 129) | func BenchmarkScanModuleCache(b *testing.B) { FILE: internal/imports/mod_test.go function TestScanStdlib (line 33) | func TestScanStdlib(t *testing.T) { function TestScanOutOfScopeNestedModule (line 46) | func TestScanOutOfScopeNestedModule(t *testing.T) { function TestScanNestedModuleInLocalReplace (line 72) | func TestScanNestedModuleInLocalReplace(t *testing.T) { function TestModCase (line 111) | func TestModCase(t *testing.T) { function TestModDomainRoot (line 128) | func TestModDomainRoot(t *testing.T) { function TestModMultipleScans (line 144) | func TestModMultipleScans(t *testing.T) { function TestModMultipleScansWithSubdirs (line 163) | func TestModMultipleScansWithSubdirs(t *testing.T) { function TestModCacheEditModFile (line 182) | func TestModCacheEditModFile(t *testing.T) { function TestModVendorBuild (line 223) | func TestModVendorBuild(t *testing.T) { function TestModVendorAuto (line 255) | func TestModVendorAuto(t *testing.T) { function TestModList (line 282) | func TestModList(t *testing.T) { function TestModLocalReplace (line 299) | func TestModLocalReplace(t *testing.T) { function TestModMultirepo1 (line 323) | func TestModMultirepo1(t *testing.T) { function TestModMultirepo3 (line 339) | func TestModMultirepo3(t *testing.T) { function TestModMultirepo4 (line 358) | func TestModMultirepo4(t *testing.T) { function TestModReplace1 (line 382) | func TestModReplace1(t *testing.T) { function TestModReplace2 (line 398) | func TestModReplace2(t *testing.T) { function TestModReplace3 (line 424) | func TestModReplace3(t *testing.T) { function TestModReplaceImport (line 457) | func TestModReplaceImport(t *testing.T) { function TestModWorkspace (line 560) | func TestModWorkspace(t *testing.T) { function TestModWorkspaceReplace (line 594) | func TestModWorkspaceReplace(t *testing.T) { function TestModWorkspaceReplaceOverride (line 651) | func TestModWorkspaceReplaceOverride(t *testing.T) { function TestModWorkspacePrune (line 714) | func TestModWorkspacePrune(t *testing.T) { function TestNoMainModule (line 882) | func TestNoMainModule(t *testing.T) { function scanToSlice (line 928) | func scanToSlice(resolver Resolver, exclude []gopathwalk.RootType) ([]*p... type modTest (line 976) | type modTest struct method assertFound (line 897) | func (t *modTest) assertFound(importPath, pkgName string) (string, *pk... method assertScanFinds (line 913) | func (t *modTest) assertScanFinds(importPath, pkgName string) *pkg { method assertModuleFoundInDir (line 951) | func (t *modTest) assertModuleFoundInDir(importPath, pkgName, dirRE st... function setup (line 987) | func setup(t *testing.T, extraEnv map[string]string, main, wd string) *m... function writeModule (line 1056) | func writeModule(dir, ar string) error { function writeProxy (line 1074) | func writeProxy(dir, arDir string) error { function writeProxyModule (line 1090) | func writeProxyModule(base, arPath string) error { function removeDir (line 1151) | func removeDir(dir string) { function TestFindModFileModCache (line 1165) | func TestFindModFileModCache(t *testing.T) { function TestInvalidModCache (line 1186) | func TestInvalidModCache(t *testing.T) { function TestGetCandidatesRanking (line 1218) | func TestGetCandidatesRanking(t *testing.T) { function BenchmarkModuleResolver_RescanModCache (line 1284) | func BenchmarkModuleResolver_RescanModCache(b *testing.B) { function BenchmarkModuleResolver_InitialScan (line 1305) | func BenchmarkModuleResolver_InitialScan(b *testing.B) { function TestModWorkspaceVendoring (line 1320) | func TestModWorkspaceVendoring(t *testing.T) { FILE: internal/imports/sortimports.go function sortImports (line 24) | func sortImports(localPrefix string, tokFile *token.File, f *ast.File) { function mergeImports (line 71) | func mergeImports(f *ast.File) { function declImports (line 103) | func declImports(gen *ast.GenDecl, path string) bool { function importPath (line 116) | func importPath(s ast.Spec) string { function importName (line 124) | func importName(s ast.Spec) string { function importComment (line 132) | func importComment(s ast.Spec) string { function collapse (line 141) | func collapse(prev, next ast.Spec) bool { type posSpan (line 148) | type posSpan struct function sortSpecs (line 155) | func sortSpecs(localPrefix string, tokFile *token.File, f *ast.File, spe... type byImportSpec (line 266) | type byImportSpec struct method Len (line 271) | func (x byImportSpec) Len() int { return len(x.specs) } method Swap (line 272) | func (x byImportSpec) Swap(i, j int) { x.specs[i], x.specs[j] = x.spec... method Less (line 273) | func (x byImportSpec) Less(i, j int) bool { type byCommentPos (line 295) | type byCommentPos method Len (line 297) | func (x byCommentPos) Len() int { return len(x) } method Swap (line 298) | func (x byCommentPos) Swap(i, j int) { x[i], x[j] = x[j], x[i] } method Less (line 299) | func (x byCommentPos) Less(i, j int) bool { return x[i].Pos() < x[j].P... function updateBasicLitPos (line 304) | func updateBasicLitPos(lit *ast.BasicLit, pos token.Pos) { FILE: internal/imports/source.go type Result (line 27) | type Result struct type ImportInfo (line 33) | type ImportInfo struct type PackageInfo (line 39) | type PackageInfo struct type Source (line 46) | type Source interface FILE: internal/imports/source_env.go type ProcessEnvSource (line 19) | type ProcessEnvSource struct method LoadPackageNames (line 43) | func (s *ProcessEnvSource) LoadPackageNames(ctx context.Context, srcDi... method ResolveReferences (line 51) | func (s *ProcessEnvSource) ResolveReferences(ctx context.Context, file... function NewProcessEnvSource (line 29) | func NewProcessEnvSource(env *ProcessEnv, filename, pkgName string) (*Pr... FILE: internal/imports/source_modindex.go type IndexSource (line 27) | type IndexSource struct method LoadPackageNames (line 39) | func (s *IndexSource) LoadPackageNames(ctx context.Context, srcDir str... method ResolveReferences (line 45) | func (s *IndexSource) ResolveReferences(ctx context.Context, filename ... method getIndex (line 82) | func (s *IndexSource) getIndex() (*modindex.Index, error) { function NewIndexSource (line 35) | func NewIndexSource(cachedir string) *IndexSource { FILE: internal/imports/sourcex_test.go type tpkg (line 39) | type tpkg struct function newpkgs (line 46) | func newpkgs(cachedir string, pks ...*tpkg) error { function TestSource (line 67) | func TestSource(t *testing.T) { type dirs (line 91) | type dirs struct function testDirs (line 97) | func testDirs(t *testing.T) dirs { FILE: internal/jsonrpc2/conn.go type Conn (line 23) | type Conn interface type conn (line 60) | type conn struct method Notify (line 81) | func (c *conn) Notify(ctx context.Context, method string, params any) ... method Call (line 103) | func (c *conn) Call(ctx context.Context, method string, params, result... method replier (line 164) | func (c *conn) replier(req Request, start time.Time, spanDone func()) ... method write (line 193) | func (c *conn) write(ctx context.Context, msg Message) (int64, error) { method Go (line 199) | func (c *conn) Go(ctx context.Context, handler Handler) { method run (line 203) | func (c *conn) run(ctx context.Context, handler Handler) { method Close (line 247) | func (c *conn) Close() error { method Done (line 251) | func (c *conn) Done() <-chan struct{} { method Err (line 255) | func (c *conn) Err() error { method fail (line 263) | func (c *conn) fail(err error) { function NewConn (line 72) | func NewConn(s Stream) Conn { function recordStatus (line 268) | func recordStatus(ctx context.Context, err error) context.Context { FILE: internal/jsonrpc2/handler.go type Handler (line 17) | type Handler type Replier (line 21) | type Replier function MethodNotFound (line 26) | func MethodNotFound(ctx context.Context, reply Replier, req Request) err... function MustReplyHandler (line 32) | func MustReplyHandler(handler Handler) Handler { function CancelHandler (line 51) | func CancelHandler(handler Handler) (Handler, func(id ID)) { function AsyncHandler (line 87) | func AsyncHandler(handler Handler) Handler { function Async (line 120) | func Async(ctx context.Context) { type asyncKeyType (line 126) | type asyncKeyType struct type releaser (line 133) | type releaser struct method release (line 141) | func (r *releaser) release(soft bool) { FILE: internal/jsonrpc2/jsonrpc2.go constant ErrIdleTimeout (line 12) | ErrIdleTimeout = constError("timed out waiting for new connections") type constError (line 15) | type constError method Error (line 17) | func (e constError) Error() string { return string(e) } FILE: internal/jsonrpc2/jsonrpc2_test.go type callTest (line 24) | type callTest struct method newResults (line 38) | func (test *callTest) newResults() any { method verifyResults (line 53) | func (test *callTest) verifyResults(t *testing.T, results any) { function TestCall (line 63) | func TestCall(t *testing.T) { function prepare (line 93) | func prepare(ctx context.Context, withHeaders bool) (jsonrpc2.Conn, json... function run (line 106) | func run(ctx context.Context, withHeaders bool, nc net.Conn) jsonrpc2.Co... function testHandler (line 118) | func testHandler() jsonrpc2.Handler { FILE: internal/jsonrpc2/labels.go constant Inbound (line 22) | Inbound = "in" constant Outbound (line 23) | Outbound = "out" FILE: internal/jsonrpc2/messages.go type Message (line 17) | type Message interface type Request (line 26) | type Request interface type Notification (line 38) | type Notification struct method Method (line 73) | func (msg *Notification) Method() string { return msg.method } method Params (line 74) | func (msg *Notification) Params() json.RawMessage { return msg.params } method isJSONRPC2Message (line 75) | func (msg *Notification) isJSONRPC2Message() {} method isJSONRPC2Request (line 76) | func (msg *Notification) isJSONRPC2Request() {} method MarshalJSON (line 78) | func (n *Notification) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 87) | func (n *Notification) UnmarshalJSON(data []byte) error { type Call (line 46) | type Call struct method Method (line 106) | func (msg *Call) Method() string { return msg.method } method Params (line 107) | func (msg *Call) Params() json.RawMessage { return msg.params } method ID (line 108) | func (msg *Call) ID() ID { return msg.id } method isJSONRPC2Message (line 109) | func (msg *Call) isJSONRPC2Message() {} method isJSONRPC2Request (line 110) | func (msg *Call) isJSONRPC2Request() {} method MarshalJSON (line 112) | func (c *Call) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 121) | func (c *Call) UnmarshalJSON(data []byte) error { type Response (line 57) | type Response struct method ID (line 143) | func (msg *Response) ID() ID { return msg.id } method Result (line 144) | func (msg *Response) Result() json.RawMessage { return msg.result } method Err (line 145) | func (msg *Response) Err() error { return msg.err } method isJSONRPC2Message (line 146) | func (msg *Response) isJSONRPC2Message() {} method MarshalJSON (line 148) | func (r *Response) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 179) | func (r *Response) UnmarshalJSON(data []byte) error { function NewNotification (line 68) | func NewNotification(method string, params any) (*Notification, error) { function NewCall (line 101) | func NewCall(id ID, method string, params any) (*Call, error) { function NewResponse (line 138) | func NewResponse(id ID, result any, err error) (*Response, error) { function toWireError (line 160) | func toWireError(err error) *WireError { function DecodeMessage (line 196) | func DecodeMessage(data []byte) (Message, error) { function marshalToRaw (line 232) | func marshalToRaw(obj any) (json.RawMessage, error) { FILE: internal/jsonrpc2/serve.go type StreamServer (line 26) | type StreamServer interface type ServerFunc (line 32) | type ServerFunc method ServeStream (line 35) | func (f ServerFunc) ServeStream(ctx context.Context, c Conn) error { function HandlerServer (line 41) | func HandlerServer(h Handler) StreamServer { function ListenAndServe (line 52) | func ListenAndServe(ctx context.Context, network, addr string, server St... function Serve (line 67) | func Serve(ctx context.Context, ln net.Listener, server StreamServer, id... function isClosingError (line 152) | func isClosingError(err error) bool { FILE: internal/jsonrpc2/serve_test.go function TestIdleTimeout (line 18) | func TestIdleTimeout(t *testing.T) { FILE: internal/jsonrpc2/servertest/servertest.go type Connector (line 20) | type Connector interface type TCPServer (line 27) | type TCPServer struct method Connect (line 53) | func (s *TCPServer) Connect(_ context.Context) jsonrpc2.Conn { function NewTCPServer (line 39) | func NewTCPServer(ctx context.Context, server jsonrpc2.StreamServer, fra... type PipeServer (line 64) | type PipeServer struct method Connect (line 79) | func (s *PipeServer) Connect(ctx context.Context) jsonrpc2.Conn { function NewPipeServer (line 71) | func NewPipeServer(server jsonrpc2.StreamServer, framer jsonrpc2.Framer)... type connList (line 95) | type connList struct method add (line 100) | func (l *connList) add(conn jsonrpc2.Conn) { method Close (line 106) | func (l *connList) Close() error { FILE: internal/jsonrpc2/servertest/servertest_test.go type msg (line 15) | type msg struct function fakeHandler (line 19) | func fakeHandler(ctx context.Context, reply jsonrpc2.Replier, req jsonrp... function TestTestServer (line 23) | func TestTestServer(t *testing.T) { FILE: internal/jsonrpc2/stack/parse.go type Scanner (line 29) | type Scanner struct method Peek (line 44) | func (s *Scanner) Peek() string { method Skip (line 53) | func (s *Scanner) Skip() { method Next (line 60) | func (s *Scanner) Next() string { method Done (line 68) | func (s *Scanner) Done() bool { method Err (line 74) | func (s *Scanner) Err() error { method Match (line 80) | func (s *Scanner) Match(re *regexp.Regexp) []string { method SkipBlank (line 92) | func (s *Scanner) SkipBlank() { function NewScanner (line 35) | func NewScanner(r io.Reader) *Scanner { function Parse (line 104) | func Parse(scanner *Scanner) (Dump, error) { function parseGoroutine (line 115) | func parseGoroutine(scanner *Scanner) (Goroutine, bool) { function parseFrame (line 137) | func parseFrame(scanner *Scanner) (Frame, bool) { function parseFunction (line 153) | func parseFunction(scanner *Scanner) (Function, bool) { function parsePosition (line 165) | func parsePosition(scanner *Scanner) (Position, bool) { FILE: internal/jsonrpc2/stack/process.go function Capture (line 16) | func Capture() Dump { function Summarize (line 26) | func Summarize(dump Dump) Summary { function Process (line 38) | func Process(out io.Writer, in io.Reader) error { function Diff (line 58) | func Diff(before, after Dump) Delta { method addGoroutine (line 81) | func (s *Summary) addGoroutine(gr Goroutine) { method merge (line 100) | func (c *Call) merge(gr Goroutine) { FILE: internal/jsonrpc2/stack/stack.go type Dump (line 14) | type Dump type Goroutine (line 17) | type Goroutine struct type Stack (line 24) | type Stack method equal (line 71) | func (s Stack) equal(other Stack) bool { method less (line 83) | func (s Stack) less(other Stack) bool { type Frame (line 27) | type Frame struct method equal (line 98) | func (f Frame) equal(other Frame) bool { method less (line 102) | func (f Frame) less(other Frame) bool { method Format (line 157) | func (f Frame) Format(w fmt.State, c rune) { type Function (line 33) | type Function struct method Format (line 161) | func (f Function) Format(w fmt.State, c rune) { type Position (line 40) | type Position struct method equal (line 106) | func (p Position) equal(other Position) bool { method less (line 110) | func (p Position) less(other Position) bool { method Format (line 168) | func (p Position) Format(w fmt.State, c rune) { type Summary (line 46) | type Summary struct method Format (line 120) | func (s Summary) Format(w fmt.State, r rune) { type Call (line 53) | type Call struct method Format (line 135) | func (c Call) Format(w fmt.State, r rune) { type Group (line 59) | type Group struct method Format (line 147) | func (g Group) Format(w fmt.State, r rune) { type Delta (line 65) | type Delta struct FILE: internal/jsonrpc2/stack/stack_test.go function TestProcess (line 15) | func TestProcess(t *testing.T) { FILE: internal/jsonrpc2/stack/stacktest/stacktest.go type withCleanup (line 15) | type withCleanup interface constant maxWait (line 20) | maxWait = time.Second function NoLeak (line 23) | func NoLeak(t testing.TB) { FILE: internal/jsonrpc2/stream.go type Stream (line 24) | type Stream interface type Framer (line 37) | type Framer function NewRawStream (line 42) | func NewRawStream(conn net.Conn) Stream { type rawStream (line 49) | type rawStream struct method Read (line 54) | func (s *rawStream) Read(ctx context.Context) (Message, int64, error) { method Write (line 68) | func (s *rawStream) Write(ctx context.Context, msg Message) (int64, er... method Close (line 82) | func (s *rawStream) Close() error { function NewHeaderStream (line 89) | func NewHeaderStream(conn net.Conn) Stream { type headerStream (line 96) | type headerStream struct method Read (line 101) | func (s *headerStream) Read(ctx context.Context) (Message, int64, erro... method Write (line 149) | func (s *headerStream) Write(ctx context.Context, msg Message) (int64,... method Close (line 168) | func (s *headerStream) Close() error { FILE: internal/jsonrpc2/wire.go type wireRequest (line 37) | type wireRequest struct type wireResponse (line 54) | type wireResponse struct type wireCombined (line 67) | type wireCombined struct type WireError (line 77) | type WireError struct method Error (line 105) | func (err *WireError) Error() string { type wireVersionTag (line 90) | type wireVersionTag struct method MarshalJSON (line 109) | func (wireVersionTag) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 113) | func (wireVersionTag) UnmarshalJSON(data []byte) error { type ID (line 93) | type ID struct method Format (line 133) | func (id ID) Format(f fmt.State, r rune) { method MarshalJSON (line 146) | func (id *ID) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 153) | func (id *ID) UnmarshalJSON(data []byte) error { function NewError (line 98) | func NewError(code int64, message string) error { function NewIntID (line 125) | func NewIntID(v int64) ID { return ID{number: v} } function NewStringID (line 128) | func NewStringID(v string) ID { return ID{name: v} } FILE: internal/jsonrpc2/wire_test.go function TestIDFormat (line 43) | func TestIDFormat(t *testing.T) { function TestIDEncode (line 56) | func TestIDEncode(t *testing.T) { function TestIDDecode (line 68) | func TestIDDecode(t *testing.T) { function TestErrorEncode (line 84) | func TestErrorEncode(t *testing.T) { function TestErrorResponse (line 95) | func TestErrorResponse(t *testing.T) { function checkJSON (line 113) | func checkJSON(t *testing.T, got, want []byte) { FILE: internal/jsonrpc2_v2/conn.go type Binder (line 22) | type Binder interface type BinderFunc (line 32) | type BinderFunc method Bind (line 34) | func (f BinderFunc) Bind(ctx context.Context, c *Connection) Connectio... type ConnectionOptions (line 41) | type ConnectionOptions struct method Bind (line 194) | func (o ConnectionOptions) Bind(context.Context, *Connection) Connecti... type Connection (line 61) | type Connection struct method updateInFlight (line 113) | func (c *Connection) updateInFlight(f func(*inFlightState)) { method start (line 268) | func (c *Connection) start(ctx context.Context, reader Reader, preempt... method Notify (line 289) | func (c *Connection) Notify(ctx context.Context, method string, params... method Call (line 331) | func (c *Connection) Call(ctx context.Context, method string, params a... method Respond (line 435) | func (c *Connection) Respond(id ID, result any, err error) error { method Cancel (line 459) | func (c *Connection) Cancel(id ID) { method Wait (line 470) | func (c *Connection) Wait() error { method Close (line 486) | func (c *Connection) Close() error { method readIncoming (line 496) | func (c *Connection) readIncoming(ctx context.Context, reader Reader, ... method acceptRequest (line 539) | func (c *Connection) acceptRequest(ctx context.Context, msg *Request, ... method handleAsync (line 634) | func (c *Connection) handleAsync() { method processResult (line 667) | func (c *Connection) processResult(from any, req *incomingRequest, res... method write (line 730) | func (c *Connection) write(ctx context.Context, msg Message) error { method internalErrorf (line 760) | func (c *Connection) internalErrorf(format string, args ...any) error { type inFlightState (line 78) | type inFlightState struct method idle (line 159) | func (s *inFlightState) idle() bool { method shuttingDown (line 166) | func (s *inFlightState) shuttingDown(errClosing error) error { type incomingRequest (line 187) | type incomingRequest struct type ConnectionConfig (line 199) | type ConnectionConfig struct function NewConnection (line 211) | func NewConnection(ctx context.Context, cfg ConnectionConfig) *Connection { function bindConnection (line 234) | func bindConnection(bindCtx context.Context, rwc io.ReadWriteCloser, bin... type AsyncCall (line 380) | type AsyncCall struct method ID (line 388) | func (ac *AsyncCall) ID() ID { return ac.id } method IsReady (line 393) | func (ac *AsyncCall) IsReady() bool { method retire (line 403) | func (ac *AsyncCall) retire(response *Response) { method Await (line 416) | func (ac *AsyncCall) Await(ctx context.Context, result any) error { type notDone (line 771) | type notDone struct method Value (line 773) | func (ic notDone) Value(key any) any { method Done (line 777) | func (notDone) Done() <-chan struct{} { return nil } method Err (line 778) | func (notDone) Err() error { return nil } method Deadline (line 779) | func (notDone) Deadline() (time.Time, bool) { return time.Time{}, false } FILE: internal/jsonrpc2_v2/frame.go type Reader (line 23) | type Reader interface type Writer (line 34) | type Writer interface type Framer (line 51) | type Framer interface function RawFramer (line 61) | func RawFramer() Framer { return rawFramer{} } type rawFramer (line 63) | type rawFramer struct method Reader (line 67) | func (rawFramer) Reader(rw io.Reader) Reader { method Writer (line 71) | func (rawFramer) Writer(rw io.Writer) Writer { type rawReader (line 64) | type rawReader struct method Read (line 75) | func (r *rawReader) Read(ctx context.Context) (Message, error) { type rawWriter (line 65) | type rawWriter struct method Write (line 89) | func (w *rawWriter) Write(ctx context.Context, msg Message) error { function HeaderFramer (line 106) | func HeaderFramer() Framer { return headerFramer{} } type headerFramer (line 108) | type headerFramer struct method Reader (line 112) | func (headerFramer) Reader(rw io.Reader) Reader { method Writer (line 116) | func (headerFramer) Writer(rw io.Writer) Writer { type headerReader (line 109) | type headerReader struct method Read (line 120) | func (r *headerReader) Read(ctx context.Context) (Message, error) { type headerWriter (line 110) | type headerWriter struct method Write (line 177) | func (w *headerWriter) Write(ctx context.Context, msg Message) error { FILE: internal/jsonrpc2_v2/jsonrpc2.go type Preempter (line 38) | type Preempter interface type PreempterFunc (line 51) | type PreempterFunc method Preempt (line 53) | func (f PreempterFunc) Preempt(ctx context.Context, req *Request) (any... type Handler (line 60) | type Handler interface type defaultHandler (line 77) | type defaultHandler struct method Preempt (line 79) | func (defaultHandler) Preempt(context.Context, *Request) (any, error) { method Handle (line 83) | func (defaultHandler) Handle(context.Context, *Request) (any, error) { type HandlerFunc (line 88) | type HandlerFunc method Handle (line 90) | func (f HandlerFunc) Handle(ctx context.Context, req *Request) (any, e... type async (line 98) | type async struct method done (line 111) | func (a *async) done() { method wait (line 115) | func (a *async) wait() error { method setError (line 122) | func (a *async) setError(err error) { function newAsync (line 103) | func newAsync() *async { FILE: internal/jsonrpc2_v2/jsonrpc2_test.go type binder (line 69) | type binder struct method Bind (line 249) | func (b binder) Bind(ctx context.Context, conn *jsonrpc2.Connection) j... type handler (line 74) | type handler struct method waiter (line 266) | func (h *handler) waiter(name string) chan struct{} { method Preempt (line 277) | func (h *handler) Preempt(ctx context.Context, req *jsonrpc2.Request) ... method Handle (line 303) | func (h *handler) Handle(ctx context.Context, req *jsonrpc2.Request) (... type invoker (line 81) | type invoker interface type notify (line 86) | type notify struct method Name (line 161) | func (test notify) Name() string { return test.method } method Invoke (line 162) | func (test notify) Invoke(t *testing.T, ctx context.Context, h *handle... type call (line 91) | type call struct method Name (line 168) | func (test call) Name() string { return test.method } method Invoke (line 169) | func (test call) Invoke(t *testing.T, ctx context.Context, h *handler) { type async (line 97) | type async struct method Name (line 185) | func (test async) Name() string { return test.name } method Invoke (line 186) | func (test async) Invoke(t *testing.T, ctx context.Context, h *handler) { type collect (line 103) | type collect struct method Name (line 190) | func (test collect) Name() string { return test.name } method Invoke (line 191) | func (test collect) Invoke(t *testing.T, ctx context.Context, h *handl... type cancel (line 109) | type cancel struct method Name (line 204) | func (test cancel) Name() string { return test.name } method Invoke (line 205) | func (test cancel) Invoke(t *testing.T, ctx context.Context, h *handle... type sequence (line 113) | type sequence struct method Name (line 212) | func (test sequence) Name() string { return test.name } method Invoke (line 213) | func (test sequence) Invoke(t *testing.T, ctx context.Context, h *hand... type echo (line 118) | type echo method Invoke (line 177) | func (test echo) Invoke(t *testing.T, ctx context.Context, h *handler) { type cancelParams (line 120) | type cancelParams struct function TestConnectionRaw (line 122) | func TestConnectionRaw(t *testing.T) { function TestConnectionHeader (line 126) | func TestConnectionHeader(t *testing.T) { function testConnection (line 130) | func testConnection(t *testing.T, framer jsonrpc2.Framer) { function newResults (line 220) | func newResults(expect any) any { function verifyResults (line 236) | func verifyResults(t *testing.T, method string, results any, expect any) { FILE: internal/jsonrpc2_v2/messages.go type ID (line 15) | type ID struct method IsValid (line 80) | func (id ID) IsValid() bool { return id.value != nil } method Raw (line 83) | func (id ID) Raw() any { return id.value } function MakeID (line 27) | func MakeID(v any) (ID, error) { type Message (line 43) | type Message interface type Request (line 51) | type Request struct method IsCall (line 99) | func (msg *Request) IsCall() bool { return msg.ID.IsValid() } method marshal (line 101) | func (msg *Request) marshal(to *wireCombined) { type Response (line 63) | type Response struct method marshal (line 114) | func (msg *Response) marshal(to *wireCombined) { function StringID (line 73) | func StringID(s string) ID { return ID{value: s} } function Int64ID (line 76) | func Int64ID(i int64) ID { return ID{value: i} } function NewNotification (line 87) | func NewNotification(method string, params any) (*Request, error) { function NewCall (line 94) | func NewCall(id ID, method string, params any) (*Request, error) { function NewResponse (line 109) | func NewResponse(id ID, result any, rerr error) (*Response, error) { function toWireError (line 120) | func toWireError(err error) *WireError { function EncodeMessage (line 139) | func EncodeMessage(msg Message) ([]byte, error) { function EncodeIndent (line 152) | func EncodeIndent(msg Message, prefix, indent string) ([]byte, error) { function DecodeMessage (line 162) | func DecodeMessage(data []byte) (Message, error) { function marshalToRaw (line 197) | func marshalToRaw(obj any) (json.RawMessage, error) { FILE: internal/jsonrpc2_v2/net.go type NetListenOptions (line 18) | type NetListenOptions struct function NetListener (line 24) | func NetListener(ctx context.Context, network, address string, options N... type netListener (line 33) | type netListener struct method Accept (line 38) | func (l *netListener) Accept(context.Context) (io.ReadWriteCloser, err... method Close (line 44) | func (l *netListener) Close() error { method Dialer (line 57) | func (l *netListener) Dialer() Dialer { function NetDialer (line 62) | func NetDialer(network, address string, nd net.Dialer) Dialer { type netDialer (line 70) | type netDialer struct method Dial (line 76) | func (n *netDialer) Dial(ctx context.Context) (io.ReadWriteCloser, err... function NetPipeListener (line 84) | func NetPipeListener(ctx context.Context) (Listener, error) { type netPiper (line 92) | type netPiper struct method Accept (line 98) | func (l *netPiper) Accept(context.Context) (io.ReadWriteCloser, error) { method Close (line 116) | func (l *netPiper) Close() error { method Dialer (line 122) | func (l *netPiper) Dialer() Dialer { method Dial (line 126) | func (l *netPiper) Dial(ctx context.Context) (io.ReadWriteCloser, erro... FILE: internal/jsonrpc2_v2/serve.go type Listener (line 18) | type Listener interface type Dialer (line 34) | type Dialer interface type Server (line 40) | type Server struct method Wait (line 86) | func (s *Server) Wait() error { method Shutdown (line 91) | func (s *Server) Shutdown() { method run (line 101) | func (s *Server) run(ctx context.Context) { function Dial (line 59) | func Dial(ctx context.Context, dialer Dialer, binder Binder, onDone func... function NewServer (line 75) | func NewServer(ctx context.Context, listener Listener, binder Binder) *S... function NewIdleListener (line 131) | func NewIdleListener(timeout time.Duration, wrap Listener) Listener { type idleListener (line 143) | type idleListener struct method Accept (line 157) | func (l *idleListener) Accept(ctx context.Context) (io.ReadWriteCloser... method Close (line 218) | func (l *idleListener) Close() error { method Dialer (line 247) | func (l *idleListener) Dialer() Dialer { method timerExpired (line 251) | func (l *idleListener) timerExpired() { method connClosed (line 273) | func (l *idleListener) connClosed() { method newConn (line 302) | func (l *idleListener) newConn(rwc io.ReadWriteCloser) *idleListenerCo... type idleListenerConn (line 296) | type idleListenerConn struct method Read (line 321) | func (c *idleListenerConn) Read(p []byte) (int, error) { return c.wra... method Write (line 322) | func (c *idleListenerConn) Write(p []byte) (int, error) { return c.wra... method Close (line 324) | func (c *idleListenerConn) Close() error { FILE: internal/jsonrpc2_v2/serve_test.go function needsLocalhostNet (line 22) | func needsLocalhostNet(t testing.TB) { function TestIdleTimeout (line 29) | func TestIdleTimeout(t *testing.T) { type msg (line 153) | type msg struct type fakeHandler (line 157) | type fakeHandler struct method Handle (line 159) | func (fakeHandler) Handle(ctx context.Context, req *jsonrpc2.Request) ... function TestServe (line 168) | func TestServe(t *testing.T) { function newFake (line 206) | func newFake(t *testing.T, ctx context.Context, l jsonrpc2.Listener) (*j... function TestIdleListenerAcceptCloseRace (line 234) | func TestIdleListenerAcceptCloseRace(t *testing.T) { function TestCloseCallRace (line 286) | func TestCloseCallRace(t *testing.T) { FILE: internal/jsonrpc2_v2/wire.go constant wireVersion (line 42) | wireVersion = "2.0" type wireCombined (line 46) | type wireCombined struct type WireError (line 56) | type WireError struct method Error (line 76) | func (err *WireError) Error() string { method Is (line 80) | func (err *WireError) Is(other error) bool { function NewError (line 69) | func NewError(code int64, message string) error { FILE: internal/jsonrpc2_v2/wire_test.go function TestWireMessage (line 16) | func TestWireMessage(t *testing.T) { function newNotification (line 66) | func newNotification(method string, params any) jsonrpc2.Message { function newID (line 74) | func newID(id any) jsonrpc2.ID { function newCall (line 89) | func newCall(id any, method string, params any) jsonrpc2.Message { function newResponse (line 97) | func newResponse(id any, result any, rerr error) jsonrpc2.Message { function checkJSON (line 105) | func checkJSON(t *testing.T, got, want []byte) { FILE: internal/mcp/client.go type Client (line 18) | type Client struct method bind (line 63) | func (c *Client) bind(conn *jsonrpc2.Connection) *ClientSession { method disconnect (line 76) | func (c *Client) disconnect(cs *ClientSession) { method Connect (line 91) | func (c *Client) Connect(ctx context.Context, t Transport) (cs *Client... method AddRoots (line 152) | func (c *Client) AddRoots(roots ...*Root) { method RemoveRoots (line 165) | func (c *Client) RemoveRoots(uris ...string) { method changeAndNotify (line 173) | func (c *Client) changeAndNotify(notification string, params Params, c... method listRoots (line 184) | func (c *Client) listRoots(_ context.Context, _ *ClientSession, _ *Lis... method createMessage (line 196) | func (c *Client) createMessage(ctx context.Context, cs *ClientSession,... method AddSendingMiddleware (line 213) | func (c *Client) AddSendingMiddleware(middleware ...Middleware[*Client... method AddReceivingMiddleware (line 228) | func (c *Client) AddReceivingMiddleware(middleware ...Middleware[*Clie... method callToolChangedHandler (line 331) | func (c *Client) callToolChangedHandler(ctx context.Context, s *Client... method callPromptChangedHandler (line 335) | func (c *Client) callPromptChangedHandler(ctx context.Context, s *Clie... method callResourceChangedHandler (line 339) | func (c *Client) callResourceChangedHandler(ctx context.Context, s *Cl... method callLoggingHandler (line 343) | func (c *Client) callLoggingHandler(ctx context.Context, cs *ClientSes... function NewClient (line 34) | func NewClient(name, version string, opts *ClientOptions) *Client { type ClientOptions (line 49) | type ClientOptions struct type ClientSession (line 130) | type ClientSession struct method Close (line 139) | func (cs *ClientSession) Close() error { method Wait (line 145) | func (cs *ClientSession) Wait() error { method sendingMethodInfos (line 246) | func (cs *ClientSession) sendingMethodInfos() map[string]methodInfo { method receivingMethodInfos (line 250) | func (cs *ClientSession) receivingMethodInfos() map[string]methodInfo { method handle (line 254) | func (cs *ClientSession) handle(ctx context.Context, req *JSONRPCReque... method sendingMethodHandler (line 258) | func (cs *ClientSession) sendingMethodHandler() methodHandler { method receivingMethodHandler (line 264) | func (cs *ClientSession) receivingMethodHandler() methodHandler { method getConn (line 271) | func (cs *ClientSession) getConn() *jsonrpc2.Connection { return cs.co... method ping (line 273) | func (*ClientSession) ping(context.Context, *PingParams) (*emptyResult... method Ping (line 278) | func (cs *ClientSession) Ping(ctx context.Context, params *PingParams)... method ListPrompts (line 284) | func (cs *ClientSession) ListPrompts(ctx context.Context, params *List... method GetPrompt (line 289) | func (cs *ClientSession) GetPrompt(ctx context.Context, params *GetPro... method ListTools (line 294) | func (cs *ClientSession) ListTools(ctx context.Context, params *ListTo... method CallTool (line 300) | func (cs *ClientSession) CallTool(ctx context.Context, params *CallToo... method SetLevel (line 311) | func (cs *ClientSession) SetLevel(ctx context.Context, params *SetLeve... method ListResources (line 317) | func (cs *ClientSession) ListResources(ctx context.Context, params *Li... method ListResourceTemplates (line 322) | func (cs *ClientSession) ListResourceTemplates(ctx context.Context, pa... method ReadResource (line 327) | func (cs *ClientSession) ReadResource(ctx context.Context, params *Rea... method callProgressNotificationHandler (line 350) | func (cs *ClientSession) callProgressNotificationHandler(ctx context.C... method NotifyProgress (line 358) | func (cs *ClientSession) NotifyProgress(ctx context.Context, params *P... method Tools (line 366) | func (cs *ClientSession) Tools(ctx context.Context, params *ListToolsP... method Resources (line 379) | func (cs *ClientSession) Resources(ctx context.Context, params *ListRe... method ResourceTemplates (line 392) | func (cs *ClientSession) ResourceTemplates(ctx context.Context, params... method Prompts (line 405) | func (cs *ClientSession) Prompts(ctx context.Context, params *ListProm... function paginate (line 415) | func paginate[P listParams, R listResult[T], T any](ctx context.Context,... FILE: internal/mcp/client_list_test.go function TestList (line 18) | func TestList(t *testing.T) { function testIterator (line 112) | func testIterator[T any](t *testing.T, seq iter.Seq2[*T, error], want []... function testPromptHandler (line 127) | func testPromptHandler(context.Context, *mcp.ServerSession, *mcp.GetProm... function newServerPrompt (line 131) | func newServerPrompt(name, desc string) *mcp.ServerPrompt { FILE: internal/mcp/client_test.go type Item (line 17) | type Item struct type ListTestParams (line 22) | type ListTestParams struct method cursorPtr (line 26) | func (p *ListTestParams) cursorPtr() *string { type ListTestResult (line 30) | type ListTestResult struct method nextCursorPtr (line 35) | func (r *ListTestResult) nextCursorPtr() *string { function generatePaginatedResults (line 55) | func generatePaginatedResults(all []*Item, pageSize int) []*ListTestResu... function TestClientPaginateBasic (line 76) | func TestClientPaginateBasic(t *testing.T) { function TestClientPaginateVariousPageSizes (line 168) | func TestClientPaginateVariousPageSizes(t *testing.T) { FILE: internal/mcp/cmd.go type CommandTransport (line 18) | type CommandTransport struct method Connect (line 32) | func (t *CommandTransport) Connect(ctx context.Context) (Connection, e... function NewCommandTransport (line 27) | func NewCommandTransport(cmd *exec.Cmd) *CommandTransport { type pipeRWC (line 50) | type pipeRWC struct method Read (line 56) | func (s *pipeRWC) Read(p []byte) (n int, err error) { method Write (line 60) | func (s *pipeRWC) Write(p []byte) (n int, err error) { method Close (line 67) | func (s *pipeRWC) Close() error { FILE: internal/mcp/cmd_test.go constant runAsServer (line 19) | runAsServer = "_MCP_RUN_AS_SERVER" function TestMain (line 21) | func TestMain(m *testing.M) { function runServer (line 30) | func runServer() { function TestCmdTransport (line 41) | func TestCmdTransport(t *testing.T) { FILE: internal/mcp/conformance_go124_test.go function runSyncTest (line 14) | func runSyncTest(t *testing.T, f func(t *testing.T)) { FILE: internal/mcp/conformance_go125_test.go function runSyncTest (line 14) | func runSyncTest(t *testing.T, f func(t *testing.T)) { FILE: internal/mcp/conformance_test.go type conformanceTest (line 48) | type conformanceTest struct function TestServerConformance (line 59) | func TestServerConformance(t *testing.T) { function runServerTest (line 100) | func runServerTest(t *testing.T, test *conformanceTest) { function loadConformanceTest (line 259) | func loadConformanceTest(dir, path string) (*conformanceTest, error) { FILE: internal/mcp/content.go type Content (line 23) | type Content struct method UnmarshalJSON (line 32) | func (c *Content) UnmarshalJSON(data []byte) error { function NewTextContent (line 48) | func NewTextContent(text string) *Content { function NewImageContent (line 53) | func NewImageContent(data []byte, mimeType string) *Content { function NewAudioContent (line 58) | func NewAudioContent(data []byte, mimeType string) *Content { function NewResourceContent (line 63) | func NewResourceContent(resource *ResourceContents) *Content { type ResourceContents (line 73) | type ResourceContents struct method MarshalJSON (line 80) | func (r ResourceContents) MarshalJSON() ([]byte, error) { function NewTextResourceContents (line 108) | func NewTextResourceContents(uri, mimeType, text string) *ResourceConten... function NewBlobResourceContents (line 118) | func NewBlobResourceContents(uri, mimeType string, blob []byte) *Resourc... FILE: internal/mcp/content_test.go function TestContent (line 15) | func TestContent(t *testing.T) { function TestResourceContents (line 61) | func TestResourceContents(t *testing.T) { FILE: internal/mcp/example_progress_test.go function Example_progressMiddleware (line 18) | func Example_progressMiddleware() { function addProgressToken (line 24) | func addProgressToken[S mcp.Session](h mcp.MethodHandler[S]) mcp.MethodH... FILE: internal/mcp/examples/hello/main.go type HiArgs (line 21) | type HiArgs struct function SayHi (line 25) | func SayHi(ctx context.Context, ss *mcp.ServerSession, params *mcp.CallT... function PromptHi (line 35) | func PromptHi(ctx context.Context, ss *mcp.ServerSession, params *mcp.Ge... function main (line 44) | func main() { function handleEmbeddedResource (line 82) | func handleEmbeddedResource(_ context.Context, _ *mcp.ServerSession, par... FILE: internal/mcp/examples/sse/main.go type SayHiParams (line 18) | type SayHiParams struct function SayHi (line 22) | func SayHi(ctx context.Context, cc *mcp.ServerSession, params *mcp.CallT... function main (line 30) | func main() { FILE: internal/mcp/features.go type featureSet (line 21) | type featureSet struct function newFeatureSet (line 29) | func newFeatureSet[T any](uniqueIDFunc func(T) string) *featureSet[T] { method add (line 38) | func (s *featureSet[T]) add(fs ...T) { method remove (line 48) | func (s *featureSet[T]) remove(uids ...string) bool { method get (line 64) | func (s *featureSet[T]) get(uid string) (T, bool) { method all (line 71) | func (s *featureSet[T]) all() iter.Seq[T] { method above (line 80) | func (s *featureSet[T]) above(uid string) iter.Seq[T] { method sortKeys (line 94) | func (s *featureSet[T]) sortKeys() { method yieldFrom (line 103) | func (s *featureSet[T]) yieldFrom(index int, yield func(T) bool) { FILE: internal/mcp/features_test.go type SayHiParams (line 17) | type SayHiParams struct function SayHi (line 21) | func SayHi(ctx context.Context, cc *ServerSession, params *CallToolParam... function TestFeatureSetOrder (line 29) | func TestFeatureSetOrder(t *testing.T) { function TestFeatureSetAbove (line 54) | func TestFeatureSetAbove(t *testing.T) { FILE: internal/mcp/generate.go type typeConfig (line 40) | type typeConfig struct type config (line 47) | type config function main (line 200) | func main() { function loadSchema (line 280) | func loadSchema(schemaFile string) (data []byte, err error) { function writeDecl (line 316) | func writeDecl(configName string, config typeConfig, def *jsonschema.Sch... function writeType (line 415) | func writeType(w io.Writer, config *typeConfig, def *jsonschema.Schema, ... function toComment (line 545) | func toComment(description string) string { function canHaveAdditionalProperties (line 584) | func canHaveAdditionalProperties(s *jsonschema.Schema) bool { function exportName (line 592) | func exportName(s string) string { function deref (line 626) | func deref(s *jsonschema.Schema) (name string, _ *jsonschema.Schema) { function isStruct (line 635) | func isStruct(s *jsonschema.Schema) bool { function schemaJSON (line 647) | func schemaJSON(s *jsonschema.Schema) string { function init (line 663) | func init() { function assert (line 670) | func assert(cond bool, msg string) { FILE: internal/mcp/internal/oauthex/oauth2_test.go function TestSplitChallenges (line 17) | func TestSplitChallenges(t *testing.T) { function TestSplitChallengesError (line 73) | func TestSplitChallengesError(t *testing.T) { function TestParseSingleChallenge (line 79) | func TestParseSingleChallenge(t *testing.T) { function TestGetProtectedResourceMetadata (line 206) | func TestGetProtectedResourceMetadata(t *testing.T) { type fakeResourceHandler (line 243) | type fakeResourceHandler struct method installHandlers (line 249) | func (h *fakeResourceHandler) installHandlers(serverURL string) { FILE: internal/mcp/internal/oauthex/resource_meta.go constant defaultProtectedResourceMetadataURI (line 24) | defaultProtectedResourceMetadataURI = "/.well-known/oauth-protected-reso... type ProtectedResourceMetadata (line 33) | type ProtectedResourceMetadata struct function GetProtectedResourceMetadataFromID (line 126) | func GetProtectedResourceMetadataFromID(ctx context.Context, resourceID ... function GetProtectedResourceMetadataFromHeader (line 144) | func GetProtectedResourceMetadataFromHeader(ctx context.Context, header ... function getPRM (line 163) | func getPRM(ctx context.Context, url string, c *http.Client, wantResourc... type challenge (line 203) | type challenge struct function resourceMetadataURL (line 216) | func resourceMetadataURL(cs []challenge) string { function parseWWWAuthenticate (line 229) | func parseWWWAuthenticate(headers []string) ([]challenge, error) { function splitChallenges (line 254) | func splitChallenges(header string) ([]string, error) { function parseSingleChallenge (line 299) | func parseSingleChallenge(s string) (challenge, error) { FILE: internal/mcp/internal/readme/client/client.go function main (line 16) | func main() { FILE: internal/mcp/internal/readme/server/server.go type HiParams (line 15) | type HiParams struct function SayHi (line 19) | func SayHi(ctx context.Context, cc *mcp.ServerSession, params *mcp.CallT... function main (line 25) | func main() { FILE: internal/mcp/internal/util/util.go type JSONInfo (line 13) | type JSONInfo struct function FieldJSONInfo (line 26) | func FieldJSONInfo(f reflect.StructField) JSONInfo { function Wrapf (line 51) | func Wrapf(errp *error, format string, args ...any) { FILE: internal/mcp/internal/util/util_test.go function TestJSONInfo (line 12) | func TestJSONInfo(t *testing.T) { FILE: internal/mcp/jsonschema/annotations.go type annotations (line 13) | type annotations struct method noteIndex (line 22) | func (a *annotations) noteIndex(i int) { method noteEndIndex (line 30) | func (a *annotations) noteEndIndex(end int) { method noteProperty (line 37) | func (a *annotations) noteProperty(prop string) { method noteProperties (line 45) | func (a *annotations) noteProperties(props map[string]bool) { method merge (line 51) | func (a *annotations) merge(b *annotations) { function merge (line 70) | func merge[K comparable](s, t map[K]bool) map[K]bool { FILE: internal/mcp/jsonschema/infer.go function For (line 19) | func For[T any]() (*Schema, error) { function ForType (line 47) | func ForType(t reflect.Type) (*Schema, error) { function typeSchema (line 51) | func typeSchema(t reflect.Type) (*Schema, error) { FILE: internal/mcp/jsonschema/infer_test.go function forType (line 15) | func forType[T any]() *jsonschema.Schema { function TestForType (line 23) | func TestForType(t *testing.T) { FILE: internal/mcp/jsonschema/json_pointer.go function escapeJSONPointerSegment (line 38) | func escapeJSONPointerSegment(s string) string { function unescapeJSONPointerSegment (line 42) | func unescapeJSONPointerSegment(s string) string { function parseJSONPointer (line 50) | func parseJSONPointer(ptr string) (segments []string, err error) { function dereferenceJSONPointer (line 73) | func dereferenceJSONPointer(s *Schema, sptr string) (_ *Schema, err erro... function lookupSchemaField (line 135) | func lookupSchemaField(v reflect.Value, name string) reflect.Value { FILE: internal/mcp/jsonschema/json_pointer_test.go function TestDereferenceJSONPointer (line 12) | func TestDereferenceJSONPointer(t *testing.T) { function TestDerefernceJSONPointerErrors (line 52) | func TestDerefernceJSONPointerErrors(t *testing.T) { FILE: internal/mcp/jsonschema/resolve.go type Resolved (line 24) | type Resolved struct method Schema (line 32) | func (r *Resolved) Schema() *Schema { return r.root } type Loader (line 35) | type Loader type ResolveOptions (line 38) | type ResolveOptions struct method Resolve (line 62) | func (root *Schema) Resolve(opts *ResolveOptions) (*Resolved, error) { type resolver (line 112) | type resolver struct method resolve (line 120) | func (r *resolver) resolve(s *Schema, baseURI *url.URL) (*Resolved, er... method resolveRefs (line 383) | func (r *resolver) resolveRefs(rs *Resolved) error { method resolveRef (line 414) | func (r *resolver) resolveRef(rs *Resolved, s *Schema, ref string) (_ ... method check (line 145) | func (root *Schema) check() error { method checkStructure (line 163) | func (root *Schema) checkStructure() error { method checkLocal (line 227) | func (s *Schema) checkLocal(report func(error)) { function resolveURIs (line 319) | func resolveURIs(root *Schema, baseURI *url.URL) (map[string]*Schema, er... FILE: internal/mcp/jsonschema/resolve_test.go function TestSchemaStructure (line 17) | func TestSchemaStructure(t *testing.T) { function TestCheckLocal (line 41) | func TestCheckLocal(t *testing.T) { function TestPaths (line 67) | func TestPaths(t *testing.T) { function TestResolveURIs (line 105) | func TestResolveURIs(t *testing.T) { function TestRefCycle (line 178) | func TestRefCycle(t *testing.T) { FILE: internal/mcp/jsonschema/schema.go type Schema (line 46) | type Schema struct method String (line 185) | func (s *Schema) String() string { method ResolvedRef (line 204) | func (s *Schema) ResolvedRef() *Schema { method basicChecks (line 208) | func (s *Schema) basicChecks() error { method MarshalJSON (line 220) | func (s *Schema) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 242) | func (s *Schema) UnmarshalJSON(data []byte) error { method every (line 363) | func (s *Schema) every(f func(*Schema) bool) bool { method everyChild (line 368) | func (s *Schema) everyChild(f func(*Schema) bool) bool { method all (line 402) | func (s *Schema) all() iter.Seq[*Schema] { method children (line 407) | func (s *Schema) children() iter.Seq[*Schema] { function falseSchema (line 173) | func falseSchema() *Schema { type anchorInfo (line 179) | type anchorInfo struct type schemaWithoutMethods (line 218) | type schemaWithoutMethods type integer (line 326) | type integer method UnmarshalJSON (line 328) | func (ip *integer) UnmarshalJSON(data []byte) error { function Ptr (line 358) | func Ptr[T any](x T) *T { return &x } type structFieldInfo (line 417) | type structFieldInfo struct function init (line 429) | func init() { FILE: internal/mcp/jsonschema/schema_test.go function TestGoRoundTrip (line 15) | func TestGoRoundTrip(t *testing.T) { function TestJSONRoundTrip (line 45) | func TestJSONRoundTrip(t *testing.T) { function TestUnmarshalErrors (line 81) | func TestUnmarshalErrors(t *testing.T) { function mustUnmarshal (line 112) | func mustUnmarshal(t *testing.T, data []byte, ptr any) { method json (line 120) | func (s *Schema) json() string { method jsonIndent (line 129) | func (s *Schema) jsonIndent() string { FILE: internal/mcp/jsonschema/util.go function Equal (line 26) | func Equal(x, y any) bool { function equalValue (line 30) | func equalValue(x, y reflect.Value) bool { function hashValue (line 145) | func hashValue(h *maphash.Hash, v reflect.Value) { function jsonNumber (line 222) | func jsonNumber(v reflect.Value) (*big.Rat, bool) { function jsonType (line 252) | func jsonType(v reflect.Value) (string, bool) { function assert (line 280) | func assert(cond bool, msg string) { FILE: internal/mcp/jsonschema/util_test.go function TestEqual (line 14) | func TestEqual(t *testing.T) { function TestJSONType (line 46) | func TestJSONType(t *testing.T) { function TestHash (line 76) | func TestHash(t *testing.T) { FILE: internal/mcp/jsonschema/validate.go constant draft202012 (line 24) | draft202012 = "https://json-schema.org/draft/2020-12/schema" method Validate (line 28) | func (rs *Resolved) Validate(instance any) error { method validateDefaults (line 41) | func (rs *Resolved) validateDefaults() error { type state (line 66) | type state struct method validate (line 75) | func (st *state) validate(instance reflect.Value, schema *Schema, call... method resolveDynamicRef (line 552) | func (st *state) resolveDynamicRef(schema *Schema) (*Schema, error) { method applyDefaults (line 609) | func (st *state) applyDefaults(instancep reflect.Value, schema *Schema... method ApplyDefaults (line 602) | func (rs *Resolved) ApplyDefaults(instancep any) error { function property (line 660) | func property(v reflect.Value, name string) reflect.Value { function properties (line 680) | func properties(v reflect.Value) iter.Seq2[string, reflect.Value] { function numPropertiesBounds (line 714) | func numPropertiesBounds(v reflect.Value, isRequired map[string]bool) (i... function structPropertiesOf (line 739) | func structPropertiesOf(t reflect.Type) propertyMap { FILE: internal/mcp/jsonschema/validate_test.go type testGroup (line 22) | type testGroup struct type test (line 29) | type test struct function TestValidate (line 35) | func TestValidate(t *testing.T) { function TestValidateErrors (line 81) | func TestValidateErrors(t *testing.T) { function TestValidateDefaults (line 96) | func TestValidateDefaults(t *testing.T) { function TestApplyDefaults (line 122) | func TestApplyDefaults(t *testing.T) { function TestStructInstance (line 168) | func TestStructInstance(t *testing.T) { function mustMarshal (line 262) | func mustMarshal(x any) json.RawMessage { function loadRemote (line 271) | func loadRemote(uri *url.URL) (*Schema, error) { function loadSchemaFromFile (line 284) | func loadSchemaFromFile(filename string) (*Schema, error) { FILE: internal/mcp/logging.go constant LevelDebug (line 19) | LevelDebug = slog.LevelDebug constant LevelInfo (line 20) | LevelInfo = slog.LevelInfo constant LevelNotice (line 21) | LevelNotice = (slog.LevelInfo + slog.LevelWarn) / 2 constant LevelWarning (line 22) | LevelWarning = slog.LevelWarn constant LevelError (line 23) | LevelError = slog.LevelError constant LevelCritical (line 24) | LevelCritical = slog.LevelError + 4 constant LevelAlert (line 25) | LevelAlert = slog.LevelError + 8 constant LevelEmergency (line 26) | LevelEmergency = slog.LevelError + 12 function init (line 42) | func init() { function slogLevelToMCP (line 48) | func slogLevelToMCP(sl slog.Level) LoggingLevel { function mcpLevelToSlog (line 55) | func mcpLevelToSlog(ll LoggingLevel) slog.Level { function compareLevels (line 64) | func compareLevels(l1, l2 LoggingLevel) int { type LoggingHandlerOptions (line 69) | type LoggingHandlerOptions struct type LoggingHandler (line 78) | type LoggingHandler struct method Enabled (line 116) | func (h *LoggingHandler) Enabled(ctx context.Context, level slog.Level... method WithAttrs (line 126) | func (h *LoggingHandler) WithAttrs(as []slog.Attr) slog.Handler { method WithGroup (line 133) | func (h *LoggingHandler) WithGroup(name string) slog.Handler { method Handle (line 141) | func (h *LoggingHandler) Handle(ctx context.Context, r slog.Record) er... method handle (line 148) | func (h *LoggingHandler) handle(ctx context.Context, r slog.Record) er... function NewLoggingHandler (line 92) | func NewLoggingHandler(ss *ServerSession, opts *LoggingHandlerOptions) *... FILE: internal/mcp/mcp_test.go type hiParams (line 29) | type hiParams struct function sayHi (line 33) | func sayHi(ctx context.Context, ss *ServerSession, params *CallToolParam... function TestEndToEnd (line 40) | func TestEndToEnd(t *testing.T) { function handleEmbeddedResource (line 494) | func handleEmbeddedResource(_ context.Context, _ *ServerSession, params ... function add (line 513) | func add[T any](m map[string]T, add func(...T), names ...string) { function errorCode (line 526) | func errorCode(err error) int64 { function basicConnection (line 542) | func basicConnection(t *testing.T, tools ...*ServerTool) (*ServerSession... function TestServerClosing (line 565) | func TestServerClosing(t *testing.T) { function TestBatching (line 594) | func TestBatching(t *testing.T) { function TestCancellation (line 632) | func TestCancellation(t *testing.T) { function TestMiddleware (line 666) | func TestMiddleware(t *testing.T) { type safeBuffer (line 754) | type safeBuffer struct method Write (line 759) | func (b *safeBuffer) Write(data []byte) (int, error) { method Bytes (line 765) | func (b *safeBuffer) Bytes() []byte { function TestNoJSONNull (line 771) | func TestNoJSONNull(t *testing.T) { function traceCalls (line 819) | func traceCalls[S Session](w io.Writer, prefix string) Middleware[S] { function falseSchema (line 830) | func falseSchema() *jsonschema.Schema { return &jsonschema.Schema{Not: &... function nopHandler (line 832) | func nopHandler(context.Context, *ServerSession, *CallToolParamsFor[map[... FILE: internal/mcp/prompt.go type PromptHandler (line 12) | type PromptHandler type ServerPrompt (line 15) | type ServerPrompt struct FILE: internal/mcp/protocol.go type Annotations (line 15) | type Annotations struct type CallToolParams (line 29) | type CallToolParams struct method GetMeta (line 37) | func (x *CallToolParams) GetMeta() *Meta { return &x.Meta } type CallToolParamsFor (line 39) | type CallToolParamsFor struct method GetMeta (line 47) | func (x *CallToolParamsFor[In]) GetMeta() *Meta { return &x.Meta } type CallToolResult (line 59) | type CallToolResult struct method GetMeta (line 70) | func (x *CallToolResult) GetMeta() *Meta { return &x.Meta } type CallToolResultFor (line 72) | type CallToolResultFor struct method GetMeta (line 83) | func (x *CallToolResultFor[Out]) GetMeta() *Meta { return &x.Meta } type CancelledParams (line 85) | type CancelledParams struct method GetMeta (line 99) | func (x *CancelledParams) GetMeta() *Meta { return &x.Meta } type ClientCapabilities (line 104) | type ClientCapabilities struct type CreateMessageParams (line 117) | type CreateMessageParams struct method GetMeta (line 142) | func (x *CreateMessageParams) GetMeta() *Meta { return &x.Meta } type CreateMessageResult (line 148) | type CreateMessageResult struct method GetMeta (line 160) | func (x *CreateMessageResult) GetMeta() *Meta { return &x.Meta } type GetPromptParams (line 162) | type GetPromptParams struct method GetMeta (line 172) | func (x *GetPromptParams) GetMeta() *Meta { return &x.Meta } type GetPromptResult (line 175) | type GetPromptResult struct method GetMeta (line 184) | func (x *GetPromptResult) GetMeta() *Meta { return &x.Meta } type InitializeParams (line 186) | type InitializeParams struct method GetMeta (line 197) | func (x *InitializeParams) GetMeta() *Meta { return &x.Meta } type InitializeResult (line 201) | type InitializeResult struct method GetMeta (line 219) | func (x *InitializeResult) GetMeta() *Meta { return &x.Meta } type InitializedParams (line 221) | type InitializedParams struct method GetMeta (line 227) | func (x *InitializedParams) GetMeta() *Meta { return &x.Meta } type ListPromptsParams (line 229) | type ListPromptsParams struct method GetMeta (line 238) | func (x *ListPromptsParams) GetMeta() *Meta { return &x.Meta } method cursorPtr (line 239) | func (x *ListPromptsParams) cursorPtr() *string { return &x.Cursor } type ListPromptsResult (line 242) | type ListPromptsResult struct method GetMeta (line 252) | func (x *ListPromptsResult) GetMeta() *Meta { return &x.Meta } method nextCursorPtr (line 253) | func (x *ListPromptsResult) nextCursorPtr() *string { return &x.NextCu... type ListResourceTemplatesParams (line 255) | type ListResourceTemplatesParams struct method GetMeta (line 264) | func (x *ListResourceTemplatesParams) GetMeta() *Meta { return &x.... method cursorPtr (line 265) | func (x *ListResourceTemplatesParams) cursorPtr() *string { return &x.... type ListResourceTemplatesResult (line 268) | type ListResourceTemplatesResult struct method GetMeta (line 278) | func (x *ListResourceTemplatesResult) GetMeta() *Meta { return... method nextCursorPtr (line 279) | func (x *ListResourceTemplatesResult) nextCursorPtr() *string { return... type ListResourcesParams (line 281) | type ListResourcesParams struct method GetMeta (line 290) | func (x *ListResourcesParams) GetMeta() *Meta { return &x.Meta } method cursorPtr (line 291) | func (x *ListResourcesParams) cursorPtr() *string { return &x.Cursor } type ListResourcesResult (line 294) | type ListResourcesResult struct method GetMeta (line 304) | func (x *ListResourcesResult) GetMeta() *Meta { return &x.Meta } method nextCursorPtr (line 305) | func (x *ListResourcesResult) nextCursorPtr() *string { return &x.Next... type ListRootsParams (line 307) | type ListRootsParams struct method GetMeta (line 313) | func (x *ListRootsParams) GetMeta() *Meta { return &x.Meta } type ListRootsResult (line 318) | type ListRootsResult struct method GetMeta (line 325) | func (x *ListRootsResult) GetMeta() *Meta { return &x.Meta } type ListToolsParams (line 327) | type ListToolsParams struct method GetMeta (line 336) | func (x *ListToolsParams) GetMeta() *Meta { return &x.Meta } method cursorPtr (line 337) | func (x *ListToolsParams) cursorPtr() *string { return &x.Cursor } type ListToolsResult (line 340) | type ListToolsResult struct method GetMeta (line 350) | func (x *ListToolsResult) GetMeta() *Meta { return &x.Meta } method nextCursorPtr (line 351) | func (x *ListToolsResult) nextCursorPtr() *string { return &x.NextCurs... type LoggingLevel (line 357) | type LoggingLevel type LoggingMessageParams (line 359) | type LoggingMessageParams struct method GetMeta (line 372) | func (x *LoggingMessageParams) GetMeta() *Meta { return &x.Meta } type ModelHint (line 378) | type ModelHint struct type ModelPreferences (line 404) | type ModelPreferences struct type PingParams (line 426) | type PingParams struct method GetMeta (line 432) | func (x *PingParams) GetMeta() *Meta { return &x.Meta } type ProgressNotificationParams (line 434) | type ProgressNotificationParams struct method GetMeta (line 450) | func (x *ProgressNotificationParams) GetMeta() *Meta { return &x.Meta } type Prompt (line 453) | type Prompt struct type PromptArgument (line 463) | type PromptArgument struct type PromptListChangedParams (line 472) | type PromptListChangedParams struct method GetMeta (line 478) | func (x *PromptListChangedParams) GetMeta() *Meta { return &x.Meta } type PromptMessage (line 484) | type PromptMessage struct type ReadResourceParams (line 489) | type ReadResourceParams struct method GetMeta (line 498) | func (x *ReadResourceParams) GetMeta() *Meta { return &x.Meta } type ReadResourceResult (line 501) | type ReadResourceResult struct method GetMeta (line 508) | func (x *ReadResourceResult) GetMeta() *Meta { return &x.Meta } type Resource (line 511) | type Resource struct type ResourceListChangedParams (line 535) | type ResourceListChangedParams struct method GetMeta (line 541) | func (x *ResourceListChangedParams) GetMeta() *Meta { return &x.Meta } type ResourceTemplate (line 544) | type ResourceTemplate struct type Role (line 565) | type Role type Root (line 568) | type Root struct type RootsListChangedParams (line 579) | type RootsListChangedParams struct method GetMeta (line 585) | func (x *RootsListChangedParams) GetMeta() *Meta { return &x.Meta } type SamplingCapabilities (line 588) | type SamplingCapabilities struct type SamplingMessage (line 592) | type SamplingMessage struct type SetLevelParams (line 597) | type SetLevelParams struct method GetMeta (line 607) | func (x *SetLevelParams) GetMeta() *Meta { return &x.Meta } type Tool (line 610) | type Tool struct type ToolAnnotations (line 632) | type ToolAnnotations struct type ToolListChangedParams (line 661) | type ToolListChangedParams struct method GetMeta (line 667) | func (x *ToolListChangedParams) GetMeta() *Meta { return &x.Meta } type implementation (line 670) | type implementation struct type loggingCapabilities (line 676) | type loggingCapabilities struct type promptCapabilities (line 680) | type promptCapabilities struct type resourceCapabilities (line 686) | type resourceCapabilities struct type serverCapabilities (line 696) | type serverCapabilities struct type toolCapabilities (line 714) | type toolCapabilities struct constant methodCallTool (line 720) | methodCallTool = "tools/call" constant notificationCancelled (line 721) | notificationCancelled = "notifications/cancelled" constant methodComplete (line 722) | methodComplete = "completion/complete" constant methodCreateMessage (line 723) | methodCreateMessage = "sampling/createMessage" constant methodGetPrompt (line 724) | methodGetPrompt = "prompts/get" constant methodInitialize (line 725) | methodInitialize = "initialize" constant notificationInitialized (line 726) | notificationInitialized = "notifications/initialized" constant methodListPrompts (line 727) | methodListPrompts = "prompts/list" constant methodListResourceTemplates (line 728) | methodListResourceTemplates = "resources/templates/list" constant methodListResources (line 729) | methodListResources = "resources/list" constant methodListRoots (line 730) | methodListRoots = "roots/list" constant methodListTools (line 731) | methodListTools = "tools/list" constant notificationLoggingMessage (line 732) | notificationLoggingMessage = "notifications/message" constant methodPing (line 733) | methodPing = "ping" constant notificationProgress (line 734) | notificationProgress = "notifications/progress" constant notificationPromptListChanged (line 735) | notificationPromptListChanged = "notifications/prompts/list_changed" constant methodReadResource (line 736) | methodReadResource = "resources/read" constant notificationResourceListChanged (line 737) | notificationResourceListChanged = "notifications/resources/list_changed" constant notificationResourceUpdated (line 738) | notificationResourceUpdated = "notifications/resources/updated" constant notificationRootsListChanged (line 739) | notificationRootsListChanged = "notifications/roots/list_changed" constant methodSetLevel (line 740) | methodSetLevel = "logging/setLevel" constant methodSubscribe (line 741) | methodSubscribe = "resources/subscribe" constant notificationToolListChanged (line 742) | notificationToolListChanged = "notifications/tools/list_changed" constant methodUnsubscribe (line 743) | methodUnsubscribe = "resources/unsubscribe" FILE: internal/mcp/resource.go type ServerResource (line 24) | type ServerResource struct type ServerResourceTemplate (line 30) | type ServerResourceTemplate struct method Matches (line 176) | func (sr *ServerResourceTemplate) Matches(uri string) bool { type ResourceHandler (line 38) | type ResourceHandler function ResourceNotFoundError (line 42) | func ResourceNotFoundError(uri string) error { function readFileResource (line 53) | func readFileResource(rawURI, dirFilepath string, rootFilepaths []string... function withFile (line 73) | func withFile(dir, rel string, f func(*os.File) error) (err error) { function computeURIFilepath (line 90) | func computeURIFilepath(rawURI, dirFilepath string, rootFilepaths []stri... function fileRoots (line 137) | func fileRoots(rawRoots []*Root) ([]string, error) { function fileRoot (line 150) | func fileRoot(root *Root) (_ string, err error) { function uriTemplateToRegexp (line 184) | func uriTemplateToRegexp(uriTemplate string) (*regexp.Regexp, error) { FILE: internal/mcp/resource_test.go function TestFileRoot (line 14) | func TestFileRoot(t *testing.T) { function TestComputeURIFilepath (line 50) | func TestComputeURIFilepath(t *testing.T) { function TestReadFileResource (line 97) | func TestReadFileResource(t *testing.T) { function TestTemplateMatch (line 116) | func TestTemplateMatch(t *testing.T) { FILE: internal/mcp/server.go constant DefaultPageSize (line 24) | DefaultPageSize = 1000 type Server (line 30) | type Server struct method AddPrompts (line 93) | func (s *Server) AddPrompts(prompts ...*ServerPrompt) { method RemovePrompts (line 108) | func (s *Server) RemovePrompts(names ...string) { method AddTools (line 118) | func (s *Server) AddTools(tools ...*ServerTool) { method addToolsErr (line 125) | func (s *Server) addToolsErr(tools ...*ServerTool) error { method RemoveTools (line 169) | func (s *Server) RemoveTools(names ...string) { method AddResources (line 177) | func (s *Server) AddResources(resources ...*ServerResource) { method RemoveResources (line 200) | func (s *Server) RemoveResources(uris ...string) { method AddResourceTemplates (line 208) | func (s *Server) AddResourceTemplates(templates ...*ServerResourceTemp... method RemoveResourceTemplates (line 225) | func (s *Server) RemoveResourceTemplates(uriTemplates ...string) { method changeAndNotify (line 233) | func (s *Server) changeAndNotify(notification string, params Params, c... method Sessions (line 245) | func (s *Server) Sessions() iter.Seq[*ServerSession] { method listPrompts (line 252) | func (s *Server) listPrompts(_ context.Context, _ *ServerSession, para... method getPrompt (line 266) | func (s *Server) getPrompt(ctx context.Context, cc *ServerSession, par... method listTools (line 277) | func (s *Server) listTools(_ context.Context, _ *ServerSession, params... method callTool (line 291) | func (s *Server) callTool(ctx context.Context, cc *ServerSession, para... method listResources (line 301) | func (s *Server) listResources(_ context.Context, _ *ServerSession, pa... method listResourceTemplates (line 315) | func (s *Server) listResourceTemplates(_ context.Context, _ *ServerSes... method readResource (line 330) | func (s *Server) readResource(ctx context.Context, ss *ServerSession, ... method lookupResourceHandler (line 361) | func (s *Server) lookupResourceHandler(uri string) (ResourceHandler, s... method fileResourceHandler (line 389) | func (s *Server) fileResourceHandler(dir string) ResourceHandler { method Run (line 423) | func (s *Server) Run(ctx context.Context, t Transport) error { method bind (line 433) | func (s *Server) bind(conn *jsonrpc2.Connection) *ServerSession { method disconnect (line 443) | func (s *Server) disconnect(cc *ServerSession) { method Connect (line 457) | func (s *Server) Connect(ctx context.Context, t Transport) (*ServerSes... method callInitializedHandler (line 461) | func (s *Server) callInitializedHandler(ctx context.Context, ss *Serve... method callRootsListChangedHandler (line 465) | func (s *Server) callRootsListChangedHandler(ctx context.Context, ss *... method AddSendingMiddleware (line 542) | func (s *Server) AddSendingMiddleware(middleware ...Middleware[*Server... method AddReceivingMiddleware (line 557) | func (s *Server) AddReceivingMiddleware(middleware ...Middleware[*Serv... type ServerOptions (line 47) | type ServerOptions struct function NewServer (line 68) | func NewServer(name, version string, opts *ServerOptions) *Server { function fileResourceHandler (line 393) | func fileResourceHandler(dir string) ResourceHandler { type ServerSession (line 487) | type ServerSession struct method callProgressNotificationHandler (line 469) | func (ss *ServerSession) callProgressNotificationHandler(ctx context.C... method NotifyProgress (line 477) | func (ss *ServerSession) NotifyProgress(ctx context.Context, params *P... method Ping (line 497) | func (ss *ServerSession) Ping(ctx context.Context, params *PingParams)... method ListRoots (line 503) | func (ss *ServerSession) ListRoots(ctx context.Context, params *ListRo... method CreateMessage (line 508) | func (ss *ServerSession) CreateMessage(ctx context.Context, params *Cr... method LoggingMessage (line 517) | func (ss *ServerSession) LoggingMessage(ctx context.Context, params *L... method sendingMethodInfos (line 580) | func (ss *ServerSession) sendingMethodInfos() map[string]methodInfo { ... method receivingMethodInfos (line 582) | func (ss *ServerSession) receivingMethodInfos() map[string]methodInfo ... method sendingMethodHandler (line 584) | func (ss *ServerSession) sendingMethodHandler() methodHandler { method receivingMethodHandler (line 590) | func (ss *ServerSession) receivingMethodHandler() methodHandler { method getConn (line 597) | func (ss *ServerSession) getConn() *jsonrpc2.Connection { return ss.co... method handle (line 600) | func (ss *ServerSession) handle(ctx context.Context, req *JSONRPCReque... method initialize (line 621) | func (ss *ServerSession) initialize(ctx context.Context, params *Initi... method ping (line 667) | func (ss *ServerSession) ping(context.Context, *PingParams) (*emptyRes... method setLevel (line 671) | func (ss *ServerSession) setLevel(_ context.Context, params *SetLevelP... method Close (line 681) | func (ss *ServerSession) Close() error { method Wait (line 686) | func (ss *ServerSession) Wait() error { type pageToken (line 692) | type pageToken struct function encodeCursor (line 698) | func encodeCursor(uid string) (string, error) { function decodeCursor (line 709) | func decodeCursor(cursor string) (*pageToken, error) { function paginateList (line 728) | func paginateList[P listParams, R listResult[T], T any](fs *featureSet[T... FILE: internal/mcp/server_example_test.go type SayHiParams (line 15) | type SayHiParams struct function SayHi (line 19) | func SayHi(ctx context.Context, cc *mcp.ServerSession, params *mcp.CallT... function ExampleServer (line 27) | func ExampleServer() { function createSessions (line 61) | func createSessions(ctx context.Context) (*mcp.ClientSession, *mcp.Serve... FILE: internal/mcp/server_test.go type testItem (line 15) | type testItem struct type testListParams (line 20) | type testListParams struct method cursorPtr (line 24) | func (p *testListParams) cursorPtr() *string { type testListResult (line 28) | type testListResult struct method nextCursorPtr (line 33) | func (r *testListResult) nextCursorPtr() *string { function getCursor (line 53) | func getCursor(input string) string { function TestServerPaginateBasic (line 61) | func TestServerPaginateBasic(t *testing.T) { function TestServerPaginateVariousPageSizes (line 196) | func TestServerPaginateVariousPageSizes(t *testing.T) { FILE: internal/mcp/shared.go type MethodHandler (line 28) | type MethodHandler type methodHandler (line 34) | type methodHandler type Session (line 37) | type Session interface type Middleware (line 47) | type Middleware function addMiddleware (line 50) | func addMiddleware[S Session](handlerp *MethodHandler[S], middleware []M... function defaultSendingMethodHandler (line 56) | func defaultSendingMethodHandler[S Session](ctx context.Context, session... function orZero (line 76) | func orZero[T any, P *U, U any](p P) T { function handleNotify (line 84) | func handleNotify[S Session](ctx context.Context, session S, method stri... function handleSend (line 90) | func handleSend[R Result, S Session](ctx context.Context, s S, method st... function defaultReceivingMethodHandler (line 102) | func defaultReceivingMethodHandler[S Session](ctx context.Context, sessi... function handleReceive (line 111) | func handleReceive[S Session](ctx context.Context, session S, req *JSONR... type methodInfo (line 131) | type methodInfo struct type typedMethodHandler (line 150) | type typedMethodHandler type paramsPtr (line 152) | type paramsPtr interface function newMethodInfo (line 158) | func newMethodInfo[S Session, P paramsPtr[T], R Result, T any](d typedMe... function serverMethod (line 184) | func serverMethod[P Params, R Result]( function clientMethod (line 193) | func clientMethod[P Params, R Result]( function sessionMethod (line 202) | func sessionMethod[S Session, P Params, R Result](f func(S, context.Cont... constant CodeResourceNotFound (line 216) | CodeResourceNotFound = -31002 constant CodeUnsupportedMethod (line 218) | CodeUnsupportedMethod = -31001 function callNotificationHandler (line 221) | func callNotificationHandler[S Session, P any](ctx context.Context, h fu... function notifySessions (line 230) | func notifySessions[S Session](sessions []S, method string, params Param... type Meta (line 245) | type Meta struct method MarshalJSON (line 254) | func (m Meta) MarshalJSON() ([]byte, error) { method UnmarshalJSON (line 269) | func (m *Meta) UnmarshalJSON(data []byte) error { type metaSansMethods (line 252) | type metaSansMethods type Params (line 274) | type Params interface type Result (line 280) | type Result interface type emptyResult (line 287) | type emptyResult struct method GetMeta (line 289) | func (*emptyResult) GetMeta() *Meta { panic("should never be called") } type listParams (line 291) | type listParams interface type listResult (line 296) | type listResult interface FILE: internal/mcp/shared_test.go function TestMetaMarshal (line 16) | func TestMetaMarshal(t *testing.T) { function roundTrip (line 60) | func roundTrip[T any](t *testing.T, v T) T { function TestNewServerToolValidate (line 74) | func TestNewServerToolValidate(t *testing.T) { FILE: internal/mcp/sse.go type event (line 45) | type event struct method empty (line 51) | func (e event) empty() bool { function writeEvent (line 56) | func writeEvent(w io.Writer, evt event) (int, error) { type SSEHandler (line 76) | type SSEHandler struct method ServeHTTP (line 186) | func (h *SSEHandler) ServeHTTP(w http.ResponseWriter, req *http.Reques... function NewSSEHandler (line 98) | func NewSSEHandler(getServer func(request *http.Request) *Server) *SSEHa... type SSEServerTransport (line 113) | type SSEServerTransport struct method ServeHTTP (line 148) | func (t *SSEServerTransport) ServeHTTP(w http.ResponseWriter, req *htt... method Connect (line 173) | func (t *SSEServerTransport) Connect(context.Context) (Connection, err... function NewSSEServerTransport (line 138) | func NewSSEServerTransport(endpoint string, w http.ResponseWriter) *SSES... type sseServerConn (line 263) | type sseServerConn struct method Read (line 268) | func (s sseServerConn) Read(ctx context.Context) (JSONRPCMessage, erro... method Write (line 280) | func (s sseServerConn) Write(ctx context.Context, msg JSONRPCMessage) ... method Close (line 309) | func (s sseServerConn) Close() error { type SSEClientTransport (line 324) | type SSEClientTransport struct method Connect (line 356) | func (c *SSEClientTransport) Connect(ctx context.Context) (Connection,... type SSEClientTransportOptions (line 331) | type SSEClientTransportOptions struct function NewSSEClientTransport (line 341) | func NewSSEClientTransport(baseURL string, opts *SSEClientTransportOptio... function scanEvents (line 423) | func scanEvents(r io.Reader) iter.Seq2[event, error] { type sseClientConn (line 511) | type sseClientConn struct method isDone (line 522) | func (c *sseClientConn) isDone() bool { method Read (line 528) | func (c *sseClientConn) Read(ctx context.Context) (JSONRPCMessage, err... method Write (line 549) | func (c *sseClientConn) Write(ctx context.Context, msg JSONRPCMessage)... method Close (line 573) | func (c *sseClientConn) Close() error { FILE: internal/mcp/sse_example_test.go type AddParams (line 17) | type AddParams struct function Add (line 21) | func Add(ctx context.Context, cc *mcp.ServerSession, params *mcp.CallToo... function ExampleSSEHandler (line 27) | func ExampleSSEHandler() { FILE: internal/mcp/sse_test.go function TestSSEServer (line 18) | func TestSSEServer(t *testing.T) { function TestScanEvents (line 75) | func TestScanEvents(t *testing.T) { FILE: internal/mcp/streamable.go type StreamableHTTPHandler (line 26) | type StreamableHTTPHandler struct method closeAll (line 58) | func (h *StreamableHTTPHandler) closeAll() { method ServeHTTP (line 67) | func (h *StreamableHTTPHandler) ServeHTTP(w http.ResponseWriter, req *... type StreamableHTTPOptions (line 35) | type StreamableHTTPOptions struct function NewStreamableHTTPHandler (line 44) | func NewStreamableHTTPHandler(getServer func(*http.Request) *Server, opt... function NewStreamableServerTransport (line 153) | func NewStreamableServerTransport(sessionID string) *StreamableServerTra... type StreamableServerTransport (line 167) | type StreamableServerTransport struct method Connect (line 246) | func (s *StreamableServerTransport) Connect(context.Context) (Connecti... method ServeHTTP (line 274) | func (t *StreamableServerTransport) ServeHTTP(w http.ResponseWriter, r... method serveGET (line 287) | func (t *StreamableServerTransport) serveGET(w http.ResponseWriter, re... method servePOST (line 314) | func (t *StreamableServerTransport) servePOST(w http.ResponseWriter, r... method streamResponse (line 367) | func (t *StreamableServerTransport) streamResponse(w http.ResponseWrit... method Read (line 479) | func (t *StreamableServerTransport) Read(ctx context.Context) (JSONRPC... method Write (line 494) | func (t *StreamableServerTransport) Write(ctx context.Context, msg JSO... method Close (line 568) | func (t *StreamableServerTransport) Close() error { type streamID (line 235) | type streamID type streamableMsg (line 238) | type streamableMsg struct type idContextKey (line 271) | type idContextKey struct function formatEventID (line 454) | func formatEventID(sid streamID, idx int) string { function parseEventID (line 462) | func parseEventID(eventID string) (sid streamID, idx int, ok bool) { type StreamableClientTransport (line 583) | type StreamableClientTransport struct method Connect (line 614) | func (t *StreamableClientTransport) Connect(ctx context.Context) (Conn... type StreamableClientTransportOptions (line 590) | type StreamableClientTransportOptions struct function NewStreamableClientTransport (line 598) | func NewStreamableClientTransport(url string, opts *StreamableClientTran... type streamableClientConn (line 627) | type streamableClientConn struct method Read (line 643) | func (s *streamableClientConn) Read(ctx context.Context) (JSONRPCMessa... method Write (line 655) | func (s *streamableClientConn) Write(ctx context.Context, msg JSONRPCM... method postMessage (line 691) | func (s *streamableClientConn) postMessage(ctx context.Context, sessio... method handleSSE (line 727) | func (s *streamableClientConn) handleSSE(resp *http.Response) { method Close (line 749) | func (s *streamableClientConn) Close() error { FILE: internal/mcp/streamable_test.go function TestStreamableTransports (line 27) | func TestStreamableTransports(t *testing.T) { function TestStreamableServerTransport (line 92) | func TestStreamableServerTransport(t *testing.T) { function streamingRequest (line 457) | func streamingRequest(ctx context.Context, serverURL, sessionID, method ... function mustMarshal (line 530) | func mustMarshal(t *testing.T, v any) json.RawMessage { function TestEventID (line 542) | func TestEventID(t *testing.T) { FILE: internal/mcp/tool.go type ToolHandler (line 21) | type ToolHandler type ToolHandlerFor (line 24) | type ToolHandlerFor type ServerTool (line 30) | type ServerTool struct function NewServerTool (line 48) | func NewServerTool[In, Out any](name, description string, handler ToolHa... function newServerToolErr (line 56) | func newServerToolErr[In, Out any](name, description string, handler Too... function newRawHandler (line 114) | func newRawHandler(st *ServerTool) rawToolHandler { function unmarshalSchema (line 148) | func unmarshalSchema(data json.RawMessage, resolved *jsonschema.Resolved... type ToolOption (line 174) | type ToolOption interface type toolSetter (line 178) | type toolSetter method set (line 180) | func (s toolSetter) set(t *ServerTool) { s(t) } function Input (line 184) | func Input(opts ...SchemaOption) ToolOption { type SchemaOption (line 193) | type SchemaOption interface type schemaSetter (line 197) | type schemaSetter method set (line 199) | func (s schemaSetter) set(schema *jsonschema.Schema) { s(schema) } function Property (line 203) | func Property(name string, opts ...SchemaOption) SchemaOption { function Required (line 232) | func Required(v bool) SchemaOption { type required (line 238) | type required method set (line 240) | func (required) set(s *jsonschema.Schema) { function Enum (line 245) | func Enum(values ...any) SchemaOption { function Description (line 252) | func Description(desc string) SchemaOption { type description (line 258) | type description method set (line 260) | func (d description) set(s *jsonschema.Schema) { function Schema (line 266) | func Schema(schema *jsonschema.Schema) SchemaOption { function schemaJSON (line 273) | func schemaJSON(s *jsonschema.Schema) string { FILE: internal/mcp/tool_test.go function testToolHandler (line 19) | func testToolHandler[T any](context.Context, *ServerSession, *CallToolPa... function TestNewServerTool (line 23) | func TestNewServerTool(t *testing.T) { function TestUnmarshalSchema (line 93) | func TestUnmarshalSchema(t *testing.T) { FILE: internal/mcp/transport.go type Transport (line 30) | type Transport interface type Connection (line 49) | type Connection interface type StdioTransport (line 57) | type StdioTransport struct type ioTransport (line 63) | type ioTransport struct method Connect (line 67) | func (t *ioTransport) Connect(context.Context) (Connection, error) { function NewStdioTransport (line 73) | func NewStdioTransport() *StdioTransport { type InMemoryTransport (line 79) | type InMemoryTransport struct function NewInMemoryTransports (line 85) | func NewInMemoryTransports() (*InMemoryTransport, *InMemoryTransport) { type binder (line 90) | type binder interface type handler (line 95) | type handler interface function connect (line 99) | func connect[H handler](ctx context.Context, t Transport, b binder[H]) (... type canceller (line 132) | type canceller struct method Preempt (line 137) | func (c *canceller) Preempt(ctx context.Context, req *JSONRPCRequest) ... function call (line 154) | func call(ctx context.Context, conn *jsonrpc2.Connection, method string,... type LoggingTransport (line 177) | type LoggingTransport struct method Connect (line 190) | func (t *LoggingTransport) Connect(ctx context.Context) (Connection, e... function NewLoggingTransport (line 184) | func NewLoggingTransport(delegate Transport, w io.Writer) *LoggingTransp... type loggingConn (line 198) | type loggingConn struct method Read (line 204) | func (s *loggingConn) Read(ctx context.Context) (JSONRPCMessage, error) { method Write (line 219) | func (s *loggingConn) Write(ctx context.Context, msg JSONRPCMessage) e... method Close (line 233) | func (s *loggingConn) Close() error { type rwc (line 239) | type rwc struct method Read (line 244) | func (r rwc) Read(p []byte) (n int, err error) { method Write (line 248) | func (r rwc) Write(p []byte) (n int, err error) { method Close (line 252) | func (r rwc) Close() error { type ioConn (line 263) | type ioConn struct method addBatch (line 292) | func (t *ioConn) addBatch(batch *msgBatch) error { method updateBatch (line 315) | func (t *ioConn) updateBatch(resp *JSONRPCResponse) ([]*JSONRPCRespons... method Read (line 353) | func (t *ioConn) Read(ctx context.Context) (JSONRPCMessage, error) { method read (line 357) | func (t *ioConn) read(ctx context.Context, in *json.Decoder) (JSONRPCM... method Write (line 428) | func (t *ioConn) Write(ctx context.Context, msg JSONRPCMessage) error { method Close (line 475) | func (t *ioConn) Close() error { function newIOConn (line 281) | func newIOConn(rwc io.ReadWriteCloser) *ioConn { type msgBatch (line 348) | type msgBatch struct function readBatch (line 407) | func readBatch(data []byte) (msgs []JSONRPCMessage, isBatch bool, _ erro... function marshalMessages (line 479) | func marshalMessages[T JSONRPCMessage](msgs []T) ([]byte, error) { FILE: internal/mcp/transport_test.go function TestBatchFraming (line 15) | func TestBatchFraming(t *testing.T) { FILE: internal/mcp/util.go function assert (line 16) | func assert(cond bool, msg string) { function marshalStructWithMap (line 50) | func marshalStructWithMap[T any](s *T, mapField string) ([]byte, error) { function unmarshalStructWithMap (line 93) | func unmarshalStructWithMap[T any](data []byte, v *T, mapField string) e... function jsonNames (line 117) | func jsonNames(t reflect.Type) map[string]bool { FILE: internal/mcp/util_test.go function TestMarshalStructWithMap (line 15) | func TestMarshalStructWithMap(t *testing.T) { FILE: internal/modindex/dir_test.go type id (line 17) | type id struct function testModCache (line 51) | func testModCache(t *testing.T) string { function addPkg (line 57) | func addPkg(gomodcache, dir string) error { function TestIncremental (line 66) | func TestIncremental(t *testing.T) { function TestIncrementalNope (line 119) | func TestIncrementalNope(t *testing.T) { function TestDirsSinglePath (line 166) | func TestDirsSinglePath(t *testing.T) { function TestMissingGOMODCACHE (line 205) | func TestMissingGOMODCACHE(t *testing.T) { function TestMissingIndex (line 220) | func TestMissingIndex(t *testing.T) { FILE: internal/modindex/directories.go type directory (line 21) | type directory struct function bestDirByImportPath (line 30) | func bestDirByImportPath(dirs []string) (map[string]directory, error) { function compareDirectory (line 51) | func compareDirectory(x, y directory) int { function dirToImportPathVersion (line 63) | func dirToImportPathVersion(dir string) (string, string, error) { function findDirs (line 82) | func findDirs(root string, start, end time.Time) []string { FILE: internal/modindex/export_test.go function Create (line 14) | func Create(gomodcache string) (*Index, error) { FILE: internal/modindex/gomodindex/cmd.go type cmd (line 30) | type cmd struct function goEnv (line 42) | func goEnv(s string) string { function main (line 51) | func main() { function init (line 71) | func init() { function update (line 83) | func update(dir string) { function query (line 89) | func query(dir string) { function clean (line 93) | func clean(_ string) { FILE: internal/modindex/index.go constant CurrentVersion (line 66) | CurrentVersion int = 0 type Index (line 69) | type Index struct method String (line 76) | func (ix *Index) String() string { type Entry (line 82) | type Entry struct function Read (line 124) | func Read(gomodcache string) (*Index, error) { function readIndexFrom (line 150) | func readIndexFrom(gomodcache string, r io.Reader) (*Index, error) { function write (line 231) | func write(gomodcache string, ix *Index) error { function writeIndexToFile (line 254) | func writeIndexToFile(x *Index, w *bufio.Writer) error { function linkFileBasename (line 281) | func linkFileBasename(gomodcache string) string { function relative (line 287) | func relative(base, file string) string { FILE: internal/modindex/lookup.go type Candidate (line 15) | type Candidate struct type Field (line 27) | type Field struct type LexType (line 31) | type LexType constant Const (line 34) | Const LexType = iota constant Var (line 35) | Var constant Type (line 36) | Type constant Func (line 37) | Func method LookupAll (line 42) | func (ix *Index) LookupAll(pkgName string, names ...string) map[string][... function uniquify (line 61) | func uniquify(in []string) []string { method Lookup (line 72) | func (ix *Index) Lookup(pkgName, name string, prefix bool) []Candidate { function toFields (line 143) | func toFields(sig []string) []Field { function fastSplit (line 153) | func fastSplit(x string) []string { function asLexType (line 172) | func asLexType(c byte) LexType { FILE: internal/modindex/lookup_test.go type tdata (line 18) | type tdata struct type titem (line 24) | type titem struct type result (line 46) | type result struct function okresult (line 54) | func okresult(r result, p Candidate) bool { function TestLookup (line 72) | func TestLookup(t *testing.T) { function wrtData (line 124) | func wrtData(t *testing.T, dir string, data tdata) { function TestLookupAll (line 141) | func TestLookupAll(t *testing.T) { function TestUniquify (line 187) | func TestUniquify(t *testing.T) { FILE: internal/modindex/modindex.go function Update (line 31) | func Update(gomodcache string) (*Index, error) { function update (line 47) | func update(gomodcache string, old *Index) (*Index, error) { function build (line 72) | func build(gomodcache string, old *Index) (*Index, bool, error) { FILE: internal/modindex/symbols.go type symbol (line 32) | type symbol struct function extractSymbols (line 41) | func extractSymbols(cwd string, dirs iter.Seq[directory]) []Entry { function getFileExports (line 95) | func getFileExports(f *ast.File) []symbol { function newsym (line 194) | func newsym(pkg, name, kind, sig string) *symbol { function isDeprecated (line 202) | func isDeprecated(doc *ast.CommentGroup) bool { function processSyms (line 220) | func processSyms(syms []symbol) (string, []string) { FILE: internal/moreiters/iters.go function First (line 11) | func First[T any](seq iter.Seq[T]) (z T, ok bool) { function Contains (line 19) | func Contains[T comparable](seq iter.Seq[T], x T) bool { function Every (line 30) | func Every[T any](seq iter.Seq[T], pred func(T) bool) bool { function Any (line 40) | func Any[T any](seq iter.Seq[T], pred func(T) bool) bool { function Len (line 50) | func Len[T any](seq iter.Seq[T]) (n int) { FILE: internal/packagepath/packagepath.go function CanImport (line 16) | func CanImport(from, to string) bool { function IsStdPackage (line 41) | func IsStdPackage(path string) bool { FILE: internal/packagepath/packagepath_test.go function TestCanImport (line 13) | func TestCanImport(t *testing.T) { function TestIsStdPackage (line 42) | func TestIsStdPackage(t *testing.T) { FILE: internal/packagesinternal/packages.go type PackageError (line 12) | type PackageError struct method String (line 18) | func (err PackageError) String() string { FILE: internal/packagestest/expect.go constant markMethod (line 22) | markMethod = "mark" constant eofIdentifier (line 23) | eofIdentifier = "EOF" method Expect (line 76) | func (e *Exported) Expect(methods map[string]any) error { method Mark (line 127) | func (e *Exported) Mark(name string, r astutil.Range) { method getNotes (line 134) | func (e *Exported) getNotes() error { function goModMarkers (line 194) | func goModMarkers(e *Exported, gomod string) ([]*expect.Note, error) { method getMarkers (line 214) | func (e *Exported) getMarkers() error { type converter (line 241) | type converter type method (line 245) | type method struct method buildConverter (line 254) | func (e *Exported) buildConverter(pt reflect.Type) (converter, error) { method rangeConverter (line 393) | func (e *Exported) rangeConverter(n *expect.Note, args []any) (astutil.R... function newRange (line 440) | func newRange(file *token.File, start, end token.Pos) astutil.Range { FILE: internal/packagestest/expect_test.go function TestExpect (line 16) | func TestExpect(t *testing.T) { FILE: internal/packagestest/export.go type Module (line 94) | type Module struct type Writer (line 113) | type Writer type Exported (line 116) | type Exported struct method Cleanup (line 618) | func (e *Exported) Cleanup() { method Temp (line 641) | func (e *Exported) Temp() string { method File (line 646) | func (e *Exported) File(module, fragment string) string { method FileContents (line 656) | func (e *Exported) FileContents(filename string) ([]byte, error) { type Exporter (line 136) | type Exporter interface function TestAll (line 156) | func TestAll(t *testing.T, f func(*testing.T, Exporter)) { function BenchmarkAll (line 169) | func BenchmarkAll(b *testing.B, f func(*testing.B, Exporter)) { function Export (line 191) | func Export(t testing.TB, exporter Exporter, modules []Module) *Exported { function Script (line 277) | func Script(contents string) Writer { function Link (line 290) | func Link(source string) Writer { function Symlink (line 317) | func Symlink(source string) Writer { function builderMustSupportLinks (line 361) | func builderMustSupportLinks() bool { function openAndStat (line 382) | func openAndStat(source string) (os.FileInfo, error) { function createEmpty (line 397) | func createEmpty(dst string, mode os.FileMode) error { function Copy (line 417) | func Copy(source string) Writer { function copyFile (line 432) | func copyFile(dest, source string, perm os.FileMode) error { function GroupFilesByModules (line 470) | func GroupFilesByModules(root string) ([]Module, error) { function MustCopyFileTree (line 589) | func MustCopyFileTree(root string) map[string]any { FILE: internal/packagestest/export_test.go type fileTest (line 49) | type fileTest struct function checkFiles (line 54) | func checkFiles(t *testing.T, exported *packagestest.Exported, tests []f... function checkLink (line 69) | func checkLink(expect string) func(t *testing.T, exported *packagestest.... function checkContent (line 80) | func checkContent(expect string) func(t *testing.T, exported *packageste... function TestGroupFilesByModules (line 90) | func TestGroupFilesByModules(t *testing.T) { function TestMustCopyFiles (line 186) | func TestMustCopyFiles(t *testing.T) { FILE: internal/packagestest/gopath.go type gopath (line 44) | type gopath struct method Name (line 46) | func (gopath) Name() string { method Filename (line 50) | func (gopath) Filename(exported *Exported, module, fragment string) st... method Finalize (line 54) | func (gopath) Finalize(exported *Exported) error { function gopathDir (line 71) | func gopathDir(exported *Exported, module string) string { FILE: internal/packagestest/gopath_test.go function TestGOPATHExport (line 14) | func TestGOPATHExport(t *testing.T) { FILE: internal/packagestest/modules.go type modules (line 46) | type modules struct method Name (line 53) | func (modules) Name() string { method Filename (line 57) | func (modules) Filename(exported *Exported, module, fragment string) s... method Finalize (line 64) | func (modules) Finalize(exported *Exported) error { type moduleAtVersion (line 48) | type moduleAtVersion struct function writeModuleFiles (line 189) | func writeModuleFiles(rootDir, module, ver string, filePaths map[string]... function modCache (line 201) | func modCache(exported *Exported) string { function primaryDir (line 205) | func primaryDir(exported *Exported) string { function moduleDir (line 209) | func moduleDir(exported *Exported, module string) string { function moduleVersion (line 218) | func moduleVersion(module string) string { FILE: internal/packagestest/modules_test.go function TestModulesExport (line 14) | func TestModulesExport(t *testing.T) { FILE: internal/packagestest/testdata/groups/two/primarymod/expect/yo_test.go function TestX (line 8) | func TestX(t *testing.T) { FILE: internal/packagestest/testdata/test.go type AThing (line 9) | type AThing type Match (line 11) | type Match FILE: internal/packagestest/testdata/test_test.go type ATestType (line 3) | type ATestType FILE: internal/packagestest/testdata/x_test.go type AnXTestType (line 3) | type AnXTestType FILE: internal/pkgbits/codes.go type Code (line 11) | type Code interface type CodeVal (line 20) | type CodeVal method Marker (line 22) | func (c CodeVal) Marker() SyncMarker { return SyncVal } method Value (line 23) | func (c CodeVal) Value() int { return int(c) } constant ValBool (line 29) | ValBool CodeVal = iota constant ValString (line 30) | ValString constant ValInt64 (line 31) | ValInt64 constant ValBigInt (line 32) | ValBigInt constant ValBigRat (line 33) | ValBigRat constant ValBigFloat (line 34) | ValBigFloat type CodeType (line 38) | type CodeType method Marker (line 40) | func (c CodeType) Marker() SyncMarker { return SyncType } method Value (line 41) | func (c CodeType) Value() int { return int(c) } constant TypeBasic (line 47) | TypeBasic CodeType = iota constant TypeNamed (line 48) | TypeNamed constant TypePointer (line 49) | TypePointer constant TypeSlice (line 50) | TypeSlice constant TypeArray (line 51) | TypeArray constant TypeChan (line 52) | TypeChan constant TypeMap (line 53) | TypeMap constant TypeSignature (line 54) | TypeSignature constant TypeStruct (line 55) | TypeStruct constant TypeInterface (line 56) | TypeInterface constant TypeUnion (line 57) | TypeUnion constant TypeTypeParam (line 58) | TypeTypeParam type CodeObj (line 62) | type CodeObj method Marker (line 64) | func (c CodeObj) Marker() SyncMarker { return SyncCodeObj } method Value (line 65) | func (c CodeObj) Value() int { return int(c) } constant ObjAlias (line 71) | ObjAlias CodeObj = iota constant ObjConst (line 72) | ObjConst constant ObjType (line 73) | ObjType constant ObjFunc (line 74) | ObjFunc constant ObjVar (line 75) | ObjVar constant ObjStub (line 76) | ObjStub FILE: internal/pkgbits/decoder.go type PkgDecoder (line 22) | type PkgDecoder struct method PkgPath (line 63) | func (pr *PkgDecoder) PkgPath() string { return pr.pkgPath } method SyncMarkers (line 66) | func (pr *PkgDecoder) SyncMarkers() bool { return pr.sync } method NumElems (line 112) | func (pr *PkgDecoder) NumElems(k RelocKind) int { method TotalElems (line 121) | func (pr *PkgDecoder) TotalElems() int { method Fingerprint (line 126) | func (pr *PkgDecoder) Fingerprint() [8]byte { method AbsIdx (line 134) | func (pr *PkgDecoder) AbsIdx(k RelocKind, idx Index) int { method DataIdx (line 147) | func (pr *PkgDecoder) DataIdx(k RelocKind, idx Index) string { method StringIdx (line 160) | func (pr *PkgDecoder) StringIdx(idx Index) string { method NewDecoder (line 166) | func (pr *PkgDecoder) NewDecoder(k RelocKind, idx Index, marker SyncMa... method TempDecoder (line 176) | func (pr *PkgDecoder) TempDecoder(k RelocKind, idx Index, marker SyncM... method RetireDecoder (line 182) | func (pr *PkgDecoder) RetireDecoder(d *Decoder) { method NewDecoderRaw (line 190) | func (pr *PkgDecoder) NewDecoderRaw(k RelocKind, idx Index) Decoder { method TempDecoderRaw (line 208) | func (pr *PkgDecoder) TempDecoderRaw(k RelocKind, idx Index) Decoder { method PeekPkgPath (line 481) | func (pr *PkgDecoder) PeekPkgPath(idx Index) string { method PeekObj (line 496) | func (pr *PkgDecoder) PeekObj(idx Index) (string, string, CodeObj) { function NewPkgDecoder (line 71) | func NewPkgDecoder(pkgPath, input string) PkgDecoder { type Decoder (line 234) | type Decoder struct method checkErr (line 244) | func (r *Decoder) checkErr(err error) { method rawUvarint (line 250) | func (r *Decoder) rawUvarint() uint64 { method rawVarint (line 284) | func (r *Decoder) rawVarint() int64 { method rawReloc (line 295) | func (r *Decoder) rawReloc(k RelocKind, idx int) Index { method Sync (line 305) | func (r *Decoder) Sync(mWant SyncMarker) { method Bool (line 361) | func (r *Decoder) Bool() bool { method Int64 (line 370) | func (r *Decoder) Int64() int64 { method Uint64 (line 376) | func (r *Decoder) Uint64() uint64 { method Len (line 382) | func (r *Decoder) Len() int { x := r.Uint64(); v := int(x); assert(uin... method Int (line 385) | func (r *Decoder) Int() int { x := r.Int64(); v := int(x); assert(int6... method Uint (line 388) | func (r *Decoder) Uint() uint { x := r.Uint64(); v := uint(x); assert(... method Code (line 397) | func (r *Decoder) Code(mark SyncMarker) int { method Reloc (line 404) | func (r *Decoder) Reloc(k RelocKind) Index { method String (line 411) | func (r *Decoder) String() string { method Strings (line 418) | func (r *Decoder) Strings() []string { method Value (line 428) | func (r *Decoder) Value() constant.Value { method scalar (line 438) | func (r *Decoder) scalar() constant.Value { method bigInt (line 460) | func (r *Decoder) bigInt() *big.Int { method bigFloat (line 468) | func (r *Decoder) bigFloat() *big.Float { method Version (line 519) | func (w *Decoder) Version() Version { return w.common.version } function readUvarint (line 259) | func readUvarint(r *strings.Reader) (uint64, error) { FILE: internal/pkgbits/encoder.go type PkgEncoder (line 20) | type PkgEncoder struct method SyncMarkers (line 38) | func (pw *PkgEncoder) SyncMarkers() bool { return pw.syncFrames >= 0 } method DumpTo (line 57) | func (pw *PkgEncoder) DumpTo(out0 io.Writer) (fingerprint [8]byte) { method StringIdx (line 109) | func (pw *PkgEncoder) StringIdx(s string) Index { method NewEncoder (line 124) | func (pw *PkgEncoder) NewEncoder(k RelocKind, marker SyncMarker) Encod... method NewEncoderRaw (line 134) | func (pw *PkgEncoder) NewEncoderRaw(k RelocKind) Encoder { function NewPkgEncoder (line 47) | func NewPkgEncoder(version Version, syncFrames int) PkgEncoder { type Encoder (line 147) | type Encoder struct method Flush (line 161) | func (w *Encoder) Flush() Index { method checkErr (line 190) | func (w *Encoder) checkErr(err error) { method rawUvarint (line 196) | func (w *Encoder) rawUvarint(x uint64) { method rawVarint (line 203) | func (w *Encoder) rawVarint(x int64) { method rawReloc (line 213) | func (w *Encoder) rawReloc(r RelocKind, idx Index) int { method Sync (line 229) | func (w *Encoder) Sync(m SyncMarker) { method Bool (line 267) | func (w *Encoder) Bool(b bool) bool { method Int64 (line 279) | func (w *Encoder) Int64(x int64) { method Uint64 (line 285) | func (w *Encoder) Uint64(x uint64) { method Len (line 291) | func (w *Encoder) Len(x int) { assert(x >= 0); w.Uint64(uint64(x)) } method Int (line 294) | func (w *Encoder) Int(x int) { w.Int64(int64(x)) } method Uint (line 297) | func (w *Encoder) Uint(x uint) { w.Uint64(uint64(x)) } method Reloc (line 305) | func (w *Encoder) Reloc(r RelocKind, idx Index) { method Code (line 311) | func (w *Encoder) Code(c Code) { method String (line 322) | func (w *Encoder) String(s string) { method StringRef (line 328) | func (w *Encoder) StringRef(idx Index) { method Strings (line 335) | func (w *Encoder) Strings(ss []string) { method Value (line 344) | func (w *Encoder) Value(val constant.Value) { method scalar (line 354) | func (w *Encoder) scalar(val constant.Value) { method bigInt (line 380) | func (w *Encoder) bigInt(v *big.Int) { method bigFloat (line 386) | func (w *Encoder) bigFloat(v *big.Float) { method Version (line 392) | func (w *Encoder) Version() Version { return w.p.version } FILE: internal/pkgbits/flags.go constant flagSyncMarkers (line 8) | flagSyncMarkers = 1 << iota FILE: internal/pkgbits/pkgbits_test.go function TestRoundTrip (line 14) | func TestRoundTrip(t *testing.T) { function TestVersions (line 41) | func TestVersions(t *testing.T) { FILE: internal/pkgbits/reloc.go type RelocKind (line 8) | type RelocKind type Index (line 12) | type Index type RelocEnt (line 18) | type RelocEnt struct constant PublicRootIdx (line 25) | PublicRootIdx Index = 0 constant PrivateRootIdx (line 26) | PrivateRootIdx Index = 1 constant RelocString (line 30) | RelocString RelocKind = iota constant RelocMeta (line 31) | RelocMeta constant RelocPosBase (line 32) | RelocPosBase constant RelocPkg (line 33) | RelocPkg constant RelocName (line 34) | RelocName constant RelocType (line 35) | RelocType constant RelocObj (line 36) | RelocObj constant RelocObjExt (line 37) | RelocObjExt constant RelocObjDict (line 38) | RelocObjDict constant RelocBody (line 39) | RelocBody constant numRelocs (line 41) | numRelocs = iota FILE: internal/pkgbits/support.go function assert (line 9) | func assert(b bool) { function panicf (line 15) | func panicf(format string, args ...any) { FILE: internal/pkgbits/sync.go function fmtFrames (line 14) | func fmtFrames(pcs ...uintptr) []string { type frameVisitor (line 25) | type frameVisitor function walkFrames (line 30) | func walkFrames(pcs []uintptr, visit frameVisitor) { type SyncMarker (line 48) | type SyncMarker constant _ (line 53) | _ SyncMarker = iota constant SyncEOF (line 58) | SyncEOF constant SyncBool (line 59) | SyncBool constant SyncInt64 (line 60) | SyncInt64 constant SyncUint64 (line 61) | SyncUint64 constant SyncString (line 62) | SyncString constant SyncValue (line 63) | SyncValue constant SyncVal (line 64) | SyncVal constant SyncRelocs (line 65) | SyncRelocs constant SyncReloc (line 66) | SyncReloc constant SyncUseReloc (line 67) | SyncUseReloc constant SyncPublic (line 70) | SyncPublic constant SyncPos (line 71) | SyncPos constant SyncPosBase (line 72) | SyncPosBase constant SyncObject (line 73) | SyncObject constant SyncObject1 (line 74) | SyncObject1 constant SyncPkg (line 75) | SyncPkg constant SyncPkgDef (line 76) | SyncPkgDef constant SyncMethod (line 77) | SyncMethod constant SyncType (line 78) | SyncType constant SyncTypeIdx (line 79) | SyncTypeIdx constant SyncTypeParamNames (line 80) | SyncTypeParamNames constant SyncSignature (line 81) | SyncSignature constant SyncParams (line 82) | SyncParams constant SyncParam (line 83) | SyncParam constant SyncCodeObj (line 84) | SyncCodeObj constant SyncSym (line 85) | SyncSym constant SyncLocalIdent (line 86) | SyncLocalIdent constant SyncSelector (line 87) | SyncSelector constant SyncPrivate (line 90) | SyncPrivate constant SyncFuncExt (line 92) | SyncFuncExt constant SyncVarExt (line 93) | SyncVarExt constant SyncTypeExt (line 94) | SyncTypeExt constant SyncPragma (line 95) | SyncPragma constant SyncExprList (line 97) | SyncExprList constant SyncExprs (line 98) | SyncExprs constant SyncExpr (line 99) | SyncExpr constant SyncExprType (line 100) | SyncExprType constant SyncAssign (line 101) | SyncAssign constant SyncOp (line 102) | SyncOp constant SyncFuncLit (line 103) | SyncFuncLit constant SyncCompLit (line 104) | SyncCompLit constant SyncDecl (line 106) | SyncDecl constant SyncFuncBody (line 107) | SyncFuncBody constant SyncOpenScope (line 108) | SyncOpenScope constant SyncCloseScope (line 109) | SyncCloseScope constant SyncCloseAnotherScope (line 110) | SyncCloseAnotherScope constant SyncDeclNames (line 111) | SyncDeclNames constant SyncDeclName (line 112) | SyncDeclName constant SyncStmts (line 114) | SyncStmts constant SyncBlockStmt (line 115) | SyncBlockStmt constant SyncIfStmt (line 116) | SyncIfStmt constant SyncForStmt (line 117) | SyncForStmt constant SyncSwitchStmt (line 118) | SyncSwitchStmt constant SyncRangeStmt (line 119) | SyncRangeStmt constant SyncCaseClause (line 120) | SyncCaseClause constant SyncCommClause (line 121) | SyncCommClause constant SyncSelectStmt (line 122) | SyncSelectStmt constant SyncDecls (line 123) | SyncDecls constant SyncLabeledStmt (line 124) | SyncLabeledStmt constant SyncUseObjLocal (line 125) | SyncUseObjLocal constant SyncAddLocal (line 126) | SyncAddLocal constant SyncLinkname (line 127) | SyncLinkname constant SyncStmt1 (line 128) | SyncStmt1 constant SyncStmtsEnd (line 129) | SyncStmtsEnd constant SyncLabel (line 130) | SyncLabel constant SyncOptLabel (line 131) | SyncOptLabel constant SyncMultiExpr (line 133) | SyncMultiExpr constant SyncRType (line 134) | SyncRType constant SyncConvRTTI (line 135) | SyncConvRTTI FILE: internal/pkgbits/syncmarker_string.go function _ (line 7) | func _() { constant _SyncMarker_name (line 82) | _SyncMarker_name = "EOFBoolInt64Uint64StringValueValRelocsRelocUseRelocP... method String (line 86) | func (i SyncMarker) String() string { FILE: internal/pkgbits/version.go type Version (line 12) | type Version method Has (line 93) | func (v Version) Has(f Field) bool { constant V0 (line 19) | V0 Version = iota constant V1 (line 22) | V1 constant V2 (line 29) | V2 constant V3 (line 35) | V3 constant numVersions (line 37) | numVersions = iota type Field (line 48) | type Field constant Flags (line 53) | Flags Field = iota constant HasInit (line 57) | HasInit constant DerivedFuncInstance (line 61) | DerivedFuncInstance constant AliasTypeParamNames (line 64) | AliasTypeParamNames constant DerivedInfoNeeded (line 68) | DerivedInfoNeeded constant CompactCompLiterals (line 71) | CompactCompLiterals constant numFields (line 73) | numFields = iota FILE: internal/pprof/main.go function main (line 21) | func main() { FILE: internal/pprof/pprof.go function TotalTime (line 16) | func TotalTime(data []byte) (total time.Duration, err error) { constant wireVarint (line 31) | wireVarint = 0 constant wireBytes (line 32) | wireBytes = 2 constant fldProfileSample (line 37) | fldProfileSample = 2 constant fldSampleValue (line 38) | fldSampleValue = 2 constant msgProfile (line 43) | msgProfile = 0 constant msgSample (line 44) | msgSample = 1 function decode (line 47) | func decode(total *time.Duration, data []byte, msg int) { function varint (line 80) | func varint(data *[]byte) (v uint64) { FILE: internal/pprof/pprof_test.go function TestTotalTime (line 19) | func TestTotalTime(t *testing.T) { FILE: internal/proxydir/proxydir.go function WriteModuleVersion (line 20) | func WriteModuleVersion(rootDir, module, ver string, files map[string][]... function checkClose (line 75) | func checkClose(name string, closer io.Closer, err *error) { function ToURL (line 82) | func ToURL(dir string) string { FILE: internal/proxydir/proxydir_test.go function TestWriteModuleVersion (line 17) | func TestWriteModuleVersion(t *testing.T) { FILE: internal/refactor/delete.go function DeleteVar (line 34) | func DeleteVar(tokFile *token.File, info *types.Info, curId inspector.Cu... function deleteVarFromValueSpec (line 54) | func deleteVarFromValueSpec(tokFile *token.File, info *types.Info, curId... function deleteVarFromAssignStmt (line 153) | func deleteVarFromAssignStmt(tokFile *token.File, info *types.Info, curI... function DeleteSpec (line 248) | func DeleteSpec(tokFile *token.File, curSpec inspector.Cursor) []Edit { function DeleteDecl (line 288) | func DeleteDecl(tokFile *token.File, curDecl inspector.Cursor) []Edit { function filterPos (line 334) | func filterPos(nds []*ast.Comment, start, end token.Pos) (token.Pos, tok... function DeleteStmt (line 368) | func DeleteStmt(file *token.File, curStmt inspector.Cursor) []Edit { function DeleteUnusedVars (line 524) | func DeleteUnusedVars(index *typeindex.Index, info *types.Info, tokFile ... function eolComment (line 552) | func eolComment(n ast.Node) *ast.CommentGroup { FILE: internal/refactor/delete_test.go function TestDeleteStmt (line 23) | func TestDeleteStmt(t *testing.T) { function TestDeleteVar (line 266) | func TestDeleteVar(t *testing.T) { FILE: internal/refactor/imports.go function AddImport (line 37) | func AddImport(info *types.Info, file *ast.File, preferredName, pkgpath,... function AddImportEdits (line 95) | func AddImportEdits(file *ast.File, name, pkgpath string) []Edit { FILE: internal/refactor/imports_test.go function TestAddImport (line 23) | func TestAddImport(t *testing.T) { FILE: internal/refactor/inline/callee.go type Callee (line 26) | type Callee struct method String (line 30) | func (callee *Callee) String() string { return callee.impl.Name } method GobEncode (line 915) | func (callee *Callee) GobEncode() ([]byte, error) { method GobDecode (line 923) | func (callee *Callee) GobDecode(data []byte) error { type gobCallee (line 32) | type gobCallee struct type returnOperandFlags (line 57) | type returnOperandFlags constant nonTrivialResult (line 60) | nonTrivialResult returnOperandFlags = 1 << iota constant untypedNilResult (line 61) | untypedNilResult type freeRef (line 66) | type freeRef struct type object (line 72) | type object struct function AnalyzeCallee (line 95) | func AnalyzeCallee(logf func(string, ...any), fset *token.FileSet, pkg *... function parseCompact (line 383) | func parseCompact(content []byte) (*token.FileSet, *ast.FuncDecl, error) { type paramInfo (line 394) | type paramInfo struct type refInfo (line 406) | type refInfo struct function analyzeParams (line 425) | func analyzeParams(logf func(string, ...any), fset *token.FileSet, info ... function analyzeTypeParams (line 514) | func analyzeTypeParams(_ logger, fset *token.FileSet, info *types.Info, ... function signature (line 550) | func signature(fset *token.FileSet, info *types.Info, decl *ast.FuncDecl... function analyzeAssignment (line 583) | func analyzeAssignment(info *types.Info, stack []ast.Node) (assignable, ... function paramTypeAtIndex (line 784) | func paramTypeAtIndex(sig *types.Signature, call *ast.CallExpr, index in... function exprContext (line 800) | func exprContext(stack []ast.Node) (remaining []ast.Node, parent ast.Nod... function isSelectionOperand (line 823) | func isSelectionOperand(stack []ast.Node) bool { type shadowMap (line 851) | type shadowMap method add (line 860) | func (s shadowMap) add(info *types.Info, paramIndexes map[types.Object... function fieldObjs (line 884) | func fieldObjs(sig *types.Signature) map[types.Object]int { function isField (line 894) | func isField(obj types.Object) bool { function isMethod (line 901) | func isMethod(obj types.Object) bool { FILE: internal/refactor/inline/calleefx.go constant rinf (line 18) | rinf = -1 constant winf (line 19) | winf = -2 function calleefx (line 47) | func calleefx(info *types.Info, body *ast.BlockStmt, paramInfos map[*typ... FILE: internal/refactor/inline/calleefx_test.go function TestCalleeEffects (line 19) | func TestCalleeEffects(t *testing.T) { FILE: internal/refactor/inline/escape.go function escape (line 19) | func escape(info *types.Info, root ast.Node, f func(v *types.Var, escape... FILE: internal/refactor/inline/everything_test.go function TestEverything (line 50) | func TestEverything(t *testing.T) { type importerFunc (line 240) | type importerFunc method Import (line 242) | func (f importerFunc) Import(path string) (*types.Package, error) { FILE: internal/refactor/inline/export_test.go method Effects (line 9) | func (callee *Callee) Effects() []int { return callee.impl.Effects } FILE: internal/refactor/inline/falcon.go type falconResult (line 24) | type falconResult struct type falconType (line 38) | type falconType struct function falcon (line 114) | func falcon(logf func(string, ...any), fset *token.FileSet, params map[*... type falconState (line 138) | type falconState struct method typename (line 169) | func (st *falconState) typename(t types.Type) string { method emit (line 194) | func (st *falconState) emit(constraint ast.Expr) { method emitNonNegative (line 206) | func (st *falconState) emitNonNegative(index ast.Expr) { method emitMonotonic (line 219) | func (st *falconState) emitMonotonic(i, j ast.Expr) { method emitUnique (line 235) | func (st *falconState) emitUnique(typ ast.Expr, elems []ast.Expr) { method stmt (line 264) | func (st *falconState) stmt(s ast.Stmt) { method fieldTypes (line 337) | func (st *falconState) fieldTypes(fields *ast.FieldList) { method expr (line 378) | func (st *falconState) expr(e ast.Expr) (res any) { // = types.TypeAnd... method toExpr (line 792) | func (st *falconState) toExpr(x any) ast.Expr { function makeLiteral (line 816) | func makeLiteral(v constant.Value) ast.Expr { function makeIntLit (line 869) | func makeIntLit(x int64) *ast.BasicLit { function isBasic (line 876) | func isBasic(t types.Type, info types.BasicInfo) bool { FILE: internal/refactor/inline/falcon_test.go function TestFalconStringIndex (line 12) | func TestFalconStringIndex(t *testing.T) { function TestFalconSliceIndices (line 65) | func TestFalconSliceIndices(t *testing.T) { function TestFalconMapKeys (line 94) | func TestFalconMapKeys(t *testing.T) { function TestFalconSwitchCases (line 180) | func TestFalconSwitchCases(t *testing.T) { function TestFalconDivision (line 230) | func TestFalconDivision(t *testing.T) { function TestFalconMinusMinInt (line 283) | func TestFalconMinusMinInt(t *testing.T) { function TestFalconArithmeticOverflow (line 303) | func TestFalconArithmeticOverflow(t *testing.T) { function TestFalconComplex (line 338) | func TestFalconComplex(t *testing.T) { function TestFalconMisc (line 362) | func TestFalconMisc(t *testing.T) { FILE: internal/refactor/inline/inline.go type Caller (line 36) | type Caller struct method lookup (line 2394) | func (caller *Caller) lookup(name string) types.Object { type Options (line 55) | type Options struct type Result (line 61) | type Result struct function Inline (line 71) | func Inline(caller *Caller, callee *Callee, opts *Options) (*Result, err... type state (line 88) | type state struct method inline (line 94) | func (st *state) inline() (*Result, error) { method inlineCall (line 559) | func (st *state) inlineCall() (*inlineCallResult, error) { method renameFreeObjs (line 1223) | func (st *state) renameFreeObjs(istate *importState) ([]ast.Expr, erro... method typeArguments (line 1323) | func (st *state) typeArguments(call *ast.CallExpr) []*argument { method arguments (line 1381) | func (st *state) arguments(caller *Caller, calleeDecl *ast.FuncDecl, a... method effects (line 2440) | func (st *state) effects(info *types.Info, expr ast.Expr) bool { method assignStmts (line 3223) | func (st *state) assignStmts(callerStmt *ast.AssignStmt, returnOperand... type oldImport (line 327) | type oldImport struct type newImport (line 333) | type newImport struct type importState (line 340) | type importState struct method importName (line 422) | func (i *importState) importName(pkgPath string, shadow shadowMap) str... method findNewLocalName (line 440) | func (i *importState) findNewLocalName(pkgName, calleePkgName string, ... method localName (line 479) | func (i *importState) localName(pkgPath, pkgName, calleePkgName string... function newImportState (line 349) | func newImportState(logf func(string, ...any), caller *Caller, callee *g... type inlineCallResult (line 498) | type inlineCallResult struct type argument (line 1307) | type argument struct type parameter (line 1502) | type parameter struct function substituteTypeParams (line 1517) | func substituteTypeParams(logf logger, typeParams []*paramInfo, typeArgs... function identsNamed (line 1547) | func identsNamed(n ast.Node, name string) []*ast.Ident { function substitute (line 1577) | func substitute(logf logger, caller *Caller, params []*parameter, args [... function isConversion (line 1870) | func isConversion(info *types.Info, call *ast.CallExpr) (types.Type, boo... function isNonTypeParamInterface (line 1879) | func isNonTypeParamInterface(t types.Type) bool { function isUsedOutsideCall (line 1885) | func isUsedOutsideCall(caller *Caller, v *types.Var) bool { function checkFalconConstraints (line 1920) | func checkFalconConstraints(logf logger, params []*parameter, args []*ar... function resolveEffects (line 2022) | func resolveEffects(logf logger, args []*argument, effects []int, sg sub... type substGraph (line 2094) | type substGraph method has (line 2097) | func (g substGraph) has(arg *argument) bool { method remove (line 2109) | func (g substGraph) remove(arg *argument) bool { method prune (line 2117) | func (g substGraph) prune() { function updateCalleeParams (line 2163) | func updateCalleeParams(calleeDecl *ast.FuncDecl, params []*parameter) { type bindingDeclInfo (line 2224) | type bindingDeclInfo struct function createBindingDecl (line 2268) | func createBindingDecl(logf logger, caller *Caller, args []*argument, ca... function scopeFor (line 2406) | func scopeFor(info *types.Info, n ast.Node) *types.Scope { function freeVars (line 2423) | func freeVars(info *types.Info, e ast.Expr) map[string]bool { function pure (line 2499) | func pure(info *types.Info, assign1 func(*types.Var) bool, e ast.Expr) b... function duplicable (line 2637) | func duplicable(info *types.Info, e ast.Expr) bool { function consteq (line 2714) | func consteq(x, y constant.Value) bool { function assert (line 2727) | func assert(cond bool, msg string) { function blanks (line 2734) | func blanks[E ast.Expr](n int) []E { function makeIdent (line 2745) | func makeIdent(name string) *ast.Ident { function importedPkgName (line 2751) | func importedPkgName(info *types.Info, imp *ast.ImportSpec) (*types.PkgN... function isPkgLevel (line 2762) | func isPkgLevel(obj types.Object) bool { function callContext (line 2771) | func callContext(callPath []ast.Node) (parent, grandparent ast.Node) { function hasLabelConflict (line 2788) | func hasLabelConflict(callPath []ast.Node, calleeLabels []string) bool { function callerLabels (line 2800) | func callerLabels(callPath []ast.Node) map[string]bool { function callerFunc (line 2828) | func callerFunc(callPath []ast.Node) ast.Node { function callStmt (line 2845) | func callStmt(callPath []ast.Node, unrestricted bool) *ast.ExprStmt { function replaceNode (line 2910) | func replaceNode(root ast.Node, from, to ast.Node) { function cleanNode (line 3006) | func cleanNode[T ast.Node](node T) T { function cleanNodes (line 3012) | func cleanNodes[T ast.Node](nodes []T) []T { function clearPositions (line 3031) | func clearPositions(root ast.Node) { function findIdent (line 3063) | func findIdent(root ast.Node, pos token.Pos) ([]ast.Node, *ast.Ident) { function prepend (line 3093) | func prepend[T any](elem T, slice ...T) []T { function debugFormatNode (line 3099) | func debugFormatNode(fset *token.FileSet, n ast.Node) string { function shallowCopy (line 3107) | func shallowCopy[T any](ptr *T) *T { function forall (line 3113) | func forall[T any](list []T, f func(i int, x T) bool) bool { function exists (line 3123) | func exists[T any](list []T, f func(i int, x T) bool) bool { function last (line 3133) | func last[T any](slice []T) T { function declares (line 3144) | func declares(stmts []ast.Stmt) map[string]bool { function tailCallSafeReturn (line 3510) | func tailCallSafeReturn(caller *Caller, calleeSymbol *types.Func, callee... function hasNonTrivialReturn (line 3541) | func hasNonTrivialReturn(returnInfo [][]returnOperandFlags) bool { type unit (line 3552) | type unit struct FILE: internal/refactor/inline/inline_test.go function TestData (line 61) | func TestData(t *testing.T) { function doInlineNote (line 189) | func doInlineNote(logf func(string, ...any), pkg *packages.Package, file... function findFuncByPosition (line 341) | func findFuncByPosition(pkg *packages.Package, posn token.Position) (*as... constant funcName (line 366) | funcName = "f" type testcase (line 377) | type testcase struct function TestErrors (line 383) | func TestErrors(t *testing.T) { function TestBasics (line 406) | func TestBasics(t *testing.T) { function TestDuplicable (line 472) | func TestDuplicable(t *testing.T) { function TestExprStmtReduction (line 640) | func TestExprStmtReduction(t *testing.T) { function TestPrecedenceParens (line 723) | func TestPrecedenceParens(t *testing.T) { function TestSubstitution (line 768) | func TestSubstitution(t *testing.T) { function TestTailCallStrategy (line 836) | func TestTailCallStrategy(t *testing.T) { function TestSpreadCalls (line 878) | func TestSpreadCalls(t *testing.T) { function TestAssignmentCallStrategy (line 917) | func TestAssignmentCallStrategy(t *testing.T) { function TestVariadic (line 1081) | func TestVariadic(t *testing.T) { function TestParameterBindingDecl (line 1140) | func TestParameterBindingDecl(t *testing.T) { function TestEmbeddedFields (line 1218) | func TestEmbeddedFields(t *testing.T) { function TestSubstitutionGroups (line 1283) | func TestSubstitutionGroups(t *testing.T) { function TestSubstitutionPreservesArgumentEffectOrder (line 1337) | func TestSubstitutionPreservesArgumentEffectOrder(t *testing.T) { function TestNamedResultVars (line 1483) | func TestNamedResultVars(t *testing.T) { function TestSubstitutionPreservesParameterType (line 1555) | func TestSubstitutionPreservesParameterType(t *testing.T) { function TestRedundantConversions (line 1626) | func TestRedundantConversions(t *testing.T) { function runTests (line 1825) | func runTests(t *testing.T, tests []testcase) { function checkNoMutation (line 1991) | func checkNoMutation(file *ast.File) func() { function checkTranscode (line 2003) | func checkTranscode(callee *inline.Callee) error { function deepHash (line 2024) | func deepHash(n ast.Node) any { function TestDeepHash (line 2104) | func TestDeepHash(t *testing.T) { function applyEdits (line 2127) | func applyEdits(pkg *types.Package, fileStart token.Pos, content []byte,... FILE: internal/refactor/inline/util.go function is (line 20) | func is[T any](x any) bool { function btoi (line 25) | func btoi(b bool) int { function offsetOf (line 33) | func offsetOf(fset *token.FileSet, pos token.Pos) int { function objectKind (line 38) | func objectKind(obj types.Object) string { function within (line 43) | func within(pos token.Pos, n ast.Node) bool { function trivialConversion (line 71) | func trivialConversion(fromValue constant.Value, from, to types.Type) bo... function checkInfoFields (line 93) | func checkInfoFields(info *types.Info) { function intersects (line 104) | func intersects[K comparable, T1, T2 any](x map[K]T1, y map[K]T2) bool { function convert (line 117) | func convert(T, x ast.Expr) *ast.CallExpr { function isPointer (line 131) | func isPointer(t types.Type) bool { function indirectSelection (line 136) | func indirectSelection(seln *types.Selection) bool { function effectiveReceiver (line 156) | func effectiveReceiver(seln *types.Selection) (types.Type, bool) { FILE: internal/refactor/refactor.go function FreshName (line 23) | func FreshName(scope *types.Scope, pos token.Pos, preferred string) stri... FILE: internal/robustio/copyfiles.go function main (line 27) | func main() { function addPlusBuildConstraints (line 88) | func addPlusBuildConstraints(src []byte) []byte { FILE: internal/robustio/gopls_windows.go constant ERROR_SHARING_VIOLATION (line 16) | ERROR_SHARING_VIOLATION syscall.Errno = 32 FILE: internal/robustio/robustio.go function Rename (line 23) | func Rename(oldpath, newpath string) error { function ReadFile (line 31) | func ReadFile(filename string) ([]byte, error) { function RemoveAll (line 39) | func RemoveAll(path string) error { function IsEphemeralError (line 53) | func IsEphemeralError(err error) bool { type FileID (line 62) | type FileID struct function GetFileID (line 69) | func GetFileID(filename string) (FileID, time.Time, error) { return getF... FILE: internal/robustio/robustio_darwin.go constant errFileNotFound (line 12) | errFileNotFound = syscall.ENOENT function isEphemeralError (line 15) | func isEphemeralError(err error) bool { FILE: internal/robustio/robustio_flaky.go constant arbitraryTimeout (line 17) | arbitraryTimeout = 2000 * time.Millisecond function retry (line 21) | func retry(f func() (err error, mayRetry bool)) error { function rename (line 65) | func rename(oldpath, newpath string) (err error) { function readFile (line 73) | func readFile(filename string) ([]byte, error) { function removeAll (line 86) | func removeAll(path string) error { FILE: internal/robustio/robustio_other.go function rename (line 13) | func rename(oldpath, newpath string) error { function readFile (line 17) | func readFile(filename string) ([]byte, error) { function removeAll (line 21) | func removeAll(path string) error { function isEphemeralError (line 25) | func isEphemeralError(err error) bool { FILE: internal/robustio/robustio_plan9.go function getFileID (line 15) | func getFileID(filename string) (FileID, time.Time, error) { FILE: internal/robustio/robustio_posix.go function getFileID (line 15) | func getFileID(filename string) (FileID, time.Time, error) { FILE: internal/robustio/robustio_test.go function checkOSLink (line 17) | func checkOSLink(t *testing.T, err error) { function TestFileInfo (line 32) | func TestFileInfo(t *testing.T) { FILE: internal/robustio/robustio_windows.go constant errFileNotFound (line 13) | errFileNotFound = syscall.ERROR_FILE_NOT_FOUND function isEphemeralError (line 16) | func isEphemeralError(err error) bool { function getFileID (line 32) | func getFileID(filename string) (FileID, time.Time, error) { FILE: internal/stdlib/deps.go type pkginfo (line 9) | type pkginfo struct constant BootstrapVersion (line 527) | BootstrapVersion = Version(24) FILE: internal/stdlib/deps_test.go function TestImports (line 19) | func TestImports(t *testing.T) { testDepsFunc(t, "testdata/nethttp.impor... function TestDeps (line 20) | func TestDeps(t *testing.T) { testDepsFunc(t, "testdata/nethttp.deps"... function testDepsFunc (line 24) | func testDepsFunc(t *testing.T, filename string, depsFunc func(pkgs ...s... function TestIsBootstrapPackage (line 38) | func TestIsBootstrapPackage(t *testing.T) { FILE: internal/stdlib/generate.go function main (line 42) | func main() { function manifest (line 52) | func manifest(apidir string) { function apidir (line 269) | func apidir() string { type symInfo (line 289) | type symInfo struct function loadSymbols (line 298) | func loadSymbols(pkg string, extraEnv ...string) map[string]symInfo { function exportedSymbols (line 311) | func exportedSymbols(pkg *types.Package) map[string]symInfo { function sortedKeys (line 335) | func sortedKeys[M ~map[K]V, K cmp.Ordered, V any](m M) []K { function removeTypeParam (line 344) | func removeTypeParam(s string) string { function deps (line 355) | func deps() { function bootstrap (line 479) | func bootstrap() ([]string, string) { function runGo (line 551) | func runGo(args ...string) *bytes.Buffer { FILE: internal/stdlib/import.go function Imports (line 26) | func Imports(pkgs ...string) iter.Seq[string] { function Dependencies (line 51) | func Dependencies(pkgs ...string) iter.Seq[string] { function find (line 85) | func find(pkg string) (int, bool) { function IsBootstrapPackage (line 95) | func IsBootstrapPackage(pkg string) bool { FILE: internal/stdlib/stdlib.go type Symbol (line 17) | type Symbol struct method SplitField (line 82) | func (sym *Symbol) SplitField() (typename, name string) { method SplitMethod (line 94) | func (sym *Symbol) SplitMethod() (ptr bool, recv, name string) { type Kind (line 33) | type Kind method String (line 45) | func (kind Kind) String() string { constant Invalid (line 36) | Invalid Kind = iota constant Type (line 37) | Type constant Func (line 38) | Func constant Var (line 39) | Var constant Const (line 40) | Const constant Field (line 41) | Field constant Method (line 42) | Method type Version (line 58) | type Version method String (line 61) | func (v Version) String() string { return versions[v] } function init (line 65) | func init() { function HasPackage (line 73) | func HasPackage(path string) bool { FILE: internal/testenv/exec.go function HasExec (line 22) | func HasExec() bool { function NeedsExec (line 82) | func NeedsExec(t testing.TB) { function CommandContext (line 96) | func CommandContext(t testing.TB, ctx context.Context, name string, args... function Command (line 189) | func Command(t testing.TB, name string, args ...string) *exec.Cmd { FILE: internal/testenv/testenv.go function packageMainIsDevel (line 32) | func packageMainIsDevel() bool { function HasTool (line 54) | func HasTool(tool string) error { function cgoEnabled (line 152) | func cgoEnabled(bypassEnvironment bool) (bool, error) { function allowMissingTool (line 168) | func allowMissingTool(tool string) bool { function NeedsTool (line 210) | func NeedsTool(t testing.TB, tool string) { function NeedsGoPackages (line 232) | func NeedsGoPackages(t testing.TB) { function NeedsGoPackagesEnv (line 253) | func NeedsGoPackagesEnv(t testing.TB, env []string) { function NeedsGoBuild (line 275) | func NeedsGoBuild(t testing.TB) { function NeedsDefaultImporter (line 286) | func NeedsDefaultImporter(t testing.TB) { function ExitIfSmallMachine (line 298) | func ExitIfSmallMachine() { function Go1Point (line 332) | func Go1Point() int { function NeedsGoCommand1Point (line 348) | func NeedsGoCommand1Point(t testing.TB, x int) { function goCommand1Point (line 366) | func goCommand1Point() (int, error) { function NeedsGo1Point (line 375) | func NeedsGo1Point(t testing.TB, x int) { function SkipAfterGoCommand1Point (line 387) | func SkipAfterGoCommand1Point(t testing.TB, x int) { function SkipAfterGo1Point (line 401) | func SkipAfterGo1Point(t testing.TB, x int) { function NeedsLocalhostNet (line 410) | func NeedsLocalhostNet(t testing.TB) { function Deadline (line 419) | func Deadline(t testing.TB) (time.Time, bool) { function findGOROOT (line 435) | func findGOROOT() (string, error) { function GOROOT (line 462) | func GOROOT(t testing.TB) string { function NeedsLocalXTools (line 476) | func NeedsLocalXTools(t testing.TB) { function NeedsGoExperiment (line 514) | func NeedsGoExperiment(t testing.TB, flag string) { function NeedsGOROOTDir (line 546) | func NeedsGOROOTDir(t *testing.T, dir string) { function RedirectStderr (line 558) | func RedirectStderr(t testing.TB) { FILE: internal/testfiles/testfiles.go function CopyToTmp (line 45) | func CopyToTmp(t testing.TB, src fs.FS, rename ...string) string { function ExtractTxtarFileToTmp (line 69) | func ExtractTxtarFileToTmp(t testing.TB, file string) string { function LoadPackages (line 86) | func LoadPackages(t testing.TB, ar *txtar.Archive, patterns ...string) [... FILE: internal/testfiles/testfiles_test.go function TestTestDir (line 21) | func TestTestDir(t *testing.T) { function TestTestDirErrors (line 56) | func TestTestDirErrors(t *testing.T) { type fatalIntercept (line 86) | type fatalIntercept struct method Fatalf (line 91) | func (i *fatalIntercept) Fatalf(format string, args ...any) { FILE: internal/tool/tool.go type Profile (line 43) | type Profile struct type Application (line 52) | type Application interface type SubCommand (line 71) | type SubCommand interface type commandLineError (line 77) | type commandLineError method Error (line 79) | func (e commandLineError) Error() string { return string(e) } function CommandLineErrorf (line 84) | func CommandLineErrorf(message string, args ...any) error { function Main (line 92) | func Main(ctx context.Context, app Application, args []string) { function Run (line 110) | func Run(ctx context.Context, s *flag.FlagSet, app Application, args []s... function addFlags (line 218) | func addFlags(f *flag.FlagSet, field reflect.StructField, value reflect.... function addFlag (line 264) | func addFlag(f *flag.FlagSet, value reflect.Value, flagName string, help... function resolve (line 289) | func resolve(v reflect.Value) reflect.Value { FILE: internal/typeparams/common.go function UnpackIndexExpr (line 30) | func UnpackIndexExpr(n ast.Node) (x ast.Expr, lbrack token.Pos, indices ... function PackIndexExpr (line 43) | func PackIndexExpr(x ast.Expr, lbrack token.Pos, indices []ast.Expr, rbr... function IsTypeParam (line 65) | func IsTypeParam(t types.Type) bool { FILE: internal/typeparams/common_test.go function TestGetIndexExprData (line 17) | func TestGetIndexExprData(t *testing.T) { function TestFuncOriginRecursive (line 42) | func TestFuncOriginRecursive(t *testing.T) { function TestFuncOriginUses (line 113) | func TestFuncOriginUses(t *testing.T) { function TestFuncOrigin60628 (line 164) | func TestFuncOrigin60628(t *testing.T) { FILE: internal/typeparams/copytermlist.go function main (line 27) | func main() { function doCopy (line 34) | func doCopy() error { FILE: internal/typeparams/coretype.go function CoreType (line 15) | func CoreType(T types.Type) types.Type { function NormalTerms (line 112) | func NormalTerms(T types.Type) ([]*types.Term, error) { function Deref (line 138) | func Deref(t types.Type) types.Type { function MustDeref (line 150) | func MustDeref(t types.Type) types.Type { FILE: internal/typeparams/coretype_test.go function TestCoreType (line 17) | func TestCoreType(t *testing.T) { FILE: internal/typeparams/free.go type Free (line 16) | type Free struct method Has (line 21) | func (w *Free) Has(typ types.Type) (res bool) { FILE: internal/typeparams/free_test.go function TestFree (line 17) | func TestFree(t *testing.T) { function TestFree124 (line 77) | func TestFree124(t *testing.T) { FILE: internal/typeparams/genericfeatures/features.go type Features (line 19) | type Features method String (line 44) | func (f Features) String() string { constant GenericTypeDecls (line 24) | GenericTypeDecls Features = 1 << iota constant GenericFuncDecls (line 28) | GenericFuncDecls constant EmbeddedTypeSets (line 33) | EmbeddedTypeSets constant TypeInstantiation (line 37) | TypeInstantiation constant FuncInstantiation (line 41) | FuncInstantiation function ForPackage (line 66) | func ForPackage(inspect *inspector.Inspector, info *types.Info) Features { FILE: internal/typeparams/normalize.go constant debug (line 17) | debug = false function StructuralTerms (line 63) | func StructuralTerms(tparam *types.TypeParam) ([]*types.Term, error) { function InterfaceTermSet (line 81) | func InterfaceTermSet(iface *types.Interface) ([]*types.Term, error) { function UnionTermSet (line 91) | func UnionTermSet(union *types.Union) ([]*types.Term, error) { function computeTermSet (line 95) | func computeTermSet(typ types.Type) ([]*types.Term, error) { type termSet (line 118) | type termSet struct function indentf (line 123) | func indentf(depth int, format string, args ...any) { function computeTermSetInternal (line 127) | func computeTermSetInternal(t types.Type, seen map[types.Type]*termSet, ... function under (line 214) | func under(t types.Type) types.Type { FILE: internal/typeparams/normalize_test.go function TestStructuralTerms (line 19) | func TestStructuralTerms(t *testing.T) { FILE: internal/typeparams/termlist.go type termlist (line 22) | type termlist method String (line 32) | func (xl termlist) String() string { method isEmpty (line 47) | func (xl termlist) isEmpty() bool { method isAll (line 60) | func (xl termlist) isAll() bool { method norm (line 73) | func (xl termlist) norm() termlist { method union (line 107) | func (xl termlist) union(yl termlist) termlist { method intersect (line 112) | func (xl termlist) intersect(yl termlist) termlist { method equal (line 131) | func (xl termlist) equal(yl termlist) bool { method includes (line 137) | func (xl termlist) includes(t types.Type) bool { method supersetOf (line 147) | func (xl termlist) supersetOf(y *term) bool { method subsetOf (line 157) | func (xl termlist) subsetOf(yl termlist) bool { constant termSep (line 29) | termSep = " | " FILE: internal/typeparams/typeterm.go type term (line 20) | type term struct method String (line 25) | func (x *term) String() string { method equal (line 39) | func (x *term) equal(y *term) bool { method union (line 53) | func (x *term) union(y *term) (_, _ *term) { method intersect (line 85) | func (x *term) intersect(y *term) *term { method includes (line 113) | func (x *term) includes(t types.Type) bool { method subsetOf (line 131) | func (x *term) subsetOf(y *term) bool { method disjoint (line 159) | func (x *term) disjoint(y *term) bool { FILE: internal/typesinternal/classify_call.go type CallKind (line 15) | type CallKind method String (line 33) | func (k CallKind) String() string { constant CallStatic (line 18) | CallStatic CallKind = iota constant CallInterface (line 19) | CallInterface constant CallDynamic (line 20) | CallDynamic constant CallBuiltin (line 21) | CallBuiltin constant CallConversion (line 22) | CallConversion function ClassifyCall (line 64) | func ClassifyCall(info *types.Info, call *ast.CallExpr) CallKind { function UsedIdent (line 129) | func UsedIdent(info *types.Info, e ast.Expr) *ast.Ident { function usedIdent (line 134) | func usedIdent(info *types.Info, e ast.Expr) *ast.Ident function interfaceMethod (line 137) | func interfaceMethod(f *types.Func) bool FILE: internal/typesinternal/classify_call_test.go function TestClassifyCallAndUsed (line 21) | func TestClassifyCallAndUsed(t *testing.T) { FILE: internal/typesinternal/element.go function ForEachElement (line 25) | func ForEachElement(rtypes *typeutil.Map, msets *typeutil.MethodSetCache... FILE: internal/typesinternal/element_test.go constant elementSrc (line 21) | elementSrc = ` function TestForEachElement (line 47) | func TestForEachElement(t *testing.T) { FILE: internal/typesinternal/errorcode.go type ErrorCode (line 9) | type ErrorCode constant InvalidSyntaxTree (line 36) | InvalidSyntaxTree ErrorCode = -1 constant _ (line 40) | _ ErrorCode = iota constant Test (line 43) | Test constant BlankPkgName (line 51) | BlankPkgName constant MismatchedPkgName (line 55) | MismatchedPkgName constant InvalidPkgUse (line 64) | InvalidPkgUse constant BadImportPath (line 69) | BadImportPath constant BrokenImport (line 75) | BrokenImport constant ImportCRenamed (line 82) | ImportCRenamed constant UnusedImport (line 90) | UnusedImport constant InvalidInitCycle (line 101) | InvalidInitCycle constant DuplicateDecl (line 110) | DuplicateDecl constant InvalidDeclCycle (line 122) | InvalidDeclCycle constant InvalidTypeCycle (line 131) | InvalidTypeCycle constant InvalidConstInit (line 141) | InvalidConstInit constant InvalidConstVal (line 151) | InvalidConstVal constant InvalidConstType (line 158) | InvalidConstType constant UntypedNilUse (line 167) | UntypedNilUse constant WrongAssignCount (line 175) | WrongAssignCount constant UnassignableOperand (line 185) | UnassignableOperand constant NoNewVar (line 195) | NoNewVar constant MultiValAssignOp (line 210) | MultiValAssignOp constant InvalidIfaceAssign (line 223) | InvalidIfaceAssign constant InvalidChanAssign (line 239) | InvalidChanAssign constant IncompatibleAssign (line 248) | IncompatibleAssign constant UnaddressableFieldAssign (line 258) | UnaddressableFieldAssign constant NotAType (line 269) | NotAType constant InvalidArrayLen (line 276) | InvalidArrayLen constant BlankIfaceMethod (line 288) | BlankIfaceMethod constant IncomparableMapKey (line 301) | IncomparableMapKey constant InvalidIfaceEmbed (line 314) | InvalidIfaceEmbed constant InvalidPtrEmbed (line 329) | InvalidPtrEmbed constant BadRecv (line 338) | BadRecv constant InvalidRecv (line 347) | InvalidRecv constant DuplicateFieldAndMethod (line 358) | DuplicateFieldAndMethod constant DuplicateMethod (line 367) | DuplicateMethod constant InvalidBlank (line 379) | InvalidBlank constant InvalidIota (line 386) | InvalidIota constant MissingInitBody (line 392) | MissingInitBody constant InvalidInitSig (line 399) | InvalidInitSig constant InvalidInitDecl (line 406) | InvalidInitDecl constant InvalidMainDecl (line 410) | InvalidMainDecl constant TooManyValues (line 423) | TooManyValues constant NotAnExpr (line 434) | NotAnExpr constant TruncatedFloat (line 443) | TruncatedFloat constant NumericOverflow (line 449) | NumericOverflow constant UndefinedOp (line 458) | UndefinedOp constant MismatchedTypes (line 467) | MismatchedTypes constant DivByZero (line 475) | DivByZero constant NonNumericIncDec (line 485) | NonNumericIncDec constant UnaddressableOperand (line 494) | UnaddressableOperand constant InvalidIndirection (line 502) | InvalidIndirection constant NonIndexableOperand (line 512) | NonIndexableOperand constant InvalidIndex (line 529) | InvalidIndex constant SwappedSliceIndices (line 536) | SwappedSliceIndices constant NonSliceableOperand (line 549) | NonSliceableOperand constant InvalidSliceExpr (line 557) | InvalidSliceExpr constant InvalidShiftCount (line 569) | InvalidShiftCount constant InvalidShiftOperand (line 576) | InvalidShiftOperand constant InvalidReceive (line 588) | InvalidReceive constant InvalidSend (line 598) | InvalidSend constant DuplicateLitKey (line 610) | DuplicateLitKey constant MissingLitKey (line 616) | MissingLitKey constant InvalidLitIndex (line 624) | InvalidLitIndex constant OversizeArrayLit (line 630) | OversizeArrayLit constant MixedStructLit (line 637) | MixedStructLit constant InvalidStructLit (line 644) | InvalidStructLit constant MissingLitField (line 651) | MissingLitField constant DuplicateLitField (line 658) | DuplicateLitField constant UnexportedLitField (line 662) | UnexportedLitField constant InvalidLitField (line 668) | InvalidLitField constant UntypedLit (line 679) | UntypedLit constant InvalidLit (line 689) | InvalidLit constant AmbiguousSelector (line 702) | AmbiguousSelector constant UndeclaredImportedName (line 711) | UndeclaredImportedName constant UnexportedName (line 720) | UnexportedName constant UndeclaredName (line 727) | UndeclaredName constant MissingFieldOrMethod (line 736) | MissingFieldOrMethod constant BadDotDotDotSyntax (line 745) | BadDotDotDotSyntax constant NonVariadicDotDotDot (line 761) | NonVariadicDotDotDot constant MisplacedDotDotDot (line 777) | MisplacedDotDotDot constant InvalidDotDotDotOperand (line 808) | InvalidDotDotDotOperand constant InvalidDotDotDot (line 816) | InvalidDotDotDot constant UncalledBuiltin (line 829) | UncalledBuiltin constant InvalidAppend (line 836) | InvalidAppend constant InvalidCap (line 847) | InvalidCap constant InvalidClose (line 857) | InvalidClose constant InvalidCopy (line 871) | InvalidCopy constant InvalidComplex (line 878) | InvalidComplex constant InvalidDelete (line 888) | InvalidDelete constant InvalidImag (line 895) | InvalidImag constant InvalidLen (line 906) | InvalidLen constant SwappedMakeArgs (line 913) | SwappedMakeArgs constant InvalidMake (line 922) | InvalidMake constant InvalidReal (line 929) | InvalidReal constant InvalidAssert (line 939) | InvalidAssert constant ImpossibleAssert (line 954) | ImpossibleAssert constant InvalidConversion (line 967) | InvalidConversion constant InvalidUntypedConversion (line 975) | InvalidUntypedConversion constant BadOffsetofSyntax (line 987) | BadOffsetofSyntax constant InvalidOffsetof (line 1015) | InvalidOffsetof constant UnusedExpr (line 1026) | UnusedExpr constant UnusedVar (line 1034) | UnusedVar constant MissingReturn (line 1041) | MissingReturn constant WrongResultCount (line 1050) | WrongResultCount constant OutOfScopeResult (line 1064) | OutOfScopeResult constant InvalidCond (line 1076) | InvalidCond constant InvalidPostDecl (line 1087) | InvalidPostDecl constant InvalidChanRange (line 1099) | InvalidChanRange constant InvalidIterVar (line 1110) | InvalidIterVar constant InvalidRangeExpr (line 1121) | InvalidRangeExpr constant MisplacedBreak (line 1132) | MisplacedBreak constant MisplacedContinue (line 1151) | MisplacedContinue constant MisplacedFallthrough (line 1166) | MisplacedFallthrough constant DuplicateCase (line 1180) | DuplicateCase constant DuplicateDefault (line 1196) | DuplicateDefault constant BadTypeKeyword (line 1207) | BadTypeKeyword constant InvalidTypeSwitch (line 1216) | InvalidTypeSwitch constant InvalidExprSwitch (line 1226) | InvalidExprSwitch constant InvalidSelectCase (line 1242) | InvalidSelectCase constant UndeclaredLabel (line 1252) | UndeclaredLabel constant DuplicateLabel (line 1262) | DuplicateLabel constant MisplacedLabel (line 1278) | MisplacedLabel constant UnusedLabel (line 1286) | UnusedLabel constant JumpOverDecl (line 1298) | JumpOverDecl constant JumpIntoBlock (line 1311) | JumpIntoBlock constant InvalidMethodExpr (line 1324) | InvalidMethodExpr constant WrongArgCount (line 1332) | WrongArgCount constant InvalidCall (line 1340) | InvalidCall constant UnusedResults (line 1353) | UnusedResults constant InvalidDefer (line 1363) | InvalidDefer constant InvalidGo (line 1373) | InvalidGo constant BadDecl (line 1380) | BadDecl constant RepeatedDecl (line 1389) | RepeatedDecl constant InvalidUnsafeAdd (line 1401) | InvalidUnsafeAdd constant InvalidUnsafeSlice (line 1430) | InvalidUnsafeSlice constant UnsupportedFeature (line 1438) | UnsupportedFeature constant NotAGenericType (line 1449) | NotAGenericType constant WrongTypeArgCount (line 1466) | WrongTypeArgCount constant CannotInferTypeArgs (line 1482) | CannotInferTypeArgs constant InvalidTypeArg (line 1491) | InvalidTypeArg constant InvalidInstanceCycle (line 1498) | InvalidInstanceCycle constant InvalidUnion (line 1507) | InvalidUnion constant MisplacedConstraintIface (line 1516) | MisplacedConstraintIface constant InvalidMethodTypeParams (line 1521) | InvalidMethodTypeParams constant MisplacedTypeParam (line 1531) | MisplacedTypeParam constant InvalidUnsafeSliceData (line 1542) | InvalidUnsafeSliceData constant InvalidUnsafeString (line 1554) | InvalidUnsafeString constant _ (line 1558) | _ FILE: internal/typesinternal/errorcode_string.go function _ (line 7) | func _() { constant _ErrorCode_name_0 (line 161) | _ErrorCode_name_0 = "InvalidSyntaxTree" constant _ErrorCode_name_1 (line 162) | _ErrorCode_name_1 = "TestBlankPkgNameMismatchedPkgNameInvalidPkgUseBadIm... method String (line 169) | func (i ErrorCode) String() string { FILE: internal/typesinternal/errorcode_test.go function TestErrorCodes (line 21) | func TestErrorCodes(t *testing.T) { function loadCodes (line 76) | func loadCodes(filepath string) (map[string]int64, error) { FILE: internal/typesinternal/fx.go function NoEffects (line 16) | func NoEffects(info *types.Info, expr ast.Expr) bool { function CallsPureBuiltin (line 77) | func CallsPureBuiltin(info *types.Info, call *ast.CallExpr) bool { FILE: internal/typesinternal/fx_test.go function TestNoEffects (line 17) | func TestNoEffects(t *testing.T) { FILE: internal/typesinternal/isnamed.go function IsTypeNamed (line 18) | func IsTypeNamed(t types.Type, pkgPath string, names ...string) bool { function IsPointerToNamed (line 32) | func IsPointerToNamed(t types.Type, pkgPath string, names ...string) bool { function IsFunctionNamed (line 46) | func IsFunctionNamed(obj types.Object, pkgPath string, names ...string) ... function IsMethodNamed (line 61) | func IsMethodNamed(obj types.Object, pkgPath string, typeName string, na... FILE: internal/typesinternal/qualifier.go function FileQualifier (line 26) | func FileQualifier(f *ast.File, pkg *types.Package) types.Qualifier { FILE: internal/typesinternal/recv.go function ReceiverNamed (line 17) | func ReceiverNamed(recv *types.Var) (isPtr bool, named *types.Named) { function Unpointer (line 39) | func Unpointer(t types.Type) types.Type { FILE: internal/typesinternal/toonew.go function TooNewStdSymbols (line 19) | func TooNewStdSymbols(pkg *types.Package, version string) map[types.Obje... FILE: internal/typesinternal/typeindex/typeindex.go function New (line 27) | func New(inspect *inspector.Inspector, pkg *types.Package, info *types.I... function objectOrigin (line 97) | func objectOrigin(obj types.Object) (types.Object, bool) { type Index (line 117) | type Index struct method Uses (line 148) | func (ix *Index) Uses(obj types.Object) iter.Seq[inspector.Cursor] { method Used (line 170) | func (ix *Index) Used(objs ...types.Object) bool { method Def (line 181) | func (ix *Index) Def(obj types.Object) (inspector.Cursor, bool) { method Package (line 188) | func (ix *Index) Package(path string) *types.Package { method Object (line 195) | func (ix *Index) Object(path, name string) types.Object { method Selection (line 204) | func (ix *Index) Selection(path, typename, name string) types.Object { method Calls (line 217) | func (ix *Index) Calls(callee types.Object) iter.Seq[inspector.Cursor] { type uses (line 136) | type uses struct FILE: internal/typesinternal/typeindex/typeindex_test.go function TestIndex (line 22) | func TestIndex(t *testing.T) { function loadNetHTTP (line 72) | func loadNetHTTP(tb testing.TB) *packages.Package { function BenchmarkIndex (line 81) | func BenchmarkIndex(b *testing.B) { function TestOrigin (line 165) | func TestOrigin(t *testing.T) { FILE: internal/typesinternal/types.go function SetUsesCgo (line 30) | func SetUsesCgo(conf *types.Config) bool { function ErrorCodeStartEnd (line 53) | func ErrorCodeStartEnd(err types.Error) (code ErrorCode, start, end toke... function NameRelativeTo (line 76) | func NameRelativeTo(pkg *types.Package) types.Qualifier { function TypeNameFor (line 96) | func TypeNameFor(t types.Type) *types.TypeName { type NamedOrAlias (line 126) | type NamedOrAlias interface function Origin (line 141) | func Origin(t NamedOrAlias) NamedOrAlias { function IsPackageLevel (line 152) | func IsPackageLevel(obj types.Object) bool { function NewTypesInfo (line 157) | func NewTypesInfo() *types.Info { function EnclosingScope (line 171) | func EnclosingScope(info *types.Info, cur inspector.Cursor) *types.Scope { function Imports (line 189) | func Imports(pkg *types.Package, path string) bool { FILE: internal/typesinternal/varkind.go constant PackageVar (line 14) | PackageVar = types.PackageVar constant LocalVar (line 15) | LocalVar = types.LocalVar constant RecvVar (line 16) | RecvVar = types.RecvVar constant ParamVar (line 17) | ParamVar = types.ParamVar constant ResultVar (line 18) | ResultVar = types.ResultVar constant FieldVar (line 19) | FieldVar = types.FieldVar function GetVarKind (line 22) | func GetVarKind(v *types.Var) VarKind { return v.Kind() } function SetVarKind (line 23) | func SetVarKind(v *types.Var, kind VarKind) { v.SetKind(kind) } FILE: internal/typesinternal/varkind_go124.go type VarKind (line 11) | type VarKind method String (line 23) | func (kind VarKind) String() string { constant _ (line 14) | _ VarKind = iota constant PackageVar (line 15) | PackageVar constant LocalVar (line 16) | LocalVar constant RecvVar (line 17) | RecvVar constant ParamVar (line 18) | ParamVar constant ResultVar (line 19) | ResultVar constant FieldVar (line 20) | FieldVar function GetVarKind (line 36) | func GetVarKind(v *types.Var) VarKind { return 0 } function SetVarKind (line 39) | func SetVarKind(v *types.Var, kind VarKind) {} FILE: internal/typesinternal/zerovalue.go function ZeroString (line 34) | func ZeroString(t types.Type, qual types.Qualifier) (_ string, isValid b... function ZeroExpr (line 127) | func ZeroExpr(t types.Type, qual types.Qualifier) (_ ast.Expr, isValid b... function TypeExpr (line 213) | func TypeExpr(t types.Type, qual types.Qualifier) ast.Expr { FILE: internal/typesinternal/zerovalue_test.go function TestZeroValue (line 21) | func TestZeroValue(t *testing.T) { FILE: internal/versions/features.go constant Go1_17 (line 12) | Go1_17 = "go1.17" constant Go1_18 (line 13) | Go1_18 = "go1.18" constant Go1_19 (line 14) | Go1_19 = "go1.19" constant Go1_20 (line 15) | Go1_20 = "go1.20" constant Go1_21 (line 16) | Go1_21 = "go1.21" constant Go1_22 (line 17) | Go1_22 = "go1.22" constant Go1_23 (line 18) | Go1_23 = "go1.23" constant Go1_24 (line 19) | Go1_24 = "go1.24" constant Go1_25 (line 20) | Go1_25 = "go1.25" constant Go1_26 (line 21) | Go1_26 = "go1.26" constant Future (line 26) | Future = "" function AtLeast (line 32) | func AtLeast(v, release string) bool { function Before (line 43) | func Before(v, release string) bool { FILE: internal/versions/gover.go type gover (line 18) | type gover struct function compare (line 31) | func compare(x, y string) int { function lang (line 54) | func lang(x string) string { function isValid (line 63) | func isValid(x string) bool { function parse (line 69) | func parse(x string) gover { function cutInt (line 144) | func cutInt(x string) (n, rest string, ok bool) { function cmpInt (line 157) | func cmpInt(x, y string) int { FILE: internal/versions/types.go function FileVersion (line 15) | func FileVersion(info *types.Info, file *ast.File) string { FILE: internal/versions/types_test.go function Test (line 43) | func Test(t *testing.T) { function TestToolchain122 (line 91) | func TestToolchain122(t *testing.T) { type fileTest (line 146) | type fileTest struct function testFiles (line 151) | func testFiles(t *testing.T, goversion string, pversion string, tests []... function TestTooNew (line 175) | func TestTooNew(t *testing.T) { function parse (line 204) | func parse(t *testing.T, fset *token.FileSet, name, src string) *ast.File { function typeCheck (line 212) | func typeCheck(fset *token.FileSet, files []*ast.File, goversion string)... FILE: internal/versions/versions.go function Lang (line 27) | func Lang(x string) string { function Compare (line 44) | func Compare(x, y string) int { return compare(stripGo(x), stripGo(y)) } function IsValid (line 47) | func IsValid(x string) bool { return isValid(stripGo(x)) } function stripGo (line 51) | func stripGo(v string) string { FILE: internal/versions/versions_test.go function TestIsValid (line 17) | func TestIsValid(t *testing.T) { function TestVersionComparisons (line 56) | func TestVersionComparisons(t *testing.T) { function TestLang (line 124) | func TestLang(t *testing.T) { function TestKnown (line 145) | func TestKnown(t *testing.T) { function TestAtLeast (line 162) | func TestAtLeast(t *testing.T) { function TestBefore (line 178) | func TestBefore(t *testing.T) { function TestFileVersions (line 194) | func TestFileVersions(t *testing.T) { FILE: internal/xcontext/xcontext.go function Detach (line 16) | func Detach(ctx context.Context) context.Context { return detachedContex... type detachedContext (line 18) | type detachedContext struct method Deadline (line 20) | func (v detachedContext) Deadline() (time.Time, bool) { return time.Ti... method Done (line 21) | func (v detachedContext) Done() <-chan struct{} { return nil } method Err (line 22) | func (v detachedContext) Err() error { return nil } method Value (line 23) | func (v detachedContext) Value(key any) any { return v.paren... FILE: playground/playground.go constant baseURL (line 20) | baseURL = "https://play.golang.org" function init (line 22) | func init() { function Proxy (line 35) | func Proxy() http.Handler { function bounce (line 39) | func bounce(w http.ResponseWriter, r *http.Request) { function passThru (line 49) | func passThru(w io.Writer, req *http.Request) error { function post (line 65) | func post(ctx context.Context, url, contentType string, body io.Reader) ... FILE: playground/socket/socket.go constant msgLimit (line 50) | msgLimit = 1000 constant msgDelay (line 53) | msgDelay = 10 * time.Millisecond type Message (line 59) | type Message struct type Options (line 67) | type Options struct function NewHandler (line 72) | func NewHandler(origin *url.URL) websocket.Server { function handshake (line 81) | func handshake(c *websocket.Config, req *http.Request) error { function socketHandler (line 104) | func socketHandler(c *websocket.Conn) { type process (line 161) | type process struct method end (line 205) | func (p *process) end(err error) { method Kill (line 310) | func (p *process) Kill() { method startProcess (line 335) | func (p *process) startProcess(path string, args []string, body string... method start (line 352) | func (p *process) start(body string, opt *Options) error { method cmd (line 433) | func (p *process) cmd(dir string, args ...string) *exec.Cmd { method naclCmd (line 447) | func (p *process) naclCmd(bin string) (*exec.Cmd, error) { function startProcess (line 170) | func startProcess(id, body string, dest chan<- *Message, opt *Options) *... type killer (line 219) | type killer interface function limiter (line 229) | func limiter(in <-chan *Message, p killer) <-chan *Message { function buffer (line 263) | func buffer(in <-chan *Message, timeAfter func(time.Duration) <-chan tim... function shebang (line 321) | func shebang(body string) (path string, args []string) { function isNacl (line 442) | func isNacl() bool { function packageName (line 482) | func packageName(body string) (string, error) { type messageWriter (line 493) | type messageWriter struct method Write (line 498) | func (w *messageWriter) Write(b []byte) (n int, err error) { function safeString (line 504) | func safeString(b []byte) string { FILE: playground/socket/socket_test.go function TestBuffer (line 12) | func TestBuffer(t *testing.T) { type killRecorder (line 47) | type killRecorder method Kill (line 49) | func (k killRecorder) Kill() { close(k) } function TestLimiter (line 51) | func TestLimiter(t *testing.T) { FILE: present/args.go function addrToByteRange (line 23) | func addrToByteRange(addr string, start int, data []byte) (lo, hi int, e... function addrNumber (line 123) | func addrNumber(data []byte, lo, hi int, dir byte, n int, charOffset boo... function addrRegexp (line 205) | func addrRegexp(data []byte, hi int, dir byte, pattern string) (int, int... FILE: present/caption.go function init (line 9) | func init() { type Caption (line 13) | type Caption struct method PresentCmd (line 18) | func (c Caption) PresentCmd() string { return c.Cmd } method TemplateName (line 19) | func (c Caption) TemplateName() string { return "caption" } function parseCaption (line 21) | func parseCaption(_ *Context, _ string, _ int, cmd string) (Elem, error) { FILE: present/code.go function init (line 31) | func init() { type Code (line 36) | type Code struct method PresentCmd (line 46) | func (c Code) PresentCmd() string { return c.Cmd } method TemplateName (line 47) | func (c Code) TemplateName() string { return "code" } function parseCode (line 63) | func parseCode(ctx *Context, sourceFile string, sourceLine int, cmd stri... function formatLines (line 149) | func formatLines(lines []codeLine, highlight string) []codeLine { function rawCode (line 169) | func rawCode(lines []codeLine) []byte { type codeTemplateData (line 178) | type codeTemplateData struct constant codeTemplateHTML (line 191) | codeTemplateHTML = ` type codeLine (line 204) | type codeLine struct function codeLines (line 213) | func codeLines(src []byte, start, end int) (lines []codeLine) { function parseArgs (line 241) | func parseArgs(name string, line int, args []string) (res []any, err err... FILE: present/code_test.go function TestParseCode (line 14) | func TestParseCode(t *testing.T) { FILE: present/html.go function init (line 14) | func init() { function parseHTML (line 18) | func parseHTML(ctx *Context, fileName string, lineno int, text string) (... type HTML (line 31) | type HTML struct method PresentCmd (line 36) | func (s HTML) PresentCmd() string { return s.Cmd } method TemplateName (line 37) | func (s HTML) TemplateName() string { return "html" } FILE: present/iframe.go function init (line 12) | func init() { type Iframe (line 16) | type Iframe struct method PresentCmd (line 23) | func (i Iframe) PresentCmd() string { return i.Cmd } method TemplateName (line 24) | func (i Iframe) TemplateName() string { return "iframe" } function parseIframe (line 26) | func parseIframe(ctx *Context, fileName string, lineno int, text string)... FILE: present/image.go function init (line 12) | func init() { type Image (line 16) | type Image struct method PresentCmd (line 23) | func (i Image) PresentCmd() string { return i.Cmd } method TemplateName (line 24) | func (i Image) TemplateName() string { return "image" } function parseImage (line 26) | func parseImage(ctx *Context, fileName string, lineno int, text string) ... FILE: present/link.go function init (line 14) | func init() { type Link (line 18) | type Link struct method PresentCmd (line 24) | func (l Link) PresentCmd() string { return l.Cmd } method TemplateName (line 25) | func (l Link) TemplateName() string { return "link" } function parseLink (line 27) | func parseLink(ctx *Context, fileName string, lineno int, text string) (... function renderLink (line 49) | func renderLink(href, text string) string { function parseInlineLink (line 68) | func parseInlineLink(s string) (link string, length int) { FILE: present/link_test.go function TestInlineParsing (line 9) | func TestInlineParsing(t *testing.T) { FILE: present/parse.go function Template (line 36) | func Template() *template.Template { type ParseFunc (line 61) | type ParseFunc function Register (line 66) | func Register(name string, parser ParseFunc) { type Doc (line 74) | type Doc struct method Render (line 41) | func (d *Doc) Render(w io.Writer, t *template.Template) error { type Author (line 87) | type Author struct method TextElem (line 94) | func (p *Author) TextElem() (elems []Elem) { type Section (line 106) | type Section struct method Render (line 52) | func (s *Section) Render(w io.Writer, t *template.Template) error { method HTMLAttributes (line 117) | func (s Section) HTMLAttributes() template.HTMLAttr { method Sections (line 134) | func (s Section) Sections() (sections []Section) { method Level (line 145) | func (s Section) Level() int { method FormattedNumber (line 151) | func (s Section) FormattedNumber() string { method TemplateName (line 159) | func (s Section) TemplateName() string { return "section" } type Elem (line 163) | type Elem interface function renderElem (line 169) | func renderElem(t *template.Template, e Elem) (template.HTML, error) { function pageNum (line 181) | func pageNum(s Section, offset int) int { function init (line 188) | func init() { function execTemplate (line 195) | func execTemplate(t *template.Template, name string, data any) (template... type Text (line 205) | type Text struct method TemplateName (line 211) | func (t Text) TemplateName() string { return "text" } type List (line 214) | type List struct method TemplateName (line 218) | func (l List) TemplateName() string { return "list" } type Lines (line 221) | type Lines struct method next (line 239) | func (l *Lines) next() (text string, ok bool) { method back (line 256) | func (l *Lines) back() { method nextNonEmpty (line 260) | func (l *Lines) nextNonEmpty() (text string, ok bool) { function readLines (line 227) | func readLines(r io.Reader) (*Lines, error) { type Context (line 274) | type Context struct method Parse (line 288) | func (ctx *Context) Parse(r io.Reader, name string, mode ParseMode) (*... type ParseMode (line 280) | type ParseMode constant TitlesOnly (line 284) | TitlesOnly ParseMode = 1 function Parse (line 347) | func Parse(r io.Reader, name string, mode ParseMode) (*Doc, error) { function lesserHeading (line 360) | func lesserHeading(isHeading *regexp.Regexp, text, prefix string) bool { function parseSections (line 366) | func parseSections(ctx *Context, name, prefix string, lines *Lines, numb... function parseHeader (line 560) | func parseHeader(doc *Doc, isMarkdown bool, lines *Lines) error { function parseAuthors (line 603) | func parseAuthors(name, sectionPrefix string, lines *Lines) (authors []A... function parseAuthorURL (line 668) | func parseAuthorURL(name, text string) Elem { function parseTime (line 677) | func parseTime(text string) (t time.Time, ok bool) { function isSpeakerNote (line 691) | func isSpeakerNote(s string) bool { function trimSpeakerNote (line 695) | func trimSpeakerNote(s string) string { function renderMarkdown (line 702) | func renderMarkdown(input []byte) (template.HTML, error) { function fixupMarkdown (line 714) | func fixupMarkdown(n ast.Node) { FILE: present/parse_test.go function TestTestdata (line 18) | func TestTestdata(t *testing.T) { function diff (line 64) | func diff(prefix string, name1 string, b1 []byte, name2 string, b2 []byt... function writeTempFile (line 97) | func writeTempFile(prefix string, data []byte) (string, error) { FILE: present/style.go function init (line 29) | func init() { function Style (line 35) | func Style(s string) template.HTML { function font (line 40) | func font(s string) string { function split (line 126) | func split(s string) []string { FILE: present/style_test.go function TestSplit (line 13) | func TestSplit(t *testing.T) { function TestFont (line 46) | func TestFont(t *testing.T) { function TestStyle (line 92) | func TestStyle(t *testing.T) { function ExampleStyle (line 120) | func ExampleStyle() { FILE: present/video.go function init (line 12) | func init() { type Video (line 16) | type Video struct method PresentCmd (line 24) | func (v Video) PresentCmd() string { return v.Cmd } method TemplateName (line 25) | func (v Video) TemplateName() string { return "video" } function parseVideo (line 27) | func parseVideo(ctx *Context, fileName string, lineno int, text string) ... FILE: refactor/eg/eg.go constant Help (line 22) | Help = ` type Transformer (line 141) | type Transformer struct function NewTransformer (line 162) | func NewTransformer(fset *token.FileSet, tmplPkg *types.Package, tmplFil... function WriteAST (line 284) | func WriteAST(fset *token.FileSet, filename string, f *ast.File) (err er... function funcSig (line 301) | func funcSig(pkg *types.Package, name string) *types.Signature { function soleExpr (line 309) | func soleExpr(fn *ast.FuncDecl) (ast.Expr, error) { function stmtAndExpr (line 331) | func stmtAndExpr(fn *ast.FuncDecl) ([]ast.Stmt, ast.Expr, error) { function mergeTypeInfo (line 358) | func mergeTypeInfo(dst, src *types.Info) { function astString (line 366) | func astString(fset *token.FileSet, n ast.Node) string { FILE: refactor/eg/eg_test.go function Test (line 43) | func Test(t *testing.T) { function normalizeAny (line 178) | func normalizeAny(s string) string { FILE: refactor/eg/match.go method matchExpr (line 28) | func (tr *Transformer) matchExpr(x, y ast.Expr) bool { method matchExprs (line 138) | func (tr *Transformer) matchExprs(xx, yy []ast.Expr) bool { method matchType (line 151) | func (tr *Transformer) matchType(x, y ast.Expr) bool { method wildcardObj (line 157) | func (tr *Transformer) wildcardObj(x ast.Expr) (*types.Var, bool) { method matchSelectorExpr (line 166) | func (tr *Transformer) matchSelectorExpr(x, y *ast.SelectorExpr) bool { method matchWildcard (line 179) | func (tr *Transformer) matchWildcard(xobj *types.Var, y ast.Expr) bool { function isRef (line 232) | func isRef(n ast.Node, info *types.Info) types.Object { FILE: refactor/eg/rewrite.go method transformItem (line 28) | func (tr *Transformer) transformItem(rv reflect.Value) (reflect.Value, b... method Transform (line 80) | func (tr *Transformer) Transform(info *types.Info, pkg *types.Package, f... function setValue (line 138) | func setValue(x, y reflect.Value) { method apply (line 175) | func (tr *Transformer) apply(f func(reflect.Value) (reflect.Value, bool,... method subst (line 255) | func (tr *Transformer) subst(env map[string]ast.Expr, pattern, pos refle... function rvToExpr (line 368) | func rvToExpr(rv reflect.Value) ast.Expr { function updateTypeInfo (line 379) | func updateTypeInfo(info *types.Info, new, old ast.Expr) { FILE: refactor/importgraph/graph.go type Graph (line 25) | type Graph method addEdge (line 27) | func (g Graph) addEdge(from, to string) { method Search (line 39) | func (g Graph) Search(roots ...string) map[string]bool { function Build (line 62) | func Build(ctxt *build.Context) (forward, reverse Graph, errors map[stri... FILE: refactor/importgraph/graph_test.go constant this (line 25) | this = "golang.org/x/tools/refactor/importgraph" function TestBuild (line 27) | func TestBuild(t *testing.T) { FILE: refactor/rename/check.go method errorf (line 22) | func (r *renamer) errorf(pos token.Pos, format string, args ...any) { method check (line 28) | func (r *renamer) check(from types.Object) { method checkInFileBlock (line 55) | func (r *renamer) checkInFileBlock(from *types.PkgName) { method checkInPackageBlock (line 89) | func (r *renamer) checkInPackageBlock(from types.Object) { method checkInLocalScope (line 149) | func (r *renamer) checkInLocalScope(from types.Object) { method checkInLexicalScope (line 211) | func (r *renamer) checkInLexicalScope(from types.Object, info *loader.Pa... function lexicalLookup (line 285) | func lexicalLookup(block *types.Scope, name string, pos token.Pos) (*typ... function deeper (line 300) | func deeper(x, y *types.Scope) bool { function forEachLexicalRef (line 314) | func forEachLexicalRef(info *loader.PackageInfo, obj types.Object, fn fu... function enclosingBlock (line 370) | func enclosingBlock(info *types.Info, stack []ast.Node) *types.Scope { method checkLabel (line 389) | func (r *renamer) checkLabel(label *types.Label) { method checkStructField (line 400) | func (r *renamer) checkStructField(from *types.Var) { type hasTypeName (line 473) | type hasTypeName interface method checkSelections (line 477) | func (r *renamer) checkSelections(from types.Object) { method selectionConflict (line 538) | func (r *renamer) selectionConflict(from types.Object, delta int, syntax... method checkMethod (line 572) | func (r *renamer) checkMethod(from *types.Func) { method checkExport (line 798) | func (r *renamer) checkExport(id *ast.Ident, pkg *types.Package, from ty... method satisfy (line 814) | func (r *renamer) satisfy() map[satisfy.Constraint]bool { function recv (line 829) | func recv(meth *types.Func) *types.Var { function someUse (line 834) | func someUse(info *loader.PackageInfo, obj types.Object) *ast.Ident { FILE: refactor/rename/mvpkg.go function Move (line 46) | func Move(ctxt *build.Context, from, to, moveTmpl string) error { function srcDir (line 120) | func srcDir(ctxt *build.Context, pkg string) (string, error) { function subpackages (line 132) | func subpackages(ctxt *build.Context, srcDir string, root string) map[st... type mover (line 161) | type mover struct method checkValid (line 182) | func (m *mover) checkValid() error { method move (line 227) | func (m *mover) move() error { function moveCmd (line 213) | func moveCmd(moveTmpl, fromDir, toDir string) (string, error) { function sameLine (line 359) | func sameLine(fset *token.FileSet, x, y token.Pos) bool { FILE: refactor/rename/mvpkg_test.go function TestErrors (line 21) | func TestErrors(t *testing.T) { function TestMoves (line 123) | func TestMoves(t *testing.T) { FILE: refactor/rename/rename.go constant Usage (line 39) | Usage = `gorename: precise type-safe renaming of identifiers in Go sourc... type renamer (line 163) | type renamer struct method update (line 456) | func (r *renamer) update() error { method docComment (line 545) | func (r *renamer) docComment(id *ast.Ident) *ast.CommentGroup { function importName (line 181) | func importName(iprog *loader.Program, info *loader.PackageInfo, fromPat... function Main (line 220) | func Main(ctxt *build.Context, offsetFlag, fromFlag, to string) error { function loadProgram (line 360) | func loadProgram(ctxt *build.Context, pkgs map[string]bool) (*loader.Pro... function containsHardErrors (line 419) | func containsHardErrors(errors []error) bool { function requiresGlobalRename (line 431) | func requiresGlobalRename(fromObjects []types.Object, to string) bool { function plural (line 573) | func plural(n int) string { function reallyWriteFile (line 583) | func reallyWriteFile(filename string, content []byte) error { function diff (line 587) | func diff(filename string, content []byte) error { FILE: refactor/rename/rename_test.go function TestConflicts (line 26) | func TestConflicts(t *testing.T) { function TestInvalidIdentifiers (line 421) | func TestInvalidIdentifiers(t *testing.T) { function TestRewrites (line 460) | func TestRewrites(t *testing.T) { function TestDiff (line 1354) | func TestDiff(t *testing.T) { function fakeContext (line 1439) | func fakeContext(pkgs map[string][]string) *build.Context { function main (line 1452) | func main(content string) *build.Context { FILE: refactor/rename/spec.go type spec (line 34) | type spec struct function parseFromFlag (line 71) | func parseFromFlag(ctxt *build.Context, fromFlag string) (*spec, error) { function parseObjectSpec (line 142) | func parseObjectSpec(spec *spec, main string) error { function parseImportPath (line 192) | func parseImportPath(e ast.Expr) string { function parseOffsetFlag (line 207) | func parseOffsetFlag(ctxt *build.Context, offsetFlag string) (*spec, err... function findFromObjects (line 268) | func findFromObjects(iprog *loader.Program, spec *spec) ([]types.Object,... function findFromObjectsInFile (line 308) | func findFromObjectsInFile(iprog *loader.Program, spec *spec) ([]types.O... function typeSwitchVar (line 395) | func typeSwitchVar(info *types.Info, path []ast.Node) types.Object { function findObjects (line 415) | func findObjects(info *loader.PackageInfo, spec *spec) ([]types.Object, ... function funcDecl (line 513) | func funcDecl(info *loader.PackageInfo, fn *types.Func) *ast.FuncDecl { function searchDefs (line 524) | func searchDefs(info *types.Info, name string) []types.Object { function identAtOffset (line 541) | func identAtOffset(fset *token.FileSet, f *ast.File, offset int) *ast.Id... function ambiguityError (line 556) | func ambiguityError(fset *token.FileSet, objects []types.Object) error { FILE: refactor/rename/util.go function objectKind (line 18) | func objectKind(obj types.Object) string { function isValidIdentifier (line 38) | func isValidIdentifier(id string) bool { function isLocal (line 52) | func isLocal(obj types.Object) bool { function isLetter (line 63) | func isLetter(ch rune) bool { function isDigit (line 67) | func isDigit(ch rune) bool { function sameFile (line 75) | func sameFile(x, y string) bool { function is (line 93) | func is[T any](x any) bool { FILE: refactor/satisfy/find.go type Constraint (line 54) | type Constraint struct type Finder (line 66) | type Finder struct method Find (line 84) | func (f *Finder) Find(info *types.Info, files []*ast.File) { method exprN (line 122) | func (f *Finder) exprN(e ast.Expr) types.Type { method call (line 152) | func (f *Finder) call(sig *types.Signature, args []ast.Expr) { method builtin (line 202) | func (f *Finder) builtin(obj *types.Builtin, sig *types.Signature, arg... method extract (line 236) | func (f *Finder) extract(tuple types.Type, i int) types.Type { method valueSpec (line 243) | func (f *Finder) valueSpec(spec *ast.ValueSpec) { method assign (line 275) | func (f *Finder) assign(lhs, rhs types.Type) { method typeAssert (line 295) | func (f *Finder) typeAssert(I, T types.Type) { method compare (line 316) | func (f *Finder) compare(x, y types.Type) { method expr (line 326) | func (f *Finder) expr(e ast.Expr) types.Type { method stmt (line 503) | func (f *Finder) stmt(s ast.Stmt) { function instance (line 716) | func instance(info *types.Info, expr ast.Expr) bool { FILE: refactor/satisfy/find_test.go function TestGenericCoreOperations (line 24) | func TestGenericCoreOperations(t *testing.T) { function TestNewExpr (line 211) | func TestNewExpr(t *testing.T) { function constraints (line 230) | func constraints(t *testing.T, src string) []string { FILE: txtar/archive.go type Archive (line 42) | type Archive struct type File (line 48) | type File struct function Format (line 57) | func Format(a *Archive) []byte { function ParseFile (line 68) | func ParseFile(file string) (*Archive, error) { function Parse (line 78) | func Parse(data []byte) *Archive { function findFileMarker (line 100) | func findFileMarker(data []byte) (before []byte, name string, after []by... function isMarker (line 117) | func isMarker(data []byte) (name string, after []byte) { function fixNL (line 135) | func fixNL(data []byte) []byte { FILE: txtar/archive_test.go function TestParse (line 14) | func TestParse(t *testing.T) { function TestFormat (line 87) | func TestFormat(t *testing.T) { function shortArchive (line 128) | func shortArchive(a *Archive) string { FILE: txtar/fs.go function FS (line 24) | func FS(a *Archive) (fs.FS, error) { constant readOnly (line 36) | readOnly fs.FileMode = 0o444 constant readOnlyDir (line 37) | readOnlyDir = readOnly | fs.ModeDir type filesystem (line 54) | type filesystem struct method Open (line 130) | func (fsys *filesystem) Open(name string) (fs.File, error) { method ReadFile (line 150) | func (fsys *filesystem) ReadFile(name string) ([]byte, error) { type node (line 60) | type node struct function initFiles (line 71) | func initFiles(fsys *filesystem) error { function insert (line 87) | func insert(fsys *filesystem, n *node) error { function directory (line 104) | func directory(fsys *filesystem, dir string) (*node, error) { function dataOf (line 118) | func dataOf(fsys *filesystem, n *node) ([]byte, error) { type fileinfo (line 162) | type fileinfo struct method Name (line 171) | func (i *fileinfo) Name() string { return path.Base(i.pa... method Size (line 172) | func (i *fileinfo) Size() int64 { return int64(i.size) } method Mode (line 173) | func (i *fileinfo) Mode() fs.FileMode { return i.mode } method Type (line 174) | func (i *fileinfo) Type() fs.FileMode { return i.mode.Type() } method ModTime (line 175) | func (i *fileinfo) ModTime() time.Time { return time.Time{} } method IsDir (line 176) | func (i *fileinfo) IsDir() bool { return i.mode&fs.Mode... method Sys (line 177) | func (i *fileinfo) Sys() any { return nil } method Info (line 178) | func (i *fileinfo) Info() (fs.FileInfo, error) { return i, nil } type openFile (line 181) | type openFile struct method Stat (line 189) | func (f *openFile) Stat() (fs.FileInfo, error) { return &f.fileinfo, n... method Close (line 190) | func (f *openFile) Close() error { return nil } method Read (line 191) | func (f *openFile) Read(b []byte) (int, error) { method Seek (line 203) | func (f *openFile) Seek(offset int64, whence int) (int64, error) { method ReadAt (line 219) | func (f *openFile) ReadAt(b []byte, offset int64) (int, error) { type openDir (line 231) | type openDir struct method Stat (line 239) | func (d *openDir) Stat() (fs.FileInfo, error) { return &d.fileinfo, nil } method Close (line 240) | func (d *openDir) Close() error { return nil } method Read (line 241) | func (d *openDir) Read(b []byte) (int, error) { method ReadDir (line 245) | func (d *openDir) ReadDir(count int) ([]fs.DirEntry, error) { FILE: txtar/fs_test.go function TestFS (line 16) | func TestFS(t *testing.T) { function TestInvalid (line 85) | func TestInvalid(t *testing.T) { function TestModified (line 124) | func TestModified(t *testing.T) { function TestReadFile (line 159) | func TestReadFile(t *testing.T) {