rename for_type to self_type

and split a base class off TypedMethod
This commit is contained in:
Torsten Ruger
2018-07-06 20:01:17 +03:00
parent 3f80953385
commit acd5cd8f30
19 changed files with 103 additions and 75 deletions

View File

@ -24,10 +24,9 @@ module Vool
def to_mom( _ )
create_class_object
method_compilers = []
body.statements.each do |node|
method_compilers = body.statements.collect do |node|
raise "Only methods for now #{node}" unless node.is_a?(MethodStatement)
method_compilers << node.to_mom(@clazz)
node.to_mom(@clazz)
end
Mom::MomCompiler.new(method_compilers)
end