Documentation ¶
Index ¶
Constants ¶
View Source
const ( VariableSymbol = "variables" FunctionSymbol = "functions" DataTypeSymbol = "datatypes" )
Variables ¶
View Source
var (
SymbolTypes = []string{VariableSymbol, FunctionSymbol, DataTypeSymbol}
)
Functions ¶
This section is empty.
Types ¶
type SymbolDef ¶
type SymbolDef struct { Pos string `json:"pos"` Name string `json:"name"` Package string `json:"package"` Def gotypes.DataType `json:"def"` Block int `json:"block"` }
func (*SymbolDef) UnmarshalJSON ¶
type SymbolLookable ¶
type SymbolLookable interface { LookupVariable(key string) (*SymbolDef, error) LookupVariableLikeSymbol(key string) (*SymbolDef, SymbolType, error) LookupFunction(key string) (*SymbolDef, error) LookupDataType(key string) (*SymbolDef, error) LookupMethod(datatype, methodName string) (*SymbolDef, error) LookupAllMethods(datatype string) (map[string]*SymbolDef, error) Lookup(key string) (*SymbolDef, SymbolType, error) Exists(name string) bool }
type SymbolTable ¶
type SymbolType ¶
type SymbolType string
func (SymbolType) IsDataType ¶
func (s SymbolType) IsDataType() bool
func (SymbolType) IsFunctionType ¶
func (s SymbolType) IsFunctionType() bool
func (SymbolType) IsVariable ¶
func (s SymbolType) IsVariable() bool
Click to show internal directories.
Click to hide internal directories.