Exemplo n.º 1
0
// Outputs the Antha block signatures
func (p *compiler) anthaSig(d *ast.AnthaDecl, c *anthaContext) {
	p.setComment(d.Doc)

	p.print(d.Pos(), c.getSignature())

	// adjust the padding to the body
	p.adjBlock(p.distanceFrom(d.Pos()), vtab, d.Body)
}
Exemplo n.º 2
0
// Spits out the Antha code, verbatim for now
func (p *printer) anthaDecl(d *ast.AnthaDecl) {
	p.setComment(d.Doc)
	//p.print(d.Pos(), d.Tok, blank)
	p.print(d.Pos(), d.Tok)

	//p.expr(d.Name)
	p.adjBlock(p.distanceFrom(d.Pos()), vtab, d.Body)
}