Module: Ast::Merge::CommentLayoutEmissionSupport

Includes:
LineRangeSupport
Defined in:
lib/ast/merge/comment_layout_emission_support.rb

Overview

Shared helpers for merge emitters that reconstruct source regions around structural owners while preserving comment and blank-line ownership.

Format-specific gems still decide which comments are syntax comments and which owners participate in a merge. This module centralizes the language-neutral mechanics for querying attachments and calculating the source span that should be emitted for an owner.