Reorder StrLit fields.

To better match `MetaItemLit`.
This commit is contained in:
Nicholas Nethercote 2022-11-29 13:46:28 +11:00
parent 2fd364acff
commit d5526ff40d

View File

@ -1746,13 +1746,14 @@ pub struct MetaItemLit {
/// Similar to `MetaItemLit`, but restricted to string literals. /// Similar to `MetaItemLit`, but restricted to string literals.
#[derive(Clone, Copy, Encodable, Decodable, Debug)] #[derive(Clone, Copy, Encodable, Decodable, Debug)]
pub struct StrLit { pub struct StrLit {
/// The original literal token as written in source code. /// The original literal as written in source code.
pub style: StrStyle,
pub symbol: Symbol, pub symbol: Symbol,
/// The original suffix as written in source code.
pub suffix: Option<Symbol>, pub suffix: Option<Symbol>,
pub span: Span, /// The semantic (unescaped) representation of the literal.
/// The unescaped "semantic" representation of the literal lowered from the original token.
pub symbol_unescaped: Symbol, pub symbol_unescaped: Symbol,
pub style: StrStyle,
pub span: Span,
} }
impl StrLit { impl StrLit {