diff options
Diffstat (limited to 'gfx/skia/skia/src/sksl/ir/SkSLContinueStatement.h')
-rw-r--r-- | gfx/skia/skia/src/sksl/ir/SkSLContinueStatement.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/gfx/skia/skia/src/sksl/ir/SkSLContinueStatement.h b/gfx/skia/skia/src/sksl/ir/SkSLContinueStatement.h new file mode 100644 index 0000000000..64eadbe53d --- /dev/null +++ b/gfx/skia/skia/src/sksl/ir/SkSLContinueStatement.h @@ -0,0 +1,44 @@ +/* + * Copyright 2016 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ + +#ifndef SKSL_CONTINUESTATEMENT +#define SKSL_CONTINUESTATEMENT + +#include "include/private/SkSLStatement.h" +#include "src/sksl/ir/SkSLExpression.h" + +namespace SkSL { + +/** + * A 'continue' statement. + */ +class ContinueStatement final : public Statement { +public: + inline static constexpr Kind kIRNodeKind = Kind::kContinue; + + ContinueStatement(Position pos) + : INHERITED(pos, kIRNodeKind) {} + + static std::unique_ptr<Statement> Make(Position pos) { + return std::make_unique<ContinueStatement>(pos); + } + + std::unique_ptr<Statement> clone() const override { + return std::make_unique<ContinueStatement>(fPosition); + } + + std::string description() const override { + return "continue;"; + } + +private: + using INHERITED = Statement; +}; + +} // namespace SkSL + +#endif |