Add missing scope descriptions
This commit is contained in:
parent
77240038bc
commit
8d877456b0
6 changed files with 10 additions and 0 deletions
|
@ -128,6 +128,7 @@ module Mutant
|
|||
end
|
||||
memoize :subject
|
||||
|
||||
# Visitor to find last match inside AST
|
||||
class Finder
|
||||
|
||||
# Run finder
|
||||
|
|
|
@ -89,6 +89,7 @@ module Mutant
|
|||
#
|
||||
abstract_method :candidate_scope
|
||||
|
||||
# Matcher for singleton methods
|
||||
class Singleton < self
|
||||
MATCHER = Matcher::Method::Singleton
|
||||
|
||||
|
@ -119,6 +120,7 @@ module Mutant
|
|||
|
||||
end # Singleton
|
||||
|
||||
# Matcher for instance methods
|
||||
class Instance < self
|
||||
MATCHER = Matcher::Method::Instance
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
module Mutant
|
||||
class Mutator
|
||||
class Node
|
||||
# Mutator for arguments node
|
||||
class Arguments < self
|
||||
|
||||
handle(:args)
|
||||
|
|
|
@ -26,6 +26,7 @@ module Mutant
|
|||
end
|
||||
end
|
||||
|
||||
# Mutator for hash pairs
|
||||
class Pair < Node
|
||||
|
||||
handle(:pair)
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
module Mutant
|
||||
class Mutator
|
||||
class Node
|
||||
# Mutator for multiple assignment left hand side nodes
|
||||
class MLHS < self
|
||||
|
||||
handle(:mlhs)
|
||||
|
|
|
@ -3,6 +3,8 @@ module Mutant
|
|||
class Rspec
|
||||
class DM2
|
||||
class Lookup
|
||||
|
||||
# Base class for dm2 style method lookup
|
||||
class Method < self
|
||||
|
||||
# Return spec files
|
||||
|
@ -91,6 +93,7 @@ module Mutant
|
|||
"#{base_path}/*_spec.rb"
|
||||
end
|
||||
|
||||
# Instance method dm2 style method lookup
|
||||
class Instance < self
|
||||
handle(Subject::Method::Instance)
|
||||
|
||||
|
@ -112,6 +115,7 @@ module Mutant
|
|||
|
||||
end # Instance
|
||||
|
||||
# Singleton method dm2 style method lookup
|
||||
class Singleton < self
|
||||
handle(Subject::Method::Singleton)
|
||||
|
||||
|
|
Loading…
Reference in a new issue