mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
rename
This commit is contained in:
parent
5d68a00d1c
commit
0c10fa31f5
1 changed files with 5 additions and 4 deletions
|
@ -665,7 +665,7 @@ pub fn canonicalize_defs<'a>(
|
||||||
struct DefId(u32);
|
struct DefId(u32);
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct DefIds {
|
struct DefOrdering {
|
||||||
home: ModuleId,
|
home: ModuleId,
|
||||||
symbol_to_id: Vec<(IdentId, u32)>,
|
symbol_to_id: Vec<(IdentId, u32)>,
|
||||||
|
|
||||||
|
@ -679,7 +679,7 @@ struct DefIds {
|
||||||
length: u32,
|
length: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl DefIds {
|
impl DefOrdering {
|
||||||
fn with_capacity(home: ModuleId, capacity: usize) -> Self {
|
fn with_capacity(home: ModuleId, capacity: usize) -> Self {
|
||||||
use bitvec::vec::BitVec;
|
use bitvec::vec::BitVec;
|
||||||
|
|
||||||
|
@ -930,7 +930,8 @@ pub fn sort_can_defs(
|
||||||
defs: CanDefs,
|
defs: CanDefs,
|
||||||
mut output: Output,
|
mut output: Output,
|
||||||
) -> (Result<Vec<Declaration>, RuntimeError>, Output) {
|
) -> (Result<Vec<Declaration>, RuntimeError>, Output) {
|
||||||
let def_ids = DefIds::from_defs_by_symbol(env, &defs.can_defs_by_symbol, &defs.refs_by_symbol);
|
let def_ids =
|
||||||
|
DefOrdering::from_defs_by_symbol(env, &defs.can_defs_by_symbol, &defs.refs_by_symbol);
|
||||||
|
|
||||||
let CanDefs {
|
let CanDefs {
|
||||||
refs_by_symbol,
|
refs_by_symbol,
|
||||||
|
@ -1214,7 +1215,7 @@ fn recurse_onto(length: usize, bitvec: &bitvec::vec::BitVec<u8>, v: usize, param
|
||||||
}
|
}
|
||||||
|
|
||||||
fn group_to_declaration(
|
fn group_to_declaration(
|
||||||
def_ids: &DefIds,
|
def_ids: &DefOrdering,
|
||||||
group: &[u32],
|
group: &[u32],
|
||||||
closures: &MutMap<Symbol, References>,
|
closures: &MutMap<Symbol, References>,
|
||||||
can_defs_by_symbol: &mut MutMap<Symbol, Def>,
|
can_defs_by_symbol: &mut MutMap<Symbol, Def>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue