add AST_Accessor and AST_SymbolAccessor node types
authorMihai Bazon <mihai@bazon.net>
Wed, 7 Nov 2012 10:43:27 +0000 (12:43 +0200)
committerMihai Bazon <mihai@bazon.net>
Wed, 7 Nov 2012 10:43:27 +0000 (12:43 +0200)
commit5276a4a873d174ae594198045a15cb821cca29e7
tree7938bf9d9ba815dd16b1f170858fa2be9a37f78c
parenta1ae0c8609ad5ab977dae8afcb96b04594a0cc9a
add AST_Accessor and AST_SymbolAccessor node types

AST_Accessor will represent the function for a setter or getter.  Since they
are not mangleable, and they should not introduce a name in scope, we have a
new node for their name (AST_SymbolAccessor) which doesn't inherit from
AST_SymbolDeclaration.

fix #37
lib/ast.js
lib/parse.js
lib/scope.js