• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_ASTVOIDTYPE_H
10 #define OHOS_HDI_ASTVOIDTYPE_H
11 
12 #include "ast/ast_type.h"
13 
14 namespace OHOS {
15 namespace HDI {
16 class ASTVoidType : public ASTType {
17 public:
18     bool IsVoidType() override;
19 
20     String ToString() override;
21 
22     TypeKind GetTypeKind() override;
23 
24     String EmitCType(TypeMode mode = TypeMode::NO_MODE) const override;
25 
26     String EmitCppType(TypeMode mode = TypeMode::NO_MODE) const override;
27 
28     String EmitJavaType(TypeMode mode, bool isInnerType = false) const override;
29 };
30 } // namespace HDI
31 } // namespace OHOS
32 
33 #endif // OHOS_HDI_ASTBOOLEANTYPE_H