Code coverage report for src/ast/lookup.js

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

All files » src/ast/ » lookup.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            1 1                 1 43 43 43     1  
/*!
 * Copyright (C) 2017 Glayzzle (BSD3 License)
 * @authors https://github.com/glayzzle/php-parser/graphs/contributors
 * @url http://glayzzle.com
 */
 
var Expr = require('./expression');
var KIND = 'lookup';
 
/**
 * Lookup on an offset in the specified object
 * @constructor Lookup
 * @extends {Expression}
 * @property {Expression} what
 * @property {Expression} offset
 */
var Lookup = Expr.extends(function Lookup(kind, what, offset, location) {
  Expr.apply(this, [kind || KIND, location]);
  this.what = what;
  this.offset = offset;
});
 
module.exports = Lookup;