Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeChecker ¶
type TypeChecker struct {
// contains filtered or unexported fields
}
TypeChecker leverages dst/decorator and go/types to infer the expression types. The decorator keeps the mapping between ast.Node and dst.Node while go/types extracts the types. Call check() after instanciation and before calling ofType() or typeOf().
func (*TypeChecker) Check ¶
check analyses a target file and stores object types. It must be called at least once before calling ofType or typeOf.
Click to show internal directories.
Click to hide internal directories.