You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

XMLDummy.js 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Generated by CoffeeScript 2.4.1
  2. (function() {
  3. var NodeType, XMLDummy, XMLNode;
  4. XMLNode = require('./XMLNode');
  5. NodeType = require('./NodeType');
  6. // Represents a raw node
  7. module.exports = XMLDummy = class XMLDummy extends XMLNode {
  8. // Initializes a new instance of `XMLDummy`
  9. // `XMLDummy` is a special node representing a node with
  10. // a null value. Dummy nodes are created while recursively
  11. // building the XML tree. Simply skipping null values doesn't
  12. // work because that would break the recursive chain.
  13. constructor(parent) {
  14. super(parent);
  15. this.type = NodeType.Dummy;
  16. }
  17. // Creates and returns a deep clone of `this`
  18. clone() {
  19. return Object.create(this);
  20. }
  21. // Converts the XML fragment to string
  22. // `options.pretty` pretty prints the result
  23. // `options.indent` indentation for pretty print
  24. // `options.offset` how many indentations to add to every line for pretty print
  25. // `options.newline` newline sequence for pretty print
  26. toString(options) {
  27. return '';
  28. }
  29. };
  30. }).call(this);