summaryrefslogtreecommitdiff
path: root/src/pkg/go/ast/ast.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/go/ast/ast.go')
-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