mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Remove stray dbg
s
This commit is contained in:
parent
64b559073d
commit
cbbbb8c855
4 changed files with 4 additions and 9 deletions
|
@ -522,8 +522,6 @@ pub fn canonicalize_defs<'a>(
|
||||||
.register_ability(loc_ability_name.value, can_members);
|
.register_ability(loc_ability_name.value, can_members);
|
||||||
}
|
}
|
||||||
|
|
||||||
dbg!(&scope.abilities_store, pattern_type);
|
|
||||||
|
|
||||||
// Now that we have the scope completely assembled, and shadowing resolved,
|
// Now that we have the scope completely assembled, and shadowing resolved,
|
||||||
// we're ready to canonicalize any body exprs.
|
// we're ready to canonicalize any body exprs.
|
||||||
|
|
||||||
|
|
|
@ -166,7 +166,7 @@ pub fn canonicalize_def_header_pattern<'a>(
|
||||||
match pattern {
|
match pattern {
|
||||||
// Identifiers that shadow ability members may appear (and may only appear) at the header of a def.
|
// Identifiers that shadow ability members may appear (and may only appear) at the header of a def.
|
||||||
Identifier(name) => match scope.introduce_or_shadow_ability_member(
|
Identifier(name) => match scope.introduce_or_shadow_ability_member(
|
||||||
dbg!((*name).into()),
|
(*name).into(),
|
||||||
&env.exposed_ident_ids,
|
&env.exposed_ident_ids,
|
||||||
&mut env.ident_ids,
|
&mut env.ident_ids,
|
||||||
region,
|
region,
|
||||||
|
|
|
@ -248,17 +248,14 @@ impl Scope {
|
||||||
all_ident_ids: &mut IdentIds,
|
all_ident_ids: &mut IdentIds,
|
||||||
region: Region,
|
region: Region,
|
||||||
) -> Result<(Symbol, Option<Symbol>), (Region, Loc<Ident>, Symbol)> {
|
) -> Result<(Symbol, Option<Symbol>), (Region, Loc<Ident>, Symbol)> {
|
||||||
match dbg!(self.idents.get(&ident)) {
|
match self.idents.get(&ident) {
|
||||||
Some(&(original_symbol, original_region)) => {
|
Some(&(original_symbol, original_region)) => {
|
||||||
let shadow_ident_id = all_ident_ids.add(ident.clone());
|
let shadow_ident_id = all_ident_ids.add(ident.clone());
|
||||||
let shadow_symbol = Symbol::new(self.home, shadow_ident_id);
|
let shadow_symbol = Symbol::new(self.home, shadow_ident_id);
|
||||||
|
|
||||||
self.symbols.insert(shadow_symbol, region);
|
self.symbols.insert(shadow_symbol, region);
|
||||||
|
|
||||||
if self
|
if self.abilities_store.is_ability_member_name(original_symbol) {
|
||||||
.abilities_store
|
|
||||||
.is_ability_member_name(dbg!(original_symbol))
|
|
||||||
{
|
|
||||||
self.abilities_store
|
self.abilities_store
|
||||||
.register_specializing_symbol(shadow_symbol, original_symbol);
|
.register_specializing_symbol(shadow_symbol, original_symbol);
|
||||||
// Add a symbol for the shadow, but don't re-associate the member name.
|
// Add a symbol for the shadow, but don't re-associate the member name.
|
||||||
|
|
|
@ -1769,7 +1769,7 @@ pub fn to_doc<'b>(
|
||||||
) -> (RocDocBuilder<'b>, AbleVariables) {
|
) -> (RocDocBuilder<'b>, AbleVariables) {
|
||||||
let mut ctx = Context::default();
|
let mut ctx = Context::default();
|
||||||
|
|
||||||
let doc = to_doc_help(&mut ctx, alloc, parens, dbg!(tipe));
|
let doc = to_doc_help(&mut ctx, alloc, parens, tipe);
|
||||||
|
|
||||||
(doc, ctx.able_variables)
|
(doc, ctx.able_variables)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue