makeing the method of the compiler more or less private

in preparation for using the same code for bocks
This commit is contained in:
Torsten Ruger
2018-07-09 19:32:17 +03:00
parent 63b55f2aa4
commit edea9ac080
13 changed files with 45 additions and 35 deletions

View File

@ -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