get guard to run several test on one change by setting up names accordingly

This commit is contained in:
Torsten Ruger
2017-04-12 20:18:41 +03:00
parent 21e426be71
commit 87133722b3
9 changed files with 40 additions and 11 deletions

View File

@ -57,6 +57,7 @@ require_relative "statements/class_statement"
require_relative "statements/hash_statement"
require_relative "statements/if_statement"
require_relative "statements/logical_statement"
require_relative "statements/local_statement"
require_relative "statements/method_statement"
require_relative "statements/return_statement"
require_relative "statements/statements"

View File

@ -9,17 +9,7 @@ module Vool
super
end
end
class LocalAssignment < Assignment
# used to collect frame information
def add_local( array )
array << @name
end
def to_mom( method )
Mom::SlotConstant.new([:message , :self , @name] , @value)
end
end
class InstanceAssignment < Assignment
# used to collect type information
def add_ivar( array )

View File

@ -0,0 +1,14 @@
module Vool
class LocalAssignment < Assignment
# used to collect frame information
def add_local( array )
array << @name
end
def to_mom( method )
Mom::SlotConstant.new([:message , :self , @name] , @value)
end
end
end