]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: ast.DeclStmt.Decl must be an *ast.GenDecl node (documentation)
authorRobert Griesemer <gri@golang.org>
Fri, 21 Dec 2012 19:52:21 +0000 (11:52 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 21 Dec 2012 19:52:21 +0000 (11:52 -0800)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6996046

src/pkg/go/ast/ast.go

index e1582c30064dc55cdccfa78a6cf3fbf1566566d6..bf533d1d24faf8cfd66d19ccbfb7c9a40ceaff75 100644 (file)
@@ -555,7 +555,7 @@ type (
 
        // A DeclStmt node represents a declaration in a statement list.
        DeclStmt struct {
-               Decl Decl
+               Decl Decl // *GenDecl with CONST, TYPE, or VAR token
        }
 
        // An EmptyStmt node represents an empty statement.