/** * Copyright (C) 2018 Glayzzle (BSD3 License) * @authors https://github.com/glayzzle/php-parser/graphs/contributors * @url http://glayzzle.com */ "use strict"; const Block = require("./block"); const KIND = "declare"; /** * The declare construct is used to set execution directives for a block of code * @constructor Declare * @memberOf module:php-parser * @extends {Block} * @property {DeclareDirective[]} directives * @property {string} mode * @see http://php.net/manual/en/control-structures.declare.php */ const Declare = Block.extends( KIND, function Declare(directives, body, mode, docs, location) { Block.apply(this, [KIND, body, docs, location]); this.directives = directives; this.mode = mode; } ); /** * The node is declared as a short tag syntax : * ```php *