Remove the exit matcher block.

I'm not sure this is a problem, but while I'm debugging I want this removed to be safe.
This commit is contained in:
Tom Alexander 2023-03-31 13:22:30 -04:00
parent 2b0e88dc01
commit e681f8fdff
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -66,10 +66,10 @@ impl<'r, 's> ContextTree<'r, 's> {
return at_end_of_file; return at_end_of_file;
} }
let blocked_context = // let blocked_context =
self.with_additional_node(ContextElement::ExitMatcherNode(ExitMatcherNode { // self.with_additional_node(ContextElement::ExitMatcherNode(ExitMatcherNode {
exit_matcher: ChainBehavior::IgnoreParent(Some(&always_fail)), // exit_matcher: ChainBehavior::IgnoreParent(Some(&always_fail)),
})); // }));
for current_node in self.iter() { for current_node in self.iter() {
let context_element = current_node.get_data(); let context_element = current_node.get_data();
@ -77,14 +77,14 @@ impl<'r, 's> ContextTree<'r, 's> {
ContextElement::ExitMatcherNode(exit_matcher) => { ContextElement::ExitMatcherNode(exit_matcher) => {
match exit_matcher.exit_matcher { match exit_matcher.exit_matcher {
ChainBehavior::AndParent(Some(matcher)) => { ChainBehavior::AndParent(Some(matcher)) => {
let local_result = matcher(&blocked_context, i); let local_result = matcher(self, i);
if local_result.is_ok() { if local_result.is_ok() {
return local_result; return local_result;
} }
} }
ChainBehavior::AndParent(None) => {} ChainBehavior::AndParent(None) => {}
ChainBehavior::IgnoreParent(Some(matcher)) => { ChainBehavior::IgnoreParent(Some(matcher)) => {
let local_result = matcher(&blocked_context, i); let local_result = matcher(self, i);
if local_result.is_ok() { if local_result.is_ok() {
return local_result; return local_result;
} }