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