Code coverage report for src/ast/variable.js

Statements: 100% (7 / 7)      Branches: 100% (2 / 2)      Functions: 100% (1 / 1)      Lines: 100% (7 / 7)      Ignored: none     

All files » src/ast/ » variable.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            1 1                   1 313 313 313     1  
/*!
 * Copyright (C) 2017 Glayzzle (BSD3 License)
 * @authors https://github.com/glayzzle/php-parser/graphs/contributors
 * @url http://glayzzle.com
 */
"use strict";
var Expr = require('./expression');
var KIND = 'variable';
 
/**
 * Any expression node. Since the left-hand side of an assignment may
 * be any expression in general, an expression can also be a pattern.
 * @constructor Variable
 * @extends {Expression}
 * @property {String|Node} name
 * @property {boolean} byref
 */
var Variable = Expr.extends(function Variable(name, byref, location) {
  Expr.apply(this, [KIND, location]);
  this.name = name;
  this.byref = byref || false;
});
 
module.exports = Variable;