mirror of
https://github.com/golang/go
synced 2024-11-23 07:30:05 -07:00
go/ast: ast.DeclStmt.Decl must be an *ast.GenDecl node (documentation)
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6996046
This commit is contained in:
parent
11a40cb34d
commit
4f79cef7f2
@ -555,7 +555,7 @@ type (
|
|||||||
|
|
||||||
// A DeclStmt node represents a declaration in a statement list.
|
// A DeclStmt node represents a declaration in a statement list.
|
||||||
DeclStmt struct {
|
DeclStmt struct {
|
||||||
Decl Decl
|
Decl Decl // *GenDecl with CONST, TYPE, or VAR token
|
||||||
}
|
}
|
||||||
|
|
||||||
// An EmptyStmt node represents an empty statement.
|
// An EmptyStmt node represents an empty statement.
|
||||||
|
Loading…
Reference in New Issue
Block a user