We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StmtList::push_front
1 parent 52f1ce1 commit 2cd7b0cCopy full SHA for 2cd7b0c
crates/syntax/src/ast/edit_in_place.rs
@@ -676,12 +676,6 @@ fn get_or_insert_comma_after(syntax: &SyntaxNode) -> SyntaxToken {
676
}
677
678
679
-impl ast::StmtList {
680
- pub fn push_front(&self, statement: ast::Stmt) {
681
- ted::insert(Position::after(self.l_curly_token().unwrap()), statement.syntax());
682
- }
683
-}
684
-
685
impl ast::VariantList {
686
pub fn add_variant(&self, variant: ast::Variant) {
687
let (indent, position) = match self.variants().last() {
0 commit comments