blob: 2937dae44704df0c24de10195b518c06e5758e3d [file] [log] [blame]
/*
* 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(int offset)
: INHERITED(offset, kBreak_Kind) {}
String description() const override {
return String("break;");
}
typedef ASTStatement INHERITED;
};
} // namespace
#endif