src/lib/Parser.js
/**
  Consumes a prolog if possible.

  @returns {boolean}
    Whether a prolog was consumed.

  @see https://www.w3.org/TR/2008/REC-xml-20081126/#sec-prolog-dtd
  */
Consumes a prolog if possible.
Consumes a prolog if possible .
consumeProlog() {
    let { scanner } = this;
    let mark = scanner.charIndex;
    this.consumeXmlDeclaration();
    while (this.consumeMisc()) {} 
    if (this.consumeDoctypeDeclaration()) {
      while (this.consumeMisc()) {} 
    }
    return mark < scanner.charIndex;
  }
consumeProlog ( ) { let { scanner } = this ; let mark = scanner . charIndex ; this . consumeXmlDeclaration ( ) ; while ( this . consumeMisc ( ) ) { } if ( this . consumeDoctypeDeclaration ( ) ) { while ( this . consumeMisc ( ) ) { } } return mark < scanner . charIndex ; }
Consumes a prolog if possible.
Consumes a prolog if possible .
// eslint-disable-line no-empty // eslint-disable-line no-empty