summaryrefslogtreecommitdiff
path: root/pest_consume
diff options
context:
space:
mode:
authorNadrieril2019-09-10 13:57:43 +0200
committerNadrieril2019-09-10 13:57:43 +0200
commita86088505de38c9b3d4c4bb8feecab28055514d8 (patch)
tree84e820c0bfb3a494628c23b7b233121b22c6c1fc /pest_consume
parentfc8fce6facee9bd50958e78f3b177e16ed065c19 (diff)
Rename parse_children to match_inputs
Diffstat (limited to '')
-rw-r--r--pest_consume/src/lib.rs2
-rw-r--r--pest_consume_macros/src/lib.rs6
-rw-r--r--pest_consume_macros/src/match_inputs.rs (renamed from pest_consume_macros/src/parse_children.rs)2
3 files changed, 5 insertions, 5 deletions
diff --git a/pest_consume/src/lib.rs b/pest_consume/src/lib.rs
index 70aee56..7e2c1ca 100644
--- a/pest_consume/src/lib.rs
+++ b/pest_consume/src/lib.rs
@@ -2,7 +2,7 @@ use pest::error::{Error, ErrorVariant};
use pest::iterators::Pair;
use pest::Span;
-pub use pest_consume_macros::{make_parser, parse_children};
+pub use pest_consume_macros::{make_parser, match_inputs};
/// Carries a pest Pair alongside custom user data.
#[derive(Debug)]
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)?;