flake-edit 0.3.4

Edit your flake inputs with ease.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use rnix::SyntaxKind;
use thiserror::Error;

/// Errors that can occur during AST walking and manipulation.
#[derive(Debug, Error)]
pub enum WalkerError {
    #[error("Expected root node, found {0:?}")]
    NotARoot(SyntaxKind),

    #[error("Expected {expected:?}, found {found:?}")]
    UnexpectedNodeKind {
        expected: SyntaxKind,
        found: SyntaxKind,
    },

    #[error("Feature not yet implemented: {0}")]
    NotImplemented(String),
}