]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: improve comment on FuncDecl.Body
authorAlan Donovan <adonovan@google.com>
Wed, 28 Jun 2017 21:40:05 +0000 (17:40 -0400)
committerAlan Donovan <adonovan@google.com>
Wed, 28 Jun 2017 21:44:26 +0000 (21:44 +0000)
"Forward declaration" suggests that declarations must precede calls.

Change-Id: I1b3a26b58f52a39bc11d75696df928a6b66c7313
Reviewed-on: https://go-review.googlesource.com/47073
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/ast/ast.go

index 7336a5d2d0ae606f03e31c80d7bbc201e1062915..77ef98ceaf9d2f8e8c8b59d35fe3286e7e6c40ae 100644 (file)
@@ -927,7 +927,7 @@ type (
                Recv *FieldList    // receiver (methods); or nil (functions)
                Name *Ident        // function/method name
                Type *FuncType     // function signature: parameters, results, and position of "func" keyword
-               Body *BlockStmt    // function body; or nil (forward declaration)
+               Body *BlockStmt    // function body; or nil for external (non-Go) function
        }
 )