22 lines
528 B
JavaScript
22 lines
528 B
JavaScript
/**
|
|
* Copyright (C) 2018 Glayzzle (BSD3 License)
|
|
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
|
|
* @url http://glayzzle.com
|
|
*/
|
|
"use strict";
|
|
|
|
const Statement = require("./statement");
|
|
const KIND = "break";
|
|
|
|
/**
|
|
* A break statement
|
|
* @constructor Break
|
|
* @memberOf module:php-parser
|
|
* @extends {Statement}
|
|
* @property {Number|Null} level
|
|
*/
|
|
module.exports = Statement.extends(KIND, function Break(level, docs, location) {
|
|
Statement.apply(this, [KIND, docs, location]);
|
|
this.level = level;
|
|
});
|