diff --git a/tamer/src/ir/xir/tree.rs b/tamer/src/ir/xir/tree.rs index ab3054b4..6cfe3686 100644 --- a/tamer/src/ir/xir/tree.rs +++ b/tamer/src/ir/xir/tree.rs @@ -436,16 +436,9 @@ pub enum Stack { /// This should be consumed and emitted. ClosedElement(Element), - /// A standalone attribute is awaiting its value. - /// - /// Standalone attributes will be emitted as [`Attr`] _instead_ of being - /// bound to an [`Element`]. - /// This occurs when attributes are parsed in an independent context. - AttrName(QName, Span), - /// An attribute is awaiting its value, /// after which it will be attached to an element. - EleAttrName(ElementStack, QName, Span), + AttrName(ElementStack, QName, Span), } impl Default for Stack { @@ -514,7 +507,7 @@ impl Stack { fn open_attr(self, name: QName, span: Span) -> Result { Ok(match self { Self::BuddingElement(ele_stack) => { - Self::EleAttrName(ele_stack, name, span) + Self::AttrName(ele_stack, name, span) } _ => todo! {}, @@ -525,7 +518,7 @@ impl Stack { /// element. fn close_attr(self, value: AttrValue, span: Span) -> Result { Ok(match self { - Self::EleAttrName(ele_stack, name, open_span) => { + Self::AttrName(ele_stack, name, open_span) => { Stack::BuddingElement(ele_stack.consume_attr(Attr { name, value,