Go back to PackageName

This commit is contained in:
Richard Feldman 2022-12-18 10:10:27 -05:00
parent ecf7bea259
commit 09764be7c3
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
14 changed files with 49 additions and 49 deletions

View file

@ -9,7 +9,7 @@ use roc_parse::{
},
header::{
AppHeader, ExposedName, HostedHeader, ImportsEntry, InterfaceHeader, KeywordItem,
ModuleName, PackageEntry, PackageHeader, PackagePath, PlatformHeader, PlatformRequires,
ModuleName, PackageEntry, PackageHeader, PackageName, PlatformHeader, PlatformRequires,
ProvidesTo, To, TypedIdent,
},
ident::UppercaseIdent,
@ -355,7 +355,7 @@ impl<'a> RemoveSpaces<'a> for ModuleName<'a> {
}
}
impl<'a> RemoveSpaces<'a> for PackagePath<'a> {
impl<'a> RemoveSpaces<'a> for PackageName<'a> {
fn remove_spaces(&self, _arena: &'a Bump) -> Self {
*self
}
@ -400,7 +400,7 @@ impl<'a> RemoveSpaces<'a> for PackageEntry<'a> {
PackageEntry {
shorthand: self.shorthand,
spaces_after_shorthand: &[],
package_path: self.package_path.remove_spaces(arena),
package_name: self.package_name.remove_spaces(arena),
}
}
}