class RubyLsp::Cell::CodeLens

def on_class_node_enter(node)

: (Prism::ClassNode node) -> void
def on_class_node_enter(node)
  @nesting.push(node.constant_path.slice)
  class_name = @nesting.join("::")
  return unless class_name.end_with?("Cell")
  return unless @global_state.index.linearized_ancestors_of(class_name).include?("Cell::ViewModel")
  @in_cell_class = true
  add_default_goto_code_lens(node)
end