-
- Downloads
Add the ASTExecutionInfo class handle cleanly execution information
The purpose of this is to provide some global execution info to parts of execution. This defines a singleton that is only constructable in the `parse` function. The instance thus only leave during the execution of the script. As a first stored, the ugly `p_root_node` static pointer has been encapsulated in this container.
Showing
- src/language/PugsParser.cpp 3 additions, 4 deletionssrc/language/PugsParser.cpp
- src/language/modules/UtilsModule.cpp 5 additions, 9 deletionssrc/language/modules/UtilsModule.cpp
- src/language/utils/ASTExecutionInfo.cpp 24 additions, 0 deletionssrc/language/utils/ASTExecutionInfo.cpp
- src/language/utils/ASTExecutionInfo.hpp 33 additions, 0 deletionssrc/language/utils/ASTExecutionInfo.hpp
- src/language/utils/CMakeLists.txt 1 addition, 0 deletionssrc/language/utils/CMakeLists.txt
Loading
Please register or sign in to comment