fix broken test
guard was green before i pushed, i swear No really
This commit is contained in:
parent
f2af763f14
commit
7c4faf7b2a
@ -34,7 +34,20 @@ module Vool
|
|||||||
|
|
||||||
private
|
private
|
||||||
def to_parfait(compiler)
|
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
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user