Debian Codegraph @

src/sksl/ir/SkSLContinueStatement.h

raw
1 /*
2 * Copyright 2016 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SKSL_CONTINUESTATEMENT
9 #define SKSL_CONTINUESTATEMENT
10
11 #include "src/sksl/ir/SkSLExpression.h"
12 #include "src/sksl/ir/SkSLStatement.h"
13
14 namespace SkSL {
15
16 /**
17 * A 'continue' statement.
18 */
19 class ContinueStatement final : public Statement {
20 public:
21 inline static constexpr Kind kIRNodeKind = Kind::kContinue;
22
23 explicit ContinueStatement(Position pos) : INHERITED(pos, kIRNodeKind) {}
24
25 static std::unique_ptr<Statement> Make(Position pos) {
26 return std::make_unique<ContinueStatement>(pos);
27 }
28
29 std::string description() const override {
30 return "continue;";
31 }
32
33 private:
34 using INHERITED = Statement;
35 };
36
37 } // namespace SkSL
38
39 #endif