lib/analyst/entities/method_call.rb in analyst-0.16.1 vs lib/analyst/entities/method_call.rb in analyst-1.0.0

- old
+ new

@@ -17,29 +17,21 @@ args = ast.children[2..-1] args.map { |arg| process_node(arg) } end end - def constants - if target.is_a? Analyst::Entities::Constant - super << target - else - super - end - end - private def contents - arguments + (arguments + [target]).compact end def target_node ast.children.first end def target - process_node(target_node) + @target ||= process_node(target_node) end def name_node ast.children[1] end