1
0
mirror of https://github.com/golang/go synced 2024-11-18 17:14:45 -07:00

cmd/gc: document more of the declaration context enumeration

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7231051
This commit is contained in:
Carl Shapiro 2013-01-28 16:57:36 -08:00
parent 0e1305abc2
commit 10da526069

View File

@ -645,20 +645,21 @@ enum
Cboth = Crecv | Csend, Cboth = Crecv | Csend,
}; };
// declaration context
enum enum
{ {
Pxxx, Pxxx,
PEXTERN, // declaration context PEXTERN, // global variable
PAUTO, PAUTO, // local variables
PPARAM, PPARAM, // input arguments
PPARAMOUT, PPARAMOUT, // output results
PPARAMREF, // param passed by reference PPARAMREF, // closure variable reference
PFUNC, PFUNC, // global function
PDISCARD, // discard during parse of duplicate import PDISCARD, // discard during parse of duplicate import
PHEAP = 1<<7, PHEAP = 1<<7, // an extra bit to identify an escaped variable
}; };
enum enum