all, any deprecated functions (#34)

Signed-off-by: Anand Krishnamoorthi <anakrish@microsoft.com>
This commit is contained in:
Anand Krishnamoorthi
2023-11-02 20:27:40 -07:00
committed by GitHub
parent c53d002347
commit 9ca55bcdf8
4 changed files with 65 additions and 0 deletions
+2
View File
@@ -46,6 +46,8 @@ pub fn get_extra_arg<'a>(expr: &'a Expr, arities: &HashMap<String, u8>) -> Optio
*n_args
} else if let Some((_, n_args)) = BUILTINS.get(path.as_str()) {
*n_args
} else if let Some((_, n_args)) = DEPRECATED.get(path.as_str()) {
*n_args
} else {
return None;
};