problem-solving icon indicating copy to clipboard operation
problem-solving copied to clipboard

Include line numbers in Pod::Blocks

Open finanalyst opened this issue 2 years ago • 0 comments

Pod::Blocks are objects that have attributes such as 'contents' and 'meta'. By having another attribute 'line' containing the line number within the program where the block starts, eg, where the =head marker appears, it will be possible to create tools to find errors more easily. …

When Pod::Blocks are generated the compiler contains state information about where each Block starts. This can be found when a program is running eg say "At $?LINE". Incorporating this as an attribute of a Pod::Block would make it easier to have tools when there are long Rakudoc documents. …

finanalyst avatar Jul 26 '22 17:07 finanalyst