mirror of
https://github.com/fluencelabs/jsonpath
synced 2025-05-04 21:52: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 => {
|
||||
self.new_filter_context();
|
||||
}
|
||||
ParseToken::In | ParseToken::Leaves => {
|
||||
self.tokens.push(token.clone());
|
||||
}
|
||||
ParseToken::Array => {
|
||||
if let Some(ParseToken::Array) = self.tokens.last() {
|
||||
let array_token = self.tokens.pop();
|
||||
if let Some(ParseToken::Leaves) = self.tokens.last() {
|
||||
self.tokens.pop();
|
||||
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());
|
||||
}
|
||||
ParseToken::ArrayEof => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user