Start using 'symbol' in favor of 'name' or 'label'

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-02-09 13:12:56 -05:00
parent e198da5825
commit 1c16be650a
2 changed files with 6 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ impl<'a> Assemble<'a> {
let export_keys = exports.keys().collect::<HashSet<&String>>();
let global_keys = self.symbols.globals().keys().collect::<HashSet<&String>>();
if let Some(key) = export_keys.intersection(&global_keys).next() {
return Err(AssembleError::DuplicateExportName {
return Err(AssembleError::DuplicateExportSymbol {
name: key.to_string(),
});
}
@@ -134,7 +134,7 @@ impl<'a> Assemble<'a> {
}
Line::LabelDef(label) => {
if labels.contains_key(label) {
return Err(AssembleError::DuplicateName {
return Err(AssembleError::DuplicateSymbol {
name: label.to_string(),
});
} else {