fix many tests with preloading
preloading, something akin to builtin, loads some very small predefined (macro) methods for the tests to work (ie call)
This commit is contained in:
@ -208,6 +208,7 @@ module Risc
|
||||
factory = Parfait.object_space.get_factory_for( :Integer )
|
||||
calling = factory.get_type.get_method( :get_more )
|
||||
calling = Parfait.object_space.get_main #until we actually parse Factory
|
||||
raise "no main defined" unless calling
|
||||
Mom::MessageSetup.new( calling ).build_with( self )
|
||||
self.build do
|
||||
factory_reg! << factory
|
||||
|
@ -50,7 +50,7 @@ module Vool
|
||||
@body.each(&block) if @body
|
||||
end
|
||||
|
||||
# This creates the Parfait class. But doesn not hadle reopening yet, so only new classes
|
||||
# This creates the Parfait class. But doesn not handle reopening yet, so only new classes
|
||||
# Creating the class involves creating the instance_type (or an initial version)
|
||||
# which means knowing all used names. So we go through the code looking for
|
||||
# InstanceVariables or InstanceVariable Assignments, to do that.
|
||||
@ -70,8 +70,8 @@ module Vool
|
||||
ivar_hash[node.name] = :Object
|
||||
end
|
||||
@clazz.set_instance_type( Parfait::Type.for_hash( @clazz , ivar_hash ) )
|
||||
@clazz
|
||||
end
|
||||
@clazz
|
||||
end
|
||||
|
||||
def to_s(depth = 0)
|
||||
|
Reference in New Issue
Block a user