Spicy
hilti
toolchain
include
ast
expressions
void.h
1
// Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2
3
#pragma once
4
5
#include <utility>
6
7
#include <hilti/ast/expression.h>
8
#include <hilti/ast/types/void.h>
9
10
namespace
hilti
{
11
namespace
expression {
12
14
class
Void
:
public
NodeBase
,
public
hilti::trait::isExpression
{
15
public
:
16
Void
(
Meta
m =
Meta
()) :
NodeBase
(std::move(m)) {}
17
18
bool
operator==(
const
Void
&
/* other */
)
const
{
return
true
; }
19
21
bool
isLhs
()
const
{
return
false
; }
23
bool
isTemporary
()
const
{
return
true
; }
25
auto
type
()
const
{
return
type::Void
(); }
27
auto
isConstant
()
const
{
return
true
; }
29
auto
isEqual
(
const
Expression& other)
const
{
return
node::isEqual(
this
, other); }
30
32
auto
properties
()
const
{
return
node::Properties
{}; }
33
};
34
35
}
// namespace expression
36
}
// namespace hilti
hilti::type::Void
Definition:
void.h:13
hilti::expression::Void::isEqual
auto isEqual(const Expression &other) const
Definition:
void.h:29
hilti
hilti::expression::Void::isLhs
bool isLhs() const
Definition:
void.h:21
hilti::trait::isExpression
Definition:
expression.h:16
hilti::Meta
Definition:
meta.h:18
hilti::node::Properties
std::map< std::string, node::detail::PropertyValue > Properties
Definition:
node.h:83
hilti::expression::Void::isTemporary
bool isTemporary() const
Definition:
void.h:23
hilti::expression::Void::properties
auto properties() const
Definition:
void.h:32
hilti::expression::Void::type
auto type() const
Definition:
void.h:25
hilti::expression::Void::isConstant
auto isConstant() const
Definition:
void.h:27
hilti::expression::Void
Definition:
void.h:14
hilti::NodeBase
Definition:
node.h:318
Generated by
1.8.13