Skip to main content

pm_node_comment

Function pm_node_comment 

Source
pub unsafe extern "C" fn pm_node_comment(
    parser: *const pm_parser_t,
    node: *const pm_node_t,
    index: u32,
) -> *const pm_comment_t
Expand description

Returns the comment at the given index among the comments owned by the given node, which are ordered by start offset.

@param parser the parser that produced the node @param node the node whose comment we want to get @param index the index of the comment among those owned by the node @returns the comment at the given index, or NULL if the index is out of range