Class: Moult::Clones::CloneSet

Inherits:
Struct
  • Object
show all
Defined in:
lib/moult/clones.rb

Overview

One structurally-equivalent clone group. node_type is flay's sexp type (e.g. :defn, :call, :class). occurrences are the sites, in source order.

Instance Attribute Summary collapse

Instance Attribute Details

#kindObject

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



30
31
32
# File 'lib/moult/clones.rb', line 30

def kind
  @kind
end

#massObject

Returns the value of attribute mass

Returns:

  • (Object)

    the current value of mass



30
31
32
# File 'lib/moult/clones.rb', line 30

def mass
  @mass
end

#node_typeObject

Returns the value of attribute node_type

Returns:

  • (Object)

    the current value of node_type



30
31
32
# File 'lib/moult/clones.rb', line 30

def node_type
  @node_type
end

#occurrencesObject

Returns the value of attribute occurrences

Returns:

  • (Object)

    the current value of occurrences



30
31
32
# File 'lib/moult/clones.rb', line 30

def occurrences
  @occurrences
end

#structural_hashObject

Returns the value of attribute structural_hash

Returns:

  • (Object)

    the current value of structural_hash



30
31
32
# File 'lib/moult/clones.rb', line 30

def structural_hash
  @structural_hash
end