summaryrefslogtreecommitdiff
path: root/src/pkg/go/ast
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2009-08-12 14:40:47 -0700
committerRuss Cox <rsc@golang.org>2009-08-12 14:40:47 -0700
commit1edefe2f61ce1471640c01b56c7bbec70cbb1ab1 (patch)
tree802a25d409cc4562a1de282b606466b9d35c6476 /src/pkg/go/ast
parentd695ea26aec6eb89f41d09346d4a029ffac633f4 (diff)
downloadgolang-1edefe2f61ce1471640c01b56c7bbec70cbb1ab1.tar.gz
delete forward type declarations
R=r DELTA=163 (1 added, 149 deleted, 13 changed) OCL=33106 CL=33111
Diffstat (limited to 'src/pkg/go/ast')
-rw-r--r--src/pkg/go/ast/ast.go36
1 files changed, 11 insertions, 25 deletions
diff --git a/src/pkg/go/ast/ast.go b/src/pkg/go/ast/ast.go
index 9ab6dc9ce..3c7b86818 100644
--- a/src/pkg/go/ast/ast.go
+++ b/src/pkg/go/ast/ast.go
@@ -36,13 +36,6 @@ import (
// node sizes a bit.
-type (
- ExprVisitor interface;
- StmtVisitor interface;
- DeclVisitor interface;
-)
-
-
// All expression nodes implement the Expr interface.
type Expr interface {
// For a (dynamic) node type X, calling Visit with an expression
@@ -101,24 +94,17 @@ type CommentGroup struct {
// ----------------------------------------------------------------------------
// Expressions and types
-// Support types.
-type (
- Ident struct;
- StringLit struct;
- FuncType struct;
- BlockStmt struct;
-
- // A Field represents a Field declaration list in a struct type,
- // a method in an interface type, or a parameter/result declaration
- // in a signature.
- Field struct {
- Doc *CommentGroup; // associated documentation; or nil
- Names []*Ident; // field/method/parameter names; nil if anonymous field
- Type Expr; // field/method/parameter type
- Tag []*StringLit; // field tag; or nil
- Comment *CommentGroup; // line comments; or nil
- };
-)
+// A Field represents a Field declaration list in a struct type,
+// a method in an interface type, or a parameter/result declaration
+// in a signature.
+//
+type Field struct {
+ Doc *CommentGroup; // associated documentation; or nil
+ Names []*Ident; // field/method/parameter names; nil if anonymous field
+ Type Expr; // field/method/parameter type
+ Tag []*StringLit; // field tag; or nil
+ Comment *CommentGroup; // line comments; or nil
+};
// An expression is represented by a tree consisting of one