Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,14 +137,21 @@ pub use parser::Parser;
#[allow(deprecated)]
pub use select::{Selector, SelectorMut};

pub use paths::{
tokens::ParseToken,
ParserTokenHandler,
ParserNodeVisitor,
StrRange,
PathParser
};

#[deprecated(
since = "0.4.0",
note = "It will be move to common module. since 0.5"
)]
pub use select::JsonPathError;

pub use selector::{JsonSelector, JsonSelectorMut};
pub use paths::PathParser;
use std::rc::Rc;

#[doc(hidden)]
Expand Down
6 changes: 3 additions & 3 deletions src/paths/path_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use super::tokens::{FilterToken, ParseToken, Token};

#[derive(Clone, Debug)]
pub struct PathParser<'a> {
parser: ParserImpl<'a>,
pub parser: ParserImpl<'a>,
}

impl<'a> PathParser<'a> {
Expand Down Expand Up @@ -40,9 +40,9 @@ impl<'a> PathParser<'a> {
impl<'a> ParserNodeVisitor<'a> for PathParser<'a> {}

#[derive(Clone, Debug)]
struct ParserImpl<'a> {
pub struct ParserImpl<'a> {
token_reader: TokenReader<'a>,
parse_node: Option<ParserNode>,
pub parse_node: Option<ParserNode>,
}

impl<'a> ParserImpl<'a> {
Expand Down