Commit 67a9c0af authored by Matthew Dempsky's avatar Matthew Dempsky

cmd/compile/internal/gc: fix ONAME documentation

Named constants are represented as OLITERAL with n.Sym != nil.

Change-Id: If6bc8c507ef8c3e4e47f586d86fd1d0f20bf8974
Reviewed-on: https://go-review.googlesource.com/c/145198Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
parent 5bc1fd42
...@@ -574,7 +574,7 @@ const ( ...@@ -574,7 +574,7 @@ const (
OXXX Op = iota OXXX Op = iota
// names // names
ONAME // var, const or func name ONAME // var or func name
ONONAME // unnamed arg or return value: f(int, string) (int, error) { etc } ONONAME // unnamed arg or return value: f(int, string) (int, error) { etc }
OTYPE // type name OTYPE // type name
OPACK // import OPACK // import
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment