Code coverage report for src/ast/closure.js

Statements: 100% (11 / 11)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (11 / 11)      Ignored: none     

All files » src/ast/ » closure.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32            1 1                         1 3 3 3 3 3 3 3     1  
/*!
 * Copyright (C) 2017 Glayzzle (BSD3 License)
 * @authors https://github.com/glayzzle/php-parser/graphs/contributors
 * @url http://glayzzle.com
 */
"use strict";
var Statement = require('./statement');
var KIND = 'closure';
 
/**
 * Defines a closure
 * @constructor Closure
 * @extends {Statement}
 * @property {Parameter[]} arguments
 * @property {Variable[]} uses
 * @property {Identifier} type
 * @property {boolean} byref
 * @property {boolean} nullable
 * @property {Block|null} body
 */
var Closure = Statement.extends(function Closure(args, byref, uses, type, nullable, location) {
  Statement.apply(this, [KIND, location]);
  this.uses = uses;
  this.arguments = args;
  this.byref = byref;
  this.type = type;
  this.nullable = nullable;
  this.body = null;
});
 
module.exports = Closure;