MCPcopy Create free account
hub / github.com/nsf/gocode / gc_bin_parser

Struct gc_bin_parser

package_bin.go:49–72  ·  view source on GitHub ↗

------------------------------------------------------------------------- gc_bin_parser The following part of the code may contain portions of the code from the Go standard library, which tells me to retain their copyright notice: Copyright (c) 2012 The Go Authors. All rights reserved. Redistribu

Source from the content-addressed store, hash-verified

47//-------------------------------------------------------------------------
48
49type gc_bin_parser struct {
50 data []byte
51 buf []byte // for reading strings
52 version int // export format version
53
54 // object lists
55 strList []string // in order of appearance
56 pathList []string // in order of appearance
57 pkgList []string // in order of appearance
58 typList []ast.Expr // in order of appearance
59 callback func(pkg string, decl ast.Decl)
60 pfc *package_file_cache
61 trackAllTypes bool
62
63 // position encoding
64 posInfoFormat bool
65 prevFile string
66 prevLine int
67
68 // debugging support
69 debugFormat bool
70 read int // bytes read
71
72}
73
74func (p *gc_bin_parser) init(data []byte, pfc *package_file_cache) {
75 p.data = data

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected