diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-08-23 21:39:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 04:39:38 +0800 |
commit | 7dc61cdc895d055edfa9b1d82d17688ad3a57f1c (patch) | |
tree | 349b9016f337c058f28fd9ecb27b954a80758123 /lib/ast.js | |
parent | af1b2f30c9904ba69aee5a6219215f1d0e64ad2b (diff) | |
download | tracifyjs-7dc61cdc895d055edfa9b1d82d17688ad3a57f1c.tar.gz tracifyjs-7dc61cdc895d055edfa9b1d82d17688ad3a57f1c.zip |
tidy up various interfaces (#4066)
Diffstat (limited to 'lib/ast.js')
-rw-r--r-- | lib/ast.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -409,16 +409,16 @@ var AST_With = DEFNODE("With", "expression", { /* -----[ scope and functions ]----- */ -var AST_Scope = DEFNODE("Scope", "variables functions uses_with uses_eval parent_scope enclosed cname", { +var AST_Scope = DEFNODE("Scope", "cname enclosed uses_eval uses_with parent_scope functions variables make_def", { $documentation: "Base class for all statements introducing a lexical scope", $propdoc: { - variables: "[Object/S] a map of name -> SymbolDef for all variables/functions defined in this scope", - functions: "[Object/S] like `variables`, but only lists function declarations", - uses_with: "[boolean/S] tells whether this scope uses the `with` statement", + cname: "[integer/S] current index for mangling variables (used internally by the mangler)", + enclosed: "[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes", uses_eval: "[boolean/S] tells whether this scope contains a direct call to the global `eval`", + uses_with: "[boolean/S] tells whether this scope uses the `with` statement", parent_scope: "[AST_Scope?/S] link to the parent scope", - enclosed: "[SymbolDef*/S] a list of all symbol definitions that are accessed from this scope or any subscopes", - cname: "[integer/S] current index for mangling variables (used internally by the mangler)", + functions: "[Object/S] like `variables`, but only lists function declarations", + variables: "[Object/S] a map of name -> SymbolDef for all variables/functions defined in this scope", }, clone: function(deep) { var node = this._clone(deep); |