forked from xxq250/Nasal-Interpreter
update
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user