aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/syntax
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2016-09-16 11:00:54 +1000
committerDave Cheney <dave@cheney.net>2016-09-16 01:43:08 +0000
commit073d248bf50b1b1029b2a09c575111f38f6bf5eb (patch)
tree08aba3b809e4487795969992204b6d1b0663794d /src/cmd/compile/internal/syntax
parentbb12894d2b51f8a50c0783db6043247758706466 (diff)
downloadgo-073d248bf50b1b1029b2a09c575111f38f6bf5eb.tar.xz
cmd/compile/internal/gc: make Nod private
Follow up to CL 29134. Generated with gofmt -r 'Nod -> nod', plus three manual adjustments to the comments in syntax/parser.go Change-Id: I02920f7ab10c70b6e850457b42d5fe35f1f3821a Reviewed-on: https://go-review.googlesource.com/29136 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/syntax')
-rw-r--r--src/cmd/compile/internal/syntax/parser.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/syntax/parser.go b/src/cmd/compile/internal/syntax/parser.go
index ae9c14c811..369f3ffccd 100644
--- a/src/cmd/compile/internal/syntax/parser.go
+++ b/src/cmd/compile/internal/syntax/parser.go
@@ -1854,7 +1854,7 @@ func (p *parser) commClause() *CommClause {
}
// TODO(gri) find a better solution
-var missing_stmt Stmt = new(EmptyStmt) // = Nod(OXXX, nil, nil)
+var missing_stmt Stmt = new(EmptyStmt) // = nod(OXXX, nil, nil)
// Statement =
// Declaration | LabeledStmt | SimpleStmt |
@@ -1921,7 +1921,7 @@ func (p *parser) stmt() Stmt {
s.Tok = _Fallthrough
return s
// // will be converted to OFALL
- // stmt := Nod(OXFALL, nil, nil)
+ // stmt := nod(OXFALL, nil, nil)
// stmt.Xoffset = int64(block)
// return stmt
@@ -1946,7 +1946,7 @@ func (p *parser) stmt() Stmt {
s.Tok = _Goto
s.Label = p.name()
return s
- // stmt := Nod(OGOTO, p.new_name(p.name()), nil)
+ // stmt := nod(OGOTO, p.new_name(p.name()), nil)
// stmt.Sym = dclstack // context, for goto restrictions
// return stmt