FIXES #397: Can't use @variable in switch in instance method

This commit is contained in:
Stan Angeloff
2010-05-26 21:58:11 +03:00
parent aba19841ee
commit e17bb4ff11
3 changed files with 14 additions and 2 deletions

View File

@@ -1206,7 +1206,7 @@ exports.ForNode: class ForNode extends BaseNode
exports.IfNode: class IfNode extends BaseNode
constructor: (condition, body, tags) ->
super {name: 'IfNode', children: ['condition', 'body', 'else_body', 'assigner']}
super {name: 'IfNode', children: ['condition', 'switch_subject', 'body', 'else_body', 'assigner']}
@condition: condition
@body: body
@else_body: null