ast,build: add Attributes fields to Function and Global

Updates #2
This commit is contained in:
Michael McLoughlin
2018-12-30 23:35:49 -08:00
parent 5d270d8d76
commit e364d6398e
17 changed files with 86 additions and 50 deletions

View File

@@ -55,6 +55,10 @@ func (c *Context) Doc(lines ...string) {
c.activefunc().Doc = lines
}
func (c *Context) Attributes(a avo.Attribute) {
c.activefunc().Attributes = a
}
func (c *Context) Signature(s *gotypes.Signature) {
c.activefunc().SetSignature(s)
}