diff options
Diffstat (limited to '')
| -rw-r--r-- | src/yuescript/ast.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuescript/ast.hpp b/src/yuescript/ast.hpp index 6f89b52..4860fc9 100644 --- a/src/yuescript/ast.hpp +++ b/src/yuescript/ast.hpp | |||
| @@ -16,6 +16,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | |||
| 16 | #include <list> | 16 | #include <list> |
| 17 | #include <stdexcept> | 17 | #include <stdexcept> |
| 18 | #include <type_traits> | 18 | #include <type_traits> |
| 19 | #include <string_view> | ||
| 19 | 20 | ||
| 20 | #include "yuescript/parser.hpp" | 21 | #include "yuescript/parser.hpp" |
| 21 | 22 | ||
| @@ -96,6 +97,8 @@ public: | |||
| 96 | 97 | ||
| 97 | virtual int getId() const = 0; | 98 | virtual int getId() const = 0; |
| 98 | 99 | ||
| 100 | virtual const std::string_view getName() const = 0; | ||
| 101 | |||
| 99 | template<class T> | 102 | template<class T> |
| 100 | inline ast_ptr<false, T> new_ptr() const { | 103 | inline ast_ptr<false, T> new_ptr() const { |
| 101 | auto item = new T; | 104 | auto item = new T; |
