Spicy
yield.h
1 // Copyright (c) 2020-now by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <memory>
6 #include <utility>
7 
8 #include <hilti/ast/statement.h>
9 
10 namespace hilti::statement {
11 
13 class Yield : public Statement {
14 public:
15  static auto create(ASTContext* ctx, Meta meta = {}) { return ctx->make<Yield>(ctx, {}, std::move(meta)); }
16 
17 protected:
19  : Statement(ctx, NodeTags, std::move(children), std::move(meta)) {}
20 
21  HILTI_NODE_1(statement::Yield, Statement, final);
22 };
23 
24 } // namespace hilti::statement
Definition: ast-context.h:121
T * make(Args &&... args)
Definition: ast-context.h:366
Definition: meta.h:30
const auto & children() const
Definition: node.h:364
const auto & meta() const
Definition: node.h:306
Definition: forward.h:758
Definition: statement.h:15
Definition: yield.h:13