Documentation
¶
Overview ¶
Package parser parses a setup file's functions, types, and fields using an Abstract Syntax Tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v0.3.0
type Config struct {
// SetupFile represents the setup file as an Abstract Syntax Tree.
SetupFile *ast.File
// SetupPkg represent the setup file's package.
SetupPkg *packages.Package
// Fileset represents the parser's fileset.
Fileset *token.FileSet
}
Config represents a Parser's configuration.
type Options ¶ added in v0.3.0
type Options struct {
// commentOptionMap represents a map of comments (as text) to an option.
CommentOptionMap map[string]*options.Option
// convertOptions represents a global list of convert options (for convert functions).
ConvertOptions []*options.Option
}
Options represents a parser's options.
Click to show internal directories.
Click to hide internal directories.