Skip to main content

Module heredoc

Module heredoc 

Source
Expand description

Heredoc collector and processor (previously perl-heredoc). Heredoc collector and processor for Perl.

This module handles the logic of collecting heredoc content from source code, dealing with indentation stripping (<<~), and line termination.

Structs§

CollectionResult
Result of collecting one or more heredocs from source.
HeredocContent
Collected content. Each segment is a line after indent stripping (no CR/LF).
PendingHeredoc
Declaration info captured at parse time.
Span
A byte-based span representing a range in source text.

Enums§

QuoteKind
Quoting style used in a heredoc declaration.

Functions§

collect_all
Collects all pending heredocs from source starting at the given offset.