mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-22 09:01:35 +03:00
document new function, remove old comments
This commit is contained in:
parent
dcdb234637
commit
9c29f21775
@ -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(),
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user