diff options
author | Martin Fischer <martin@push-f.com> | 2023-09-27 17:28:20 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2023-09-28 07:26:44 +0200 |
commit | 202b5782ebc9661420623878898bc06ce861051b (patch) | |
tree | b91af41713466a2a5f48bf8c327e42638fa0386e /src/emitter.rs | |
parent | 9c089bb1eb0fa1b17d0804ff3ee8ed83d6fc77e6 (diff) |
chore: move emit_error method up
Diffstat (limited to 'src/emitter.rs')
-rw-r--r-- | src/emitter.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emitter.rs b/src/emitter.rs index 923da1c..ccc5a60 100644 --- a/src/emitter.rs +++ b/src/emitter.rs @@ -24,12 +24,12 @@ use crate::Error; #[allow(unused_variables)] // workaround for https://github.com/rust-lang/rust/issues/91074 pub trait Emitter<O> { - /// The state machine has reached the end of the file. - fn emit_eof(&mut self); - /// A (probably recoverable) parsing error has occurred. fn emit_error(&mut self, error: Error, span: Range<O>); + /// The state machine has reached the end of the file. + fn emit_eof(&mut self); + /// Emit a bunch of plain characters as character tokens. fn emit_string(&mut self, c: &str); |