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

## Statements: 100% (8 / 8) Branches: 100% (0 / 0) Functions: 100% (2 / 2) Lines: 100% (8 / 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
    161

    1
    44
    44
    44

    1

    4

    1var 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;