php-parser
Version:
Parse PHP code from JS and returns its AST
23 lines (20 loc) • 541 B
JavaScript
/**
* Copyright (C) 2018 Glayzzle (BSD3 License)
* @authors https://github.com/glayzzle/php-parser/graphs/contributors
* @url http://glayzzle.com
*/
;
const Statement = require("./statement");
const KIND = "goto";
/**
* Defines goto statement
* @constructor Goto
* @memberOf module:php-parser
* @extends {Statement}
* @property {string} label
* @see {Label}
*/
module.exports = Statement.extends(KIND, function Goto(label, docs, location) {
Statement.apply(this, [KIND, docs, location]);
this.label = label;
});