pub fn try_map_aspect<P: Parser>(p: &mut P, kw: Kw) -> ReportedResult<Option<ast::ParenElems>> {
    if p.peek(0).value == Keyword(kw) && p.peek(1).value == Keyword(Kw::Map) {
        p.bump();
        p.bump();
        let v = parse_paren_expr(p)?;
        Ok(Some(v))
    } else {
        Ok(None)
    }
}
/// Try to parse a generic or port map aspect. See IEEE 1076-2008 sections
/// 6.5.7.2 and 6.5.7.3.
///
/// ```text
/// map_aspect := ["generic"|"port"] "map" paren_expr
/// ```
Try to parse a generic or port map aspect.


Try to parse a generic or port map aspect .
pub fn try_map_aspect<P: Parser>(p: &mut P, kw: Kw) -> ReportedResult<Option<ast::ParenElems>> {
    if p.peek(0).value == Keyword(kw) && p.peek(1).value == Keyword(Kw::Map) {
        p.bump();
        p.bump();
        let v = parse_paren_expr(p)?;
        Ok(Some(v))
    } else {
        Ok(None)
    }
}
pub fn try_map_aspect < P : Parser > ( p : & mut P , kw : Kw ) -> ReportedResult < Option < ast :: ParenElems > > { if p . peek ( 0 ) . value == Keyword ( kw ) && p . peek ( 1 ) . value == Keyword ( Kw :: Map ) { p . bump ( ) ; p . bump ( ) ; let v = parse_paren_expr ( p ) ? ; Ok ( Some ( v ) ) } else { Ok ( None ) } }
Try to parse a generic or port map aspect.
Try to parse a generic or port map aspect .
p
&mut P
kw
Kw
p
&mut P
kw
Kw