mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-05-05 06:02:13 +00:00
Leaves 처리 위치 변경
This commit is contained in:
parent
5f832e8fe7
commit
d384079842
@ -896,17 +896,17 @@ impl<'a, 'b> NodeVisitor for Selector<'a, 'b> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
ParseToken::Relative => {
|
ParseToken::Relative => {
|
||||||
self.new_filter_context();
|
if let Some(ParseToken::Array) = self.tokens.last() {
|
||||||
}
|
let array_token = self.tokens.pop();
|
||||||
ParseToken::In | ParseToken::Leaves => {
|
|
||||||
self.tokens.push(token.clone());
|
|
||||||
}
|
|
||||||
ParseToken::Array => {
|
|
||||||
if let Some(ParseToken::Leaves) = self.tokens.last() {
|
if let Some(ParseToken::Leaves) = self.tokens.last() {
|
||||||
self.tokens.pop();
|
self.tokens.pop();
|
||||||
self.all_from_current();
|
self.all_from_current();
|
||||||
}
|
}
|
||||||
|
self.tokens.push(array_token.unwrap());
|
||||||
|
}
|
||||||
|
self.new_filter_context();
|
||||||
|
}
|
||||||
|
ParseToken::In | ParseToken::Leaves | ParseToken::Array => {
|
||||||
self.tokens.push(token.clone());
|
self.tokens.push(token.clone());
|
||||||
}
|
}
|
||||||
ParseToken::ArrayEof => {
|
ParseToken::ArrayEof => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user