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§
- Collection
Result - Result of collecting one or more heredocs from source.
- Heredoc
Content - Collected content. Each segment is a line after indent stripping (no CR/LF).
- Pending
Heredoc - Declaration info captured at parse time.
- Span
- A byte-based span representing a range in source text.
Enums§
- Quote
Kind - Quoting style used in a heredoc declaration.
Functions§
- collect_
all - Collects all pending heredocs from source starting at the given offset.