Clean parser.
This commit is contained in:
parent
b83e6178b8
commit
6221f50545
|
@ -1,17 +1,4 @@
|
||||||
use syn::spanned::Spanned;
|
use syn::{spanned::Spanned, FnArg, Ident, ImplItem, ImplItemMethod, ItemImpl, ReturnType};
|
||||||
use syn::{FnArg, Ident, ImplItem, ImplItemMethod, ItemImpl, ReturnType};
|
|
||||||
|
|
||||||
pub enum ValueType {
|
|
||||||
I32,
|
|
||||||
I64,
|
|
||||||
F32,
|
|
||||||
F64,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub struct Signature {
|
|
||||||
pub params: Vec<ValueType>,
|
|
||||||
pub return_ty: Option<ValueType>,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Clone)]
|
#[derive(Clone)]
|
||||||
pub struct Param {
|
pub struct Param {
|
||||||
|
|
Loading…
Reference in New Issue