Permalink
Browse files

simplify, getting rid of _kw

  • Loading branch information...
1 parent c5d712e commit 9a093e2661ad41071b681ecfaf85e7084587dd14 @maxtaco committed Dec 2, 2011
Showing with 9 additions and 39 deletions.
  1. +6 −8 lib/coffee-script/nodes.js
  2. +1 −26 lib/coffee-script/tame.js
  3. +2 −4 src/nodes.coffee
  4. +0 −1 src/tame.coffee
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1577,17 +1577,15 @@ exports.While = class While extends Base
top_id = new Value new Literal tame.const.t_while
k_id = new Value new Literal tame.const.k
break_id = new Value new Literal tame.const.b_while
- inner_k_id = new Value new Literal tame.const.k_while
break_assign = new Assign break_id, k_id
continue_id = new Value new Literal tame.const.c_while
continue_block = new Block [ new Call top_id, [ k_id ] ]
continue_block.unshift d.step if d.step
continue_body = new Code [], continue_block
continue_assign = new Assign continue_id, continue_body
- inner_k_assign = new Assign inner_k_id, continue_id
cond = new If condition, body
cond.addElse new Block [ new Call break_id, [] ]
- top_body = new Block [ break_assign, continue_assign, inner_k_assign, cond ]
+ top_body = new Block [ break_assign, continue_assign, cond ]
top_func = new Code [ k_id ], top_body
top_assign = new Assign top_id, top_func
top_call = new Call top_id, [ k_id ]
@@ -1599,7 +1597,7 @@ exports.While = class While extends Base
top_block = new Block top_statements
callContinuation : ->
- k = new Call(new Literal tame.const.k_while, [])
+ k = new Call(new Literal tame.const.c_while, [])
@body.push k
compileTame: (o) ->
View
@@ -15,7 +15,6 @@ exports.const =
Deferrals : "Deferrals"
deferrals : "__tame_deferrals"
fulfill : "_fulfill"
- k_while : "_kw"
b_while : "_break"
t_while : "_while"
c_while : "_continue"

0 comments on commit 9a093e2

Please sign in to comment.