This commit is contained in:
Valk Richard Li
2021-02-13 11:09:31 +08:00
parent 7329c70492
commit 944f713ee9
4 changed files with 97 additions and 75 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ bool nasal_import::check_import(nasal_ast& node)
return false;
if(ref_vec[0].get_str()!="import")
return false;
if(ref_vec[1].get_type()!=ast_call_func)
if(ref_vec[1].get_type()!=ast_callf)
return false;
if(ref_vec[1].get_children().size()!=1 || ref_vec[1].get_children()[0].get_type()!=ast_str)
return false;