removed unused NamedList

args and locals got inlined into message, forgot to delete then
ripples out due to type creation
small type class api change, more ripples, but also more consistent
This commit is contained in:
2019-09-18 22:07:05 +03:00
parent 4b8ff52aa1
commit 38491d120b
15 changed files with 49 additions and 94 deletions

View File

@ -38,7 +38,7 @@ module Vool
type_hash = {}
@args.each {|arg| type_hash[arg] = :Object }
type_hash[:implicit_block] = :Block if has_yield?
Parfait::NamedList.type_for( type_hash )
Parfait::Type.for_hash( type_hash )
end
def to_s(depth = 0)
@ -60,7 +60,7 @@ module Vool
next unless node.is_a?(LocalVariable) or node.is_a?(LocalAssignment)
type_hash[node.name] = :Object
end
Parfait::NamedList.type_for( type_hash )
Parfait::Type.for_hash( type_hash )
end
end