Permalink
Browse files

Pass through ControlFlow in osh2oil

  • Loading branch information...
Andy Chu
Andy Chu committed Jul 31, 2017
1 parent a6bc98e commit 8e371a87af352c7a981999d735122a7ea6e340df
Showing with 6 additions and 2 deletions.
  1. +6 −2 tools/osh2oil.py
View
@@ -267,7 +267,7 @@ def DoRedirect(self, node, local_symbols):
# TODO:
# If do_expansion, then """, else '''
# HereDoc LST node needs spids for both opening and closing delimiter.
raise NotImplementedError
raise NotImplementedError(str(node))
else:
raise AssertionError(node.tag)
@@ -802,12 +802,16 @@ def DoCommand(self, node, local_symbols, at_top_level=False):
elif node.tag == command_e.NoOp:
pass
elif node.tag == command_e.ControlFlow:
# No change for break / return / continue
pass
elif node.tag == command_e.TimeBlock:
self.DoCommand(node.pipeline, local_symbols)
else:
log('Command not handled: %s', node)
raise AssertionError(node.tag)
raise AssertionError(str(node.tag))
def DoWordAsExpr(self, node, local_symbols):
style = _GetRhsStyle(node)

0 comments on commit 8e371a8

Please sign in to comment.