class Prism::ConstantPathTargetNode

def full_name_parts

For example: [:Foo, :Bar]
Returns the list of parts for the full name of this constant path.
def full_name_parts
  parts =
    case parent
    when ConstantPathNode, ConstantReadNode
      parent.full_name_parts
    when nil
      [:""]
    else
      # e.g. self::Foo, (var)::Bar = baz
      raise ConstantPathNode::DynamicPartsInConstantPathError, "Constant target path contains dynamic parts. Cannot compute full name"
    end
  if name.nil?
    raise ConstantPathNode::MissingNodesInConstantPathError, "Constant target path contains missing nodes. Cannot compute full name"
  end
  parts.push(name)
end