summaryrefslogtreecommitdiff
path: root/usr/gri/pretty/ast.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-01-20 15:22:33 -0800
committerRobert Griesemer <gri@golang.org>2009-01-20 15:22:33 -0800
commit8498cd2641a58da02b38cab7a7ea9efb1064f243 (patch)
tree3e6ba1897a7e863de75e01414a44ac1fe32d0bcb /usr/gri/pretty/ast.go
parent4ae0ed29a283c16d1c83ef704c4d75170c3801e6 (diff)
downloadgolang-8498cd2641a58da02b38cab7a7ea9efb1064f243.tar.gz
- updated pretty (removed "export")
R=r OCL=23134 CL=23134
Diffstat (limited to 'usr/gri/pretty/ast.go')
-rw-r--r--usr/gri/pretty/ast.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr/gri/pretty/ast.go b/usr/gri/pretty/ast.go
index 1790a0851..788ac74b1 100644
--- a/usr/gri/pretty/ast.go
+++ b/usr/gri/pretty/ast.go
@@ -387,7 +387,6 @@ var BadStat = NewStat(0, Scanner.ILLEGAL);
type Decl struct {
Node;
- Exported bool;
Ident *Expr; // nil for ()-style declarations
Typ *Type;
Val *Expr;
@@ -397,14 +396,14 @@ type Decl struct {
}
-func NewDecl(pos, tok int, exported bool) *Decl {
+func NewDecl(pos, tok int) *Decl {
d := new(Decl);
- d.Pos, d.Tok, d.Exported = pos, tok, exported;
+ d.Pos, d.Tok = pos, tok;
return d;
}
-var BadDecl = NewDecl(0, Scanner.ILLEGAL, false);
+var BadDecl = NewDecl(0, Scanner.ILLEGAL);
// ----------------------------------------------------------------------------