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

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

All files » lib/parser/ast/ » doctype.js

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    151

    1
    1
    1

    1

    1var BaseExpression = require("./base");

    function DoctypeExpression (value) {
      this.value = value;
      BaseExpression.apply(this, arguments);
    }

    BaseExpression.extend(DoctypeExpression, {
      type: "doctype",
      toJavaScript: function () {
        return "text('<!DOCTYPE " + this.value + ">')"
      }
    });

    module.exports = DoctypeExpression;