pub fn find_tags<'d, 'n>(
doc: &'d PhpDoc,
name: &'n str,
) -> impl Iterator<Item = &'d PhpDocTag> + use<'d, 'n>Expand description
Find all tags with the given name.
ยงExample
use phpdoc_parser::{parse, find_tags};
let doc = parse("/**\n * @param int $x\n * @param string $y\n */");
assert_eq!(find_tags(&doc, "param").count(), 2);