alloctable

package
v0.0.0-...-d69f115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datatype

type Datatype struct {
	Name string `json:"name"`
	Pos  string `json:"pos"`
}

- count a number of each symbol used (to watch how intensively is a given symbol used) - each AS table is per file, AS package is a union of file AS tables

type Function

type Function struct {
	Name string `json:"name"`
	Pos  string `json:"pos"`
}

type Method

type Method struct {
	Name   string `json:"name"`
	Parent string `json:"parent"`
	Pos    string `json:"pos"`
}

type Package

type Package struct {
	Datatypes    map[string]Datatype    `json:"datatypes"`
	Functions    map[string]Function    `json:"functions"`
	Variables    map[string]Variable    `json:"variables"`
	Methods      []Method               `json:"methods"`
	Structfields map[string]StructField `json:"structfields"`
}

type StructField

type StructField struct {
	Parent string `json:"parent"`
	Field  string `json:"field"`
	//Chain  []*symbols.SymbolDef `json:"chain"`
	Pos string `json:"pos"`
}

type Table

type Table struct {
	File    string              `json:"file"`
	Package string              `json:"package"`
	Symbols map[string]*Package `json:"symbols"`
	// contains filtered or unexported fields
}

func New

func New(pkg, file string) *Table

func (*Table) AddDataType

func (allSt *Table) AddDataType(pkg, name, pos string)

func (*Table) AddDataTypeField

func (allSt *Table) AddDataTypeField(origin, dataType, field, pos string)

func (*Table) AddFunction

func (allSt *Table) AddFunction(pkg, name, pos string)

func (*Table) AddMethod

func (allSt *Table) AddMethod(pkg, parent, name, pos string)

func (*Table) AddStructField

func (allSt *Table) AddStructField(pkg, parent, field string, pos string)

func (*Table) AddSymbol

func (allSt *Table) AddSymbol(origin, id, pos string)

func (*Table) AddVariable

func (allSt *Table) AddVariable(pkg, name, pos string)

func (*Table) Lock

func (allSt *Table) Lock()

func (*Table) MergeWith

func (allSt *Table) MergeWith(pt *Table)

func (*Table) Print

func (allSt *Table) Print(all bool)

func (*Table) Unlock

func (allSt *Table) Unlock()

type Variable

type Variable struct {
	Name string `json:"name"`
	Pos  string `json:"pos"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL