SkSLContinueStatement.h 748 B

123456789101112131415161718192021222324252627282930313233343536
  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. #ifndef SKSL_CONTINUESTATEMENT
  8. #define SKSL_CONTINUESTATEMENT
  9. #include "src/sksl/ir/SkSLExpression.h"
  10. #include "src/sksl/ir/SkSLStatement.h"
  11. namespace SkSL {
  12. /**
  13. * A 'continue' statement.
  14. */
  15. struct ContinueStatement : public Statement {
  16. ContinueStatement(int offset)
  17. : INHERITED(offset, kContinue_Kind) {}
  18. std::unique_ptr<Statement> clone() const override {
  19. return std::unique_ptr<Statement>(new ContinueStatement(fOffset));
  20. }
  21. String description() const override {
  22. return String("continue;");
  23. }
  24. typedef Statement INHERITED;
  25. };
  26. } // namespace
  27. #endif