lib/analyst/entities/constant_assignment.rb in analyst-0.16.1 vs lib/analyst/entities/constant_assignment.rb in analyst-1.0.0
- old
+ new
@@ -8,14 +8,10 @@
def name
name_node.to_s
end
def full_name
- scope.nil? ? name : scope.full_name + '::' + name
- end
-
- def scope
- @scope ||= process_node(ast.children.first)
+ parent.nil? ? name : parent.full_name + '::' + name
end
private
def name_node