lib/analyst/entities/constant_assignment.rb in analyst-1.0.0 vs lib/analyst/entities/constant_assignment.rb in analyst-1.0.1

- old
+ new

@@ -8,10 +8,14 @@ def name name_node.to_s end def full_name - parent.nil? ? name : parent.full_name + '::' + name + (scope.nil? ? parent.full_name : scope.full_name) + '::' + name + end + + def scope + @scope ||= process_node(ast.children.first) end private def name_node