document new function, remove old comments

This commit is contained in:
gluaxspeed 2021-09-06 08:14:24 -07:00
parent dcdb234637
commit 9c29f21775
2 changed files with 2 additions and 8 deletions

View File

@ -89,14 +89,6 @@ impl<'a> Function<'a> {
)
.into());
}
/* else if let Some(_) = scope.resolve_global_const(input_variable.identifier.name.as_ref()) {
// TODO ERROR FOR INPUT BEING NAMED AFTER GLOBAL CONST.
return Err(AsgError::duplicate_function_input_definition(
input_variable.identifier.name.as_ref(),
&input_variable.identifier.span,
)
.into());
} */
let variable = scope.context.alloc_variable(RefCell::new(crate::InnerVariable {
id: scope.context.get_id(),

View File

@ -130,6 +130,8 @@ fn resolve_import_package_access(
}
}
/// Checks whether a given string is found in any other global namespaces.
/// If it is found it returns an error.
fn check_top_level_namespaces<'a>(
name: &str,
span: &Span,