Fix handling of literal patterns
Wrap them in a LiteralPat node so they can be distinguished from literal expressions.
This commit is contained in:
@@ -850,6 +850,7 @@ impl ExprCollector {
|
||||
}
|
||||
|
||||
// TODO: implement
|
||||
ast::PatKind::LiteralPat(_) => Pat::Missing,
|
||||
ast::PatKind::SlicePat(_) | ast::PatKind::RangePat(_) => Pat::Missing,
|
||||
};
|
||||
let syntax_ptr = SyntaxNodePtr::new(pat.syntax());
|
||||
|
||||
Reference in New Issue
Block a user