tamer: parse::Token: Swap trait method order

This just places `ir_name` first in the trait definition so that it'll be
inserted in that same order when using LSP.

DEV-7145
main
Mike Gerwitz 2022-07-20 13:58:44 -04:00
parent c856fd72d9
commit e517e15a29
1 changed files with 3 additions and 3 deletions

View File

@ -46,14 +46,14 @@ use std::{
/// A token may be a lexeme with associated data,
/// or a more structured object having been lowered from other IRs.
pub trait Token: Display + Debug + PartialEq {
/// Retrieve the [`Span`] representing the source location of the token.
fn span(&self) -> Span;
/// Name of the intermediate representation (IR) this token represents.
///
/// This is used for diagnostic information,
/// primarily for debugging TAMER itself.
fn ir_name() -> &'static str;
/// Retrieve the [`Span`] representing the source location of the token.
fn span(&self) -> Span;
}
impl<T: Token> From<T> for Span {