get guard to run several test on one change by setting up names accordingly
This commit is contained in:
@ -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"
|
||||
|
@ -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 )
|
||||
|
14
lib/vool/statements/local_statement.rb
Normal file
14
lib/vool/statements/local_statement.rb
Normal 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
|
Reference in New Issue
Block a user