mirror of
https://github.com/golang/go
synced 2024-11-23 03:50:03 -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:
parent
0e1305abc2
commit
10da526069
@ -645,20 +645,21 @@ enum
|
||||
Cboth = Crecv | Csend,
|
||||
};
|
||||
|
||||
// declaration context
|
||||
enum
|
||||
{
|
||||
Pxxx,
|
||||
|
||||
PEXTERN, // declaration context
|
||||
PAUTO,
|
||||
PPARAM,
|
||||
PPARAMOUT,
|
||||
PPARAMREF, // param passed by reference
|
||||
PFUNC,
|
||||
PEXTERN, // global variable
|
||||
PAUTO, // local variables
|
||||
PPARAM, // input arguments
|
||||
PPARAMOUT, // output results
|
||||
PPARAMREF, // closure variable reference
|
||||
PFUNC, // global function
|
||||
|
||||
PDISCARD, // discard during parse of duplicate import
|
||||
|
||||
PHEAP = 1<<7,
|
||||
PHEAP = 1<<7, // an extra bit to identify an escaped variable
|
||||
};
|
||||
|
||||
enum
|
||||
|
Loading…
Reference in New Issue
Block a user