Code coverage report for lib/parser/ast/not.js

Statements: 50% (4 / 8)      Branches: 100% (0 / 0)      Functions: 0% (0 / 2)      Lines: 50% (4 / 8)      Ignored: none     

All files » lib/parser/ast/ » not.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 171   1           1             1  
var BaseExpression = require("./base");
 
function NotExpression(operator, expression) {
  this.operator = operator;
  this.expression = expression;
  BaseExpression.apply(this, arguments);
}
 
BaseExpression.extend(NotExpression, {
  type: "!",
  toJavaScript: function() {
    return this.operator + this.expression.toJavaScript();
  }
});
 
module.exports = NotExpression;