From b6fdb51ed1232adb706099801b14f4ac8f4f738c Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sun, 11 Dec 2016 12:13:42 +0200 Subject: [PATCH] fix statement list compilation --- lib/typed/compiler.rb | 4 ---- lib/typed/compiler/statement_list.rb | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/typed/compiler.rb b/lib/typed/compiler.rb index 87de0b21..547f1184 100644 --- a/lib/typed/compiler.rb +++ b/lib/typed/compiler.rb @@ -88,10 +88,6 @@ module Typed end end - def on_Statements(codes) - process_all codes.statements - end - # create the method, do some checks and set it as the current method to be added to # class_name and method_name are pretty clear, args are given as a ruby array def create_method( class_name , method_name , args = {}) diff --git a/lib/typed/compiler/statement_list.rb b/lib/typed/compiler/statement_list.rb index addb4952..dc6c127a 100644 --- a/lib/typed/compiler/statement_list.rb +++ b/lib/typed/compiler/statement_list.rb @@ -1,7 +1,7 @@ module Typed module StatementList - def on_statements statement - process_all( statement.children ) + def on_Statements statement + process_all( statement.statements ) end end end