pub fn print_object_entry_and_merge(
out: &mut String,
entry: &TsObjectEntry,
depth: usize,
map: &mut SourceMapBuilder,
source_id: usize,
)Expand description
print_object_entry’s own sibling (#1477), the TsObjectEntry::Method
counterpart to print_class_method_and_merge/print_stmt_and_merge:
identical rendering, but merges a Method entry’s own body nested_map
into map as it prints, at the real print-time offset. Kept separate
from print_object_entry itself so every existing caller’s own call
sites are untouched.
Appends to the caller’s own out, the same “must be the real buffer,
not a throwaway local one” reasoning print_stmt_and_merge’s own doc
explains in full. source_id: see this crate’s own private MergeTarget’s own doc.