Documentation ¶
Index ¶
- type PackageTable
- type Table
- func (t *Table) Add(packagePath, file string, table *alloctable.Table)
- func (t *Table) Drop(pkg string)
- func (t *Table) Exists(pkg string) bool
- func (t *Table) Files(packagePath string) []string
- func (t *Table) Lookup(packagePath, file string) (*alloctable.Table, error)
- func (t *Table) LookupPackage(pkg string) (PackageTable, error)
- func (t *Table) MergeFiles(packagePath string) (PackageTable, error)
- func (t *Table) Packages() []string
- func (t *Table) Print(packagePath string, all bool)
- func (t *Table) Save(pkg string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageTable ¶
type PackageTable map[string]*alloctable.Table
func NewPackageTable ¶
func NewPackageTable() *PackageTable
func (*PackageTable) Consolidate ¶
func (t *PackageTable) Consolidate()
Consolidate merges all per-file allocated tables into one
func (*PackageTable) FilterOut ¶
func (t *PackageTable) FilterOut(prefix string) bool
func (*PackageTable) Load ¶
func (t *PackageTable) Load(file string) error
func (*PackageTable) MergeWith ¶
func (t *PackageTable) MergeWith(pt *PackageTable)
Merge current table with passed one
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table captures list of allocated symbols for each package and its files
func (*Table) LookupPackage ¶
func (t *Table) LookupPackage(pkg string) (PackageTable, error)
func (*Table) MergeFiles ¶
func (t *Table) MergeFiles(packagePath string) (PackageTable, error)
MergeFiles merges all per-file allocated tables into one
Click to show internal directories.
Click to hide internal directories.