Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

remove reference to full_name

+5 -5
+3 -3
compiler-core/src/analyse/imports.rs
··· 136 136 fn register_unqualified_value( 137 137 &mut self, 138 138 import: &UnqualifiedImport, 139 - module_full_name: EcoString, 139 + module_name: EcoString, 140 140 module: &ModuleInterface, 141 141 ) { 142 142 let import_name = &import.name; ··· 189 189 self.environment.references.register_value( 190 190 used_name.clone(), 191 191 EntityKind::ImportedConstructor { 192 - module: module_full_name, 192 + module: module_name, 193 193 }, 194 194 location, 195 195 Publicity::Private, ··· 208 208 self.environment.references.register_value( 209 209 used_name.clone(), 210 210 EntityKind::ImportedValue { 211 - module: module_full_name, 211 + module: module_name, 212 212 }, 213 213 location, 214 214 Publicity::Private,
+2 -2
compiler-core/src/reference.rs
··· 95 95 pub type_references: ReferenceMap, 96 96 97 97 /// This map is used to access the nodes of modules that were not 98 - /// aliased, given their full name. 98 + /// aliased, given their name. 99 99 /// We need this to keep track of references made to imports by unqualified 100 100 /// values/types: when an unqualified item is used we want to add an edge 101 101 /// pointing to the import it comes from, so that if the item is used the ··· 287 287 // unused! 288 288 self.current_node = self.create_node(used_name.clone(), EntityLayer::Module); 289 289 // Also we want to register the fact that if this alias is used then the 290 - // import is used: so we add a reference from the alias to the full import 290 + // import is used: so we add a reference from the alias to the import 291 291 // we've just added. 292 292 self.register_module_reference(module_name.clone()); 293 293