Documentation ¶
Index ¶
- func ExprToString(n ast.Node) (string, error)
- func GetExprCaller(n ast.Node) (ast.Expr, error)
- func GetIdentifier(n ast.Node) (*ast.Ident, error)
- func GoSourcePath() (string, error)
- func JoyPath() (string, error)
- func MethodsFromInterface(n *ast.InterfaceType, path, name string) (methods []string)
- func RuntimePath() (string, error)
- func Unique(defs []def.Definition) []def.Definition
- func VDOMSourcePath() (string, error)
- type JSTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExprCaller ¶
GetExprCaller gets the expression caller e.g. x.Cool() => x
func GetIdentifier ¶
GetIdentifier gets rightmost identifier if there is one
func GoSourcePath ¶
GoSourcePath gets the fullpath to Go's source files
func MethodsFromInterface ¶
func MethodsFromInterface(n *ast.InterfaceType, path, name string) (methods []string)
MethodsFromInterface fn
func Unique ¶
func Unique(defs []def.Definition) []def.Definition
Unique returns definitions unique by their id
func VDOMSourcePath ¶
VDOMSourcePath gets the fullpath to the VDOM source files
Types ¶
type JSTag ¶
JSTag struct
func JSTagFromComment ¶
func JSTagFromComment(n *ast.CommentGroup) (tag JSTag, err error)
JSTagFromComment parses a js tag if there is one
func JSTagFromString ¶
JSTagFromString parse tag
Click to show internal directories.
Click to hide internal directories.