diff --git a/lib/soml/code/to_code.rb b/lib/soml/code/to_code.rb index 389dd4f..35c9f86 100644 --- a/lib/soml/code/to_code.rb +++ b/lib/soml/code/to_code.rb @@ -80,6 +80,8 @@ module Soml def on_statements statement w = Statements.new() + return w unless statement.children + return w unless statement.children.first w.statements = process_all(statement.children) w end