Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileSet ¶
type FileSet struct {
Package string // package name
Specs []*ast.TypeSpec // type specs in file
Directives []string // preprocessor directives
Identities map[string]gen.Base // alias types (e.g. type Flag uint32)
// contains filtered or unexported fields
}
A FileSet is the in-memory representation of a parsed file. The same FileSet will always generate the same element (gen.Elem) set.
func File ¶
File parses a file at the relative path provided and produces a new *FileSet. (No exported structs is considered an error.)
func (*FileSet) ApplyDirectives ¶
func (f *FileSet) ApplyDirectives()
ApplyDirectives applies all of the preprocessor directives to the file set in the order that they appear in the source file.
Click to show internal directories.
Click to hide internal directories.