From: Robert Griesemer Date: Mon, 9 Nov 2009 18:37:36 +0000 (-0800) Subject: - rename Context to exprContext to remove it from public interface X-Git-Tag: weekly.2009-11-10~26 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=81672e79e4ce6efa60b4d97515d19f2f530c2c43;p=gostls13.git - rename Context to exprContext to remove it from public interface (and to match the style of declContext) R=rsc http://go/go-review/1024033 --- diff --git a/src/pkg/go/printer/nodes.go b/src/pkg/go/printer/nodes.go index f91a34851f..b89bb2b0c3 100644 --- a/src/pkg/go/printer/nodes.go +++ b/src/pkg/go/printer/nodes.go @@ -311,7 +311,7 @@ func (p *printer) isOneLineFieldList(list []*ast.Field) bool { } -func (p *printer) fieldList(lbrace token.Position, list []*ast.Field, rbrace token.Position, isIncomplete bool, ctxt Context) { +func (p *printer) fieldList(lbrace token.Position, list []*ast.Field, rbrace token.Position, isIncomplete bool, ctxt exprContext) { if !isIncomplete && !p.commentBefore(rbrace) { // possibly a one-line struct/interface if len(list) == 0 { @@ -426,8 +426,8 @@ func (p *printer) fieldList(lbrace token.Position, list []*ast.Field, rbrace tok // ---------------------------------------------------------------------------- // Expressions -// Context describes the syntactic environment in which an expression node is printed. -type Context uint +// exprContext describes the syntactic environment in which an expression node is printed. +type exprContext uint const ( compositeLit = 1<