mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-18 11:31:20 -05:00
waypoint -- jison has a reverse order of operations from yacc
This commit is contained in:
@@ -105,8 +105,8 @@ Node::contains: (block) ->
|
||||
|
||||
# toString representation of the node, for inspecting the parse tree.
|
||||
Node::toString: (idt) ->
|
||||
idt ||= ''
|
||||
(@type || 'anon') + "\n" + (idt + TAB + child.toString(idt + TAB) for child in @children)
|
||||
idt: (idt || '') + TAB
|
||||
@type + "\n" + (idt + child.toString(idt) for child in @children).join('')
|
||||
|
||||
# Default implementations of the common node methods.
|
||||
Node::unwrap: -> this
|
||||
|
||||
Reference in New Issue
Block a user