Debian Codegraph @

cmd/godex/gccgo.go

raw symbols SCIP
1 // Copyright 2014 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // This file implements access to gccgo-generated export data.
6
7 package mainscip-go gomod golang.org/x/tools . `golang.org/x/tools/cmd/godex`/
8
9 import (
10 "go/importerscip-go gomod github.com/golang/go/src go1.25.0 `go/importer`/"
11 "go/tokenscip-go gomod github.com/golang/go/src go1.25.0 `go/token`/"
12 "go/typesscip-go gomod github.com/golang/go/src go1.25.0 `go/types`/"
13 )
14
15 func initscip-go gomod golang.org/x/tools . `golang.org/x/tools/cmd/godex`/init().() {
16 registerscip-go gomod golang.org/x/tools . `golang.org/x/tools/cmd/godex`/register().("gccgo", importerscip-go gomod github.com/golang/go/src go1.25.0 `go/importer`/.ForCompilerscip-go gomod github.com/golang/go/src go1.25.0 `go/importer`/ForCompiler().(tokenscip-go gomod github.com/golang/go/src go1.25.0 `go/token`/.NewFileSetscip-go gomod github.com/golang/go/src go1.25.0 `go/token`/NewFileSet().(), "gccgo", nil))
17 }
18
19 // Print the extra gccgo compiler data for this package, if it exists.
20 func (p *printerscip-go gomod golang.org/x/tools . `golang.org/x/tools/cmd/godex`/printer#) printGccgoExtrascip-go gomod golang.org/x/tools . `golang.org/x/tools/cmd/godex`/printer#printGccgoExtra().(pkg *typesscip-go gomod github.com/golang/go/src go1.25.0 `go/types`/.Packagescip-go gomod github.com/golang/go/src go1.25.0 `go/types`/Package#) {
21 // Disabled for now.
22 // TODO(gri) address this at some point.
23
24 // if initdata, ok := initmap[pkg]; ok {
25 // p.printf("/*\npriority %d\n", initdata.Priority)
26
27 // p.printDecl("init", len(initdata.Inits), func() {
28 // for _, init := range initdata.Inits {
29 // p.printf("%s %s %d\n", init.Name, init.InitFunc, init.Priority)
30 // }
31 // })
32
33 // p.print("*/\n")
34 // }
35 }