UNPKG

php-parser

Version:

Parse PHP code from JS and returns its AST

23 lines (20 loc) 625 B
/** * 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 = "halt"; /** * Halts the compiler execution * @constructor Halt * @memberOf module:php-parser * @extends {Statement} * @property {String} after - String after the halt statement * @see http://php.net/manual/en/function.halt-compiler.php */ module.exports = Statement.extends(KIND, function Halt(after, docs, location) { Statement.apply(this, [KIND, docs, location]); this.after = after; });