treereduce 0.4.1

Fast, syntax-aware, multi-language program reducer based on delta debugging
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use tree_sitter::Tree;

/// The original parse tree and program source code provided by the user
#[derive(Clone, Debug)]
pub struct Original {
    pub tree: Tree,
    pub text: Vec<u8>,
}

impl Original {
    #[must_use]
    pub fn new(tree: Tree, text: Vec<u8>) -> Original {
        Original { tree, text }
    }
}