blob: c526b4b61c3864f35fb8727edb15890466efa4e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
/**
** \file ast/nil-exp.hh
** \brief Declaration of ast::NilExp.
*/
#pragma once
#include <ast/exp.hh>
#include <ast/type-constructor.hh>
namespace ast
{
/// NilExp.
class NilExp
: public Exp
, public TypeConstructor
{
public:
/** \name Ctor & dtor.
** \{ */
/// Construct a NilExp node.
explicit NilExp(const Location& location);
NilExp(const NilExp&) = delete;
NilExp& operator=(const NilExp&) = delete;
/// Destroy a NilExp node.
/** \} */
/// \name Visitors entry point.
/// \{ */
/// Accept a const visitor \a v.
void accept(ConstVisitor& v) const override;
/// Accept a non-const visitor \a v.
void accept(Visitor& v) override;
/// \}
};
} // namespace ast
#include <ast/nil-exp.hxx>
|