Lines Matching +full:path +full:- +full:parse
3 use syn::parse::discouraged::Speculative;
4 use syn::parse::{Error, Parse, ParseStream, Result};
11 impl Parse for File {
12 fn parse(input: ParseStream) -> Result<Self> { in parse() method
15 parse(input, &mut modules)?; in parse()
20 fn parse(input: ParseStream, modules: &mut Vec<Module>) -> Result<()> { in parse() function
26 let path = &attr.path().segments; in parse() localVariable
27 if path.len() == 2 && path[0].ident == "cxx" && path[1].ident == "bridge" { in parse()
35 ahead.parse::<Visibility>()?; in parse()
36 ahead.parse::<Option<Token![unsafe]>>()?; in parse()
38 let item: Item = input.parse()?; in parse()
46 let mut module: Module = input.parse()?; in parse()
53 input.parse::<Token![mod]>()?; in parse()
54 input.parse::<Ident>()?; in parse()
55 let semi: Option<Token![;]> = input.parse()?; in parse()
59 parse(&content, modules)?; in parse()
66 fn parse_args(attr: &Attribute) -> Result<Namespace> { in parse_args()
67 if let Meta::Path(_) = attr.meta { in parse_args()