fix broken test

guard was green before i pushed, i swear
No really
This commit is contained in:
Torsten Ruger 2018-07-07 17:34:48 +03:00
parent f2af763f14
commit 7c4faf7b2a

View File

@ -34,7 +34,20 @@ module Vool
private
def to_parfait(compiler)
Parfait::Block.new(compiler.method.self_type , make_arg_type , make_frame)
end
def make_arg_type( )
type_hash = {}
@args.each {|arg| type_hash[arg] = :Object }
Parfait::NamedList.type_for( type_hash )
end
def make_frame
type_hash = {}
@body.each do |node|
next unless node.is_a?(LocalVariable) or node.is_a?(LocalAssignment)
type_hash[node.name] = :Object
end
Parfait::NamedList.type_for( type_hash )
end
end