Open yuriry opened 1 year ago
It appears to be harder to fix than it looks. For now as a workaround you can enable visitor generation(-visitor
argument), it seems to also generate correct Listenable
implementation with it.
Thank you so much! -visitor
argument fixes the problem and exit_or is now being called.
exit()
method fromListenable
trait is not implemented for labeled contexts. As a result,fn exit_or(&mut self, _ctx: &OrContext<'a>)
not being called when walking the generated tree :(See also impl<'input, 'a> Listenable<dyn LabelsListener<'input> + 'a> for AddContext<'input>