mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 20:34:07 +08:00
Use the correct type names for forward-declared parser types
This allows using the types in cxx bridges other than the ones that define them.
This commit is contained in:
parent
b92313b79d
commit
494f10a5a8
|
@ -37,7 +37,7 @@ struct SourceRange {
|
|||
};
|
||||
using source_range_t = SourceRange;
|
||||
|
||||
enum class parse_token_type_t : uint8_t {
|
||||
enum class ParseTokenType : uint8_t {
|
||||
invalid = 1,
|
||||
string,
|
||||
pipe,
|
||||
|
@ -51,8 +51,9 @@ enum class parse_token_type_t : uint8_t {
|
|||
tokenizer_error,
|
||||
comment,
|
||||
};
|
||||
using parse_token_type_t = ParseTokenType;
|
||||
|
||||
enum class parse_keyword_t : uint8_t {
|
||||
enum class ParseKeyword : uint8_t {
|
||||
none,
|
||||
kw_and,
|
||||
kw_begin,
|
||||
|
@ -73,13 +74,15 @@ enum class parse_keyword_t : uint8_t {
|
|||
kw_time,
|
||||
kw_while,
|
||||
};
|
||||
using parse_keyword_t = ParseKeyword;
|
||||
|
||||
enum class statement_decoration_t : uint8_t {
|
||||
enum class StatementDecoration : uint8_t {
|
||||
none,
|
||||
command,
|
||||
builtin,
|
||||
exec,
|
||||
};
|
||||
using statement_decoration_t = StatementDecoration;
|
||||
|
||||
enum class parse_error_code_t : uint8_t {
|
||||
none,
|
||||
|
|
Loading…
Reference in New Issue
Block a user