remove unknown type

This commit is contained in:
Torsten Ruger
2015-09-23 18:35:37 +03:00
parent 4b613fb632
commit 9fe01c7b31
15 changed files with 49 additions and 38 deletions

View File

@ -4,7 +4,7 @@ module Virtual
# Slots in the Frame are local or temporary variables in a message
class FrameSlot < Slot
def initialize index , type = Unknown, value = nil
def initialize index , type , value = nil
super(type, value)
@index = index
end

View File

@ -7,7 +7,7 @@ module Virtual
# The Message has a layout as per the constant above
class MessageSlot < Slot
def initialize type = Unknown , value = nil
def initialize type , value = nil
super(type , value )
end
def object_name
@ -19,28 +19,28 @@ module Virtual
# Return is the return of MessageSlot
class Return < MessageSlot
def initialize type = Unknown, value = nil
def initialize type , value = nil
super( type , value )
end
end
# Self is the self in MessageSlot
class Self < MessageSlot
def initialize type = Unknown, value = nil
def initialize type , value = nil
super( type , value )
end
end
# MessageName of the current message
class MessageName < MessageSlot
def initialize type = Unknown, value = nil
def initialize type , value = nil
super( type , value )
end
end
# NewMessageName of the next message
class ArgSlot < MessageSlot
def initialize index , type = Unknown, value = nil
def initialize index , type , value = nil
@index = index
super( type , value )
end

View File

@ -7,7 +7,7 @@ module Virtual
# The Message has a layout as per the constant above
class NewMessageSlot < Slot
def initialize type = Unknown, value = nil
def initialize type , value = nil
super( type , value )
end
def object_name
@ -19,28 +19,28 @@ module Virtual
# NewReturn is the return of NewMessageSlot
class NewReturn < NewMessageSlot
def initialize type = Unknown, value = nil
def initialize type , value = nil
super( type , value )
end
end
# NewSelf is the self of NewMessageSlot
class NewSelf < NewMessageSlot
def initialize type = Unknown, value = nil
def initialize type , value = nil
super( type , value )
end
end
# NewMessageName of the next message
class NewMessageName < NewMessageSlot
def initialize type = Unknown, value = nil
def initialize type , value = nil
super( type , value )
end
end
# NewMessageName of the next message
class NewArgSlot < NewMessageSlot
def initialize index , type = Unknown, value = nil
def initialize index , type , value = nil
@index = index
super( type , value )
end

View File

@ -14,7 +14,7 @@ module Virtual
# that object
#
class SelfSlot < Slot
def initialize type = Unknown, value = nil
def initialize type , value = nil
super
end
def object_name