tame/tamer/src/xir
Mike Gerwitz bba181f573 tamer: xir::attr::Attr: Introduce AttrSpan
This replaces a tuple with a tuple struct that allows for calculating more
complete span information, such as the span encompassing the entire
attribute and the value span including the surrounding quotes.

This includes logic that ought to be abstracted into `Span` itself, and it's
not as formal as I'd like it to be (e.g. not ensuring context), but this is
a good starting point.

Note that parsers call `Token::span`, which in turn calculates the attribute
span, each time an attribute is encountered during lowering.  But Rust does
a good job at optimizing away unnecessary operations, so this didn't have an
observable impact on time.

DEV-7145
2022-06-06 11:31:28 -04:00
..
attr tamer: Add Display impl for each ParseState for generic ParseErrors 2022-05-25 15:26:02 -04:00
flat tamer: xir::flat::{State=>XirToXirf}: Rename 2022-06-02 13:48:54 -04:00
reader tamer: Integrate xir::reader as a parser in the lowering pipeline 2022-06-02 10:30:44 -04:00
tree tamer: Add Display impl for each ParseState for generic ParseErrors 2022-05-25 15:26:02 -04:00
attr.rs tamer: xir::attr::Attr: Introduce AttrSpan 2022-06-06 11:31:28 -04:00
error.rs Copyright year update 2022 2022-05-03 14:14:29 -04:00
escape.rs Copyright year update 2022 2022-05-03 14:14:29 -04:00
flat.rs tamer: xir::flat::{State=>XirToXirf}: Rename 2022-06-02 13:48:54 -04:00
iter.rs Copyright year update 2022 2022-05-03 14:14:29 -04:00
pred.rs Copyright year update 2022 2022-05-03 14:14:29 -04:00
reader.rs tamer: Integrate xir::reader as a parser in the lowering pipeline 2022-06-02 10:30:44 -04:00
st.rs tamer: xir::st::qname: New module 2022-06-06 11:31:27 -04:00
tree.rs tamer: Add Display impl for each ParseState for generic ParseErrors 2022-05-25 15:26:02 -04:00
writer.rs Copyright year update 2022 2022-05-03 14:14:29 -04:00