Commit 10da5260 authored by Carl Shapiro's avatar Carl Shapiro

cmd/gc: document more of the declaration context enumeration

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7231051
parent 0e1305ab
......@@ -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
......
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