1 /* 2 * Copyright (c) 2021 Huawei Device Co., Ltd. 3 * 4 * HDF is dual licensed: you can use it either under the terms of 5 * the GPL, or the BSD license, at your option. 6 * See the LICENSE file in the root of this repository for complete details. 7 */ 8 9 #ifndef OHOS_HDI_ASTNODE_H 10 #define OHOS_HDI_ASTNODE_H 11 12 #include <string> 13 14 #include "util/common.h" 15 #include "util/light_refcount_base.h" 16 #include "util/string_helper.h" 17 18 namespace OHOS { 19 namespace HDI { 20 class ASTNode : public LightRefCountBase { 21 public: 22 virtual ~ASTNode(); 23 24 virtual std::string ToString() const; 25 26 virtual std::string Dump(const std::string &prefix); 27 }; 28 } // namespace HDI 29 } // namespace OHOS 30 31 #endif // OHOS_HDI_ASTNODE_H