Bug 889599, part 1 - Fix ParseNode.h comment about PNK_FUNCTION nodes. r=Waldo.

This commit is contained in:
Jason Orendorff 2013-07-12 12:20:58 -05:00
parent 257bb24f7c
commit b3455fb467

View File

@ -213,20 +213,17 @@ enum ParseNodeKind
* object containing arg and var properties. We
* create the function object at parse (not emit)
* time to specialize arg and var bytecodes early.
* pn_body: PNK_ARGSBODY if formal parameters,
* PNK_STATEMENTLIST node for function body
* statements,
* PNK_RETURN for expression closure, or
* PNK_SEQ for expression closure with
* destructured formal parameters
* PNK_LEXICALSCOPE for implicit function
* in generator-expression
* pn_body: PNK_ARGSBODY, ordinarily;
* PNK_LEXICALSCOPE for implicit function in genexpr
* pn_cookie: static level and var index for function
* pn_dflags: PND_* definition/use flags (see below)
* pn_blockid: block id number
* PNK_ARGSBODY list list of formal parameters followed by
* PNK_STATEMENTLIST node for function body
* statements as final element
* PNK_ARGSBODY list list of formal parameters followed by:
* PNK_STATEMENTLIST node for function body
* statements,
* PNK_RETURN for expression closure, or
* PNK_SEQ for expression closure with
* destructured formal parameters
* pn_count: 1 + number of formal parameters
* pn_tree: PNK_ARGSBODY or PNK_STATEMENTLIST node
* PNK_SPREAD unary pn_kid: expression being spread