aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder/codes.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2022-06-03 12:38:39 -0700
committerMatthew Dempsky <mdempsky@google.com>2022-06-06 17:32:20 +0000
commit6c33f1d52efd4f70fb8cdb1c3b4ea1c8c579af2a (patch)
treec7c1a166e0e04007b99fd46fc674c2d7adada16b /src/cmd/compile/internal/noder/codes.go
parent4d28fcabb433a6588db4ab5f887062d9236f2397 (diff)
downloadgo-6c33f1d52efd4f70fb8cdb1c3b4ea1c8c579af2a.tar.xz
[dev.unified] cmd/compile/internal/noder: rename exprName to exprGlobal
More descriptive. Change-Id: I70a07adbe1d395da797fe15b54d2a1106f5f36a9 Reviewed-on: https://go-review.googlesource.com/c/go/+/410098 Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: David Chase <drchase@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/noder/codes.go')
-rw-r--r--src/cmd/compile/internal/noder/codes.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/compile/internal/noder/codes.go b/src/cmd/compile/internal/noder/codes.go
index 8f54a07ca4..28991e7b9c 100644
--- a/src/cmd/compile/internal/noder/codes.go
+++ b/src/cmd/compile/internal/noder/codes.go
@@ -40,9 +40,9 @@ func (c codeExpr) Value() int { return int(c) }
const (
exprNone codeExpr = iota
exprConst
- exprType // type expression
- exprLocal // local variable
- exprName // global variable or function
+ exprType // type expression
+ exprLocal // local variable
+ exprGlobal // global variable or function
exprBlank
exprCompLit
exprFuncLit