Spicy
spicy
toolchain
include
ast
statements
stop.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/statement.h>
9
10
#include <spicy/ast/aliases.h>
11
12
namespace
spicy::statement
{
13
15
class
Stop
:
public
hilti::NodeBase
,
public
hilti::trait::isStatement
{
16
public
:
17
Stop
(
Meta
m =
Meta
()) :
hilti::NodeBase
(std::move(m)) {}
18
19
bool
operator==(
const
Stop
&
/* other */
)
const
{
return
true
; }
20
21
// Statement interface.
22
auto
isEqual(
const
hilti::Statement& other)
const
{
return
hilti::node::isEqual(
this
, other); }
23
24
// Node interface.
25
auto
properties()
const
{
return
hilti::node::Properties
{}; }
26
};
27
28
}
// namespace spicy::statement
spicy::statement
Definition:
confirm.h:11
spicy::statement::Stop
Definition:
stop.h:15
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:98
hilti::NodeBase
Definition:
node.h:360
Generated by
1.8.13