syntax,ssr: Implement statement parsing

This commit is contained in:
Marijn Suijten 2020-11-17 15:34:41 +01:00
parent 354c1daedc
commit cc081b7e1c
31 changed files with 167 additions and 0 deletions

View file

@ -78,6 +78,7 @@ impl ParsedRule {
builder.try_add(ast::Item::parse(&raw_pattern), raw_template.map(ast::Item::parse));
builder.try_add(ast::Path::parse(&raw_pattern), raw_template.map(ast::Path::parse));
builder.try_add(ast::Pat::parse(&raw_pattern), raw_template.map(ast::Pat::parse));
builder.try_add(ast::Stmt::parse(&raw_pattern), raw_template.map(ast::Stmt::parse));
builder.build()
}
}