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