Documentation ¶
Index ¶
- Constants
- func ArrayItem(node ast.Node) ast.Node
- func IsArray(node ast.Node) bool
- func IsCall(node ast.Node) bool
- func IsConstant(node ast.Node) bool
- func IsFunction(node ast.Node) bool
- func IsIdent(node ast.Node) bool
- func IsInterface(node ast.Node) bool
- func IsLiteral(node ast.Node) bool
- func IsMap(node ast.Node) bool
- func IsPointer(node ast.Node) bool
- func IsStruct(node ast.Node) bool
- func IsStructDefinition(node ast.Node) bool
- func IsType(node ast.Node) bool
- func IsVariable(node ast.Node) bool
- func Literal(node ast.Node) (string, error)
- type Field
- type File
- type Function
- type Import
- type ImportNotFoundErr
- type Imports
- type InfoNode
- type Method
- type Node
- type Project
- type Resolver
- type Symbol
- func (sym *Symbol) ArrayItem(resolver Resolver) *Symbol
- func (sym *Symbol) Equal(b *Symbol) bool
- func (sym *Symbol) Fields(resolver Resolver) ([]*Field, error)
- func (sym *Symbol) FieldsNames() ([]string, error)
- func (sym *Symbol) Function() (*Function, error)
- func (sym *Symbol) Is(importPath string, typeName string) bool
- func (sym *Symbol) IsArray() bool
- func (sym *Symbol) IsCall() bool
- func (sym *Symbol) IsConstant() bool
- func (sym *Symbol) IsFunction() bool
- func (sym *Symbol) IsInterface() bool
- func (sym *Symbol) IsLiteral() bool
- func (sym *Symbol) IsMap() bool
- func (sym *Symbol) IsPointer() bool
- func (sym *Symbol) IsStruct() bool
- func (sym *Symbol) IsStructDefinition() bool
- func (sym *Symbol) IsType() bool
- func (sym *Symbol) IsVariable() bool
- func (sym *Symbol) Literal() (string, error)
- func (sym *Symbol) Methods(resolver Resolver) ([]*Method, error)
- func (sym *Symbol) String() string
- func (sym *Symbol) VarType() (*Symbol, error)
- func (sym *Symbol) WithNode(node ast.Node) *Symbol
- type Type
Constants ¶
View Source
const All = -1
Variables ¶
This section is empty.
Functions ¶
func IsConstant ¶
func IsFunction ¶
func IsInterface ¶
func IsStructDefinition ¶
func IsVariable ¶
Types ¶
type Field ¶
type Import ¶
func (*Import) FindSymbol ¶
type ImportNotFoundErr ¶
type ImportNotFoundErr string
func (*ImportNotFoundErr) Error ¶
func (in *ImportNotFoundErr) Error() string
type Project ¶
func (*Project) FindLocalSymbol ¶
Find symbol defined only in the package
func (*Project) FindPackageImport ¶
func (*Project) FindSymbol ¶
type Symbol ¶
type Symbol struct { Import *Import File *File Node ast.Node ParentNode ast.Node Name string BuiltIn bool }
func (*Symbol) FieldsNames ¶
func (*Symbol) IsConstant ¶
func (*Symbol) IsFunction ¶
func (*Symbol) IsInterface ¶
func (*Symbol) IsStructDefinition ¶
func (*Symbol) IsVariable ¶
Click to show internal directories.
Click to hide internal directories.