lib/reek/method_context.rb in reek-1.2.5 vs lib/reek/method_context.rb in reek-1.2.6
- old
+ new
@@ -74,10 +74,11 @@
super(outer, exp)
@parameters = exp[exp[0] == :defn ? 2 : 3] # SMELL: SimulatedPolymorphism
@parameters ||= []
@parameters.extend(MethodParameters)
@name = Name.new(exp[1])
+ @scope_connector = '#'
@num_statements = 0
@calls = Hash.new(0)
@depends_on_self = false
@refs = ObjectRefs.new
@outer.record_method(self) # SMELL: these could be found by tree walking
@@ -121,13 +122,9 @@
@outer.record_instance_variable(sym)
end
def record_depends_on_self
@depends_on_self = true
- end
-
- def outer_name
- "#{@outer.outer_name}#{@name}/"
end
def envious_receivers
return [] if @refs.self_is_max?
@refs.max_keys