avoid hashing identifier for function when empty
This commit is contained in:
parent
5b2cc1df77
commit
5551a8f8a8
@ -66,6 +66,9 @@ impl Scope {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn fn_exists(&self, name: &Identifier) -> bool {
|
fn fn_exists(&self, name: &Identifier) -> bool {
|
||||||
|
if self.functions.is_empty() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
self.functions.contains_key(name)
|
self.functions.contains_key(name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user