aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cmd/compile/internal/ir/name.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ir/name.go b/src/cmd/compile/internal/ir/name.go
index 5697213eac..b6c68bc5e0 100644
--- a/src/cmd/compile/internal/ir/name.go
+++ b/src/cmd/compile/internal/ir/name.go
@@ -49,7 +49,9 @@ type Name struct {
PkgName *PkgName // real package for import . names
// For a local variable (not param) or extern, the initializing assignment (OAS or OAS2).
- // For a closure var, the ONAME node of the outer captured variable
+ // For a closure var, the ONAME node of the outer captured variable.
+ // For the case-local variables of a type switch, the type switch guard (OTYPESW).
+ // For the name of a function, points to corresponding Func node.
Defn Node
// The function, method, or closure in which local variable or param is declared.