Spicy
spicy
toolchain
include
ast
statements
reject.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/meta.h>
8
#include <hilti/ast/node.h>
9
#include <hilti/ast/statement.h>
10
11
namespace
spicy::statement
{
12
class
Reject
:
public
hilti::NodeBase
,
public
hilti::trait::isStatement
{
13
public
:
14
Reject
(
hilti::Meta
m =
hilti::Meta
()) :
hilti::NodeBase
(std::move(m)) {}
15
16
friend
bool
operator==(
const
Reject
&,
const
Reject
&) {
return
false
; }
17
18
// Statement interface.
19
auto
isEqual(
const
hilti::Statement& other)
const
{
return
hilti::node::isEqual(
this
, other); }
20
21
// Node interface.
22
auto
properties()
const
{
return
hilti::node::Properties
{}; }
23
};
24
}
// namespace spicy::statement
spicy::statement
Definition:
confirm.h:11
spicy::statement::Reject
Definition:
reject.h:12
hilti::Meta
Definition:
meta.h:19
hilti::trait::isStatement
Definition:
statement.h:14
hilti::node::Properties
std::map< std::string, node::detail::PropertyValue > Properties
Definition:
node.h:97
hilti::NodeBase
Definition:
node.h:359
Generated by
1.8.13