Versions in this module Expand all Collapse all v3 v3.3.2 Nov 14, 2019 v3.3.1 Oct 23, 2019 v3.3.0 Oct 9, 2019 v3.2.5 Oct 2, 2019 v3.2.4 Sep 23, 2019 v3.2.3 Aug 7, 2019 v3.2.2 Jul 24, 2019 v3.2.1 Jul 23, 2019 v3.2.0 Jun 13, 2019 Changes in this version + func AllImportPaths(root nodes.External) []string v3.1.0 May 21, 2019 v3.0.0 Apr 12, 2019 Changes in this version + const KeyEnd + const KeyPos + const KeyPosCol + const KeyPosLine + const KeyPosOff + const KeyRoles + const KeyStart + const KeyToken + const KeyType + const NS + const TypeOperator + const TypePosition + const TypePositions + var ErrIncorrectType = errors.NewKind("incorrect object type: %q, expected: %q") + var ErrTypeNotRegistered = errors.NewKind("type is not registered: %q") + func ContentOf(n nodes.Node) string + func HashNoPos(n nodes.External) nodes.Hash + func LookupType(typ string) (reflect.Type, bool) + func NewObjectByType(typ string) nodes.Object + func NewObjectByTypeOpt(typ string) (obj, opt nodes.Object) + func NewPositionalIterator(root nodes.External) nodes.Iterator + func NewValue(typ string) (reflect.Value, error) + func NodeAs(n nodes.External, dst interface{}) error + func RegisterPackage(ns string, types ...interface{}) + func RoleList(roles ...role.Role) nodes.Array + func RolesOf(n nodes.Node) role.Roles + func ToNode(o interface{}) (nodes.Node, error) + func TokenOf(n nodes.Node) string + func Tokens(n nodes.Node) []string + func TypeOf(o interface{}) string + type Alias struct + Name Identifier + Node Any + type Any interface + type Argument struct + Init Any + MapVariadic bool + Name *Identifier + Receiver bool + Type Any + Variadic bool + type Block struct + Statements []Any + type Bool struct + Value bool + type Comment struct + Block bool + Prefix string + Suffix string + Tab string + Text string + type Function struct + Body *Block + Type FunctionType + type FunctionGroup Group + type FunctionType struct + Arguments []Argument + Returns []Argument + type GenNode struct + Positions Positions + type Group struct + Nodes []Any + type Identifier struct + Name string + func (Identifier) Roles() []role.Role + type Import struct + All bool + Names []Any + Path Any + Target Scope + type InlineImport Import + type Position struct + Col uint32 + Line uint32 + Offset uint32 + func AsPosition(m nodes.Object) *Position + func (p Position) HasLineCol() bool + func (p Position) HasOffset() bool + func (p Position) Less(p2 Position) bool + func (p Position) ToObject() nodes.Object + func (p Position) Valid() bool + type Positions map[string]Position + func PositionsOf(n nodes.Node) Positions + func (p Positions) End() *Position + func (p Positions) Keys() []string + func (p Positions) Start() *Position + func (p Positions) ToObject() nodes.Object + type QualifiedIdentifier struct + Names []Identifier + type RuntimeImport Import + type RuntimeReImport RuntimeImport + type Scope = Any + type String struct + Format string + Value string Other modules containing this package github.com/bblfsh/sdk