Introducing a trait for running compares.
This should enable us to invoke compares without needing a reference ast node type.
This commit is contained in:
10
src/wasm_test/elisp_compare.rs
Normal file
10
src/wasm_test/elisp_compare.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use super::compare::WasmDiffEntry;
|
||||
use crate::compare::Token;
|
||||
|
||||
pub trait WasmElispCompare<'s, 'p> {
|
||||
fn compare_ast_node<'b>(
|
||||
&'p self,
|
||||
source: &'s str,
|
||||
emacs: &'b Token<'s>,
|
||||
) -> Result<WasmDiffEntry<'b, 's>, Box<dyn std::error::Error>>;
|
||||
}
|
||||
Reference in New Issue
Block a user