Add has_override and script calls to function resolution cache.

This commit is contained in:
Stephen Chung
2021-02-07 15:09:27 +08:00
parent a54b88a8b0
commit 7b87f81850
6 changed files with 96 additions and 46 deletions

View File

@@ -149,8 +149,7 @@ impl Engine {
s if segments.is_empty()
&& token
.as_ref()
.map(|v| v.is_keyword() || v.is_reserved())
.unwrap_or(false) =>
.map_or(false, |v| v.is_keyword() || v.is_reserved()) =>
{
return Err(LexError::ImproperSymbol(
s.to_string(),