change name of enum:ast_hashmember->ast_pair, ast_new_iter->ast_iter

change ast_hashmember to ast_pair is because this type in fact is the same as std::pair<std::string,nasal_ref> in C++
This commit is contained in:
ValKmjolnir
2022-01-31 17:22:44 +08:00
parent baa4f5a258
commit eaa54035ff
6 changed files with 29 additions and 31 deletions
+7 -7
View File
@@ -4,11 +4,11 @@
class nasal_import
{
private:
nasal_err& nerr;
nasal_err& nerr;
std::vector<std::string> files;
bool check_import(const nasal_ast&);
bool check_exist(const std::string&);
void linker(nasal_ast&,nasal_ast&&);
bool check_import(const nasal_ast&);
bool check_exist(const std::string&);
void linker(nasal_ast&,nasal_ast&&);
nasal_ast file_import(nasal_ast&);
nasal_ast load(nasal_ast&,uint16_t);
public:
@@ -22,9 +22,9 @@ bool nasal_import::check_import(const nasal_ast& node)
/*
only this kind of node can be recognized as 'import':
call
id:import
call_func
string:'filename'
|_id:import
|_call_func
|_string:'filename'
*/
return (
node.type()==ast_call &&