Flutter Engine
The Flutter Engine
SkSLBreakStatement.h
Go to the documentation of this file.
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_BREAKSTATEMENT
9#define SKSL_BREAKSTATEMENT
10
13
14namespace SkSL {
15
16/**
17 * A 'break' statement.
18 */
19class BreakStatement final : public Statement {
20public:
21 inline static constexpr Kind kIRNodeKind = Kind::kBreak;
22
25
26 static std::unique_ptr<Statement> Make(Position pos) {
27 return std::make_unique<BreakStatement>(pos);
28 }
29
30 std::string description() const override {
31 return "break;";
32 }
33
34private:
35 using INHERITED = Statement;
36};
37
38} // namespace SkSL
39
40#endif
SkPoint pos
BreakStatement(Position pos)
static constexpr Kind kIRNodeKind
std::string description() const override
static std::unique_ptr< Statement > Make(Position pos)
Statement(Position pos, Kind kind)
Definition: SkSLStatement.h:23
StatementKind
Definition: SkSLIRNode.h:43