ast: change file to have a list of sections

This commit is contained in:
Michael McLoughlin
2018-12-26 18:58:12 -08:00
parent bf6031521f
commit d29c6340d7
6 changed files with 30 additions and 12 deletions

View File

@@ -47,7 +47,7 @@ func (c *Context) Package(path string) {
func (c *Context) Function(name string) {
c.function = avo.NewFunction(name)
c.file.Functions = append(c.file.Functions, c.function)
c.file.Sections = append(c.file.Sections, c.function)
}
func (c *Context) Signature(s *gotypes.Signature) {