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 ...@@ -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
......
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