mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
fixed non-recursive traverse() for CodeNode
This commit is contained in:
@@ -722,7 +722,7 @@ exports.CodeNode: class CodeNode extends BaseNode
|
||||
# Custom `traverse` implementation that uses the `real_children`.
|
||||
traverse: (block) ->
|
||||
block this
|
||||
block(child) for child in @real_children()
|
||||
child.traverse block for child in @real_children()
|
||||
|
||||
toString: (idt) ->
|
||||
idt ||= ''
|
||||
|
||||
Reference in New Issue
Block a user