| commit | d95b119931f3e167738110ab659b47add6451286 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Wed Mar 18 20:07:46 2020 -0700 |
| committer | David Tolnay <dtolnay@gmail.com> | Wed Mar 18 20:07:46 2020 -0700 |
| tree | dfb305baa5686e9622452753ac71fada8763a1ce | |
| parent | 33d302978062f1384c5657f11d07401602edf481 [diff] [blame] |
Preserve original tokens of Signature
diff --git a/syntax/mod.rs b/syntax/mod.rs index 6274cf1..7d2ca19 100644 --- a/syntax/mod.rs +++ b/syntax/mod.rs
@@ -12,7 +12,7 @@ mod tokens; pub mod types; -use proc_macro2::{Ident, Span}; +use proc_macro2::{Ident, Span, TokenStream}; use syn::{LitStr, Token}; pub use self::atom::Atom; @@ -57,6 +57,7 @@ pub args: Vec<Var>, pub ret: Option<Type>, pub throws: bool, + pub tokens: TokenStream, } #[derive(Eq, PartialEq, Hash)]