refactor(generate): make AliasMap use BTreeMap over HashMap
This commit is contained in:
parent
262f1782cc
commit
b3bc7701cd
2 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use std::{collections::HashMap, sync::LazyLock};
|
||||
use std::{collections::BTreeMap, sync::LazyLock};
|
||||
#[cfg(feature = "load")]
|
||||
use std::{
|
||||
env, fs,
|
||||
|
|
@ -57,7 +57,7 @@ struct JSONOutput {
|
|||
syntax_grammar: SyntaxGrammar,
|
||||
lexical_grammar: LexicalGrammar,
|
||||
inlines: InlinedProductionMap,
|
||||
simple_aliases: HashMap<Symbol, Alias>,
|
||||
simple_aliases: BTreeMap<Symbol, Alias>,
|
||||
variable_info: Vec<VariableInfo>,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
use std::{collections::HashMap, fmt};
|
||||
use std::{collections::BTreeMap, fmt};
|
||||
|
||||
use serde::Serialize;
|
||||
use smallbitvec::SmallBitVec;
|
||||
|
|
@ -34,7 +34,7 @@ pub enum Precedence {
|
|||
Name(String),
|
||||
}
|
||||
|
||||
pub type AliasMap = HashMap<Symbol, Alias>;
|
||||
pub type AliasMap = BTreeMap<Symbol, Alias>;
|
||||
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq, Hash, Serialize)]
|
||||
pub struct MetadataParams {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue