Documentation
¶
Index ¶
- func NewSet(len *optional.Int) *optional.Set
- func NewTupple(len *optional.Int) *optional.Tuple
- func NodePath(root, node ast.Node) []ast.Node
- type Array
- type AssignStmtNode
- type Bool
- type Chan
- type Complex
- type Float
- type Func
- type Goq
- type Int
- type Interface
- type Named
- type Node
- type Package
- type Query
- type Result
- type Results
- type Signature
- type Slice
- type String
- type Struct
- type Type
- type TypeName
- type Var
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Array ¶
type Array struct {
// Elem is type of the elements.
Elem Query
// Len is length of the array.
Len *optional.Int64
}
Array is a query for array objects.
type AssignStmtNode ¶
func (*AssignStmtNode) Match ¶
func (q *AssignStmtNode) Match(v interface{}) bool
type Chan ¶
type Chan struct {
// Elem is type of send or receive values.
Elem Query
// Dir is direction of the chan.
Dir *optional.Int
}
Chan is an query for chan objects.
type Func ¶
type Func struct {
// Name is name of the function.
Name *pattern.Pattern
// FullName is full name of the function.
FullName *pattern.Pattern
// Exported is whether the function is exported or not.
Exported *optional.Bool
// Signature is query of signature.
Signature *Signature
}
Func is a query for function objects.
type Int ¶
type Int struct {
// Size is size of the integer value.
Size *optional.Int
// Unsigned means whether the value is unsigned or not.
Unsigned *optional.Bool
}
Int is a query for integer objects.
type Query ¶
type Query interface {
Match(v interface{}) bool
}
Query is an query to search objects.
func And ¶
And concats queries into a query which Match returns true when all queries Match return true.
type Signature ¶
Click to show internal directories.
Click to hide internal directories.