Add a DocumentRoot context element storing the original full document.

This might be used for look-behind instead of storing previous element nodes in the context tree.
This commit is contained in:
Tom Alexander
2023-03-23 16:40:39 -04:00
parent 7402de6a7c
commit 36210c2d7f
5 changed files with 24 additions and 14 deletions

View File

@@ -94,6 +94,7 @@ impl<'r, 's> ContextTree<'r, 's> {
#[derive(Debug)]
pub enum ContextElement<'r, 's> {
DocumentRoot(&'s str),
ExitMatcherNode(ExitMatcherNode<'r>),
PreviousElementNode(PreviousElementNode<'s>),
Context(&'r str),