diff options
author | Nadrieril | 2019-09-10 13:57:43 +0200 |
---|---|---|
committer | Nadrieril | 2019-09-10 13:57:43 +0200 |
commit | a86088505de38c9b3d4c4bb8feecab28055514d8 (patch) | |
tree | 84e820c0bfb3a494628c23b7b233121b22c6c1fc /pest_consume_macros | |
parent | fc8fce6facee9bd50958e78f3b177e16ed065c19 (diff) |
Rename parse_children to match_inputs
Diffstat (limited to '')
-rw-r--r-- | pest_consume_macros/src/lib.rs | 6 | ||||
-rw-r--r-- | pest_consume_macros/src/match_inputs.rs (renamed from pest_consume_macros/src/parse_children.rs) | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/pest_consume_macros/src/lib.rs b/pest_consume_macros/src/lib.rs index dd437f6..b5368ec 100644 --- a/pest_consume_macros/src/lib.rs +++ b/pest_consume_macros/src/lib.rs @@ -7,7 +7,7 @@ extern crate proc_macro; mod make_parser; -mod parse_children; +mod match_inputs; use proc_macro::TokenStream; @@ -20,8 +20,8 @@ pub fn make_parser(attrs: TokenStream, input: TokenStream) -> TokenStream { } #[proc_macro] -pub fn parse_children(input: TokenStream) -> TokenStream { - TokenStream::from(match parse_children::parse_children(input) { +pub fn match_inputs(input: TokenStream) -> TokenStream { + TokenStream::from(match match_inputs::match_inputs(input) { Ok(tokens) => tokens, Err(err) => err.to_compile_error(), }) diff --git a/pest_consume_macros/src/parse_children.rs b/pest_consume_macros/src/match_inputs.rs index 8feef03..3a325a6 100644 --- a/pest_consume_macros/src/parse_children.rs +++ b/pest_consume_macros/src/match_inputs.rs @@ -170,7 +170,7 @@ fn make_parser_branch( )) } -pub fn parse_children( +pub fn match_inputs( input: proc_macro::TokenStream, ) -> Result<proc_macro2::TokenStream> { let input: ParseChildrenInput = syn::parse(input)?; |