test(interface-types) Fix all tests based on previous commits.

This commit is contained in:
Ivan Enderlin
2020-02-26 15:32:14 +01:00
parent f9ef4a650b
commit d4c01e8ddc
6 changed files with 413 additions and 782 deletions

View File

@ -83,16 +83,6 @@ pub struct Export<'input> {
pub function_type: u32,
}
/// Represents an implementation.
#[derive(PartialEq, Debug)]
pub struct Implementation {
/// The core function type.
pub core_function_type: u32,
/// The adapter function type.
pub adapter_function_type: u32,
}
/// Represents an adapter.
#[derive(PartialEq, Debug)]
pub struct Adapter<'input> {
@ -103,6 +93,16 @@ pub struct Adapter<'input> {
pub instructions: Vec<Instruction<'input>>,
}
/// Represents an implementation.
#[derive(PartialEq, Debug)]
pub struct Implementation {
/// The core function type.
pub core_function_type: u32,
/// The adapter function type.
pub adapter_function_type: u32,
}
/// Represents the kind of interface.
#[derive(PartialEq, Debug)]
pub(crate) enum InterfaceKind {