Documentation
¶
Overview ¶
Package convert helps to convert go/ast to mapast
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conversion ¶
type Conversion struct { AstTree map[uint64][]byte MyFile uint64 EnderSepared [2]map[int]struct{} Comments1 bool // contains filtered or unexported fields }
Conversion holds the state of translation of a single file. Please put your ast tree map to AstTree field and the key of your file to the MyFile field. Conversion is usually not reused.
func NewConversion ¶
func NewConversion(asttree map[uint64][]byte, whichfile uint64, file []byte) *Conversion
NewConversion creates a new conversion for a source file. Whichfile is the number of file to be translated, starting from zero. File is the slice filled with the source code, used to scan for comments info.
Click to show internal directories.
Click to hide internal directories.