makeing the method of the compiler more or less private
in preparation for using the same code for bocks
This commit is contained in:
@ -11,12 +11,8 @@ module Vool
|
||||
class LocalVariable < Expression
|
||||
include Named
|
||||
def slot_definition(compiler)
|
||||
if compiler.method.arguments_type.variable_index(@name)
|
||||
type = :arguments
|
||||
else
|
||||
type = :frame
|
||||
end
|
||||
Mom::SlotDefinition.new(:message , [type , @name])
|
||||
slot_def = compiler.slot_type_for(@name)
|
||||
Mom::SlotDefinition.new(:message , slot_def)
|
||||
end
|
||||
def to_s
|
||||
name.to_s
|
||||
|
Reference in New Issue
Block a user