Spicy
hilti
toolchain
include
ast
statements
break.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
namespace
hilti
{
11
namespace
statement {
12
14
class
Break
:
public
NodeBase
,
public
hilti::trait::isStatement
{
15
public
:
16
Break
(
Meta
m =
Meta
()) :
NodeBase
({}, std::move(m)) {}
17
18
bool
operator==(
const
Break
&
/* other */
)
const
{
return
true
; }
19
21
auto
isEqual
(
const
Statement& other)
const
{
return
node::isEqual(
this
, other); }
22
24
auto
properties
()
const
{
return
node::Properties
{}; }
25
};
26
27
}
// namespace statement
28
}
// namespace hilti
hilti::statement::Break::isEqual
auto isEqual(const Statement &other) const
Definition:
break.h:21
hilti::statement::Break
Definition:
break.h:14
hilti
hilti::Meta
Definition:
meta.h:18
hilti::trait::isStatement
Definition:
statement.h:14
hilti::node::Properties
std::map< std::string, node::detail::PropertyValue > Properties
Definition:
node.h:99
hilti::statement::Break::properties
auto properties() const
Definition:
break.h:24
hilti::NodeBase
Definition:
node.h:358
Generated by
1.8.13