Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Representation ¶
type Representation struct {
// contains filtered or unexported fields
}
Representation represents a go package folder
func NewRepresentation ¶
func NewRepresentation(dir string) *Representation
NewRepresentation creates a new folder with given path. Use ParseAST to parse ast from go files in path. The pkgPath is the import path of the package to be used by types.parseInfo.
func (*Representation) MappingBytes ¶
func (s *Representation) MappingBytes() ([]byte, error)
MappingBytes retrieves the correct mapping to be written to mapping.json.
func (*Representation) Normalize ¶
func (s *Representation) Normalize() error
Normalize processes the solutions AST to normalize the representation.
func (*Representation) ParseAST ¶
func (s *Representation) ParseAST() (map[string]*ast.Package, error)
ParseAST will parse all to files in folder. It skips test files.
func (*Representation) RepresentationBytes ¶
func (s *Representation) RepresentationBytes() ([]byte, error)
RepresentationBytes retrieves the bytes of the representation.
Click to show internal directories.
Click to hide internal directories.