mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Derive Debug for some parser types
This commit is contained in:
parent
912f10ceb0
commit
dc4cb84ffc
1 changed files with 3 additions and 3 deletions
|
@ -77,7 +77,7 @@ mod parse_constants_ffi {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A range of source code.
|
/// A range of source code.
|
||||||
#[derive(PartialEq, Eq, Clone, Copy)]
|
#[derive(PartialEq, Eq, Clone, Copy, Debug)]
|
||||||
struct SourceRange {
|
struct SourceRange {
|
||||||
start: u32,
|
start: u32,
|
||||||
length: u32,
|
length: u32,
|
||||||
|
@ -90,7 +90,7 @@ mod parse_constants_ffi {
|
||||||
|
|
||||||
/// IMPORTANT: If the following enum table is modified you must also update token_type_description below.
|
/// IMPORTANT: If the following enum table is modified you must also update token_type_description below.
|
||||||
/// TODO above comment can be removed when we drop the FFI and get real enums.
|
/// TODO above comment can be removed when we drop the FFI and get real enums.
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
enum ParseTokenType {
|
enum ParseTokenType {
|
||||||
invalid = 1,
|
invalid = 1,
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ mod parse_constants_ffi {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[repr(u8)]
|
#[repr(u8)]
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy, Debug)]
|
||||||
enum ParseKeyword {
|
enum ParseKeyword {
|
||||||
// 'none' is not a keyword, it is a sentinel indicating nothing.
|
// 'none' is not a keyword, it is a sentinel indicating nothing.
|
||||||
none,
|
none,
|
||||||
|
|
Loading…
Reference in a new issue