Lines Matching refs:syn
8 use syn::parse::{Error, Parser};
9 use syn::{
62 /// Data extracted from syn source
133 fn introspect_type(item: &syn::Type, lookup: &Lookup) -> types::Type {
135 syn::Type::Path(TypePath { qself: None, path }) => {
180 syn::Type::Tuple(TypeTuple { elems, .. }) => {
184 syn::Type::Macro(TypeMacro { mac })
244 fn first_arg(params: &PathArguments) -> &syn::Type {
260 fn last_arg(params: &PathArguments) -> &syn::Type {
281 use syn::parse::{ParseStream, Result};
282 use syn::{
315 ast: syn::parse2(quote! {
337 ast: syn::parse2(quote! {
407 syn::custom_keyword!(hidden);
408 syn::custom_keyword!(macro_rules);
409 syn::custom_keyword!(Token);
538 let file = syn::parse_file(&src)?;
653 let file = syn::parse_file(&src)?;