Commit 51a7f1c9 authored by Andrew Gerrand's avatar Andrew Gerrand

ast/printer: support for printing ast.Spec nodes

R=gri
CC=golang-dev
https://golang.org/cl/682041
parent 2e5fe5a1
......@@ -1018,6 +1018,9 @@ func (cfg *Config) Fprint(output io.Writer, node interface{}) (int, os.Error) {
case ast.Decl:
p.useNodeComments = true
p.decl(n, atTop, ignoreMultiLine)
case ast.Spec:
p.useNodeComments = true
p.spec(n, 1, atTop, false, ignoreMultiLine)
case *ast.File:
p.comments = n.Comments
p.useNodeComments = n.Comments == nil
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment