Index: src/sksl/ast/SkSLASTBreakStatement.h |
diff --git a/src/sksl/ast/SkSLASTBreakStatement.h b/src/sksl/ast/SkSLASTBreakStatement.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ede548cc246cbc10e997c25819ba940374a7dc9b |
--- /dev/null |
+++ b/src/sksl/ast/SkSLASTBreakStatement.h |
@@ -0,0 +1,31 @@ |
+/* |
+ * 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_ASTBREAKSTATEMENT |
+#define SKSL_ASTBREAKSTATEMENT |
+ |
+#include "SkSLASTStatement.h" |
+ |
+namespace SkSL { |
+ |
+/** |
+ * A 'break' statement. |
+ */ |
+struct ASTBreakStatement : public ASTStatement { |
+ ASTBreakStatement(Position position) |
+ : INHERITED(position, kBreak_Kind) {} |
+ |
+ std::string description() const override { |
+ return "break;"; |
+ } |
+ |
+ typedef ASTStatement INHERITED; |
+}; |
+ |
+} // namespace |
+ |
+#endif |