Skip to main content

Module docblock

Module docblock 

Source

Structs§

PrecedingDocblocks
An iterator that yields docblock trivia nodes preceding a position, walking backwards through stacked docblocks using the same gap-checking logic as get_docblock_before_position.

Functions§

get_docblock_before_position
Retrieves the docblock comment that appears before a specific position in the source code.
get_docblock_for_node
Retrieves the docblock comment associated with a given node in the program. If the node is preceded by a docblock comment, it returns that comment.