cleaning up the grammar rule for Super

This commit is contained in:
Jeremy Ashkenas
2010-06-27 16:50:31 -04:00
parent af3b356d70
commit 3881324007
4 changed files with 10 additions and 10 deletions

View File

@@ -371,10 +371,10 @@ exports.CallNode: class CallNode extends BaseNode
children: ['variable', 'args']
constructor: (variable, args) ->
@isNew: false
@isSuper: variable is 'super'
@variable: if @isSuper then null else variable
@args: (args or [])
@isNew: false
@isSuper: variable is 'super'
@variable: if @isSuper then null else variable
@args: (args or [])
@compileSplatArguments: (o) ->
SplatNode.compileMixedArray.call(this, @args, o)