------------------------------------------------------------------------- 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
| 47 | //------------------------------------------------------------------------- |
| 48 | |
| 49 | type 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 | |
| 74 | func (p *gc_bin_parser) init(data []byte, pfc *package_file_cache) { |
| 75 | p.data = data |
nothing calls this directly
no outgoing calls
no test coverage detected