Skip to main content

pm_parser_magic_comments_first

Function pm_parser_magic_comments_first 

Source
pub unsafe extern "C" fn pm_parser_magic_comments_first(
    parser: *const pm_parser_t,
) -> *const pm_magic_comment_t
Expand description

Returns the first magic comment associated with the given parser. Iterate over the rest with pm_magic_comment_next.

@param parser the parser whose magic comments we want to iterate over @returns the first magic comment, or NULL if there are no magic comments