(input: &str)
| 12 | } |
| 13 | |
| 14 | pub fn parse_extend_entity_inference(input: &str) -> IResult<&str, ExtendEntityInference> { |
| 15 | map( |
| 16 | tuple((ws(tag("extend")), ws(parse_variable), ws(parse_attributes0))), |
| 17 | |(_, variable, attributes)| ExtendEntityInference { |
| 18 | variable: variable.to_string(), |
| 19 | attributes, |
| 20 | }, |
| 21 | )(input) |
| 22 | } |
| 23 | |
| 24 | #[cfg(test)] |
| 25 | mod tests { |