From 993d56e9159cbedaf37d59212e36632fdeb617ad Mon Sep 17 00:00:00 2001 From: Matheus Hernandes Date: Tue, 28 Jul 2020 19:09:38 -0300 Subject: [PATCH 01/30] organizing tests --- tests/Parser.test.js | 7 ++ tests/strategies/Csv.test.js | 167 ++++++++++++++++--------------- tests/strategies/Json.test.js | 54 +++++----- tests/strategies/Xml.test.js | 180 ++++++++++++++++++---------------- 4 files changed, 219 insertions(+), 189 deletions(-) diff --git a/tests/Parser.test.js b/tests/Parser.test.js index e9c8206..ccb8081 100644 --- a/tests/Parser.test.js +++ b/tests/Parser.test.js @@ -14,4 +14,11 @@ describe('Parser implements Strategy', () => { parser.stringify() expect(mock.stringify).toHaveBeenCalled() }) + + it('calls valid() strategy method', () => { + const mock = { valid: jest.fn() } + const parser = new Parser(mock) + parser.valid() + expect(mock.valid).toHaveBeenCalled() + }) }) diff --git a/tests/strategies/Csv.test.js b/tests/strategies/Csv.test.js index 469e53c..75079a8 100644 --- a/tests/strategies/Csv.test.js +++ b/tests/strategies/Csv.test.js @@ -2,91 +2,96 @@ const Csv = require('../../src/strategies/Csv') const strategy = new Csv() describe('Csv Strategy', () => { - it('parse CSV string ignoring headers', () => { - const input = 'name,email\nNetflix,contact@netflix.com' - const result = strategy.parse(input, { headers: false }) - - expect(result).toEqual([ - ['name', 'email'], - ['Netflix', 'contact@netflix.com'] - ]) + describe('Csv.prototype.parse()', function () { + it('parse CSV string ignoring headers', () => { + const input = 'name,email\nNetflix,contact@netflix.com' + const result = strategy.parse(input, { headers: false }) + expect(result).toEqual([ + ['name', 'email'], + ['Netflix', 'contact@netflix.com'] + ]) + }) + + it('parse CSV string with headers', () => { + const input = 'name,email\nNetflix,contact@netflix.com' + const result = strategy.parse(input) + + expect(result).toEqual([ + { name: 'Netflix', email: 'contact@netflix.com' } + ]) + }) + + it('parse CSV string with custom delimiters', () => { + const input = 'name;email\nNetflix;contact@netflix.com' + const result = strategy.parse(input, { delimiter: ';' }) + + expect(result).toEqual([ + { name: 'Netflix', email: 'contact@netflix.com' } + ]) + }) + + it('parse CSV string skipping lines', () => { + const input = 'insights\nname,email\nNetflix,contact@netflix.com' + const result = strategy.parse(input, { skipLines: 2 }) + + expect(result).toEqual([ + { name: 'Netflix', email: 'contact@netflix.com' } + ]) + }) + + it('parse CSV string with offset', () => { + const input = 'name,email\nNetflix,contact@netflix.com\nAmazon,contact@amazon.com' + const result = strategy.parse(input, { offset: 2 }) + + expect(result).toEqual([ + { name: 'Netflix', email: 'contact@netflix.com' } + ]) + }) }) - it('parse CSV string with headers', () => { - const input = 'name,email\nNetflix,contact@netflix.com' - const result = strategy.parse(input) - - expect(result).toEqual([ - { name: 'Netflix', email: 'contact@netflix.com' } - ]) - }) - - it('parse CSV string with custom delimiters', () => { - const input = 'name;email\nNetflix;contact@netflix.com' - const result = strategy.parse(input, { delimiter: ';' }) - - expect(result).toEqual([ - { name: 'Netflix', email: 'contact@netflix.com' } - ]) + describe('Csv.prototype.stringify()', function () { + it('turns array of objects into CSV string', () => { + const input = [ + { name: 'Netflix', email: 'contact@netflix.com' } + ] + const result = strategy.stringify(input) + + expect(result).toEqual(expect.stringMatching('name,email\nNetflix,contact@netflix.com')) + }) + + it('turns array of objects into CSV string without header', () => { + const input = [ + { name: 'Netflix', email: 'contact@netflix.com' } + ] + const result = strategy.stringify(input, { headers: false }) + + expect(result).toEqual(expect.stringMatching('Netflix,contact@netflix.com')) + }) + + it('turns array of objects into CSV string with custom column names', () => { + const input = [ + { name: 'Netflix', email: 'contact@netflix.com' } + ] + const columns = [ + { key: 'name', header: 'Platform' }, + { key: 'email', header: 'e-mail' } + ] + + const result = strategy.stringify(input, { columns }) + + expect(result).toEqual(expect.stringMatching('Platform,e-mail\nNetflix,contact@netflix.com')) + }) }) - it('parse CSV string skipping lines', () => { - const input = 'insights\nname,email\nNetflix,contact@netflix.com' - const result = strategy.parse(input, { skipLines: 2 }) - - expect(result).toEqual([ - { name: 'Netflix', email: 'contact@netflix.com' } - ]) - }) - - it('parse CSV string with offset', () => { - const input = 'name,email\nNetflix,contact@netflix.com\nAmazon,contact@amazon.com' - const result = strategy.parse(input, { offset: 2 }) - - expect(result).toEqual([ - { name: 'Netflix', email: 'contact@netflix.com' } - ]) - }) - - it('turns array of objects into CSV string', () => { - const input = [ - { name: 'Netflix', email: 'contact@netflix.com' } - ] - const result = strategy.stringify(input) - - expect(result).toEqual(expect.stringMatching('name,email\nNetflix,contact@netflix.com')) - }) - - it('turns array of objects into CSV string without header', () => { - const input = [ - { name: 'Netflix', email: 'contact@netflix.com' } - ] - const result = strategy.stringify(input, { headers: false }) - - expect(result).toEqual(expect.stringMatching('Netflix,contact@netflix.com')) - }) - - it('turns array of objects into CSV string with custom column names', () => { - const input = [ - { name: 'Netflix', email: 'contact@netflix.com' } - ] - const columns = [ - { key: 'name', header: 'Platform' }, - { key: 'email', header: 'e-mail' } - ] - - const result = strategy.stringify(input, { columns }) - - expect(result).toEqual(expect.stringMatching('Platform,e-mail\nNetflix,contact@netflix.com')) - }) - - it('returns false for invalid input data', () => { - const result = strategy.valid('name\nstardew,pokemon') - expect(result).toBe(false) - }) + describe('Csv.prototype.valid', function () { + it('returns false for invalid input data', () => { + const result = strategy.valid('name\nstardew,pokemon') + expect(result).toBe(false) + }) - it('returns true for valid input data', () => { - const result = strategy.valid('name,email\nNetflix,contact@netflix.com') - expect(result).toBe(true) + it('returns true for valid input data', () => { + const result = strategy.valid('name,email\nNetflix,contact@netflix.com') + expect(result).toBe(true) + }) }) }) diff --git a/tests/strategies/Json.test.js b/tests/strategies/Json.test.js index 31ae2fb..955a4ee 100644 --- a/tests/strategies/Json.test.js +++ b/tests/strategies/Json.test.js @@ -4,36 +4,44 @@ const NotImplemented = require('../../src/errors/NotImplemented') const strategy = new Json() describe('Json Strategy', function () { - it('parses JSON object string to JS object properly', function () { - const str = '{}' - expect(strategy.parse(str)).toEqual({}) - }) + describe('Json.prototype.parse', function () { + it('parses JSON object string to JS object properly', function () { + const str = '{}' + expect(strategy.parse(str)).toEqual({}) + }) - it('throws ParserError for invalid JSON string', function () { - try { - const str = '}' - strategy.parse(str) - } catch (e) { - expect(e).toBeInstanceOf(ParserError) - } + it('throws ParserError for invalid JSON string', function () { + try { + const str = '}' + strategy.parse(str) + } catch (e) { + expect(e).toBeInstanceOf(ParserError) + } + }) }) - it('transforms JS object into JSON string', () => { - const data = { name: 'Hernandes', package: 'parser' } - expect(strategy.stringify(data)).toBe('{"name":"Hernandes","package":"parser"}') + describe('Json.prototype.stringify', function () { + it('transforms JS object into JSON string', () => { + const data = { name: 'Hernandes', package: 'parser' } + expect(strategy.stringify(data)).toBe('{"name":"Hernandes","package":"parser"}') + }) }) - it('throws NotImplemented error for pipe()', () => { - expect(strategy.pipe).toThrow(NotImplemented) + describe('Json.prototype.pipe', function () { + it('throws NotImplemented error for pipe()', () => { + expect(strategy.pipe).toThrow(NotImplemented) + }) }) - it('returns false for invalid input data', () => { - const result = strategy.valid('}') - expect(result).toBe(false) - }) + describe('Json.prototype.valid', function () { + it('returns false for invalid input data', () => { + const result = strategy.valid('}') + expect(result).toBe(false) + }) - it('returns true for valid input data', () => { - const result = strategy.valid('{}') - expect(result).toBe(true) + it('returns true for valid input data', () => { + const result = strategy.valid('{}') + expect(result).toBe(true) + }) }) }) diff --git a/tests/strategies/Xml.test.js b/tests/strategies/Xml.test.js index 46dbead..4b46894 100644 --- a/tests/strategies/Xml.test.js +++ b/tests/strategies/Xml.test.js @@ -4,109 +4,119 @@ const NotImplemented = require('../../src/errors/NotImplemented') const strategy = new Xml() describe('Xml Strategy', function () { - it('puts XML declaration on first position within array', () => { - const data = [{ language: 'nodejs' }] - const result = strategy.setXmlDeclaration(data) - expect(result[0]).toEqual(strategy.XML_VERSION_TAG) - }) + describe('Xml.prototype.setXmlDeclaration()', function () { + it('puts XML declaration on first position within array', () => { + const data = [{ language: 'nodejs' }] + const result = strategy.setXmlDeclaration(data) + expect(result[0]).toEqual(strategy.XML_VERSION_TAG) + }) - it('puts XML declaration on first position within object', () => { - const data = { language: 'nodejs' } - const result = strategy.setXmlDeclaration(data) - const keys = Object.keys(result) - expect(keys[0]).toEqual('_declaration') + it('puts XML declaration on first position within object', () => { + const data = { language: 'nodejs' } + const result = strategy.setXmlDeclaration(data) + const keys = Object.keys(result) + expect(keys[0]).toEqual('_declaration') + }) }) - it('transforms JS object into Xml string', () => { - const data = { game: 'Stardew Valley' } - const expected = 'Stardew Valley' - expect(strategy.stringify(data)).toBe(expected) - }) + describe('Xml.prototype.stringify()', function () { + it('transforms JS object into Xml string', () => { + const data = { game: 'Stardew Valley' } + const expected = 'Stardew Valley' + expect(strategy.stringify(data)).toBe(expected) + }) - it('transforms JS object into XML string without xml version', () => { - const data = { game: 'Stardew Valley' } - const expected = 'Stardew Valley' - const result = strategy.stringify(data, { ignoreDeclaration: true }) - expect(result).toBe(expected) - }) + it('transforms JS object into XML string without xml version', () => { + const data = { game: 'Stardew Valley' } + const expected = 'Stardew Valley' + const result = strategy.stringify(data, { ignoreDeclaration: true }) + expect(result).toBe(expected) + }) - it('transforms JS array into XML string', () => { - const data = { - packages: [ - { name: 'lodash' } - ] - } - const expected = 'lodash' - const result = strategy.stringify(data) - expect(result).toBe(expected) + it('transforms JS array into XML string', () => { + const data = { + packages: [ + { name: 'lodash' } + ] + } + const expected = 'lodash' + const result = strategy.stringify(data) + expect(result).toBe(expected) + }) }) - it('parses XML string to JS object', function () { - const data = 'Naruto Shippuden Storm 3playstation' - const expected = { - games: { - name: { _text: 'Naruto Shippuden Storm 3' }, - platform: { _text: 'playstation' } + describe('Xml.prototype.parse()', function () { + it('parses XML string to JS object', function () { + const data = 'Naruto Shippuden Storm 3playstation' + const expected = { + games: { + name: { _text: 'Naruto Shippuden Storm 3' }, + platform: { _text: 'playstation' } + } } - } - const result = strategy.parse(data) - expect(result).toStrictEqual(expected) - }) + const result = strategy.parse(data) + expect(result).toStrictEqual(expected) + }) - it('parses XML string to JS object array', function () { - const data = 'mongoosesequelize' - const expected = { - packages: { - name: [ - { _text: 'mongoose' }, - { _text: 'sequelize' } - ] + it('parses XML string to JS object array', function () { + const data = 'mongoosesequelize' + const expected = { + packages: { + name: [ + { _text: 'mongoose' }, + { _text: 'sequelize' } + ] + } } - } - const result = strategy.parse(data) - expect(result).toStrictEqual(expected) - }) + const result = strategy.parse(data) + expect(result).toStrictEqual(expected) + }) - it('throws ParserError for missing parent tag', function () { - const data = 'mongoosesequelize' - try { - strategy.parse(data) - } catch (error) { - expect(error).toBeInstanceOf(ParserError) - } - }) + it('throws ParserError for missing parent tag', function () { + const data = 'mongoosesequelize' + try { + strategy.parse(data) + } catch (error) { + expect(error).toBeInstanceOf(ParserError) + } + }) - it('parses XML string, including _declaration', function () { - const data = 'mongoosesequelize' - const expected = { - _declaration: { - _attributes: { - encoding: 'utf-8', - version: 1 + it('parses XML string, including _declaration', function () { + const data = 'mongoosesequelize' + const expected = { + _declaration: { + _attributes: { + encoding: 'utf-8', + version: 1 + } + }, + packages: { + name: [ + { _text: 'mongoose' }, + { _text: 'sequelize' } + ] } - }, - packages: { - name: [ - { _text: 'mongoose' }, - { _text: 'sequelize' } - ] } - } - const result = strategy.parse(data, { showDeclaration: true }) - expect(result).toStrictEqual(expected) + const result = strategy.parse(data, { showDeclaration: true }) + expect(result).toStrictEqual(expected) + }) }) - it('throws NotImplemented error for pipe()', () => { - expect(strategy.pipe).toThrow(NotImplemented) + describe('Xml.prototype.pipe()', function () { + it('throws NotImplemented error for pipe()', () => { + expect(strategy.pipe).toThrow(NotImplemented) + }) }) - it('returns false for invalid input data', () => { - const result = strategy.valid('phrase') - expect(result).toBe(false) - }) + describe('Xml.prototype.valid()', function () { + it('returns false for invalid input data', () => { + const result = strategy.valid('phrase') + expect(result).toBe(false) + }) - it('returns true for valid input data', () => { - const result = strategy.valid('Stardew Valley') - expect(result).toBe(true) + it('returns true for valid input data', () => { + const result = strategy.valid('Stardew Valley') + expect(result).toBe(true) + }) }) }) From 376beaf7d6f7f86d6c0504707d0ba0933cfb9599 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes Date: Tue, 28 Jul 2020 22:08:31 -0300 Subject: [PATCH 02/30] reorganize yaml tests --- tests/strategies/Yaml.test.js | 62 ++++++++++++++++++++--------------- 1 file changed, 35 insertions(+), 27 deletions(-) diff --git a/tests/strategies/Yaml.test.js b/tests/strategies/Yaml.test.js index 5f5e03b..1306143 100644 --- a/tests/strategies/Yaml.test.js +++ b/tests/strategies/Yaml.test.js @@ -5,39 +5,47 @@ const NotImplemented = require('../../src/errors/NotImplemented') const strategy = new Yaml() describe('Yaml Parser', () => { - it('parses YAML to JS object', () => { - const data = 'series: Bleach\nseasons: 16' - const result = strategy.parse(data) - expect(result).toEqual({ series: 'Bleach', seasons: 16 }) + describe('Yaml.prototype.parse()', function () { + it('parses YAML to JS object', () => { + const data = 'series: Bleach\nseasons: 16' + const result = strategy.parse(data) + expect(result).toEqual({ series: 'Bleach', seasons: 16 }) + }) }) - it('turns JS into YAML', () => { - const data = { series: 'Bleach', seasons: 16 } - const result = strategy.stringify(data) - const expected = 'series: Bleach\nseasons: 16' - - expect(result).toEqual(expect.stringMatching(expected)) - }) - - it('throws ParserError when calling stringify() with array data', () => { - try { - strategy.stringify([]) - } catch (error) { - expect(error).toBeInstanceOf(ParserError) - } + describe('Yaml.prototype.stringify()', function () { + it('turns JS into YAML', () => { + const data = { series: 'Bleach', seasons: 16 } + const result = strategy.stringify(data) + const expected = 'series: Bleach\nseasons: 16' + + expect(result).toEqual(expect.stringMatching(expected)) + }) + + it('throws ParserError when calling stringify() with array data', () => { + try { + strategy.stringify([]) + } catch (error) { + expect(error).toBeInstanceOf(ParserError) + } + }) }) - it('throws NotImplemented error for pipe()', () => { - expect(strategy.pipe).toThrow(NotImplemented) + describe('Yaml.prototype.pipe()', function () { + it('throws NotImplemented error for pipe()', () => { + expect(strategy.pipe).toThrow(NotImplemented) + }) }) - it('returns false for invalid input data', () => { - const result = strategy.valid('[name:\nStardew') - expect(result).toBe(false) - }) + describe('Yaml.prototype.valid()', function () { + it('returns false for invalid input data', () => { + const result = strategy.valid('[name:\nStardew') + expect(result).toBe(false) + }) - it('returns true for valid input data', () => { - const result = strategy.valid('name:"Stardew Valley"') - expect(result).toBe(true) + it('returns true for valid input data', () => { + const result = strategy.valid('name:"Stardew Valley"') + expect(result).toBe(true) + }) }) }) From 0d8fd4f0925ffeb6353e9f6fa723e04541afc33f Mon Sep 17 00:00:00 2001 From: Matheus Hernandes Date: Thu, 30 Jul 2020 00:55:13 -0300 Subject: [PATCH 03/30] Improve document for Csv parsing and stringify --- esdocs/manual/csv.md | 40 ++++++++++++++++++++++++++++++++++++++-- src/strategies/Csv.js | 6 +++--- 2 files changed, 41 insertions(+), 5 deletions(-) diff --git a/esdocs/manual/csv.md b/esdocs/manual/csv.md index d53b321..bf906c6 100644 --- a/esdocs/manual/csv.md +++ b/esdocs/manual/csv.md @@ -22,7 +22,7 @@ assert.deepStrictEqual( ) ``` -#### Parse without headers +#### Parse headers Don't use first line as headers. Pass `{ headers: false }` as second parameter. @@ -41,6 +41,38 @@ assert.deepStrictEqual( ) ``` +Specify headers passing `{ headers: ['name', 'email'] }` + +```javascript +const assert = require('assert') +const { csv } = require('parserblade') +const input = 'name,email\nNetflix,contact@netflix.com' +const result = csv.parse(input, { headers: false }) + +assert.deepStrictEqual( + result, + [ + { name: 'Netflix', email: 'contact@netflix.com' } + ] +) +``` + +Specify a function to transform headers passing `{ headers: header => header.toUpperCase() }` + +```javascript +const assert = require('assert') +const { csv } = require('parserblade') +const input = 'name,email\nNetflix,contact@netflix.com' +const result = csv.parse(input, { headers: false }) + +assert.deepStrictEqual( + result, + [ + { NAME: 'Netflix', EMAIL: 'contact@netflix.com' } + ] +) +``` + #### Parse with custom delimiters Uses custom delimiters. Anything you want! Pass `{ delimiter: ';' }` as option. @@ -126,7 +158,11 @@ assert.equal( #### Stringify with custom column names/headers -Pass `{ columns: [ { key: '', header: '' } ] }` as options +Specifying custom columns is easy in many forms, like just pass `{ columns: [ { key: '', header: '' } ] }` as options. + +Or `{ columns: ['name', 'email'] }`. + +Or `{ columns: { name: 'Name', email: 'Email' } }`. ```javascript const assert = require('assert') diff --git a/src/strategies/Csv.js b/src/strategies/Csv.js index c41bea4..f603933 100644 --- a/src/strategies/Csv.js +++ b/src/strategies/Csv.js @@ -17,7 +17,7 @@ Csv.prototype = Object.create(Base.prototype) * * @param {string} data * @param {object} options - * @param {boolean} options.headers - If should parse first line as the headers, default is true + * @param {(boolean|array|function)} options.headers - If should parse first line as the headers, default is true * @param {(string|Buffer)} options.delimiter - Which delimiters to use when parsing, defaults to comma `,` * @param {number} options.skipLines - How many lines it should skip before parsing, defaults to 1 * @param {number} options.offset - How many lines it should parse, defaults to -1 @@ -31,8 +31,8 @@ Csv.prototype.parse = function parse (data, options = {}) { from_line: options.skipLines || 1 } - if (options.headers === false) { - config.columns = false + if (Object.prototype.hasOwnProperty.apply(options, ['headers'])) { + config.columns = options.headers } if (options.offset) { From bdc8931fd087e1f9a4ab831bd16f7e5be14e09fc Mon Sep 17 00:00:00 2001 From: Matheus Hernandes Date: Thu, 30 Jul 2020 13:58:25 -0300 Subject: [PATCH 04/30] add linter settings --- .github/workflows/linter.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..b702dd9 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,11 @@ +name: linter +on: push +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install modules + run: npm install + - name: Run linter + run: npm run lint From c7f4249979aa5b60c17b5c07c623395c1f2e5676 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes Date: Thu, 30 Jul 2020 17:05:10 -0300 Subject: [PATCH 05/30] add support for xml verbose mode --- esdocs/manual/xml.md | 46 ++++++++++++++++++++++++++++++++++++ src/strategies/Xml.js | 5 ++++ tests/strategies/Xml.test.js | 36 ++++++++++++++++++++++++++++ 3 files changed, 87 insertions(+) diff --git a/esdocs/manual/xml.md b/esdocs/manual/xml.md index 1f49dc7..c9f1067 100644 --- a/esdocs/manual/xml.md +++ b/esdocs/manual/xml.md @@ -73,6 +73,52 @@ assert.deepStrictEqual( ) ``` +#### Parse XML in verbose mode + +Pass `{ verbose: true }` as option. + +```javascript +const assert = require('assert') +const { xml } = require('parserblade') +const input = 'Naruto Shippuden Storm 3playstation' +const result = xml.parse(input, { verbose: true }) +const expected = { + elements: [ + { + type: 'element', + name: 'games', + elements: [ + { + type: 'element', + name: 'name', + elements: [ + { + type: 'text', + text: 'Naruto Shippuden Storm 3' + } + ] + }, + { + type: 'element', + name: 'platform', + elements: [ + { + type: 'text', + text: 'playstation' + } + ] + }, + ] + } + ] +} + +assert.deepStrictEqual( + result, + expected +) +``` + ### Stringify ```javascript diff --git a/src/strategies/Xml.js b/src/strategies/Xml.js index 76bd1a7..0de7c37 100644 --- a/src/strategies/Xml.js +++ b/src/strategies/Xml.js @@ -73,6 +73,7 @@ Xml.prototype.stringify = function stringify (data, options = {}) { * @param {string} data * @param {object} options * @param {object} options.showDeclaration - force parsing XML declaration tag + * @param {boolean} options.verbose - makes xml2js return non compact mode, defaults to false * @throws {NotImplemented} This method must be implemented */ Xml.prototype.parse = function parse (data, options = {}) { @@ -88,6 +89,10 @@ Xml.prototype.parse = function parse (data, options = {}) { config.ignoreDeclaration = false } + if (options.verbose) { + config.compact = false + } + return xml.xml2js(data, config) } catch (error) { throw new ParserError(error.message) diff --git a/tests/strategies/Xml.test.js b/tests/strategies/Xml.test.js index 4b46894..cc85b95 100644 --- a/tests/strategies/Xml.test.js +++ b/tests/strategies/Xml.test.js @@ -46,6 +46,42 @@ describe('Xml Strategy', function () { }) describe('Xml.prototype.parse()', function () { + it('parses XML string to JS object in verbose mode', function () { + const data = 'Naruto Shippuden Storm 3playstation' + const expected = { + elements: [ + { + type: 'element', + name: 'games', + elements: [ + { + type: 'element', + name: 'name', + elements: [ + { + type: 'text', + text: 'Naruto Shippuden Storm 3' + } + ] + }, + { + type: 'element', + name: 'platform', + elements: [ + { + type: 'text', + text: 'playstation' + } + ] + } + ] + } + ] + } + const result = strategy.parse(data, { verbose: true }) + expect(result).toStrictEqual(expected) + }) + it('parses XML string to JS object', function () { const data = 'Naruto Shippuden Storm 3playstation' const expected = { From aea2dfd18f24cebfc4d99c165c5e3e6916aab0d6 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes Date: Thu, 30 Jul 2020 17:28:07 -0300 Subject: [PATCH 06/30] rename --- .github/workflows/linter.yml | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index b702dd9..111c709 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -1,7 +1,7 @@ name: linter on: push jobs: - build: + linter: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9427442..4cbbc7e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,7 +1,7 @@ name: CI on: push jobs: - build: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 From 74c6628cc2f44f0703d7b4651b87982924054a5d Mon Sep 17 00:00:00 2001 From: Matheus Hernandes Date: Thu, 13 Aug 2020 01:42:28 -0300 Subject: [PATCH 07/30] working on json stream, pipeStringify() is working --- package-lock.json | 21 ++++++++++++++++++++- package.json | 1 + src/strategies/Base.js | 18 ++++++++++++++++++ src/strategies/Json.js | 21 +++++++++++++++++++++ tests/strategies/Json.test.js | 35 +++++++++++++++++++++++++++++++++++ 5 files changed, 95 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 6e4b3a6..d6d232d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "parserblade", - "version": "0.0.0", + "version": "1.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -1052,6 +1052,15 @@ "integrity": "sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==", "dev": true }, + "JSONStream": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", + "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", + "requires": { + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" + } + }, "abab": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.3.tgz", @@ -6095,6 +6104,11 @@ "graceful-fs": "^4.1.6" } }, + "jsonparse": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", + "integrity": "sha1-P02uSpH6wxX3EGL4UhzCOfE2YoA=" + }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -8409,6 +8423,11 @@ "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", "dev": true }, + "through": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", + "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=" + }, "tmpl": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.4.tgz", diff --git a/package.json b/package.json index 3c5ebe4..e41a2d0 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,7 @@ }, "license": "MIT", "dependencies": { + "JSONStream": "^1.3.5", "csv-parse": "^4.11.1", "csv-stringify": "^5.5.0", "js-yaml": "^3.14.0", diff --git a/src/strategies/Base.js b/src/strategies/Base.js index 086e653..f54dc4a 100644 --- a/src/strategies/Base.js +++ b/src/strategies/Base.js @@ -60,4 +60,22 @@ Base.prototype.valid = function valid (data, options = {}) { } } +/** + * Base.prototype.pipeParse - prototype for streams + * + * @throws {NotImplemented} This method must be implemented + */ +Base.prototype.pipeParse = function pipeParse () { + throw new NotImplemented() +} + +/** + * Base.prototype.pipeStringify - prototype for streams + * + * @throws {NotImplemented} This method must be implemented + */ +Base.prototype.pipeStringify = function pipeStringify () { + throw new NotImplemented() +} + module.exports = Base diff --git a/src/strategies/Json.js b/src/strategies/Json.js index 4a3f77b..8aade34 100644 --- a/src/strategies/Json.js +++ b/src/strategies/Json.js @@ -1,5 +1,6 @@ const Base = require('./Base') const ParserError = require('../errors/ParserError') +const JSONStream = require('JSONStream') /** * Json - Support for JSON filetype @@ -35,4 +36,24 @@ Json.prototype.stringify = function stringify (data) { return JSON.stringify(data) } +/** + * Json.prototype.pipeStringify - receives * valid JS data and returns it as JSON + * + * @param {object} config + * @returns {Stream} + */ +Json.prototype.pipeStringify = function pipeStringify (config) { + return JSONStream.stringify() +} + +/** + * Json.prototype.pipeStringify - receives * valid JS data and returns it as JSON + * + * @param {object} config + * @returns {Stream} + */ +Json.prototype.pipeParse = function pipeStringify (config) { + return JSONStream.parse() +} + module.exports = Json diff --git a/tests/strategies/Json.test.js b/tests/strategies/Json.test.js index 955a4ee..b322344 100644 --- a/tests/strategies/Json.test.js +++ b/tests/strategies/Json.test.js @@ -1,6 +1,7 @@ const Json = require('../../src/strategies/Json') const ParserError = require('../../src/errors/ParserError') const NotImplemented = require('../../src/errors/NotImplemented') +const Stream = require('stream') const strategy = new Json() describe('Json Strategy', function () { @@ -44,4 +45,38 @@ describe('Json Strategy', function () { expect(result).toBe(true) }) }) + + describe('Json.prototype.pipeStringify', () => { + fit('stringifies an array of objects', () => { + const input = [{ game: 'Killing Floor' }, { game: 'Stardew Valley' }] + + const reader = new Stream.Readable({ + objectMode: true, + read (size) { + const next = input.shift() + + if (!next) { + this.push(null) + } else { + this.push(next) + } + } + }) + + const result = [] + const writer = strategy.pipeStringify() + reader.pipe(writer) + + writer.on('data', (data) => { + result.push(data) + }) + + writer.on('error', console.log) + writer.on('end', () => { + const jsonString = result.join('') + const parsed = JSON.parse(jsonString) + expect(parsed).toEqual(expect.arrayContaining(input)) + }) + }) + }) }) From 0d71e34314fe14f7e28e1ae8b46834da2f721f50 Mon Sep 17 00:00:00 2001 From: Matheus Date: Sat, 15 Aug 2020 16:50:27 -0300 Subject: [PATCH 08/30] Add tests for Base's pipeStringify() and pipeParse() --- tests/strategies/Base.test.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/strategies/Base.test.js b/tests/strategies/Base.test.js index 6f57875..4107d09 100644 --- a/tests/strategies/Base.test.js +++ b/tests/strategies/Base.test.js @@ -22,6 +22,14 @@ describe('Base Strategy implementation', function () { expect(instance.pipe).toThrow(NotImplemented) }) + it('throws NotImplemented for pipeParse() method', () => { + expect(instance.pipeParse).toThrow(NotImplemented) + }) + + it('throws NotImplemented for pipeStringify() method', () => { + expect(instance.pipeStringify).toThrow(NotImplemented) + }) + /* it('throws NotImplemented for valid() method, because parse() is not implemented', () => { expect(instance.valid).toThrow(NotImplemented) From d591ddcd99a51e2ba5f752e68c090e16e55f1ea2 Mon Sep 17 00:00:00 2001 From: Matheus <12698656+onhernandes@users.noreply.github.com> Date: Sat, 15 Aug 2020 16:58:24 -0300 Subject: [PATCH 09/30] add tests for Parser's pipeStringify() and pipeParse() implementation --- src/Parser.js | 14 ++++++++++++++ tests/Parser.test.js | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/src/Parser.js b/src/Parser.js index 8937146..24744b4 100644 --- a/src/Parser.js +++ b/src/Parser.js @@ -38,6 +38,20 @@ Parser.prototype.valid = function stringify (data, options) { return this.strategy.valid(data, options) } +/** + * Parser.prototype.pipeStringify - Exposes the pipeStringify() method from strategy. Streams data through stringify + */ +Parser.prototype.pipeStringify = function pipeStringify () { + return this.strategy.pipeStringify() +} + +/** + * Parser.prototype.pipeParse - Exposes the pipeParse() method from strategy. Streams data through parse + */ +Parser.prototype.pipeParse = function pipeParse () { + return this.strategy.pipeParse() +} + Parser.prototype.get = function get (data, path) {} Parser.prototype.has = function has (data, path) {} diff --git a/tests/Parser.test.js b/tests/Parser.test.js index ccb8081..99ce4a5 100644 --- a/tests/Parser.test.js +++ b/tests/Parser.test.js @@ -21,4 +21,18 @@ describe('Parser implements Strategy', () => { parser.valid() expect(mock.valid).toHaveBeenCalled() }) + + it('calls pipeStringify() strategy method', () => { + const mock = { pipeStringify: jest.fn() } + const parser = new Parser(mock) + parser.pipeStringify() + expect(mock.pipeStringify).toHaveBeenCalled() + }) + + it('calls pipeParse() strategy method', () => { + const mock = { pipeParse: jest.fn() } + const parser = new Parser(mock) + parser.pipeParse() + expect(mock.pipeParse).toHaveBeenCalled() + }) }) From cc8923e3a441001a6c95a7a261a86cd035cf8e85 Mon Sep 17 00:00:00 2001 From: Matheus <12698656+onhernandes@users.noreply.github.com> Date: Sat, 15 Aug 2020 17:02:34 -0300 Subject: [PATCH 10/30] patch tests --- tests/strategies/Json.test.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/strategies/Json.test.js b/tests/strategies/Json.test.js index b322344..212dede 100644 --- a/tests/strategies/Json.test.js +++ b/tests/strategies/Json.test.js @@ -40,14 +40,19 @@ describe('Json Strategy', function () { expect(result).toBe(false) }) - it('returns true for valid input data', () => { + it('returns true for valid array as input data', () => { + const result = strategy.valid('[]') + expect(result).toBe(true) + }) + + it('returns true for valid object as input data', () => { const result = strategy.valid('{}') expect(result).toBe(true) }) }) describe('Json.prototype.pipeStringify', () => { - fit('stringifies an array of objects', () => { + it('stringifies an array of objects', () => { const input = [{ game: 'Killing Floor' }, { game: 'Stardew Valley' }] const reader = new Stream.Readable({ From dcd0e198ae4ea570fc6419466dc375bf6cf3dcdf Mon Sep 17 00:00:00 2001 From: Matheus <12698656+onhernandes@users.noreply.github.com> Date: Sun, 16 Aug 2020 15:53:25 -0300 Subject: [PATCH 11/30] wip --- src/strategies/Json.js | 21 +++++++++++++++---- tests/strategies/Json.test.js | 38 +++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+), 4 deletions(-) diff --git a/src/strategies/Json.js b/src/strategies/Json.js index 8aade34..c991b91 100644 --- a/src/strategies/Json.js +++ b/src/strategies/Json.js @@ -39,11 +39,24 @@ Json.prototype.stringify = function stringify (data) { /** * Json.prototype.pipeStringify - receives * valid JS data and returns it as JSON * - * @param {object} config - * @returns {Stream} + * @param {object} [config] - sets config for stream + * @param {string} [config.type='array'] - which type of data you're streaming, defaults do array + * @returns {WritableStream} */ -Json.prototype.pipeStringify = function pipeStringify (config) { - return JSONStream.stringify() +Json.prototype.pipeStringify = function pipeStringify (config = {}) { + config.type = config.type || 'array' + const streams = { + object: JSONStream.stringifyObject, + array: JSONStream.stringify + } + + const fn = streams[config.type] + + if (!fn) { + throw new ParserError('Supplied type "${config.type}" is not allowed. Use either "array" or "object"') + } + + return fn() } /** diff --git a/tests/strategies/Json.test.js b/tests/strategies/Json.test.js index 212dede..ed39918 100644 --- a/tests/strategies/Json.test.js +++ b/tests/strategies/Json.test.js @@ -83,5 +83,43 @@ describe('Json Strategy', function () { expect(parsed).toEqual(expect.arrayContaining(input)) }) }) + + fit('stringifies an object', () => { + const input = { + services: [ + { url: 'cloud.google.com' } + ] + } + + let dataSent = false + + const reader = new Stream.Readable({ + objectMode: true, + read (size) { + if (!dataSent) { + this.push(input) + dataSent = true + } else { + this.push(null) + } + } + }) + + const result = [] + const writer = strategy.pipeStringify({ type: 'object' }) + reader.pipe(writer) + + writer.on('data', (data) => { + result.push(data) + }) + + writer.on('error', console.log) + writer.on('end', () => { + const jsonString = result.join('') + console.log('MYSTRSSSSSS', jsonString) + const parsed = JSON.parse(jsonString) + expect(parsed).toEqual(expect.arrayContaining(input)) + }) + }) }) }) From 432690b1eefcb7a972140ea6f72473bf9cfdc208 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Sun, 16 Aug 2020 20:14:03 -0300 Subject: [PATCH 12/30] add json stringify method, its complete, including docs and more --- esdocs/manual/json.md | 81 ++++++++++++++++++++++++++++++++--- tests/strategies/Json.test.js | 17 ++++---- 2 files changed, 84 insertions(+), 14 deletions(-) diff --git a/esdocs/manual/json.md b/esdocs/manual/json.md index 054d2ae..23f35ec 100644 --- a/esdocs/manual/json.md +++ b/esdocs/manual/json.md @@ -1,8 +1,6 @@ # JSON -## Usage - -### Parse +## Parse There's no magic here. It just calls native's `JSON.parse`, currently there's no additional parameters. @@ -18,7 +16,7 @@ assert.deepStrictEqual( ) ``` -### Stringify +## Stringify There's no magic here. It just calls native's `JSON.stringify`, currently there's no additional parameters. @@ -34,7 +32,7 @@ assert.equal( ) ``` -### Valid +## Valid Just checks if given string is a valid JSON data @@ -48,3 +46,76 @@ assert.equal( false ) ``` + +## Stream + +### Stringify an array + +```javascript +const { json } = require('parserblade') +const { Readable } = require('stream') +const fs = require('fs') + +const input = [{ game: 'Killing Floor' }, { game: 'Stardew Valley' }] +const reader = new Readable({ + objectMode: true, + read (size) { + const next = input.shift() + + if (!next) { + this.push(null) + } else { + this.push(next) + } + } +}) + +const writer = json.pipeStringify() +const toFile = fs.createWriteStream('./data-test.json') + +reader + .pipe(writer) + .pipe(toFile) + .on('error', console.log) + .on('end', () => { + console.log('done') + }) +``` + +### Stringify an object + +You must pass `{ type: 'object' }` as param. Defaults to `array` + +```javascript +const { json } = require('parserblade') +const { Readable } = require('stream') +const fs = require('fs') + +const input = Object.entries({ + name: 'Rodolfo' +}) + +const reader = new Readable({ + objectMode: true, + read (size) { + const next = input.shift() + + if (!next) { + this.push(null) + } else { + this.push(next) + } + } +}) + +const writer = json.pipeStringify({ type: 'object' }) +const toFile = fs.createWriteStream('./data-test.json') + +reader + .pipe(writer) + .pipe(toFile) + .on('error', console.log) + .on('end', () => { + console.log('done') + }) +``` diff --git a/tests/strategies/Json.test.js b/tests/strategies/Json.test.js index ed39918..723a9c1 100644 --- a/tests/strategies/Json.test.js +++ b/tests/strategies/Json.test.js @@ -84,23 +84,23 @@ describe('Json Strategy', function () { }) }) - fit('stringifies an object', () => { + it('stringifies an object', () => { const input = { services: [ { url: 'cloud.google.com' } ] } - - let dataSent = false + const entries = Object.entries(input) const reader = new Stream.Readable({ objectMode: true, read (size) { - if (!dataSent) { - this.push(input) - dataSent = true - } else { + const next = entries.shift() + + if (!next) { this.push(null) + } else { + this.push(next) } } }) @@ -116,9 +116,8 @@ describe('Json Strategy', function () { writer.on('error', console.log) writer.on('end', () => { const jsonString = result.join('') - console.log('MYSTRSSSSSS', jsonString) const parsed = JSON.parse(jsonString) - expect(parsed).toEqual(expect.arrayContaining(input)) + expect(parsed).toMatchObject(input) }) }) }) From 3f34174ceef4259529cd87478fe85ad59283c9e4 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Sun, 16 Aug 2020 20:14:48 -0300 Subject: [PATCH 13/30] fix lint --- src/strategies/Json.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/strategies/Json.js b/src/strategies/Json.js index c991b91..77b6a4c 100644 --- a/src/strategies/Json.js +++ b/src/strategies/Json.js @@ -53,7 +53,7 @@ Json.prototype.pipeStringify = function pipeStringify (config = {}) { const fn = streams[config.type] if (!fn) { - throw new ParserError('Supplied type "${config.type}" is not allowed. Use either "array" or "object"') + throw new ParserError(`Supplied type "${config.type}" is not allowed. Use either "array" or "object"`) } return fn() From 5783cbca87f8c350a0c9ddcb28247f0c5fe108c3 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Sun, 16 Aug 2020 20:39:26 -0300 Subject: [PATCH 14/30] implementing json parse....or at least trying to --- esdocs/manual/json.md | 4 +++- src/strategies/Json.js | 9 ++++---- tests/strategies/Json.test.js | 40 +++++++++++++++++++++++++++++++++++ 3 files changed, 48 insertions(+), 5 deletions(-) diff --git a/esdocs/manual/json.md b/esdocs/manual/json.md index 23f35ec..6dc3e4f 100644 --- a/esdocs/manual/json.md +++ b/esdocs/manual/json.md @@ -84,7 +84,9 @@ reader ### Stringify an object -You must pass `{ type: 'object' }` as param. Defaults to `array` +You must pass `{ type: 'object' }` as param. Defaults to `array`. + +Data must be an array of `[ key, value ]`. Like from `Object.entries({ game: 'Stardew Valley' })` ```javascript const { json } = require('parserblade') diff --git a/src/strategies/Json.js b/src/strategies/Json.js index 77b6a4c..7144ac9 100644 --- a/src/strategies/Json.js +++ b/src/strategies/Json.js @@ -37,7 +37,7 @@ Json.prototype.stringify = function stringify (data) { } /** - * Json.prototype.pipeStringify - receives * valid JS data and returns it as JSON + * Json.prototype.pipeStringify - helps to stream object or array into JSON valid data * * @param {object} [config] - sets config for stream * @param {string} [config.type='array'] - which type of data you're streaming, defaults do array @@ -60,12 +60,13 @@ Json.prototype.pipeStringify = function pipeStringify (config = {}) { } /** - * Json.prototype.pipeStringify - receives * valid JS data and returns it as JSON + * Json.prototype.pipeStringify - helps to stream JSON data to JS * - * @param {object} config + * @param {object} [config] - sets config for stream + * @param {string} [config.path] - select which data path to be parsed from JSON to JS * @returns {Stream} */ -Json.prototype.pipeParse = function pipeStringify (config) { +Json.prototype.pipeParse = function pipeParse (config) { return JSONStream.parse() } diff --git a/tests/strategies/Json.test.js b/tests/strategies/Json.test.js index 723a9c1..75e6346 100644 --- a/tests/strategies/Json.test.js +++ b/tests/strategies/Json.test.js @@ -121,4 +121,44 @@ describe('Json Strategy', function () { }) }) }) + + describe('Json.prototype.pipeParse', () => { + fit('parses an object', () => { + const input = JSON.stringify({ + services: [ + { url: 'cloud.google.com' } + ] + }) + let position = 0 + + const reader = new Stream.Readable({ + read (size) { + const hasCharAtPosition = input.charAt(position) !== '' + const hasCharAtPositionAndSize = input.charAt(position + size) !== '' + if (!hasCharAtPosition || !hasCharAtPositionAndSize) { + this.push(null) + return + } + + const next = input.slice(position, size) + position = position + size + this.push(next) + } + }) + + const result = [] + const writer = strategy.pipeParse() + reader.pipe(writer) + + writer.on('data', (data) => { + result.push(data) + }) + + writer.on('error', console.log) + writer.on('end', () => { + console.log(result) + expect(true).toBe(true) + }) + }) + }) }) From 2a7105473306ec49fcc6f466f904c4a86b5f645e Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Tue, 18 Aug 2020 19:58:40 -0300 Subject: [PATCH 15/30] add json stream support. its kinda of tricky, but it works for first impl --- esdocs/manual/json.md | 20 ++++++++++++++++++++ tests/data/services.json | 7 +++++++ tests/strategies/Json.test.js | 35 +++++++++++------------------------ 3 files changed, 38 insertions(+), 24 deletions(-) create mode 100644 tests/data/services.json diff --git a/esdocs/manual/json.md b/esdocs/manual/json.md index 6dc3e4f..75172c5 100644 --- a/esdocs/manual/json.md +++ b/esdocs/manual/json.md @@ -121,3 +121,23 @@ reader console.log('done') }) ``` + +### Parse + +```javascript +const { json } = require('parserblade') +const fs = require('fs') +const path = require('path') +const filepath = path.resolve(__dirname, '../data/services.json') + +const reader = fs.createReadStream(filepath) +const writer = json.pipeParse() + +reader + .pipe(writer) + .on('data', console.log) + .on('error', console.log) + .on('end', () => { + console.log('done') + }) +``` diff --git a/tests/data/services.json b/tests/data/services.json new file mode 100644 index 0000000..62a6df9 --- /dev/null +++ b/tests/data/services.json @@ -0,0 +1,7 @@ +{ + "services": [ + { + "url": "netflix.com" + } + ] +} diff --git a/tests/strategies/Json.test.js b/tests/strategies/Json.test.js index 75e6346..40ad3da 100644 --- a/tests/strategies/Json.test.js +++ b/tests/strategies/Json.test.js @@ -3,6 +3,10 @@ const ParserError = require('../../src/errors/ParserError') const NotImplemented = require('../../src/errors/NotImplemented') const Stream = require('stream') const strategy = new Json() +const fs = require('fs') +const path = require('path') + +const TEST_FILE = path.resolve(__dirname, '../data/services.json') describe('Json Strategy', function () { describe('Json.prototype.parse', function () { @@ -123,28 +127,8 @@ describe('Json Strategy', function () { }) describe('Json.prototype.pipeParse', () => { - fit('parses an object', () => { - const input = JSON.stringify({ - services: [ - { url: 'cloud.google.com' } - ] - }) - let position = 0 - - const reader = new Stream.Readable({ - read (size) { - const hasCharAtPosition = input.charAt(position) !== '' - const hasCharAtPositionAndSize = input.charAt(position + size) !== '' - if (!hasCharAtPosition || !hasCharAtPositionAndSize) { - this.push(null) - return - } - - const next = input.slice(position, size) - position = position + size - this.push(next) - } - }) + it('parses an object', () => { + const reader = fs.createReadStream(TEST_FILE) const result = [] const writer = strategy.pipeParse() @@ -155,9 +139,12 @@ describe('Json Strategy', function () { }) writer.on('error', console.log) + writer.on('end', () => { - console.log(result) - expect(true).toBe(true) + expect(result).toHaveLength(1) + expect(result[0]).toMatchObject({ + services: [{ url: 'netflix.com' }] + }) }) }) }) From 7496615078ddc04e17be9d9e806677f11cf6db8c Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Tue, 18 Aug 2020 21:24:08 -0300 Subject: [PATCH 16/30] reorder files and prototypes for xml --- src/strategies/Xml/Tag.js | 0 src/strategies/{Xml.js => Xml/index.js} | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 src/strategies/Xml/Tag.js rename src/strategies/{Xml.js => Xml/index.js} (96%) diff --git a/src/strategies/Xml/Tag.js b/src/strategies/Xml/Tag.js new file mode 100644 index 0000000..e69de29 diff --git a/src/strategies/Xml.js b/src/strategies/Xml/index.js similarity index 96% rename from src/strategies/Xml.js rename to src/strategies/Xml/index.js index 0de7c37..8679cab 100644 --- a/src/strategies/Xml.js +++ b/src/strategies/Xml/index.js @@ -1,5 +1,5 @@ -const Base = require('./Base') -const ParserError = require('../errors/ParserError') +const Base = require('../Base') +const ParserError = require('../../errors/ParserError') const xml = require('xml-js') /** From 26fd1374c5c4dbbd969ca96971980e8f46f4af87 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Tue, 18 Aug 2020 23:56:45 -0300 Subject: [PATCH 17/30] init --- src/strategies/Xml/Tag.js | 8 +++++ src/strategies/Xml/index.js | 58 ++++++++++++++++++++++++++++++------ tests/strategies/Xml.test.js | 24 +++++++++++++++ 3 files changed, 81 insertions(+), 9 deletions(-) diff --git a/src/strategies/Xml/Tag.js b/src/strategies/Xml/Tag.js index e69de29..559e9d0 100644 --- a/src/strategies/Xml/Tag.js +++ b/src/strategies/Xml/Tag.js @@ -0,0 +1,8 @@ +function XmlTag (name, text, attributes, tags) { + this.name = name + this.text = text + this.attributes = attributes + this.tags = tags +} + +module.exports = XmlTag diff --git a/src/strategies/Xml/index.js b/src/strategies/Xml/index.js index 8679cab..a0374b0 100644 --- a/src/strategies/Xml/index.js +++ b/src/strategies/Xml/index.js @@ -1,6 +1,8 @@ const Base = require('../Base') const ParserError = require('../../errors/ParserError') const xml = require('xml-js') +const StreamParser = require('node-xml-stream') +const { Transform } = require('stream') /** * Xml - Support for XML filetype @@ -16,6 +18,20 @@ function Xml () { } } } + + this.XML_JS_KEYS = { + declarationKey: '_declaration', + instructionKey: '_instruction', + attributesKey: '_attributes', + textKey: '_text', + cdataKey: '_cdata', + doctypeKey: '_doctype', + commentKey: '_comment', + parentKey: '_parent', + typeKey: '_type', + nameKey: '_name', + elementsKey: '_elements' + } } Xml.prototype = Object.create(Base.prototype) @@ -42,14 +58,6 @@ Xml.prototype.setXmlDeclaration = function setXmlDeclaration (data) { * @param {(object|array)} data * @param {Object} options - options for turning JS data into XML * @param {boolean} options.ignoreDeclaration - don't output XML version tag, default is true - * @example - * // returns 'parser' - * const data = { package: 'parser' } - * Xml().stringify(data) - * @example - * // returns 'parser' - * const data = { package: 'parser' } - * Xml().stringify(data, { ignoreDeclaration: true }) * @returns {string} */ Xml.prototype.stringify = function stringify (data, options = {}) { @@ -74,6 +82,7 @@ Xml.prototype.stringify = function stringify (data, options = {}) { * @param {object} options * @param {object} options.showDeclaration - force parsing XML declaration tag * @param {boolean} options.verbose - makes xml2js return non compact mode, defaults to false + * @param {boolean} options.experimentalXmlTag - use experimental XmlTag prototype, default is false * @throws {NotImplemented} This method must be implemented */ Xml.prototype.parse = function parse (data, options = {}) { @@ -93,10 +102,41 @@ Xml.prototype.parse = function parse (data, options = {}) { config.compact = false } - return xml.xml2js(data, config) + const result = xml.xml2js(data, config) + + if (options.experimentalXmlTag) { + return this.toXmlTag(result) + } + + return result } catch (error) { throw new ParserError(error.message) } } +/** + * Xml.prototype.pipeParse - stream + * + * Using repl.it: https://repl.it/@onhernandes/AnnualEnormousRegisters + */ +Xml.prototype.pipeParse = function pipeParse () { + const history = [] // eslint-disable-line + const parser = new StreamParser() + + const currentTag = { // eslint-disable-line + name: '', + text: '', + attributes: '' + } + + parser.on('opentag', (name, attrs) => { + }) + + return new Transform({ + transform (chunk, encoding, ack) { + parser.write(chunk.toString()) + } + }) +} + module.exports = Xml diff --git a/tests/strategies/Xml.test.js b/tests/strategies/Xml.test.js index cc85b95..40774cf 100644 --- a/tests/strategies/Xml.test.js +++ b/tests/strategies/Xml.test.js @@ -2,6 +2,7 @@ const Xml = require('../../src/strategies/Xml') const ParserError = require('../../src/errors/ParserError') const NotImplemented = require('../../src/errors/NotImplemented') const strategy = new Xml() +const { Readable } = require('stream') describe('Xml Strategy', function () { describe('Xml.prototype.setXmlDeclaration()', function () { @@ -155,4 +156,27 @@ describe('Xml Strategy', function () { expect(result).toBe(true) }) }) + + describe('Xml.prototype.pipeParse', () => { + it('parses XML', () => { + const input = 'Naruto Shippuden Storm 3playstation'.split('') + + const reader = new Readable({ + read () { + const next = input.shift() + if (typeof next === 'string') { + this.push(next) + } else { + this.push(null) + } + } + }) + + reader + .pipe(strategy.pipeParse()) + .on('data', console.log) + .on('error', console.log) + .on('end', console.log) + }) + }) }) From 6548cdf7d073ea2ccd38388249792445a40c5581 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Thu, 20 Aug 2020 13:59:42 -0300 Subject: [PATCH 18/30] wip --- package-lock.json | 5 ++ package.json | 1 + src/strategies/Xml/{Tag.js => XmlTag.js} | 7 +- src/strategies/Xml/index.js | 34 ++++++++- xmltest.js | 95 ++++++++++++++++++++++++ 5 files changed, 139 insertions(+), 3 deletions(-) rename src/strategies/Xml/{Tag.js => XmlTag.js} (50%) create mode 100644 xmltest.js diff --git a/package-lock.json b/package-lock.json index d6d232d..d46759e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6885,6 +6885,11 @@ } } }, + "node-xml-stream": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/node-xml-stream/-/node-xml-stream-1.0.2.tgz", + "integrity": "sha512-W4LzsKQ1x3TldQQmXZfM/JO+3SPp+zzvA2Nf82chE7vXnZy7LqHjIqQe9yDUw58g2fTOaJo+DlPnIDfmozgsuw==" + }, "normalize-package-data": { "version": "2.5.0", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", diff --git a/package.json b/package.json index e41a2d0..2307ff0 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,7 @@ "csv-parse": "^4.11.1", "csv-stringify": "^5.5.0", "js-yaml": "^3.14.0", + "node-xml-stream": "^1.0.2", "xml-js": "^1.6.11" } } diff --git a/src/strategies/Xml/Tag.js b/src/strategies/Xml/XmlTag.js similarity index 50% rename from src/strategies/Xml/Tag.js rename to src/strategies/Xml/XmlTag.js index 559e9d0..5a8b911 100644 --- a/src/strategies/Xml/Tag.js +++ b/src/strategies/Xml/XmlTag.js @@ -1,3 +1,8 @@ +function XmlResult (declaration, tags) { + this.declaration = declaration + this.tags = tags +} + function XmlTag (name, text, attributes, tags) { this.name = name this.text = text @@ -5,4 +10,4 @@ function XmlTag (name, text, attributes, tags) { this.tags = tags } -module.exports = XmlTag +module.exports = { XmlTag, XmlResult } diff --git a/src/strategies/Xml/index.js b/src/strategies/Xml/index.js index a0374b0..9108d44 100644 --- a/src/strategies/Xml/index.js +++ b/src/strategies/Xml/index.js @@ -3,6 +3,7 @@ const ParserError = require('../../errors/ParserError') const xml = require('xml-js') const StreamParser = require('node-xml-stream') const { Transform } = require('stream') +const XmlTag = require('./XmlTag') /** * Xml - Support for XML filetype @@ -123,18 +124,47 @@ Xml.prototype.pipeParse = function pipeParse () { const history = [] // eslint-disable-line const parser = new StreamParser() - const currentTag = { // eslint-disable-line + let currentTagFinished = false + let currentTag = { // eslint-disable-line name: '', text: '', - attributes: '' + attributes: {} } parser.on('opentag', (name, attrs) => { + currentTag.name = name + currentTag.attributes = attrs || {} + }) + + parser.on('text', (text) => { + currentTag.text = text + }) + + parser.on('closetag', (name) => { + if (currentTag.name !== name) { + throw new ParserError('Current tag name does not match closing tag') + } + + currentTagFinished = true }) return new Transform({ transform (chunk, encoding, ack) { + if (currentTagFinished) { + const tag = new XmlTag( + currentTag.name, + currentTag.text, + currentTag.attributes, + currentTag.tags || [] + ) + + this.push(tag) + currentTag = {} + currentTagFinished = false + } + parser.write(chunk.toString()) + ack() } }) } diff --git a/xmltest.js b/xmltest.js new file mode 100644 index 0000000..6f4f359 --- /dev/null +++ b/xmltest.js @@ -0,0 +1,95 @@ +const { Transform, Readable } = require('stream') +const StreamParser = require('node-xml-stream') +const parser = new StreamParser() + +const depth = 1 +let currentDepth = 0 +let hasReachedDepth = false +const mainTag = { + tags: [] +} + +let currentTag = { // eslint-disable-line + name: '', + text: '', + attributes: {} +} + +parser.on('opentag', (name, attrs) => { + if (currentDepth !== depth && currentTag.name === '') { + currentDepth = currentDepth + 1 + } + + if (currentDepth === depth) { + mainTag.name = name + mainTag.attributes = attrs || {} + } else { + currentTag.name = name + currentTag.attributes = attrs || {} + } +}) + +parser.on('text', (text) => { + if (currentTag.name !== '') { + currentTag.text = text + } else { + mainTag.text = text + } +}) + +parser.on('closetag', (name) => { + if (name === currentTag.name) { + mainTag.tags.push( + Object.assign({}, currentTag) + ) + currentTag.name = '' + currentTag.text = '' + currentTag.attributes = {} + } + + if (name === mainTag.name) { + hasReachedDepth = true + } +}) + +const transformData = new Transform({ + objectMode: true, + transform (chunk, encoding, ack) { + if (hasReachedDepth) { + this.push(Object.assign({}, mainTag)) + mainTag.name = '' + mainTag.text = '' + mainTag.attributes = {} + mainTag.tags = [] + hasReachedDepth = false + currentDepth = 0 + } + + parser.write(chunk.toString()) + ack() + } +}) + +const input = ` + + + Naruto Shippuden Storm 3 + playstation + +`.split('') +const reader = new Readable({ + read () { + const next = input.shift() + if (typeof next === 'string') { + this.push(next) + } else { + this.push(null) + } + } +}) + +reader + .pipe(transformData) + .on('data', data => console.log('Data has been emitted from transform', data)) + .on('error', console.log) + .on('end', console.log) From 2e4354e63054c6da7fa4e7ed71a4539c662f4a57 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Thu, 20 Aug 2020 14:18:04 -0300 Subject: [PATCH 19/30] remove impl of xml stream --- src/strategies/Xml/XmlTag.js | 6 +-- src/strategies/Xml/index.js | 58 +++------------------- tests/strategies/Xml.test.js | 24 --------- xmltest.js | 95 ------------------------------------ 4 files changed, 9 insertions(+), 174 deletions(-) delete mode 100644 xmltest.js diff --git a/src/strategies/Xml/XmlTag.js b/src/strategies/Xml/XmlTag.js index 5a8b911..f6b609d 100644 --- a/src/strategies/Xml/XmlTag.js +++ b/src/strategies/Xml/XmlTag.js @@ -1,11 +1,11 @@ function XmlResult (declaration, tags) { this.declaration = declaration - this.tags = tags + this.content = tags } -function XmlTag (name, text, attributes, tags) { +function XmlTag (name, value, attributes, tags) { this.name = name - this.text = text + this.value = value this.attributes = attributes this.tags = tags } diff --git a/src/strategies/Xml/index.js b/src/strategies/Xml/index.js index 9108d44..f1ee88b 100644 --- a/src/strategies/Xml/index.js +++ b/src/strategies/Xml/index.js @@ -1,9 +1,7 @@ const Base = require('../Base') const ParserError = require('../../errors/ParserError') const xml = require('xml-js') -const StreamParser = require('node-xml-stream') -const { Transform } = require('stream') -const XmlTag = require('./XmlTag') +const NotImplemented = require('../../errors/NotImplemented') /** * Xml - Support for XML filetype @@ -116,57 +114,13 @@ Xml.prototype.parse = function parse (data, options = {}) { } /** - * Xml.prototype.pipeParse - stream + * Xml.prototype.toXmlTag - turns xml2js non-compact result into XmlTag and XmlResult * - * Using repl.it: https://repl.it/@onhernandes/AnnualEnormousRegisters + * @param {object} xml2jsResult + * @throws {NotImplemented} */ -Xml.prototype.pipeParse = function pipeParse () { - const history = [] // eslint-disable-line - const parser = new StreamParser() - - let currentTagFinished = false - let currentTag = { // eslint-disable-line - name: '', - text: '', - attributes: {} - } - - parser.on('opentag', (name, attrs) => { - currentTag.name = name - currentTag.attributes = attrs || {} - }) - - parser.on('text', (text) => { - currentTag.text = text - }) - - parser.on('closetag', (name) => { - if (currentTag.name !== name) { - throw new ParserError('Current tag name does not match closing tag') - } - - currentTagFinished = true - }) - - return new Transform({ - transform (chunk, encoding, ack) { - if (currentTagFinished) { - const tag = new XmlTag( - currentTag.name, - currentTag.text, - currentTag.attributes, - currentTag.tags || [] - ) - - this.push(tag) - currentTag = {} - currentTagFinished = false - } - - parser.write(chunk.toString()) - ack() - } - }) +Xml.prototype.toXmlTag = function toXmlTag (xml2jsResult) { + throw new NotImplemented() } module.exports = Xml diff --git a/tests/strategies/Xml.test.js b/tests/strategies/Xml.test.js index 40774cf..cc85b95 100644 --- a/tests/strategies/Xml.test.js +++ b/tests/strategies/Xml.test.js @@ -2,7 +2,6 @@ const Xml = require('../../src/strategies/Xml') const ParserError = require('../../src/errors/ParserError') const NotImplemented = require('../../src/errors/NotImplemented') const strategy = new Xml() -const { Readable } = require('stream') describe('Xml Strategy', function () { describe('Xml.prototype.setXmlDeclaration()', function () { @@ -156,27 +155,4 @@ describe('Xml Strategy', function () { expect(result).toBe(true) }) }) - - describe('Xml.prototype.pipeParse', () => { - it('parses XML', () => { - const input = 'Naruto Shippuden Storm 3playstation'.split('') - - const reader = new Readable({ - read () { - const next = input.shift() - if (typeof next === 'string') { - this.push(next) - } else { - this.push(null) - } - } - }) - - reader - .pipe(strategy.pipeParse()) - .on('data', console.log) - .on('error', console.log) - .on('end', console.log) - }) - }) }) diff --git a/xmltest.js b/xmltest.js deleted file mode 100644 index 6f4f359..0000000 --- a/xmltest.js +++ /dev/null @@ -1,95 +0,0 @@ -const { Transform, Readable } = require('stream') -const StreamParser = require('node-xml-stream') -const parser = new StreamParser() - -const depth = 1 -let currentDepth = 0 -let hasReachedDepth = false -const mainTag = { - tags: [] -} - -let currentTag = { // eslint-disable-line - name: '', - text: '', - attributes: {} -} - -parser.on('opentag', (name, attrs) => { - if (currentDepth !== depth && currentTag.name === '') { - currentDepth = currentDepth + 1 - } - - if (currentDepth === depth) { - mainTag.name = name - mainTag.attributes = attrs || {} - } else { - currentTag.name = name - currentTag.attributes = attrs || {} - } -}) - -parser.on('text', (text) => { - if (currentTag.name !== '') { - currentTag.text = text - } else { - mainTag.text = text - } -}) - -parser.on('closetag', (name) => { - if (name === currentTag.name) { - mainTag.tags.push( - Object.assign({}, currentTag) - ) - currentTag.name = '' - currentTag.text = '' - currentTag.attributes = {} - } - - if (name === mainTag.name) { - hasReachedDepth = true - } -}) - -const transformData = new Transform({ - objectMode: true, - transform (chunk, encoding, ack) { - if (hasReachedDepth) { - this.push(Object.assign({}, mainTag)) - mainTag.name = '' - mainTag.text = '' - mainTag.attributes = {} - mainTag.tags = [] - hasReachedDepth = false - currentDepth = 0 - } - - parser.write(chunk.toString()) - ack() - } -}) - -const input = ` - - - Naruto Shippuden Storm 3 - playstation - -`.split('') -const reader = new Readable({ - read () { - const next = input.shift() - if (typeof next === 'string') { - this.push(next) - } else { - this.push(null) - } - } -}) - -reader - .pipe(transformData) - .on('data', data => console.log('Data has been emitted from transform', data)) - .on('error', console.log) - .on('end', console.log) From 5106bb9f4810d314ebec15efc745be1f73f6a95f Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Thu, 20 Aug 2020 22:51:42 -0300 Subject: [PATCH 20/30] Add XmlDeclaration --- src/strategies/Xml/XmlTag.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/strategies/Xml/XmlTag.js b/src/strategies/Xml/XmlTag.js index f6b609d..d5bd9b6 100644 --- a/src/strategies/Xml/XmlTag.js +++ b/src/strategies/Xml/XmlTag.js @@ -3,6 +3,11 @@ function XmlResult (declaration, tags) { this.content = tags } +function XmlDeclaration (version, encoding) { + this.version = version + this.encoding = encoding +} + function XmlTag (name, value, attributes, tags) { this.name = name this.value = value @@ -10,4 +15,4 @@ function XmlTag (name, value, attributes, tags) { this.tags = tags } -module.exports = { XmlTag, XmlResult } +module.exports = { XmlTag, XmlResult, XmlDeclaration } From 3ce497b566484b542d96841479154c5714eaf589 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Thu, 20 Aug 2020 22:53:30 -0300 Subject: [PATCH 21/30] add XmlCharacterData --- src/strategies/Xml/XmlTag.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/strategies/Xml/XmlTag.js b/src/strategies/Xml/XmlTag.js index d5bd9b6..3c62ac9 100644 --- a/src/strategies/Xml/XmlTag.js +++ b/src/strategies/Xml/XmlTag.js @@ -15,4 +15,8 @@ function XmlTag (name, value, attributes, tags) { this.tags = tags } -module.exports = { XmlTag, XmlResult, XmlDeclaration } +function XmlCharacterData (cdata) { + this.cdata = cdata +} + +module.exports = { XmlTag, XmlResult, XmlDeclaration, XmlCharacterData } From 0bc962d98d7e0eaf9f629166e8d1764c7954a528 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Thu, 20 Aug 2020 22:58:09 -0300 Subject: [PATCH 22/30] wip --- xml.js | 95 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 95 insertions(+) create mode 100644 xml.js diff --git a/xml.js b/xml.js new file mode 100644 index 0000000..6f4f359 --- /dev/null +++ b/xml.js @@ -0,0 +1,95 @@ +const { Transform, Readable } = require('stream') +const StreamParser = require('node-xml-stream') +const parser = new StreamParser() + +const depth = 1 +let currentDepth = 0 +let hasReachedDepth = false +const mainTag = { + tags: [] +} + +let currentTag = { // eslint-disable-line + name: '', + text: '', + attributes: {} +} + +parser.on('opentag', (name, attrs) => { + if (currentDepth !== depth && currentTag.name === '') { + currentDepth = currentDepth + 1 + } + + if (currentDepth === depth) { + mainTag.name = name + mainTag.attributes = attrs || {} + } else { + currentTag.name = name + currentTag.attributes = attrs || {} + } +}) + +parser.on('text', (text) => { + if (currentTag.name !== '') { + currentTag.text = text + } else { + mainTag.text = text + } +}) + +parser.on('closetag', (name) => { + if (name === currentTag.name) { + mainTag.tags.push( + Object.assign({}, currentTag) + ) + currentTag.name = '' + currentTag.text = '' + currentTag.attributes = {} + } + + if (name === mainTag.name) { + hasReachedDepth = true + } +}) + +const transformData = new Transform({ + objectMode: true, + transform (chunk, encoding, ack) { + if (hasReachedDepth) { + this.push(Object.assign({}, mainTag)) + mainTag.name = '' + mainTag.text = '' + mainTag.attributes = {} + mainTag.tags = [] + hasReachedDepth = false + currentDepth = 0 + } + + parser.write(chunk.toString()) + ack() + } +}) + +const input = ` + + + Naruto Shippuden Storm 3 + playstation + +`.split('') +const reader = new Readable({ + read () { + const next = input.shift() + if (typeof next === 'string') { + this.push(next) + } else { + this.push(null) + } + } +}) + +reader + .pipe(transformData) + .on('data', data => console.log('Data has been emitted from transform', data)) + .on('error', console.log) + .on('end', console.log) From 7f73b31c616b189c8eb247a7c09c2d5e608a2143 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Fri, 21 Aug 2020 20:02:25 -0300 Subject: [PATCH 23/30] wip --- src/strategies/Xml/index.js | 57 ++++++++++++ xml.js | 20 ++-- xmlNewApproach.js | 179 ++++++++++++++++++++++++++++++++++++ 3 files changed, 249 insertions(+), 7 deletions(-) create mode 100644 xmlNewApproach.js diff --git a/src/strategies/Xml/index.js b/src/strategies/Xml/index.js index f1ee88b..a3592ba 100644 --- a/src/strategies/Xml/index.js +++ b/src/strategies/Xml/index.js @@ -2,6 +2,9 @@ const Base = require('../Base') const ParserError = require('../../errors/ParserError') const xml = require('xml-js') const NotImplemented = require('../../errors/NotImplemented') +const { Transform } = require('stream') +const StreamParser = require('node-xml-stream') +const { XmlTag } = require('./XmlTag') /** * Xml - Support for XML filetype @@ -123,4 +126,58 @@ Xml.prototype.toXmlTag = function toXmlTag (xml2jsResult) { throw new NotImplemented() } +/** + * Xml.prototype.pipeParse - stream + * + * Using repl.it: https://repl.it/@onhernandes/AnnualEnormousRegisters + */ +Xml.prototype.pipeParse = function pipeParse () { + const history = [] // eslint-disable-line + const parser = new StreamParser() + + let currentTagFinished = false + let currentTag = { // eslint-disable-line + name: '', + text: '', + attributes: {} + } + + parser.on('opentag', (name, attrs) => { + currentTag.name = name + currentTag.attributes = attrs || {} + }) + + parser.on('text', (text) => { + currentTag.text = text + }) + + parser.on('closetag', (name) => { + if (currentTag.name !== name) { + throw new ParserError('Current tag name does not match closing tag') + } + + currentTagFinished = true + }) + + return new Transform({ + transform (chunk, encoding, ack) { + if (currentTagFinished) { + const tag = new XmlTag( + currentTag.name, + currentTag.text, + currentTag.attributes, + currentTag.tags || [] + ) + + this.push(tag) + currentTag = {} + currentTagFinished = false + } + + parser.write(chunk.toString()) + ack() + } + }) +} + module.exports = Xml diff --git a/xml.js b/xml.js index 6f4f359..341ff97 100644 --- a/xml.js +++ b/xml.js @@ -2,7 +2,7 @@ const { Transform, Readable } = require('stream') const StreamParser = require('node-xml-stream') const parser = new StreamParser() -const depth = 1 +const depth = 0 let currentDepth = 0 let hasReachedDepth = false const mainTag = { @@ -16,10 +16,6 @@ let currentTag = { // eslint-disable-line } parser.on('opentag', (name, attrs) => { - if (currentDepth !== depth && currentTag.name === '') { - currentDepth = currentDepth + 1 - } - if (currentDepth === depth) { mainTag.name = name mainTag.attributes = attrs || {} @@ -27,10 +23,12 @@ parser.on('opentag', (name, attrs) => { currentTag.name = name currentTag.attributes = attrs || {} } + + currentDepth = currentDepth + 1 }) parser.on('text', (text) => { - if (currentTag.name !== '') { + if (depth !== (currentDepth - 1)) { currentTag.text = text } else { mainTag.text = text @@ -50,6 +48,8 @@ parser.on('closetag', (name) => { if (name === mainTag.name) { hasReachedDepth = true } + + currentDepth = currentDepth - 1 }) const transformData = new Transform({ @@ -57,12 +57,18 @@ const transformData = new Transform({ transform (chunk, encoding, ack) { if (hasReachedDepth) { this.push(Object.assign({}, mainTag)) + mainTag.name = '' mainTag.text = '' mainTag.attributes = {} mainTag.tags = [] + + currentTag.name = '' + currentTag.text = '' + currentTag.attributes = {} + currentTag.tags = [] + hasReachedDepth = false - currentDepth = 0 } parser.write(chunk.toString()) diff --git a/xmlNewApproach.js b/xmlNewApproach.js new file mode 100644 index 0000000..294d788 --- /dev/null +++ b/xmlNewApproach.js @@ -0,0 +1,179 @@ +const { Transform, Readable } = require('stream') +const StreamParser = require('node-xml-stream') +const parser = new StreamParser() +const util = require('util') +const { XmlTag } = require('./src/strategies/Xml/XmlTag') + +const depth = 1 + +let index = 0 +let parsedTags = new Map() +const lastTag = { + index: null, + name: null, + tagIndex: null +} + +const getFirstTagName = map => { + if (map.has(0) === false) { + return null + } + + const mapPosZero = map.get(0) + const arrayMap = Array.from(mapPosZero) + + if (arrayMap.length === 0) { + return null + } + + const keyValue = arrayMap[0] + + if (keyValue.length === 0) { + return null + } + + return keyValue[0] +} + +parser.on('opentag', (name, attrs) => { + const inheritFrom = { + index: null, + name: null + } + + if (index >= 1) { + const beforeIndex = index - 1 + const beforeKey = [ + ...parsedTags + .get(beforeIndex) + .keys() + ].reverse()[0] + inheritFrom.index = beforeIndex + inheritFrom.name = beforeKey + } + + if (!parsedTags.has(index)) { + parsedTags.set(index, new Map()) + } + + if (!parsedTags.get(index).has(name)) { + parsedTags.get(index).set(name, []) + } + + const tag = new XmlTag(name, null, attrs, []) + tag.inheritFrom = inheritFrom + + lastTag.index = index + lastTag.name = name + lastTag.tagIndex = parsedTags.get(index).get(name).push(tag) - 1 + index = index + 1 +}) + +parser.on('text', (text) => { + parsedTags + .get(lastTag.index) + .get(lastTag.name)[lastTag.tagIndex] + .value = text + + lastTag.index = null + lastTag.name = null + lastTag.tagIndex = null +}) + +parser.on('closetag', (name) => { + index = index - 1 + if (index === depth) { + /** + * must reorganize data to a single object + * them emit it + */ + let entries = Array.from(parsedTags).reverse() + entries = entries.map( + ([intIndex, tagsMap]) => ({ + intIndex, tagsMap: Array.from(tagsMap).reverse() + }) + ) + entries.pop() + entries.forEach(entry => { + const intIndex = entry.intIndex === 0 ? entry.intIndex : entry.intIndex - 1 + const indexedTags = parsedTags.get(intIndex) + + entry.tagsMap.forEach(tag => { + const list = tag[1] + list.forEach(tagToBePushed => { + indexedTags + .get(tagToBePushed.inheritFrom.name)[0] + .tags + .push(tagToBePushed) + }) + console.log({ + list: list[0], + index: entry.intIndex, + indexedTags: indexedTags.get(list[0].inheritFrom.name)[0] + }) + /* + */ + }) + }) + // console.log(util.inspect(parsedTags.get(index), false, 5, true)) + // console.log(util.inspect(entries[0], false, 5, true)) + } + + if (name === getFirstTagName(parsedTags)) { + parsedTags = new Map() + } + + // console.log('closetag', { name, index }) +}) + +const transformData = new Transform({ + objectMode: true, + transform (chunk, encoding, ack) { + parser.write(chunk.toString()) + ack() + } +}) + +const input = ` + + + Naruto Shippuden Storm 3 + + platform + + This is another tag + + + Third tag another + + + + Netflix + + Possible description here + + + +`.split('') + +const reader = new Readable({ + read () { + const next = input.shift() + if (typeof next === 'string') { + this.push(next) + } else { + this.push(null) + } + } +}) + +reader + .pipe(transformData) + .on('data', data => + console.log( + 'Data has been emitted from transform', + util.inspect(data, false, 5, true) + ) + ) + .on('error', console.log) + .on('end', console.log) From 6003c3f7c21202f2d213b5a6c692b872f95deef5 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Sun, 23 Aug 2020 19:28:38 -0300 Subject: [PATCH 24/30] Finally implement xml stream --- src/strategies/Xml/XmlTag.js | 13 +-- src/strategies/Xml/index.js | 150 ++++++++++++++++++++++++----- tests/strategies/Xml.test.js | 89 +++++++++++++++++ xml.js | 101 -------------------- xmlNewApproach.js | 179 ----------------------------------- 5 files changed, 220 insertions(+), 312 deletions(-) delete mode 100644 xml.js delete mode 100644 xmlNewApproach.js diff --git a/src/strategies/Xml/XmlTag.js b/src/strategies/Xml/XmlTag.js index 3c62ac9..641cf8e 100644 --- a/src/strategies/Xml/XmlTag.js +++ b/src/strategies/Xml/XmlTag.js @@ -1,9 +1,5 @@ -function XmlResult (declaration, tags) { - this.declaration = declaration - this.content = tags -} - function XmlDeclaration (version, encoding) { + this.name = 'declaration' this.version = version this.encoding = encoding } @@ -15,8 +11,13 @@ function XmlTag (name, value, attributes, tags) { this.tags = tags } +XmlTag.prototype.reset = function reset () { + return new XmlTag(this.name, this.value, this.attributes, this.tags) +} + function XmlCharacterData (cdata) { + this.name = 'cdata' this.cdata = cdata } -module.exports = { XmlTag, XmlResult, XmlDeclaration, XmlCharacterData } +module.exports = { XmlTag, XmlDeclaration, XmlCharacterData } diff --git a/src/strategies/Xml/index.js b/src/strategies/Xml/index.js index a3592ba..8475821 100644 --- a/src/strategies/Xml/index.js +++ b/src/strategies/Xml/index.js @@ -4,7 +4,7 @@ const xml = require('xml-js') const NotImplemented = require('../../errors/NotImplemented') const { Transform } = require('stream') const StreamParser = require('node-xml-stream') -const { XmlTag } = require('./XmlTag') +const { XmlTag, XmlCharacterData, XmlDeclaration } = require('./XmlTag') /** * Xml - Support for XML filetype @@ -130,51 +130,149 @@ Xml.prototype.toXmlTag = function toXmlTag (xml2jsResult) { * Xml.prototype.pipeParse - stream * * Using repl.it: https://repl.it/@onhernandes/AnnualEnormousRegisters + * @param {object} [options] + * @param {Number} [options.depth=0] */ -Xml.prototype.pipeParse = function pipeParse () { - const history = [] // eslint-disable-line +Xml.prototype.pipeParse = function pipeParse (options = {}) { + options.depth = options.depth || 0 const parser = new StreamParser() - let currentTagFinished = false - let currentTag = { // eslint-disable-line - name: '', - text: '', - attributes: {} + let index = 0 + let parsedTags = new Map() + const toEmit = [] + const lastTag = { + index: null, + name: null, + tagIndex: null + } + + const getFirstTagName = map => { + if (map.has(0) === false) { + return null + } + + const mapPosZero = map.get(0) + const arrayMap = Array.from(mapPosZero) + + if (arrayMap.length === 0) { + return null + } + + const keyValue = arrayMap[0] + + if (keyValue.length === 0) { + return null + } + + return keyValue[0] } parser.on('opentag', (name, attrs) => { - currentTag.name = name - currentTag.attributes = attrs || {} + const inheritFrom = { + index: null, + name: null + } + + if (index >= 1) { + const beforeIndex = index - 1 + const beforeKey = [ + ...parsedTags + .get(beforeIndex) + .keys() + ].reverse()[0] + inheritFrom.index = beforeIndex + inheritFrom.name = beforeKey + } + + if (!parsedTags.has(index)) { + parsedTags.set(index, new Map()) + } + + if (!parsedTags.get(index).has(name)) { + parsedTags.get(index).set(name, []) + } + + const tag = new XmlTag(name, null, attrs, []) + tag.inheritFrom = inheritFrom + + lastTag.index = index + lastTag.name = name + lastTag.tagIndex = parsedTags.get(index).get(name).push(tag) - 1 + tag.inheritFrom.tagIndex = lastTag.tagIndex + index = index + 1 }) parser.on('text', (text) => { - currentTag.text = text + parsedTags + .get(lastTag.index) + .get(lastTag.name)[lastTag.tagIndex] + .value = text + + lastTag.index = null + lastTag.name = null + lastTag.tagIndex = null }) parser.on('closetag', (name) => { - if (currentTag.name !== name) { - throw new ParserError('Current tag name does not match closing tag') + index = index - 1 + + if (index === options.depth) { + /** + * must reorganize data to a single object + * them emit it + */ + let entries = Array.from(parsedTags).reverse() + entries = entries.map( + ([intIndex, tagsMap]) => ({ + intIndex, tagsMap: Array.from(tagsMap).reverse() + }) + ) + entries.pop() + entries.forEach(entry => { + const intIndex = entry.intIndex === 0 ? entry.intIndex : entry.intIndex - 1 + const indexedTags = parsedTags.get(intIndex) + + entry.tagsMap.forEach(tag => { + const list = tag[1] + list.forEach(tagToBePushed => { + indexedTags + .get(tagToBePushed.inheritFrom.name)[0] + .tags + .push(tagToBePushed.reset()) + }) + }) + }) + + parsedTags + .get(index) + .get(name) + .forEach(tag => toEmit.push(tag.reset())) } - currentTagFinished = true + if (name === getFirstTagName(parsedTags)) { + parsedTags = new Map() + } + }) + + parser.on('cdata', cdata => { + const CData = new XmlCharacterData(cdata) + toEmit.push(CData) + }) + + parser.on('instruction', (name, attrs) => { + const declaration = new XmlDeclaration(attrs.version, attrs.encoding) + toEmit.push(declaration) }) return new Transform({ + objectMode: true, transform (chunk, encoding, ack) { - if (currentTagFinished) { - const tag = new XmlTag( - currentTag.name, - currentTag.text, - currentTag.attributes, - currentTag.tags || [] - ) - - this.push(tag) - currentTag = {} - currentTagFinished = false + parser.write(chunk.toString()) + + if (toEmit.length > 0) { + this.push(toEmit.shift()) } - parser.write(chunk.toString()) ack() } }) diff --git a/tests/strategies/Xml.test.js b/tests/strategies/Xml.test.js index cc85b95..0b8f4e8 100644 --- a/tests/strategies/Xml.test.js +++ b/tests/strategies/Xml.test.js @@ -2,6 +2,41 @@ const Xml = require('../../src/strategies/Xml') const ParserError = require('../../src/errors/ParserError') const NotImplemented = require('../../src/errors/NotImplemented') const strategy = new Xml() +const { Readable } = require('stream') +const { XmlTag, XmlDeclaration } = require('../../src/strategies/Xml/XmlTag') + +const input = ` + + + Naruto Shippuden Storm 3 + + platform + + This is another tag + + + Third tag another + + + + Netflix + + Possible description here + + + +`.split('') + +const getReader = inputArray => new Readable({ + read () { + const next = inputArray.shift() + if (typeof next === 'string') { + this.push(next) + } else { + this.push(null) + } + } +}) describe('Xml Strategy', function () { describe('Xml.prototype.setXmlDeclaration()', function () { @@ -155,4 +190,58 @@ describe('Xml Strategy', function () { expect(result).toBe(true) }) }) + + describe('Xml.prototype.pipeParse', () => { + it('parses with default options.depth', () => { + const reader = getReader(Array.from(input)) + const toExpect = { + declaration: data => { + expect(data).toBeInstanceOf(XmlDeclaration) + expect(data.version).toEqual('1.0') + expect(data.encoding).toEqual('utf-8') + }, + games: data => { + expect(data).toBeInstanceOf(XmlTag) + expect(data.tags).toHaveLength(3) + } + } + reader + .pipe(strategy.pipeParse()) + .on('data', data => { + toExpect[data.name](data) + }) + .on('error', console.log) + .on('end', () => {}) + }) + + it('parses with custom options.depth 1', () => { + const reader = getReader(Array.from(input)) + const toExpect = { + declaration: data => { + expect(data).toBeInstanceOf(XmlDeclaration) + expect(data.version).toEqual('1.0') + expect(data.encoding).toEqual('utf-8') + }, + name: data => { + expect(data).toBeInstanceOf(XmlTag) + expect(data.tags).toHaveLength(0) + }, + platform: data => { + expect(data).toBeInstanceOf(XmlTag) + expect(data.tags).toHaveLength(2) + }, + site: data => { + expect(data).toBeInstanceOf(XmlTag) + expect(data.tags).toHaveLength(1) + } + } + reader + .pipe(strategy.pipeParse({ depth: 1 })) + .on('data', data => { + toExpect[data.name](data) + }) + .on('error', console.log) + .on('end', () => {}) + }) + }) }) diff --git a/xml.js b/xml.js deleted file mode 100644 index 341ff97..0000000 --- a/xml.js +++ /dev/null @@ -1,101 +0,0 @@ -const { Transform, Readable } = require('stream') -const StreamParser = require('node-xml-stream') -const parser = new StreamParser() - -const depth = 0 -let currentDepth = 0 -let hasReachedDepth = false -const mainTag = { - tags: [] -} - -let currentTag = { // eslint-disable-line - name: '', - text: '', - attributes: {} -} - -parser.on('opentag', (name, attrs) => { - if (currentDepth === depth) { - mainTag.name = name - mainTag.attributes = attrs || {} - } else { - currentTag.name = name - currentTag.attributes = attrs || {} - } - - currentDepth = currentDepth + 1 -}) - -parser.on('text', (text) => { - if (depth !== (currentDepth - 1)) { - currentTag.text = text - } else { - mainTag.text = text - } -}) - -parser.on('closetag', (name) => { - if (name === currentTag.name) { - mainTag.tags.push( - Object.assign({}, currentTag) - ) - currentTag.name = '' - currentTag.text = '' - currentTag.attributes = {} - } - - if (name === mainTag.name) { - hasReachedDepth = true - } - - currentDepth = currentDepth - 1 -}) - -const transformData = new Transform({ - objectMode: true, - transform (chunk, encoding, ack) { - if (hasReachedDepth) { - this.push(Object.assign({}, mainTag)) - - mainTag.name = '' - mainTag.text = '' - mainTag.attributes = {} - mainTag.tags = [] - - currentTag.name = '' - currentTag.text = '' - currentTag.attributes = {} - currentTag.tags = [] - - hasReachedDepth = false - } - - parser.write(chunk.toString()) - ack() - } -}) - -const input = ` - - - Naruto Shippuden Storm 3 - playstation - -`.split('') -const reader = new Readable({ - read () { - const next = input.shift() - if (typeof next === 'string') { - this.push(next) - } else { - this.push(null) - } - } -}) - -reader - .pipe(transformData) - .on('data', data => console.log('Data has been emitted from transform', data)) - .on('error', console.log) - .on('end', console.log) diff --git a/xmlNewApproach.js b/xmlNewApproach.js deleted file mode 100644 index 294d788..0000000 --- a/xmlNewApproach.js +++ /dev/null @@ -1,179 +0,0 @@ -const { Transform, Readable } = require('stream') -const StreamParser = require('node-xml-stream') -const parser = new StreamParser() -const util = require('util') -const { XmlTag } = require('./src/strategies/Xml/XmlTag') - -const depth = 1 - -let index = 0 -let parsedTags = new Map() -const lastTag = { - index: null, - name: null, - tagIndex: null -} - -const getFirstTagName = map => { - if (map.has(0) === false) { - return null - } - - const mapPosZero = map.get(0) - const arrayMap = Array.from(mapPosZero) - - if (arrayMap.length === 0) { - return null - } - - const keyValue = arrayMap[0] - - if (keyValue.length === 0) { - return null - } - - return keyValue[0] -} - -parser.on('opentag', (name, attrs) => { - const inheritFrom = { - index: null, - name: null - } - - if (index >= 1) { - const beforeIndex = index - 1 - const beforeKey = [ - ...parsedTags - .get(beforeIndex) - .keys() - ].reverse()[0] - inheritFrom.index = beforeIndex - inheritFrom.name = beforeKey - } - - if (!parsedTags.has(index)) { - parsedTags.set(index, new Map()) - } - - if (!parsedTags.get(index).has(name)) { - parsedTags.get(index).set(name, []) - } - - const tag = new XmlTag(name, null, attrs, []) - tag.inheritFrom = inheritFrom - - lastTag.index = index - lastTag.name = name - lastTag.tagIndex = parsedTags.get(index).get(name).push(tag) - 1 - index = index + 1 -}) - -parser.on('text', (text) => { - parsedTags - .get(lastTag.index) - .get(lastTag.name)[lastTag.tagIndex] - .value = text - - lastTag.index = null - lastTag.name = null - lastTag.tagIndex = null -}) - -parser.on('closetag', (name) => { - index = index - 1 - if (index === depth) { - /** - * must reorganize data to a single object - * them emit it - */ - let entries = Array.from(parsedTags).reverse() - entries = entries.map( - ([intIndex, tagsMap]) => ({ - intIndex, tagsMap: Array.from(tagsMap).reverse() - }) - ) - entries.pop() - entries.forEach(entry => { - const intIndex = entry.intIndex === 0 ? entry.intIndex : entry.intIndex - 1 - const indexedTags = parsedTags.get(intIndex) - - entry.tagsMap.forEach(tag => { - const list = tag[1] - list.forEach(tagToBePushed => { - indexedTags - .get(tagToBePushed.inheritFrom.name)[0] - .tags - .push(tagToBePushed) - }) - console.log({ - list: list[0], - index: entry.intIndex, - indexedTags: indexedTags.get(list[0].inheritFrom.name)[0] - }) - /* - */ - }) - }) - // console.log(util.inspect(parsedTags.get(index), false, 5, true)) - // console.log(util.inspect(entries[0], false, 5, true)) - } - - if (name === getFirstTagName(parsedTags)) { - parsedTags = new Map() - } - - // console.log('closetag', { name, index }) -}) - -const transformData = new Transform({ - objectMode: true, - transform (chunk, encoding, ack) { - parser.write(chunk.toString()) - ack() - } -}) - -const input = ` - - - Naruto Shippuden Storm 3 - - platform - - This is another tag - - - Third tag another - - - - Netflix - - Possible description here - - - -`.split('') - -const reader = new Readable({ - read () { - const next = input.shift() - if (typeof next === 'string') { - this.push(next) - } else { - this.push(null) - } - } -}) - -reader - .pipe(transformData) - .on('data', data => - console.log( - 'Data has been emitted from transform', - util.inspect(data, false, 5, true) - ) - ) - .on('error', console.log) - .on('end', console.log) From aa8388ad41bd688689faa34f97e79ae533e6ab32 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Sun, 23 Aug 2020 19:56:50 -0300 Subject: [PATCH 25/30] add xml pipeParse() docs --- esdocs/manual/xml.md | 49 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/esdocs/manual/xml.md b/esdocs/manual/xml.md index c9f1067..38c94b9 100644 --- a/esdocs/manual/xml.md +++ b/esdocs/manual/xml.md @@ -179,3 +179,52 @@ assert.equal( false ) ``` + +## Stream + +### pipeParse + +You may specify in which depth it should emit data, defaults to 0. + +```javascript +const { Readable } = require('stream') +const { xml } = require('parserblade') +const input = ` + + + Naruto Shippuden Storm 3 + + platform + + This is another tag + + + Third tag another + + + + Netflix + + Possible description here + + + +`.split('') + +const reader = new Readable({ + read () { + const next = input.shift() + if (typeof next === 'string') { + this.push(next) + } else { + this.push(null) + } + } +}) + +reader + .pipe(xml.pipeParse()) + .on('data', console.log) + .on('error', console.log) + .on('end', () => console.log('stream ended')) +``` From 490dacb3e5e4a428c44fa49dd8d73948ee80da36 Mon Sep 17 00:00:00 2001 From: Matheus Hernandes <12698656+onhernandes@users.noreply.github.com> Date: Thu, 3 Sep 2020 20:13:46 -0300 Subject: [PATCH 26/30] update xml tag --- docs/ast/source/Parser.js.json | 4957 +- docs/ast/source/errors/ParserError.js.json | 994 +- docs/ast/source/strategies/Base.js.json | 5519 +- docs/ast/source/strategies/Csv.js.json | 6290 ++- docs/ast/source/strategies/Json.js.json | 6431 ++- docs/ast/source/strategies/Xml/XmlTag.js.json | 4958 ++ docs/ast/source/strategies/Xml/index.js.json | 44512 ++++++++++++++++ docs/ast/source/strategies/Yaml.js.json | 1891 +- docs/badge.svg | 4 +- docs/coverage.json | 53 +- docs/file/src/Parser.js.html | 26 +- docs/file/src/errors/NotImplemented.js.html | 2 +- docs/file/src/errors/ParserError.js.html | 8 +- docs/file/src/index.js.html | 2 +- docs/file/src/strategies/Base.js.html | 40 +- docs/file/src/strategies/Csv.js.html | 28 +- docs/file/src/strategies/Json.js.html | 37 +- docs/file/src/strategies/Xml/XmlTag.js.html | 76 + docs/file/src/strategies/Xml/index.js.html | 333 + docs/file/src/strategies/Yaml.js.html | 14 +- docs/file/src/strategies/index.js.html | 2 +- docs/identifiers.html | 2 +- docs/index.html | 237 +- docs/index.json | 1204 +- docs/lint.json | 20 +- docs/manual/csv.html | 60 +- docs/manual/index.html | 237 +- docs/manual/json.html | 111 +- docs/manual/xml.html | 111 +- docs/manual/yaml.html | 28 +- docs/script/search_index.js | 12 +- docs/source.html | 80 +- src/strategies/Xml/index.js | 1 - tests/strategies/Xml.test.js | 3 + 34 files changed, 73001 insertions(+), 5282 deletions(-) create mode 100644 docs/ast/source/strategies/Xml/XmlTag.js.json create mode 100644 docs/ast/source/strategies/Xml/index.js.json create mode 100644 docs/file/src/strategies/Xml/XmlTag.js.html create mode 100644 docs/file/src/strategies/Xml/index.js.html diff --git a/docs/ast/source/Parser.js.json b/docs/ast/source/Parser.js.json index d1cfb93..a6b06dc 100644 --- a/docs/ast/source/Parser.js.json +++ b/docs/ast/source/Parser.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 910, + "end": 1613, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 36, + "line": 60, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 910, + "end": 1613, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 36, + "line": 60, "column": 0 } }, @@ -975,10 +975,13 @@ } } ], - "directives": [] - } + "directives": [], + "trailingComments": null + }, + "trailingComments": null }, - "leadingComments": null + "leadingComments": null, + "trailingComments": null }, "leadingComments": [ { @@ -997,150 +1000,171 @@ } } } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.valid - Exposes the valid() method from strategy. Checks if given data is valid\n *\n * @param {string} data\n * @param {object} options\n ", + "start": 780, + "end": 941, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 36, + "column": 3 + } + } + } ] }, { "type": "ExpressionStatement", - "start": 780, - "end": 831, + "start": 942, + "end": 1049, "loc": { "start": { - "line": 31, + "line": 37, "column": 0 }, "end": { - "line": 31, - "column": 51 + "line": 39, + "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 780, - "end": 831, + "start": 942, + "end": 1049, "loc": { "start": { - "line": 31, + "line": 37, "column": 0 }, "end": { - "line": 31, - "column": 51 + "line": 39, + "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 780, - "end": 800, + "start": 942, + "end": 964, "loc": { "start": { - "line": 31, + "line": 37, "column": 0 }, "end": { - "line": 31, - "column": 20 + "line": 37, + "column": 22 } }, "object": { "type": "MemberExpression", - "start": 780, - "end": 796, + "start": 942, + "end": 958, "loc": { "start": { - "line": 31, + "line": 37, "column": 0 }, "end": { - "line": 31, + "line": 37, "column": 16 } }, "object": { "type": "Identifier", - "start": 780, - "end": 786, + "start": 942, + "end": 948, "loc": { "start": { - "line": 31, + "line": 37, "column": 0 }, "end": { - "line": 31, + "line": 37, "column": 6 }, "identifierName": "Parser" }, - "name": "Parser" + "name": "Parser", + "leadingComments": null }, "property": { "type": "Identifier", - "start": 787, - "end": 796, + "start": 949, + "end": 958, "loc": { "start": { - "line": 31, + "line": 37, "column": 7 }, "end": { - "line": 31, + "line": 37, "column": 16 }, "identifierName": "prototype" }, "name": "prototype" }, - "computed": false + "computed": false, + "leadingComments": null }, "property": { "type": "Identifier", - "start": 797, - "end": 800, + "start": 959, + "end": 964, "loc": { "start": { - "line": 31, + "line": 37, "column": 17 }, "end": { - "line": 31, - "column": 20 + "line": 37, + "column": 22 }, - "identifierName": "get" + "identifierName": "valid" }, - "name": "get" + "name": "valid" }, - "computed": false + "computed": false, + "leadingComments": null }, "right": { "type": "FunctionExpression", - "start": 803, - "end": 831, + "start": 967, + "end": 1049, "loc": { "start": { - "line": 31, - "column": 23 + "line": 37, + "column": 25 }, "end": { - "line": 31, - "column": 51 + "line": 39, + "column": 1 } }, "id": { "type": "Identifier", - "start": 797, - "end": 800, + "start": 959, + "end": 964, "loc": { "start": { - "line": 31, + "line": 37, "column": 17 }, "end": { - "line": 31, - "column": 20 + "line": 37, + "column": 22 }, - "identifierName": "get" + "identifierName": "valid" }, - "name": "get" + "name": "valid" }, "generator": false, "expression": false, @@ -1148,16 +1172,16 @@ "params": [ { "type": "Identifier", - "start": 817, - "end": 821, + "start": 987, + "end": 991, "loc": { "start": { - "line": 31, - "column": 37 + "line": 37, + "column": 45 }, "end": { - "line": 31, - "column": 41 + "line": 37, + "column": 49 }, "identifierName": "data" }, @@ -1165,416 +1189,3425 @@ }, { "type": "Identifier", - "start": 823, - "end": 827, + "start": 993, + "end": 1000, "loc": { "start": { - "line": 31, - "column": 43 + "line": 37, + "column": 51 }, "end": { - "line": 31, - "column": 47 + "line": 37, + "column": 58 }, - "identifierName": "path" + "identifierName": "options" }, - "name": "path" + "name": "options" } ], "body": { "type": "BlockStatement", - "start": 829, - "end": 831, + "start": 1002, + "end": 1049, "loc": { "start": { - "line": 31, - "column": 49 + "line": 37, + "column": 60 }, "end": { - "line": 31, - "column": 51 + "line": 39, + "column": 1 } }, - "body": [], - "directives": [] + "body": [ + { + "type": "ReturnStatement", + "start": 1006, + "end": 1047, + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 38, + "column": 43 + } + }, + "argument": { + "type": "CallExpression", + "start": 1013, + "end": 1047, + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1013, + "end": 1032, + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 1013, + "end": 1026, + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1013, + "end": 1017, + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 1018, + "end": 1026, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 22 + }, + "identifierName": "strategy" + }, + "name": "strategy" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1027, + "end": 1032, + "loc": { + "start": { + "line": 38, + "column": 23 + }, + "end": { + "line": 38, + "column": 28 + }, + "identifierName": "valid" + }, + "name": "valid" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1033, + "end": 1037, + "loc": { + "start": { + "line": 38, + "column": 29 + }, + "end": { + "line": 38, + "column": 33 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "Identifier", + "start": 1039, + "end": 1046, + "loc": { + "start": { + "line": 38, + "column": 35 + }, + "end": { + "line": 38, + "column": 42 + }, + "identifierName": "options" + }, + "name": "options" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.valid - Exposes the valid() method from strategy. Checks if given data is valid\n *\n * @param {string} data\n * @param {object} options\n ", + "start": 780, + "end": 941, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 36, + "column": 3 + } } } - } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.pipeStringify - Exposes the pipeStringify() method from strategy. Streams data through stringify\n ", + "start": 1051, + "end": 1175, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 43, + "column": 3 + } + } + } + ] }, { "type": "ExpressionStatement", - "start": 833, - "end": 884, + "start": 1176, + "end": 1277, "loc": { "start": { - "line": 33, + "line": 44, "column": 0 }, "end": { - "line": 33, - "column": 51 + "line": 46, + "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 833, - "end": 884, + "start": 1176, + "end": 1277, "loc": { "start": { - "line": 33, + "line": 44, "column": 0 }, "end": { - "line": 33, - "column": 51 + "line": 46, + "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 833, - "end": 853, + "start": 1176, + "end": 1206, "loc": { "start": { - "line": 33, + "line": 44, "column": 0 }, "end": { - "line": 33, - "column": 20 + "line": 44, + "column": 30 } }, "object": { "type": "MemberExpression", - "start": 833, - "end": 849, + "start": 1176, + "end": 1192, "loc": { "start": { - "line": 33, + "line": 44, "column": 0 }, "end": { - "line": 33, + "line": 44, "column": 16 } }, "object": { "type": "Identifier", - "start": 833, - "end": 839, + "start": 1176, + "end": 1182, "loc": { "start": { - "line": 33, + "line": 44, "column": 0 }, "end": { - "line": 33, + "line": 44, "column": 6 }, "identifierName": "Parser" }, - "name": "Parser" + "name": "Parser", + "leadingComments": null }, "property": { "type": "Identifier", - "start": 840, - "end": 849, + "start": 1183, + "end": 1192, "loc": { "start": { - "line": 33, + "line": 44, "column": 7 }, "end": { - "line": 33, + "line": 44, "column": 16 }, "identifierName": "prototype" }, "name": "prototype" }, - "computed": false + "computed": false, + "leadingComments": null }, "property": { "type": "Identifier", - "start": 850, - "end": 853, + "start": 1193, + "end": 1206, "loc": { "start": { - "line": 33, + "line": 44, "column": 17 }, "end": { - "line": 33, - "column": 20 + "line": 44, + "column": 30 }, - "identifierName": "has" + "identifierName": "pipeStringify" }, - "name": "has" + "name": "pipeStringify" }, - "computed": false + "computed": false, + "leadingComments": null }, "right": { "type": "FunctionExpression", - "start": 856, - "end": 884, + "start": 1209, + "end": 1277, "loc": { "start": { - "line": 33, - "column": 23 + "line": 44, + "column": 33 }, "end": { - "line": 33, - "column": 51 + "line": 46, + "column": 1 } }, "id": { "type": "Identifier", - "start": 850, - "end": 853, + "start": 1193, + "end": 1206, "loc": { "start": { - "line": 33, + "line": 44, "column": 17 }, "end": { - "line": 33, - "column": 20 + "line": 44, + "column": 30 }, - "identifierName": "has" + "identifierName": "pipeStringify" }, - "name": "has" + "name": "pipeStringify" }, "generator": false, "expression": false, "async": false, - "params": [ - { - "type": "Identifier", - "start": 870, - "end": 874, - "loc": { - "start": { - "line": 33, - "column": 37 - }, - "end": { - "line": 33, - "column": 41 - }, - "identifierName": "data" + "params": [], + "body": { + "type": "BlockStatement", + "start": 1235, + "end": 1277, + "loc": { + "start": { + "line": 44, + "column": 59 }, - "name": "data" + "end": { + "line": 46, + "column": 1 + } }, - { - "type": "Identifier", - "start": 876, - "end": 880, - "loc": { - "start": { - "line": 33, - "column": 43 - }, - "end": { - "line": 33, - "column": 47 + "body": [ + { + "type": "ReturnStatement", + "start": 1239, + "end": 1275, + "loc": { + "start": { + "line": 45, + "column": 2 + }, + "end": { + "line": 45, + "column": 38 + } }, - "identifierName": "path" - }, - "name": "path" - } - ], - "body": { - "type": "BlockStatement", - "start": 882, - "end": 884, - "loc": { - "start": { - "line": 33, - "column": 49 - }, - "end": { - "line": 33, - "column": 51 + "argument": { + "type": "CallExpression", + "start": 1246, + "end": 1275, + "loc": { + "start": { + "line": 45, + "column": 9 + }, + "end": { + "line": 45, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1246, + "end": 1273, + "loc": { + "start": { + "line": 45, + "column": 9 + }, + "end": { + "line": 45, + "column": 36 + } + }, + "object": { + "type": "MemberExpression", + "start": 1246, + "end": 1259, + "loc": { + "start": { + "line": 45, + "column": 9 + }, + "end": { + "line": 45, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1246, + "end": 1250, + "loc": { + "start": { + "line": 45, + "column": 9 + }, + "end": { + "line": 45, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 1251, + "end": 1259, + "loc": { + "start": { + "line": 45, + "column": 14 + }, + "end": { + "line": 45, + "column": 22 + }, + "identifierName": "strategy" + }, + "name": "strategy" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1260, + "end": 1273, + "loc": { + "start": { + "line": 45, + "column": 23 + }, + "end": { + "line": 45, + "column": 36 + }, + "identifierName": "pipeStringify" + }, + "name": "pipeStringify" + }, + "computed": false + }, + "arguments": [] + } } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.pipeStringify - Exposes the pipeStringify() method from strategy. Streams data through stringify\n ", + "start": 1051, + "end": 1175, + "loc": { + "start": { + "line": 41, + "column": 0 }, - "body": [], - "directives": [] + "end": { + "line": 43, + "column": 3 + } } } - } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.pipeParse - Exposes the pipeParse() method from strategy. Streams data through parse\n ", + "start": 1279, + "end": 1391, + "loc": { + "start": { + "line": 48, + "column": 0 + }, + "end": { + "line": 50, + "column": 3 + } + } + } + ] }, { "type": "ExpressionStatement", - "start": 886, - "end": 909, + "start": 1392, + "end": 1481, "loc": { "start": { - "line": 35, + "line": 51, "column": 0 }, "end": { - "line": 35, - "column": 23 + "line": 53, + "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 886, - "end": 909, + "start": 1392, + "end": 1481, "loc": { "start": { - "line": 35, + "line": 51, "column": 0 }, "end": { - "line": 35, - "column": 23 + "line": 53, + "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 886, - "end": 900, + "start": 1392, + "end": 1418, "loc": { "start": { - "line": 35, + "line": 51, "column": 0 }, "end": { - "line": 35, - "column": 14 + "line": 51, + "column": 26 } }, "object": { - "type": "Identifier", - "start": 886, - "end": 892, + "type": "MemberExpression", + "start": 1392, + "end": 1408, "loc": { "start": { - "line": 35, + "line": 51, "column": 0 }, "end": { - "line": 35, - "column": 6 + "line": 51, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 1392, + "end": 1398, + "loc": { + "start": { + "line": 51, + "column": 0 + }, + "end": { + "line": 51, + "column": 6 + }, + "identifierName": "Parser" }, - "identifierName": "module" + "name": "Parser", + "leadingComments": null }, - "name": "module" + "property": { + "type": "Identifier", + "start": 1399, + "end": 1408, + "loc": { + "start": { + "line": 51, + "column": 7 + }, + "end": { + "line": 51, + "column": 16 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null }, "property": { "type": "Identifier", - "start": 893, - "end": 900, + "start": 1409, + "end": 1418, "loc": { "start": { - "line": 35, - "column": 7 + "line": 51, + "column": 17 }, "end": { - "line": 35, - "column": 14 + "line": 51, + "column": 26 }, - "identifierName": "exports" + "identifierName": "pipeParse" }, - "name": "exports" + "name": "pipeParse" }, - "computed": false + "computed": false, + "leadingComments": null }, "right": { - "type": "Identifier", - "start": 903, - "end": 909, + "type": "FunctionExpression", + "start": 1421, + "end": 1481, "loc": { "start": { - "line": 35, - "column": 17 + "line": 51, + "column": 29 }, "end": { - "line": 35, - "column": 23 + "line": 53, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1409, + "end": 1418, + "loc": { + "start": { + "line": 51, + "column": 17 + }, + "end": { + "line": 51, + "column": 26 + }, + "identifierName": "pipeParse" }, - "identifierName": "Parser" + "name": "pipeParse" }, - "name": "Parser" - } + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1443, + "end": 1481, + "loc": { + "start": { + "line": 51, + "column": 51 + }, + "end": { + "line": 53, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1447, + "end": 1479, + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 52, + "column": 34 + } + }, + "argument": { + "type": "CallExpression", + "start": 1454, + "end": 1479, + "loc": { + "start": { + "line": 52, + "column": 9 + }, + "end": { + "line": 52, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1454, + "end": 1477, + "loc": { + "start": { + "line": 52, + "column": 9 + }, + "end": { + "line": 52, + "column": 32 + } + }, + "object": { + "type": "MemberExpression", + "start": 1454, + "end": 1467, + "loc": { + "start": { + "line": 52, + "column": 9 + }, + "end": { + "line": 52, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 1454, + "end": 1458, + "loc": { + "start": { + "line": 52, + "column": 9 + }, + "end": { + "line": 52, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 1459, + "end": 1467, + "loc": { + "start": { + "line": 52, + "column": 14 + }, + "end": { + "line": 52, + "column": 22 + }, + "identifierName": "strategy" + }, + "name": "strategy" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1468, + "end": 1477, + "loc": { + "start": { + "line": 52, + "column": 23 + }, + "end": { + "line": 52, + "column": 32 + }, + "identifierName": "pipeParse" + }, + "name": "pipeParse" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [] + } + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.pipeParse - Exposes the pipeParse() method from strategy. Streams data through parse\n ", + "start": 1279, + "end": 1391, + "loc": { + "start": { + "line": 48, + "column": 0 + }, + "end": { + "line": 50, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1483, + "end": 1534, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 51 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1483, + "end": 1534, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1483, + "end": 1503, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 20 + } + }, + "object": { + "type": "MemberExpression", + "start": 1483, + "end": 1499, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 1483, + "end": 1489, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 6 + }, + "identifierName": "Parser" + }, + "name": "Parser" + }, + "property": { + "type": "Identifier", + "start": 1490, + "end": 1499, + "loc": { + "start": { + "line": 55, + "column": 7 + }, + "end": { + "line": 55, + "column": 16 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1500, + "end": 1503, + "loc": { + "start": { + "line": 55, + "column": 17 + }, + "end": { + "line": 55, + "column": 20 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "right": { + "type": "FunctionExpression", + "start": 1506, + "end": 1534, + "loc": { + "start": { + "line": 55, + "column": 23 + }, + "end": { + "line": 55, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 1500, + "end": 1503, + "loc": { + "start": { + "line": 55, + "column": 17 + }, + "end": { + "line": 55, + "column": 20 + }, + "identifierName": "get" + }, + "name": "get" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1520, + "end": 1524, + "loc": { + "start": { + "line": 55, + "column": 37 + }, + "end": { + "line": 55, + "column": 41 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "Identifier", + "start": 1526, + "end": 1530, + "loc": { + "start": { + "line": 55, + "column": 43 + }, + "end": { + "line": 55, + "column": 47 + }, + "identifierName": "path" + }, + "name": "path" + } + ], + "body": { + "type": "BlockStatement", + "start": 1532, + "end": 1534, + "loc": { + "start": { + "line": 55, + "column": 49 + }, + "end": { + "line": 55, + "column": 51 + } + }, + "body": [], + "directives": [] + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 1536, + "end": 1587, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 57, + "column": 51 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1536, + "end": 1587, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 57, + "column": 51 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1536, + "end": 1556, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 57, + "column": 20 + } + }, + "object": { + "type": "MemberExpression", + "start": 1536, + "end": 1552, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 57, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 1536, + "end": 1542, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 57, + "column": 6 + }, + "identifierName": "Parser" + }, + "name": "Parser" + }, + "property": { + "type": "Identifier", + "start": 1543, + "end": 1552, + "loc": { + "start": { + "line": 57, + "column": 7 + }, + "end": { + "line": 57, + "column": 16 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 1553, + "end": 1556, + "loc": { + "start": { + "line": 57, + "column": 17 + }, + "end": { + "line": 57, + "column": 20 + }, + "identifierName": "has" + }, + "name": "has" + }, + "computed": false + }, + "right": { + "type": "FunctionExpression", + "start": 1559, + "end": 1587, + "loc": { + "start": { + "line": 57, + "column": 23 + }, + "end": { + "line": 57, + "column": 51 + } + }, + "id": { + "type": "Identifier", + "start": 1553, + "end": 1556, + "loc": { + "start": { + "line": 57, + "column": 17 + }, + "end": { + "line": 57, + "column": 20 + }, + "identifierName": "has" + }, + "name": "has" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1573, + "end": 1577, + "loc": { + "start": { + "line": 57, + "column": 37 + }, + "end": { + "line": 57, + "column": 41 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "Identifier", + "start": 1579, + "end": 1583, + "loc": { + "start": { + "line": 57, + "column": 43 + }, + "end": { + "line": 57, + "column": 47 + }, + "identifierName": "path" + }, + "name": "path" + } + ], + "body": { + "type": "BlockStatement", + "start": 1585, + "end": 1587, + "loc": { + "start": { + "line": 57, + "column": 49 + }, + "end": { + "line": 57, + "column": 51 + } + }, + "body": [], + "directives": [] + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 1589, + "end": 1612, + "loc": { + "start": { + "line": 59, + "column": 0 + }, + "end": { + "line": 59, + "column": 23 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1589, + "end": 1612, + "loc": { + "start": { + "line": 59, + "column": 0 + }, + "end": { + "line": 59, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1589, + "end": 1603, + "loc": { + "start": { + "line": 59, + "column": 0 + }, + "end": { + "line": 59, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 1589, + "end": 1595, + "loc": { + "start": { + "line": 59, + "column": 0 + }, + "end": { + "line": 59, + "column": 6 + }, + "identifierName": "module" + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 1596, + "end": 1603, + "loc": { + "start": { + "line": 59, + "column": 7 + }, + "end": { + "line": 59, + "column": 14 + }, + "identifierName": "exports" + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1606, + "end": 1612, + "loc": { + "start": { + "line": 59, + "column": 17 + }, + "end": { + "line": 59, + "column": 23 + }, + "identifierName": "Parser" + }, + "name": "Parser" + } + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Parser - Receives any strategy and safely implement it\n *\n * @constructor\n * @param {Base} strategy - Any strategy implementing the Base's prototype\n ", + "start": 0, + "end": 159, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.parse - Exposes the parsing from string to any valid JS type with the strategy\n *\n * @param {string} data\n * @param {object} options\n ", + "start": 219, + "end": 379, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.stringify - Exposes the stringify() method from any valid JS type to expected type with the strategy\n *\n * @param {*} data\n * @param {object} options\n ", + "start": 485, + "end": 662, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.valid - Exposes the valid() method from strategy. Checks if given data is valid\n *\n * @param {string} data\n * @param {object} options\n ", + "start": 780, + "end": 941, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.pipeStringify - Exposes the pipeStringify() method from strategy. Streams data through stringify\n ", + "start": 1051, + "end": 1175, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 43, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.pipeParse - Exposes the pipeParse() method from strategy. Streams data through parse\n ", + "start": 1279, + "end": 1391, + "loc": { + "start": { + "line": 48, + "column": 0 + }, + "end": { + "line": 50, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": "CommentBlock", + "value": "*\n * Parser - Receives any strategy and safely implement it\n *\n * @constructor\n * @param {Base} strategy - Any strategy implementing the Base's prototype\n ", + "start": 0, + "end": 159, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 6, + "column": 3 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 160, + "end": 168, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parser", + "start": 169, + "end": 175, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 176, + "end": 177, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "strategy", + "start": 177, + "end": 185, + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 185, + "end": 186, + "loc": { + "start": { + "line": 7, + "column": 25 + }, + "end": { + "line": 7, + "column": 26 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 187, + "end": 188, + "loc": { + "start": { + "line": 7, + "column": 27 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 191, + "end": 195, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 195, + "end": 196, + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "strategy", + "start": 196, + "end": 204, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 205, + "end": 206, + "loc": { + "start": { + "line": 8, + "column": 16 + }, + "end": { + "line": 8, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "strategy", + "start": 207, + "end": 215, + "loc": { + "start": { + "line": 8, + "column": 18 + }, + "end": { + "line": 8, + "column": 26 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 216, + "end": 217, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 9, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.parse - Exposes the parsing from string to any valid JS type with the strategy\n *\n * @param {string} data\n * @param {object} options\n ", + "start": 219, + "end": 379, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 16, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parser", + "start": 380, + "end": 386, + "loc": { + "start": { + "line": 17, + "column": 0 + }, + "end": { + "line": 17, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 386, + "end": 387, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 387, + "end": 396, + "loc": { + "start": { + "line": 17, + "column": 7 + }, + "end": { + "line": 17, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 396, + "end": 397, + "loc": { + "start": { + "line": 17, + "column": 16 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 397, + "end": 402, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 403, + "end": 404, + "loc": { + "start": { + "line": 17, + "column": 23 + }, + "end": { + "line": 17, + "column": 24 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 405, + "end": 413, + "loc": { + "start": { + "line": 17, + "column": 25 + }, + "end": { + "line": 17, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 414, + "end": 419, + "loc": { + "start": { + "line": 17, + "column": 34 + }, + "end": { + "line": 17, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 420, + "end": 421, + "loc": { + "start": { + "line": 17, + "column": 40 + }, + "end": { + "line": 17, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 421, + "end": 425, + "loc": { + "start": { + "line": 17, + "column": 41 + }, + "end": { + "line": 17, + "column": 45 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 425, + "end": 426, + "loc": { + "start": { + "line": 17, + "column": 45 + }, + "end": { + "line": 17, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 427, + "end": 434, + "loc": { + "start": { + "line": 17, + "column": 47 + }, + "end": { + "line": 17, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 434, + "end": 435, + "loc": { + "start": { + "line": 17, + "column": 54 + }, + "end": { + "line": 17, + "column": 55 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 436, + "end": 437, + "loc": { + "start": { + "line": 17, + "column": 56 + }, + "end": { + "line": 17, + "column": 57 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 440, + "end": 446, + "loc": { + "start": { + "line": 18, + "column": 2 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 447, + "end": 451, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 451, + "end": 452, + "loc": { + "start": { + "line": 18, + "column": 13 + }, + "end": { + "line": 18, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "strategy", + "start": 452, + "end": 460, + "loc": { + "start": { + "line": 18, + "column": 14 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 460, + "end": 461, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 461, + "end": 466, + "loc": { + "start": { + "line": 18, + "column": 23 + }, + "end": { + "line": 18, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 466, + "end": 467, + "loc": { + "start": { + "line": 18, + "column": 28 + }, + "end": { + "line": 18, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 467, + "end": 471, + "loc": { + "start": { + "line": 18, + "column": 29 + }, + "end": { + "line": 18, + "column": 33 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 471, + "end": 472, + "loc": { + "start": { + "line": 18, + "column": 33 + }, + "end": { + "line": 18, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 473, + "end": 480, + "loc": { + "start": { + "line": 18, + "column": 35 + }, + "end": { + "line": 18, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 480, + "end": 481, + "loc": { + "start": { + "line": 18, + "column": 42 + }, + "end": { + "line": 18, + "column": 43 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 482, + "end": 483, + "loc": { + "start": { + "line": 19, + "column": 0 + }, + "end": { + "line": 19, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.stringify - Exposes the stringify() method from any valid JS type to expected type with the strategy\n *\n * @param {*} data\n * @param {object} options\n ", + "start": 485, + "end": 662, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parser", + "start": 663, + "end": 669, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 27, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 669, + "end": 670, + "loc": { + "start": { + "line": 27, + "column": 6 + }, + "end": { + "line": 27, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 670, + "end": 679, + "loc": { + "start": { + "line": 27, + "column": 7 + }, + "end": { + "line": 27, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 679, + "end": 680, + "loc": { + "start": { + "line": 27, + "column": 16 + }, + "end": { + "line": 27, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 680, + "end": 689, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 26 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 690, + "end": 691, + "loc": { + "start": { + "line": 27, + "column": 27 + }, + "end": { + "line": 27, + "column": 28 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 692, + "end": 700, + "loc": { + "start": { + "line": 27, + "column": 29 + }, + "end": { + "line": 27, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 701, + "end": 710, + "loc": { + "start": { + "line": 27, + "column": 38 + }, + "end": { + "line": 27, + "column": 47 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 711, + "end": 712, + "loc": { + "start": { + "line": 27, + "column": 48 + }, + "end": { + "line": 27, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 712, + "end": 716, + "loc": { + "start": { + "line": 27, + "column": 49 + }, + "end": { + "line": 27, + "column": 53 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 716, + "end": 717, + "loc": { + "start": { + "line": 27, + "column": 53 + }, + "end": { + "line": 27, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 718, + "end": 725, + "loc": { + "start": { + "line": 27, + "column": 55 + }, + "end": { + "line": 27, + "column": 62 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 725, + "end": 726, + "loc": { + "start": { + "line": 27, + "column": 62 + }, + "end": { + "line": 27, + "column": 63 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 727, + "end": 728, + "loc": { + "start": { + "line": 27, + "column": 64 + }, + "end": { + "line": 27, + "column": 65 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 731, + "end": 737, + "loc": { + "start": { + "line": 28, + "column": 2 + }, + "end": { + "line": 28, + "column": 8 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 738, + "end": 742, + "loc": { + "start": { + "line": 28, + "column": 9 + }, + "end": { + "line": 28, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 742, + "end": 743, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "strategy", + "start": 743, + "end": 751, + "loc": { + "start": { + "line": 28, + "column": 14 + }, + "end": { + "line": 28, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 751, + "end": 752, + "loc": { + "start": { + "line": 28, + "column": 22 + }, + "end": { + "line": 28, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 752, + "end": 761, + "loc": { + "start": { + "line": 28, + "column": 23 + }, + "end": { + "line": 28, + "column": 32 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 761, + "end": 762, + "loc": { + "start": { + "line": 28, + "column": 32 + }, + "end": { + "line": 28, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 762, + "end": 766, + "loc": { + "start": { + "line": 28, + "column": 33 + }, + "end": { + "line": 28, + "column": 37 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 766, + "end": 767, + "loc": { + "start": { + "line": 28, + "column": 37 + }, + "end": { + "line": 28, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 768, + "end": 775, + "loc": { + "start": { + "line": 28, + "column": 39 + }, + "end": { + "line": 28, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 775, + "end": 776, + "loc": { + "start": { + "line": 28, + "column": 46 + }, + "end": { + "line": 28, + "column": 47 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 777, + "end": 778, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 29, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Parser.prototype.valid - Exposes the valid() method from strategy. Checks if given data is valid\n *\n * @param {string} data\n * @param {object} options\n ", + "start": 780, + "end": 941, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Parser", + "start": 942, + "end": 948, + "loc": { + "start": { + "line": 37, + "column": 0 + }, + "end": { + "line": 37, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 948, + "end": 949, + "loc": { + "start": { + "line": 37, + "column": 6 + }, + "end": { + "line": 37, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 949, + "end": 958, + "loc": { + "start": { + "line": 37, + "column": 7 + }, + "end": { + "line": 37, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 958, + "end": 959, + "loc": { + "start": { + "line": 37, + "column": 16 + }, + "end": { + "line": 37, + "column": 17 } } - ], - "directives": [] - }, - "comments": [ + }, { - "type": "CommentBlock", - "value": "*\n * Parser - Receives any strategy and safely implement it\n *\n * @constructor\n * @param {Base} strategy - Any strategy implementing the Base's prototype\n ", - "start": 0, - "end": 159, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "valid", + "start": 959, + "end": 964, "loc": { "start": { - "line": 1, - "column": 0 + "line": 37, + "column": 17 }, "end": { - "line": 6, - "column": 3 + "line": 37, + "column": 22 } } }, { - "type": "CommentBlock", - "value": "*\n * Parser.prototype.parse - Exposes the parsing from string to any valid JS type with the strategy\n *\n * @param {string} data\n * @param {object} options\n ", - "start": 219, - "end": 379, + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 965, + "end": 966, "loc": { "start": { - "line": 11, - "column": 0 + "line": 37, + "column": 23 }, "end": { - "line": 16, - "column": 3 + "line": 37, + "column": 24 } } }, { - "type": "CommentBlock", - "value": "*\n * Parser.prototype.stringify - Exposes the stringify() method from any valid JS type to expected type with the strategy\n *\n * @param {*} data\n * @param {object} options\n ", - "start": 485, - "end": 662, + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 967, + "end": 975, "loc": { "start": { - "line": 21, - "column": 0 + "line": 37, + "column": 25 }, "end": { - "line": 26, - "column": 3 + "line": 37, + "column": 33 } } - } - ], - "tokens": [ + }, { - "type": "CommentBlock", - "value": "*\n * Parser - Receives any strategy and safely implement it\n *\n * @constructor\n * @param {Base} strategy - Any strategy implementing the Base's prototype\n ", - "start": 0, - "end": 159, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 976, + "end": 985, "loc": { "start": { - "line": 1, - "column": 0 + "line": 37, + "column": 34 }, "end": { - "line": 6, - "column": 3 + "line": 37, + "column": 43 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 986, + "end": 987, + "loc": { + "start": { + "line": 37, + "column": 44 + }, + "end": { + "line": 37, + "column": 45 + } + } + }, + { + "type": { + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -1584,17 +4617,43 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 160, - "end": 168, + "value": "data", + "start": 987, + "end": 991, "loc": { "start": { - "line": 7, - "column": 0 + "line": 37, + "column": 45 }, "end": { - "line": 7, - "column": 8 + "line": 37, + "column": 49 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 991, + "end": 992, + "loc": { + "start": { + "line": 37, + "column": 49 + }, + "end": { + "line": 37, + "column": 50 } } }, @@ -1610,42 +4669,149 @@ "postfix": false, "binop": null }, - "value": "Parser", - "start": 169, - "end": 175, + "value": "options", + "start": 993, + "end": 1000, "loc": { "start": { - "line": 7, - "column": 9 + "line": 37, + "column": 51 }, "end": { - "line": 7, - "column": 15 + "line": 37, + "column": 58 } } }, { "type": { - "label": "(", + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1000, + "end": 1001, + "loc": { + "start": { + "line": 37, + "column": 58 + }, + "end": { + "line": 37, + "column": 59 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1002, + "end": 1003, + "loc": { + "start": { + "line": 37, + "column": 60 + }, + "end": { + "line": 37, + "column": 61 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1006, + "end": 1012, + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 38, + "column": 8 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1013, + "end": 1017, + "loc": { + "start": { + "line": 38, + "column": 9 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null }, - "start": 176, - "end": 177, + "start": 1017, + "end": 1018, "loc": { "start": { - "line": 7, - "column": 16 + "line": 38, + "column": 13 }, "end": { - "line": 7, - "column": 17 + "line": 38, + "column": 14 } } }, @@ -1662,22 +4828,22 @@ "binop": null }, "value": "strategy", - "start": 177, - "end": 185, + "start": 1018, + "end": 1026, "loc": { "start": { - "line": 7, - "column": 17 + "line": 38, + "column": 14 }, "end": { - "line": 7, - "column": 25 + "line": 38, + "column": 22 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -1685,25 +4851,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 185, - "end": 186, + "start": 1026, + "end": 1027, "loc": { "start": { - "line": 7, - "column": 25 + "line": 38, + "column": 22 }, "end": { - "line": 7, - "column": 26 + "line": 38, + "column": 23 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -1712,131 +4879,128 @@ "postfix": false, "binop": null }, - "start": 187, - "end": 188, + "value": "valid", + "start": 1027, + "end": 1032, "loc": { "start": { - "line": 7, - "column": 27 + "line": 38, + "column": 23 }, "end": { - "line": 7, + "line": 38, "column": 28 } } }, { "type": { - "label": "this", - "keyword": "this", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "this", - "start": 191, - "end": 195, + "start": 1032, + "end": 1033, "loc": { "start": { - "line": 8, - "column": 2 + "line": 38, + "column": 28 }, "end": { - "line": 8, - "column": 6 + "line": 38, + "column": 29 } } }, { "type": { - "label": ".", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 195, - "end": 196, + "value": "data", + "start": 1033, + "end": 1037, "loc": { "start": { - "line": 8, - "column": 6 + "line": 38, + "column": 29 }, "end": { - "line": 8, - "column": 7 + "line": 38, + "column": 33 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": ",", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "strategy", - "start": 196, - "end": 204, + "start": 1037, + "end": 1038, "loc": { "start": { - "line": 8, - "column": 7 + "line": 38, + "column": 33 }, "end": { - "line": 8, - "column": 15 + "line": 38, + "column": 34 } } }, { "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 205, - "end": 206, + "value": "options", + "start": 1039, + "end": 1046, "loc": { "start": { - "line": 8, - "column": 16 + "line": 38, + "column": 35 }, "end": { - "line": 8, - "column": 17 + "line": 38, + "column": 42 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -1844,17 +5008,16 @@ "postfix": false, "binop": null }, - "value": "strategy", - "start": 207, - "end": 215, + "start": 1046, + "end": 1047, "loc": { "start": { - "line": 8, - "column": 18 + "line": 38, + "column": 42 }, "end": { - "line": 8, - "column": 26 + "line": 38, + "column": 43 } } }, @@ -1870,31 +5033,31 @@ "postfix": false, "binop": null }, - "start": 216, - "end": 217, + "start": 1048, + "end": 1049, "loc": { "start": { - "line": 9, + "line": 39, "column": 0 }, "end": { - "line": 9, + "line": 39, "column": 1 } } }, { "type": "CommentBlock", - "value": "*\n * Parser.prototype.parse - Exposes the parsing from string to any valid JS type with the strategy\n *\n * @param {string} data\n * @param {object} options\n ", - "start": 219, - "end": 379, + "value": "*\n * Parser.prototype.pipeStringify - Exposes the pipeStringify() method from strategy. Streams data through stringify\n ", + "start": 1051, + "end": 1175, "loc": { "start": { - "line": 11, + "line": 41, "column": 0 }, "end": { - "line": 16, + "line": 43, "column": 3 } } @@ -1912,15 +5075,15 @@ "binop": null }, "value": "Parser", - "start": 380, - "end": 386, + "start": 1176, + "end": 1182, "loc": { "start": { - "line": 17, + "line": 44, "column": 0 }, "end": { - "line": 17, + "line": 44, "column": 6 } } @@ -1938,15 +5101,15 @@ "binop": null, "updateContext": null }, - "start": 386, - "end": 387, + "start": 1182, + "end": 1183, "loc": { "start": { - "line": 17, + "line": 44, "column": 6 }, "end": { - "line": 17, + "line": 44, "column": 7 } } @@ -1964,15 +5127,15 @@ "binop": null }, "value": "prototype", - "start": 387, - "end": 396, + "start": 1183, + "end": 1192, "loc": { "start": { - "line": 17, + "line": 44, "column": 7 }, "end": { - "line": 17, + "line": 44, "column": 16 } } @@ -1990,15 +5153,15 @@ "binop": null, "updateContext": null }, - "start": 396, - "end": 397, + "start": 1192, + "end": 1193, "loc": { "start": { - "line": 17, + "line": 44, "column": 16 }, "end": { - "line": 17, + "line": 44, "column": 17 } } @@ -2015,17 +5178,17 @@ "postfix": false, "binop": null }, - "value": "parse", - "start": 397, - "end": 402, + "value": "pipeStringify", + "start": 1193, + "end": 1206, "loc": { "start": { - "line": 17, + "line": 44, "column": 17 }, "end": { - "line": 17, - "column": 22 + "line": 44, + "column": 30 } } }, @@ -2043,16 +5206,16 @@ "updateContext": null }, "value": "=", - "start": 403, - "end": 404, + "start": 1207, + "end": 1208, "loc": { "start": { - "line": 17, - "column": 23 + "line": 44, + "column": 31 }, "end": { - "line": 17, - "column": 24 + "line": 44, + "column": 32 } } }, @@ -2070,66 +5233,15 @@ "binop": null }, "value": "function", - "start": 405, - "end": 413, + "start": 1209, + "end": 1217, "loc": { "start": { - "line": 17, - "column": 25 - }, - "end": { - "line": 17, + "line": 44, "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "parse", - "start": 414, - "end": 419, - "loc": { - "start": { - "line": 17, - "column": 34 - }, - "end": { - "line": 17, - "column": 39 - } - } - }, - { - "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "start": 420, - "end": 421, - "loc": { - "start": { - "line": 17, - "column": 40 }, "end": { - "line": 17, + "line": 44, "column": 41 } } @@ -2145,51 +5257,25 @@ "prefix": false, "postfix": false, "binop": null - }, - "value": "data", - "start": 421, - "end": 425, - "loc": { - "start": { - "line": 17, - "column": 41 - }, - "end": { - "line": 17, - "column": 45 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 425, - "end": 426, + }, + "value": "pipeStringify", + "start": 1218, + "end": 1231, "loc": { "start": { - "line": 17, - "column": 45 + "line": 44, + "column": 42 }, "end": { - "line": 17, - "column": 46 + "line": 44, + "column": 55 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -2198,17 +5284,16 @@ "postfix": false, "binop": null }, - "value": "options", - "start": 427, - "end": 434, + "start": 1232, + "end": 1233, "loc": { "start": { - "line": 17, - "column": 47 + "line": 44, + "column": 56 }, "end": { - "line": 17, - "column": 54 + "line": 44, + "column": 57 } } }, @@ -2224,16 +5309,16 @@ "postfix": false, "binop": null }, - "start": 434, - "end": 435, + "start": 1233, + "end": 1234, "loc": { "start": { - "line": 17, - "column": 54 + "line": 44, + "column": 57 }, "end": { - "line": 17, - "column": 55 + "line": 44, + "column": 58 } } }, @@ -2249,16 +5334,16 @@ "postfix": false, "binop": null }, - "start": 436, - "end": 437, + "start": 1235, + "end": 1236, "loc": { "start": { - "line": 17, - "column": 56 + "line": 44, + "column": 59 }, "end": { - "line": 17, - "column": 57 + "line": 44, + "column": 60 } } }, @@ -2277,15 +5362,15 @@ "updateContext": null }, "value": "return", - "start": 440, - "end": 446, + "start": 1239, + "end": 1245, "loc": { "start": { - "line": 18, + "line": 45, "column": 2 }, "end": { - "line": 18, + "line": 45, "column": 8 } } @@ -2305,15 +5390,15 @@ "updateContext": null }, "value": "this", - "start": 447, - "end": 451, + "start": 1246, + "end": 1250, "loc": { "start": { - "line": 18, + "line": 45, "column": 9 }, "end": { - "line": 18, + "line": 45, "column": 13 } } @@ -2331,15 +5416,15 @@ "binop": null, "updateContext": null }, - "start": 451, - "end": 452, + "start": 1250, + "end": 1251, "loc": { "start": { - "line": 18, + "line": 45, "column": 13 }, "end": { - "line": 18, + "line": 45, "column": 14 } } @@ -2357,15 +5442,15 @@ "binop": null }, "value": "strategy", - "start": 452, - "end": 460, + "start": 1251, + "end": 1259, "loc": { "start": { - "line": 18, + "line": 45, "column": 14 }, "end": { - "line": 18, + "line": 45, "column": 22 } } @@ -2383,15 +5468,15 @@ "binop": null, "updateContext": null }, - "start": 460, - "end": 461, + "start": 1259, + "end": 1260, "loc": { "start": { - "line": 18, + "line": 45, "column": 22 }, "end": { - "line": 18, + "line": 45, "column": 23 } } @@ -2408,17 +5493,17 @@ "postfix": false, "binop": null }, - "value": "parse", - "start": 461, - "end": 466, + "value": "pipeStringify", + "start": 1260, + "end": 1273, "loc": { "start": { - "line": 18, + "line": 45, "column": 23 }, "end": { - "line": 18, - "column": 28 + "line": 45, + "column": 36 } } }, @@ -2434,94 +5519,16 @@ "postfix": false, "binop": null }, - "start": 466, - "end": 467, - "loc": { - "start": { - "line": 18, - "column": 28 - }, - "end": { - "line": 18, - "column": 29 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 467, - "end": 471, - "loc": { - "start": { - "line": 18, - "column": 29 - }, - "end": { - "line": 18, - "column": 33 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 471, - "end": 472, - "loc": { - "start": { - "line": 18, - "column": 33 - }, - "end": { - "line": 18, - "column": 34 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 473, - "end": 480, + "start": 1273, + "end": 1274, "loc": { "start": { - "line": 18, - "column": 35 + "line": 45, + "column": 36 }, "end": { - "line": 18, - "column": 42 + "line": 45, + "column": 37 } } }, @@ -2537,16 +5544,16 @@ "postfix": false, "binop": null }, - "start": 480, - "end": 481, + "start": 1274, + "end": 1275, "loc": { "start": { - "line": 18, - "column": 42 + "line": 45, + "column": 37 }, "end": { - "line": 18, - "column": 43 + "line": 45, + "column": 38 } } }, @@ -2562,31 +5569,31 @@ "postfix": false, "binop": null }, - "start": 482, - "end": 483, + "start": 1276, + "end": 1277, "loc": { "start": { - "line": 19, + "line": 46, "column": 0 }, "end": { - "line": 19, + "line": 46, "column": 1 } } }, { "type": "CommentBlock", - "value": "*\n * Parser.prototype.stringify - Exposes the stringify() method from any valid JS type to expected type with the strategy\n *\n * @param {*} data\n * @param {object} options\n ", - "start": 485, - "end": 662, + "value": "*\n * Parser.prototype.pipeParse - Exposes the pipeParse() method from strategy. Streams data through parse\n ", + "start": 1279, + "end": 1391, "loc": { "start": { - "line": 21, + "line": 48, "column": 0 }, "end": { - "line": 26, + "line": 50, "column": 3 } } @@ -2604,15 +5611,15 @@ "binop": null }, "value": "Parser", - "start": 663, - "end": 669, + "start": 1392, + "end": 1398, "loc": { "start": { - "line": 27, + "line": 51, "column": 0 }, "end": { - "line": 27, + "line": 51, "column": 6 } } @@ -2630,15 +5637,15 @@ "binop": null, "updateContext": null }, - "start": 669, - "end": 670, + "start": 1398, + "end": 1399, "loc": { "start": { - "line": 27, + "line": 51, "column": 6 }, "end": { - "line": 27, + "line": 51, "column": 7 } } @@ -2656,122 +5663,42 @@ "binop": null }, "value": "prototype", - "start": 670, - "end": 679, + "start": 1399, + "end": 1408, "loc": { "start": { - "line": 27, + "line": 51, "column": 7 }, - "end": { - "line": 27, - "column": 16 - } - } - }, - { - "type": { - "label": ".", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 679, - "end": 680, - "loc": { - "start": { - "line": 27, - "column": 16 - }, - "end": { - "line": 27, - "column": 17 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "stringify", - "start": 680, - "end": 689, - "loc": { - "start": { - "line": 27, - "column": 17 - }, - "end": { - "line": 27, - "column": 26 - } - } - }, - { - "type": { - "label": "=", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": true, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "=", - "start": 690, - "end": 691, - "loc": { - "start": { - "line": 27, - "column": 27 - }, - "end": { - "line": 27, - "column": 28 + "end": { + "line": 51, + "column": 16 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 692, - "end": 700, + "start": 1408, + "end": 1409, "loc": { "start": { - "line": 27, - "column": 29 + "line": 51, + "column": 16 }, "end": { - "line": 27, - "column": 37 + "line": 51, + "column": 17 } } }, @@ -2787,48 +5714,51 @@ "postfix": false, "binop": null }, - "value": "stringify", - "start": 701, - "end": 710, + "value": "pipeParse", + "start": 1409, + "end": 1418, "loc": { "start": { - "line": 27, - "column": 38 + "line": 51, + "column": 17 }, "end": { - "line": 27, - "column": 47 + "line": 51, + "column": 26 } } }, { "type": { - "label": "(", + "label": "=", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 711, - "end": 712, + "value": "=", + "start": 1419, + "end": 1420, "loc": { "start": { - "line": 27, - "column": 48 + "line": 51, + "column": 27 }, "end": { - "line": 27, - "column": 49 + "line": 51, + "column": 28 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -2838,50 +5768,50 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 712, - "end": 716, + "value": "function", + "start": 1421, + "end": 1429, "loc": { "start": { - "line": 27, - "column": 49 + "line": 51, + "column": 29 }, "end": { - "line": 27, - "column": 53 + "line": 51, + "column": 37 } } }, { "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "start": 716, - "end": 717, + "value": "pipeParse", + "start": 1430, + "end": 1439, "loc": { "start": { - "line": 27, - "column": 53 + "line": 51, + "column": 38 }, "end": { - "line": 27, - "column": 54 + "line": 51, + "column": 47 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "(", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -2890,17 +5820,16 @@ "postfix": false, "binop": null }, - "value": "options", - "start": 718, - "end": 725, + "start": 1440, + "end": 1441, "loc": { "start": { - "line": 27, - "column": 55 + "line": 51, + "column": 48 }, "end": { - "line": 27, - "column": 62 + "line": 51, + "column": 49 } } }, @@ -2916,16 +5845,16 @@ "postfix": false, "binop": null }, - "start": 725, - "end": 726, + "start": 1441, + "end": 1442, "loc": { "start": { - "line": 27, - "column": 62 + "line": 51, + "column": 49 }, "end": { - "line": 27, - "column": 63 + "line": 51, + "column": 50 } } }, @@ -2941,16 +5870,16 @@ "postfix": false, "binop": null }, - "start": 727, - "end": 728, + "start": 1443, + "end": 1444, "loc": { "start": { - "line": 27, - "column": 64 + "line": 51, + "column": 51 }, "end": { - "line": 27, - "column": 65 + "line": 51, + "column": 52 } } }, @@ -2969,15 +5898,15 @@ "updateContext": null }, "value": "return", - "start": 731, - "end": 737, + "start": 1447, + "end": 1453, "loc": { "start": { - "line": 28, + "line": 52, "column": 2 }, "end": { - "line": 28, + "line": 52, "column": 8 } } @@ -2997,15 +5926,15 @@ "updateContext": null }, "value": "this", - "start": 738, - "end": 742, + "start": 1454, + "end": 1458, "loc": { "start": { - "line": 28, + "line": 52, "column": 9 }, "end": { - "line": 28, + "line": 52, "column": 13 } } @@ -3023,15 +5952,15 @@ "binop": null, "updateContext": null }, - "start": 742, - "end": 743, + "start": 1458, + "end": 1459, "loc": { "start": { - "line": 28, + "line": 52, "column": 13 }, "end": { - "line": 28, + "line": 52, "column": 14 } } @@ -3049,15 +5978,15 @@ "binop": null }, "value": "strategy", - "start": 743, - "end": 751, + "start": 1459, + "end": 1467, "loc": { "start": { - "line": 28, + "line": 52, "column": 14 }, "end": { - "line": 28, + "line": 52, "column": 22 } } @@ -3075,15 +6004,15 @@ "binop": null, "updateContext": null }, - "start": 751, - "end": 752, + "start": 1467, + "end": 1468, "loc": { "start": { - "line": 28, + "line": 52, "column": 22 }, "end": { - "line": 28, + "line": 52, "column": 23 } } @@ -3100,16 +6029,16 @@ "postfix": false, "binop": null }, - "value": "stringify", - "start": 752, - "end": 761, + "value": "pipeParse", + "start": 1468, + "end": 1477, "loc": { "start": { - "line": 28, + "line": 52, "column": 23 }, "end": { - "line": 28, + "line": 52, "column": 32 } } @@ -3126,94 +6055,16 @@ "postfix": false, "binop": null }, - "start": 761, - "end": 762, + "start": 1477, + "end": 1478, "loc": { "start": { - "line": 28, + "line": 52, "column": 32 }, "end": { - "line": 28, - "column": 33 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 762, - "end": 766, - "loc": { - "start": { - "line": 28, + "line": 52, "column": 33 - }, - "end": { - "line": 28, - "column": 37 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 766, - "end": 767, - "loc": { - "start": { - "line": 28, - "column": 37 - }, - "end": { - "line": 28, - "column": 38 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 768, - "end": 775, - "loc": { - "start": { - "line": 28, - "column": 39 - }, - "end": { - "line": 28, - "column": 46 } } }, @@ -3229,16 +6080,16 @@ "postfix": false, "binop": null }, - "start": 775, - "end": 776, + "start": 1478, + "end": 1479, "loc": { "start": { - "line": 28, - "column": 46 + "line": 52, + "column": 33 }, "end": { - "line": 28, - "column": 47 + "line": 52, + "column": 34 } } }, @@ -3254,15 +6105,15 @@ "postfix": false, "binop": null }, - "start": 777, - "end": 778, + "start": 1480, + "end": 1481, "loc": { "start": { - "line": 29, + "line": 53, "column": 0 }, "end": { - "line": 29, + "line": 53, "column": 1 } } @@ -3280,15 +6131,15 @@ "binop": null }, "value": "Parser", - "start": 780, - "end": 786, + "start": 1483, + "end": 1489, "loc": { "start": { - "line": 31, + "line": 55, "column": 0 }, "end": { - "line": 31, + "line": 55, "column": 6 } } @@ -3306,15 +6157,15 @@ "binop": null, "updateContext": null }, - "start": 786, - "end": 787, + "start": 1489, + "end": 1490, "loc": { "start": { - "line": 31, + "line": 55, "column": 6 }, "end": { - "line": 31, + "line": 55, "column": 7 } } @@ -3332,15 +6183,15 @@ "binop": null }, "value": "prototype", - "start": 787, - "end": 796, + "start": 1490, + "end": 1499, "loc": { "start": { - "line": 31, + "line": 55, "column": 7 }, "end": { - "line": 31, + "line": 55, "column": 16 } } @@ -3358,15 +6209,15 @@ "binop": null, "updateContext": null }, - "start": 796, - "end": 797, + "start": 1499, + "end": 1500, "loc": { "start": { - "line": 31, + "line": 55, "column": 16 }, "end": { - "line": 31, + "line": 55, "column": 17 } } @@ -3384,15 +6235,15 @@ "binop": null }, "value": "get", - "start": 797, - "end": 800, + "start": 1500, + "end": 1503, "loc": { "start": { - "line": 31, + "line": 55, "column": 17 }, "end": { - "line": 31, + "line": 55, "column": 20 } } @@ -3411,15 +6262,15 @@ "updateContext": null }, "value": "=", - "start": 801, - "end": 802, + "start": 1504, + "end": 1505, "loc": { "start": { - "line": 31, + "line": 55, "column": 21 }, "end": { - "line": 31, + "line": 55, "column": 22 } } @@ -3438,15 +6289,15 @@ "binop": null }, "value": "function", - "start": 803, - "end": 811, + "start": 1506, + "end": 1514, "loc": { "start": { - "line": 31, + "line": 55, "column": 23 }, "end": { - "line": 31, + "line": 55, "column": 31 } } @@ -3464,15 +6315,15 @@ "binop": null }, "value": "get", - "start": 812, - "end": 815, + "start": 1515, + "end": 1518, "loc": { "start": { - "line": 31, + "line": 55, "column": 32 }, "end": { - "line": 31, + "line": 55, "column": 35 } } @@ -3489,15 +6340,15 @@ "postfix": false, "binop": null }, - "start": 816, - "end": 817, + "start": 1519, + "end": 1520, "loc": { "start": { - "line": 31, + "line": 55, "column": 36 }, "end": { - "line": 31, + "line": 55, "column": 37 } } @@ -3515,15 +6366,15 @@ "binop": null }, "value": "data", - "start": 817, - "end": 821, + "start": 1520, + "end": 1524, "loc": { "start": { - "line": 31, + "line": 55, "column": 37 }, "end": { - "line": 31, + "line": 55, "column": 41 } } @@ -3541,15 +6392,15 @@ "binop": null, "updateContext": null }, - "start": 821, - "end": 822, + "start": 1524, + "end": 1525, "loc": { "start": { - "line": 31, + "line": 55, "column": 41 }, "end": { - "line": 31, + "line": 55, "column": 42 } } @@ -3567,15 +6418,15 @@ "binop": null }, "value": "path", - "start": 823, - "end": 827, + "start": 1526, + "end": 1530, "loc": { "start": { - "line": 31, + "line": 55, "column": 43 }, "end": { - "line": 31, + "line": 55, "column": 47 } } @@ -3592,15 +6443,15 @@ "postfix": false, "binop": null }, - "start": 827, - "end": 828, + "start": 1530, + "end": 1531, "loc": { "start": { - "line": 31, + "line": 55, "column": 47 }, "end": { - "line": 31, + "line": 55, "column": 48 } } @@ -3617,15 +6468,15 @@ "postfix": false, "binop": null }, - "start": 829, - "end": 830, + "start": 1532, + "end": 1533, "loc": { "start": { - "line": 31, + "line": 55, "column": 49 }, "end": { - "line": 31, + "line": 55, "column": 50 } } @@ -3642,15 +6493,15 @@ "postfix": false, "binop": null }, - "start": 830, - "end": 831, + "start": 1533, + "end": 1534, "loc": { "start": { - "line": 31, + "line": 55, "column": 50 }, "end": { - "line": 31, + "line": 55, "column": 51 } } @@ -3668,15 +6519,15 @@ "binop": null }, "value": "Parser", - "start": 833, - "end": 839, + "start": 1536, + "end": 1542, "loc": { "start": { - "line": 33, + "line": 57, "column": 0 }, "end": { - "line": 33, + "line": 57, "column": 6 } } @@ -3694,15 +6545,15 @@ "binop": null, "updateContext": null }, - "start": 839, - "end": 840, + "start": 1542, + "end": 1543, "loc": { "start": { - "line": 33, + "line": 57, "column": 6 }, "end": { - "line": 33, + "line": 57, "column": 7 } } @@ -3720,15 +6571,15 @@ "binop": null }, "value": "prototype", - "start": 840, - "end": 849, + "start": 1543, + "end": 1552, "loc": { "start": { - "line": 33, + "line": 57, "column": 7 }, "end": { - "line": 33, + "line": 57, "column": 16 } } @@ -3746,15 +6597,15 @@ "binop": null, "updateContext": null }, - "start": 849, - "end": 850, + "start": 1552, + "end": 1553, "loc": { "start": { - "line": 33, + "line": 57, "column": 16 }, "end": { - "line": 33, + "line": 57, "column": 17 } } @@ -3772,15 +6623,15 @@ "binop": null }, "value": "has", - "start": 850, - "end": 853, + "start": 1553, + "end": 1556, "loc": { "start": { - "line": 33, + "line": 57, "column": 17 }, "end": { - "line": 33, + "line": 57, "column": 20 } } @@ -3799,15 +6650,15 @@ "updateContext": null }, "value": "=", - "start": 854, - "end": 855, + "start": 1557, + "end": 1558, "loc": { "start": { - "line": 33, + "line": 57, "column": 21 }, "end": { - "line": 33, + "line": 57, "column": 22 } } @@ -3826,15 +6677,15 @@ "binop": null }, "value": "function", - "start": 856, - "end": 864, + "start": 1559, + "end": 1567, "loc": { "start": { - "line": 33, + "line": 57, "column": 23 }, "end": { - "line": 33, + "line": 57, "column": 31 } } @@ -3852,15 +6703,15 @@ "binop": null }, "value": "has", - "start": 865, - "end": 868, + "start": 1568, + "end": 1571, "loc": { "start": { - "line": 33, + "line": 57, "column": 32 }, "end": { - "line": 33, + "line": 57, "column": 35 } } @@ -3877,15 +6728,15 @@ "postfix": false, "binop": null }, - "start": 869, - "end": 870, + "start": 1572, + "end": 1573, "loc": { "start": { - "line": 33, + "line": 57, "column": 36 }, "end": { - "line": 33, + "line": 57, "column": 37 } } @@ -3903,15 +6754,15 @@ "binop": null }, "value": "data", - "start": 870, - "end": 874, + "start": 1573, + "end": 1577, "loc": { "start": { - "line": 33, + "line": 57, "column": 37 }, "end": { - "line": 33, + "line": 57, "column": 41 } } @@ -3929,15 +6780,15 @@ "binop": null, "updateContext": null }, - "start": 874, - "end": 875, + "start": 1577, + "end": 1578, "loc": { "start": { - "line": 33, + "line": 57, "column": 41 }, "end": { - "line": 33, + "line": 57, "column": 42 } } @@ -3955,15 +6806,15 @@ "binop": null }, "value": "path", - "start": 876, - "end": 880, + "start": 1579, + "end": 1583, "loc": { "start": { - "line": 33, + "line": 57, "column": 43 }, "end": { - "line": 33, + "line": 57, "column": 47 } } @@ -3980,15 +6831,15 @@ "postfix": false, "binop": null }, - "start": 880, - "end": 881, + "start": 1583, + "end": 1584, "loc": { "start": { - "line": 33, + "line": 57, "column": 47 }, "end": { - "line": 33, + "line": 57, "column": 48 } } @@ -4005,15 +6856,15 @@ "postfix": false, "binop": null }, - "start": 882, - "end": 883, + "start": 1585, + "end": 1586, "loc": { "start": { - "line": 33, + "line": 57, "column": 49 }, "end": { - "line": 33, + "line": 57, "column": 50 } } @@ -4030,15 +6881,15 @@ "postfix": false, "binop": null }, - "start": 883, - "end": 884, + "start": 1586, + "end": 1587, "loc": { "start": { - "line": 33, + "line": 57, "column": 50 }, "end": { - "line": 33, + "line": 57, "column": 51 } } @@ -4056,15 +6907,15 @@ "binop": null }, "value": "module", - "start": 886, - "end": 892, + "start": 1589, + "end": 1595, "loc": { "start": { - "line": 35, + "line": 59, "column": 0 }, "end": { - "line": 35, + "line": 59, "column": 6 } } @@ -4082,15 +6933,15 @@ "binop": null, "updateContext": null }, - "start": 892, - "end": 893, + "start": 1595, + "end": 1596, "loc": { "start": { - "line": 35, + "line": 59, "column": 6 }, "end": { - "line": 35, + "line": 59, "column": 7 } } @@ -4108,15 +6959,15 @@ "binop": null }, "value": "exports", - "start": 893, - "end": 900, + "start": 1596, + "end": 1603, "loc": { "start": { - "line": 35, + "line": 59, "column": 7 }, "end": { - "line": 35, + "line": 59, "column": 14 } } @@ -4135,15 +6986,15 @@ "updateContext": null }, "value": "=", - "start": 901, - "end": 902, + "start": 1604, + "end": 1605, "loc": { "start": { - "line": 35, + "line": 59, "column": 15 }, "end": { - "line": 35, + "line": 59, "column": 16 } } @@ -4161,15 +7012,15 @@ "binop": null }, "value": "Parser", - "start": 903, - "end": 909, + "start": 1606, + "end": 1612, "loc": { "start": { - "line": 35, + "line": 59, "column": 17 }, "end": { - "line": 35, + "line": 59, "column": 23 } } @@ -4187,15 +7038,15 @@ "binop": null, "updateContext": null }, - "start": 910, - "end": 910, + "start": 1613, + "end": 1613, "loc": { "start": { - "line": 36, + "line": 60, "column": 0 }, "end": { - "line": 36, + "line": 60, "column": 0 } } diff --git a/docs/ast/source/errors/ParserError.js.json b/docs/ast/source/errors/ParserError.js.json index e34c6b2..66572af 100644 --- a/docs/ast/source/errors/ParserError.js.json +++ b/docs/ast/source/errors/ParserError.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 192, + "end": 353, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 12, + "line": 16, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 192, + "end": 353, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 12, + "line": 16, "column": 0 } }, @@ -30,29 +30,29 @@ "body": [ { "type": "FunctionDeclaration", - "start": 22, - "end": 126, + "start": 144, + "end": 287, "loc": { "start": { - "line": 4, + "line": 7, "column": 0 }, "end": { - "line": 7, + "line": 11, "column": 1 } }, "id": { "type": "Identifier", - "start": 31, - "end": 41, + "start": 153, + "end": 163, "loc": { "start": { - "line": 4, + "line": 7, "column": 9 }, "end": { - "line": 4, + "line": 7, "column": 19 }, "identifierName": "ParseError" @@ -66,106 +66,154 @@ "params": [ { "type": "Identifier", - "start": 43, - "end": 49, + "start": 165, + "end": 171, "loc": { "start": { - "line": 4, + "line": 7, "column": 21 }, "end": { - "line": 4, + "line": 7, "column": 27 }, "identifierName": "format" }, "name": "format" + }, + { + "type": "AssignmentPattern", + "start": 173, + "end": 185, + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 41 + } + }, + "left": { + "type": "Identifier", + "start": 173, + "end": 180, + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 36 + }, + "identifierName": "context" + }, + "name": "context" + }, + "right": { + "type": "ObjectExpression", + "start": 183, + "end": 185, + "loc": { + "start": { + "line": 7, + "column": 39 + }, + "end": { + "line": 7, + "column": 41 + } + }, + "properties": [] + } } ], "body": { "type": "BlockStatement", - "start": 51, - "end": 126, + "start": 187, + "end": 287, "loc": { "start": { - "line": 4, - "column": 29 + "line": 7, + "column": 43 }, "end": { - "line": 7, + "line": 11, "column": 1 } }, "body": [ { "type": "ExpressionStatement", - "start": 55, - "end": 79, + "start": 191, + "end": 215, "loc": { "start": { - "line": 5, + "line": 8, "column": 2 }, "end": { - "line": 5, + "line": 8, "column": 26 } }, "expression": { "type": "AssignmentExpression", - "start": 55, - "end": 79, + "start": 191, + "end": 215, "loc": { "start": { - "line": 5, + "line": 8, "column": 2 }, "end": { - "line": 5, + "line": 8, "column": 26 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 55, - "end": 64, + "start": 191, + "end": 200, "loc": { "start": { - "line": 5, + "line": 8, "column": 2 }, "end": { - "line": 5, + "line": 8, "column": 11 } }, "object": { "type": "ThisExpression", - "start": 55, - "end": 59, + "start": 191, + "end": 195, "loc": { "start": { - "line": 5, + "line": 8, "column": 2 }, "end": { - "line": 5, + "line": 8, "column": 6 } } }, "property": { "type": "Identifier", - "start": 60, - "end": 64, + "start": 196, + "end": 200, "loc": { "start": { - "line": 5, + "line": 8, "column": 7 }, "end": { - "line": 5, + "line": 8, "column": 11 }, "identifierName": "name" @@ -176,15 +224,15 @@ }, "right": { "type": "StringLiteral", - "start": 67, - "end": 79, + "start": 203, + "end": 215, "loc": { "start": { - "line": 5, + "line": 8, "column": 14 }, "end": { - "line": 5, + "line": 8, "column": 26 } }, @@ -198,73 +246,73 @@ }, { "type": "ExpressionStatement", - "start": 82, - "end": 124, + "start": 218, + "end": 260, "loc": { "start": { - "line": 6, + "line": 9, "column": 2 }, "end": { - "line": 6, + "line": 9, "column": 44 } }, "expression": { "type": "AssignmentExpression", - "start": 82, - "end": 124, + "start": 218, + "end": 260, "loc": { "start": { - "line": 6, + "line": 9, "column": 2 }, "end": { - "line": 6, + "line": 9, "column": 44 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 82, - "end": 94, + "start": 218, + "end": 230, "loc": { "start": { - "line": 6, + "line": 9, "column": 2 }, "end": { - "line": 6, + "line": 9, "column": 14 } }, "object": { "type": "ThisExpression", - "start": 82, - "end": 86, + "start": 218, + "end": 222, "loc": { "start": { - "line": 6, + "line": 9, "column": 2 }, "end": { - "line": 6, + "line": 9, "column": 6 } } }, "property": { "type": "Identifier", - "start": 87, - "end": 94, + "start": 223, + "end": 230, "loc": { "start": { - "line": 6, + "line": 9, "column": 7 }, "end": { - "line": 6, + "line": 9, "column": 14 }, "identifierName": "message" @@ -275,30 +323,30 @@ }, "right": { "type": "TemplateLiteral", - "start": 97, - "end": 124, + "start": 233, + "end": 260, "loc": { "start": { - "line": 6, + "line": 9, "column": 17 }, "end": { - "line": 6, + "line": 9, "column": 44 } }, "expressions": [ { "type": "Identifier", - "start": 116, - "end": 122, + "start": 252, + "end": 258, "loc": { "start": { - "line": 6, + "line": 9, "column": 36 }, "end": { - "line": 6, + "line": 9, "column": 42 }, "identifierName": "format" @@ -309,15 +357,15 @@ "quasis": [ { "type": "TemplateElement", - "start": 98, - "end": 114, + "start": 234, + "end": 250, "loc": { "start": { - "line": 6, + "line": 9, "column": 18 }, "end": { - "line": 6, + "line": 9, "column": 34 } }, @@ -329,15 +377,15 @@ }, { "type": "TemplateElement", - "start": 123, - "end": 123, + "start": 259, + "end": 259, "loc": { "start": { - "line": 6, + "line": 9, "column": 43 }, "end": { - "line": 6, + "line": 9, "column": 43 } }, @@ -350,6 +398,102 @@ ] } } + }, + { + "type": "ExpressionStatement", + "start": 263, + "end": 285, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 263, + "end": 285, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 263, + "end": 275, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 263, + "end": 267, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 268, + "end": 275, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 14 + }, + "identifierName": "context" + }, + "name": "context" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 278, + "end": 285, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 24 + }, + "identifierName": "context" + }, + "name": "context" + } + } } ], "directives": [] @@ -357,16 +501,16 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\n * ParseError\n ", + "value": "*\n * ParseError\n *\n * @param {string} format - which format the error ocurred\n * @param {object} context - any context info for debugging\n ", "start": 0, - "end": 21, + "end": 143, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 3, + "line": 6, "column": 3 } } @@ -375,58 +519,58 @@ }, { "type": "ExpressionStatement", - "start": 128, - "end": 162, + "start": 289, + "end": 323, "loc": { "start": { - "line": 9, + "line": 13, "column": 0 }, "end": { - "line": 9, + "line": 13, "column": 34 } }, "expression": { "type": "AssignmentExpression", - "start": 128, - "end": 162, + "start": 289, + "end": 323, "loc": { "start": { - "line": 9, + "line": 13, "column": 0 }, "end": { - "line": 9, + "line": 13, "column": 34 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 128, - "end": 148, + "start": 289, + "end": 309, "loc": { "start": { - "line": 9, + "line": 13, "column": 0 }, "end": { - "line": 9, + "line": 13, "column": 20 } }, "object": { "type": "Identifier", - "start": 128, - "end": 138, + "start": 289, + "end": 299, "loc": { "start": { - "line": 9, + "line": 13, "column": 0 }, "end": { - "line": 9, + "line": 13, "column": 10 }, "identifierName": "ParseError" @@ -435,15 +579,15 @@ }, "property": { "type": "Identifier", - "start": 139, - "end": 148, + "start": 300, + "end": 309, "loc": { "start": { - "line": 9, + "line": 13, "column": 11 }, "end": { - "line": 9, + "line": 13, "column": 20 }, "identifierName": "prototype" @@ -454,29 +598,29 @@ }, "right": { "type": "NewExpression", - "start": 151, - "end": 162, + "start": 312, + "end": 323, "loc": { "start": { - "line": 9, + "line": 13, "column": 23 }, "end": { - "line": 9, + "line": 13, "column": 34 } }, "callee": { "type": "Identifier", - "start": 155, - "end": 160, + "start": 316, + "end": 321, "loc": { "start": { - "line": 9, + "line": 13, "column": 27 }, "end": { - "line": 9, + "line": 13, "column": 32 }, "identifierName": "Error" @@ -489,58 +633,58 @@ }, { "type": "ExpressionStatement", - "start": 164, - "end": 191, + "start": 325, + "end": 352, "loc": { "start": { - "line": 11, + "line": 15, "column": 0 }, "end": { - "line": 11, + "line": 15, "column": 27 } }, "expression": { "type": "AssignmentExpression", - "start": 164, - "end": 191, + "start": 325, + "end": 352, "loc": { "start": { - "line": 11, + "line": 15, "column": 0 }, "end": { - "line": 11, + "line": 15, "column": 27 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 164, - "end": 178, + "start": 325, + "end": 339, "loc": { "start": { - "line": 11, + "line": 15, "column": 0 }, "end": { - "line": 11, + "line": 15, "column": 14 } }, "object": { "type": "Identifier", - "start": 164, - "end": 170, + "start": 325, + "end": 331, "loc": { "start": { - "line": 11, + "line": 15, "column": 0 }, "end": { - "line": 11, + "line": 15, "column": 6 }, "identifierName": "module" @@ -549,15 +693,15 @@ }, "property": { "type": "Identifier", - "start": 171, - "end": 178, + "start": 332, + "end": 339, "loc": { "start": { - "line": 11, + "line": 15, "column": 7 }, "end": { - "line": 11, + "line": 15, "column": 14 }, "identifierName": "exports" @@ -568,15 +712,15 @@ }, "right": { "type": "Identifier", - "start": 181, - "end": 191, + "start": 342, + "end": 352, "loc": { "start": { - "line": 11, + "line": 15, "column": 17 }, "end": { - "line": 11, + "line": 15, "column": 27 }, "identifierName": "ParseError" @@ -591,16 +735,16 @@ "comments": [ { "type": "CommentBlock", - "value": "*\n * ParseError\n ", + "value": "*\n * ParseError\n *\n * @param {string} format - which format the error ocurred\n * @param {object} context - any context info for debugging\n ", "start": 0, - "end": 21, + "end": 143, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 3, + "line": 6, "column": 3 } } @@ -609,16 +753,16 @@ "tokens": [ { "type": "CommentBlock", - "value": "*\n * ParseError\n ", + "value": "*\n * ParseError\n *\n * @param {string} format - which format the error ocurred\n * @param {object} context - any context info for debugging\n ", "start": 0, - "end": 21, + "end": 143, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 3, + "line": 6, "column": 3 } } @@ -637,15 +781,15 @@ "binop": null }, "value": "function", - "start": 22, - "end": 30, + "start": 144, + "end": 152, "loc": { "start": { - "line": 4, + "line": 7, "column": 0 }, "end": { - "line": 4, + "line": 7, "column": 8 } } @@ -663,15 +807,15 @@ "binop": null }, "value": "ParseError", - "start": 31, - "end": 41, + "start": 153, + "end": 163, "loc": { "start": { - "line": 4, + "line": 7, "column": 9 }, "end": { - "line": 4, + "line": 7, "column": 19 } } @@ -688,15 +832,15 @@ "postfix": false, "binop": null }, - "start": 42, - "end": 43, + "start": 164, + "end": 165, "loc": { "start": { - "line": 4, + "line": 7, "column": 20 }, "end": { - "line": 4, + "line": 7, "column": 21 } } @@ -714,16 +858,145 @@ "binop": null }, "value": "format", - "start": 43, - "end": 49, + "start": 165, + "end": 171, "loc": { "start": { - "line": 4, + "line": 7, "column": 21 }, "end": { - "line": 4, + "line": 7, + "column": 27 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 171, + "end": 172, + "loc": { + "start": { + "line": 7, "column": 27 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "context", + "start": 173, + "end": 180, + "loc": { + "start": { + "line": 7, + "column": 29 + }, + "end": { + "line": 7, + "column": 36 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 181, + "end": 182, + "loc": { + "start": { + "line": 7, + "column": 37 + }, + "end": { + "line": 7, + "column": 38 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 183, + "end": 184, + "loc": { + "start": { + "line": 7, + "column": 39 + }, + "end": { + "line": 7, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 184, + "end": 185, + "loc": { + "start": { + "line": 7, + "column": 40 + }, + "end": { + "line": 7, + "column": 41 } } }, @@ -739,16 +1012,16 @@ "postfix": false, "binop": null }, - "start": 49, - "end": 50, + "start": 185, + "end": 186, "loc": { "start": { - "line": 4, - "column": 27 + "line": 7, + "column": 41 }, "end": { - "line": 4, - "column": 28 + "line": 7, + "column": 42 } } }, @@ -764,16 +1037,16 @@ "postfix": false, "binop": null }, - "start": 51, - "end": 52, + "start": 187, + "end": 188, "loc": { "start": { - "line": 4, - "column": 29 + "line": 7, + "column": 43 }, "end": { - "line": 4, - "column": 30 + "line": 7, + "column": 44 } } }, @@ -792,15 +1065,15 @@ "updateContext": null }, "value": "this", - "start": 55, - "end": 59, + "start": 191, + "end": 195, "loc": { "start": { - "line": 5, + "line": 8, "column": 2 }, "end": { - "line": 5, + "line": 8, "column": 6 } } @@ -818,15 +1091,15 @@ "binop": null, "updateContext": null }, - "start": 59, - "end": 60, + "start": 195, + "end": 196, "loc": { "start": { - "line": 5, + "line": 8, "column": 6 }, "end": { - "line": 5, + "line": 8, "column": 7 } } @@ -844,15 +1117,15 @@ "binop": null }, "value": "name", - "start": 60, - "end": 64, + "start": 196, + "end": 200, "loc": { "start": { - "line": 5, + "line": 8, "column": 7 }, "end": { - "line": 5, + "line": 8, "column": 11 } } @@ -871,15 +1144,15 @@ "updateContext": null }, "value": "=", - "start": 65, - "end": 66, + "start": 201, + "end": 202, "loc": { "start": { - "line": 5, + "line": 8, "column": 12 }, "end": { - "line": 5, + "line": 8, "column": 13 } } @@ -898,15 +1171,15 @@ "updateContext": null }, "value": "ParseError", - "start": 67, - "end": 79, + "start": 203, + "end": 215, "loc": { "start": { - "line": 5, + "line": 8, "column": 14 }, "end": { - "line": 5, + "line": 8, "column": 26 } } @@ -926,15 +1199,15 @@ "updateContext": null }, "value": "this", - "start": 82, - "end": 86, + "start": 218, + "end": 222, "loc": { "start": { - "line": 6, + "line": 9, "column": 2 }, "end": { - "line": 6, + "line": 9, "column": 6 } } @@ -952,15 +1225,15 @@ "binop": null, "updateContext": null }, - "start": 86, - "end": 87, + "start": 222, + "end": 223, "loc": { "start": { - "line": 6, + "line": 9, "column": 6 }, "end": { - "line": 6, + "line": 9, "column": 7 } } @@ -978,15 +1251,15 @@ "binop": null }, "value": "message", - "start": 87, - "end": 94, + "start": 223, + "end": 230, "loc": { "start": { - "line": 6, + "line": 9, "column": 7 }, "end": { - "line": 6, + "line": 9, "column": 14 } } @@ -1005,15 +1278,15 @@ "updateContext": null }, "value": "=", - "start": 95, - "end": 96, + "start": 231, + "end": 232, "loc": { "start": { - "line": 6, + "line": 9, "column": 15 }, "end": { - "line": 6, + "line": 9, "column": 16 } } @@ -1030,15 +1303,15 @@ "postfix": false, "binop": null }, - "start": 97, - "end": 98, + "start": 233, + "end": 234, "loc": { "start": { - "line": 6, + "line": 9, "column": 17 }, "end": { - "line": 6, + "line": 9, "column": 18 } } @@ -1057,15 +1330,15 @@ "updateContext": null }, "value": "Failed to parse ", - "start": 98, - "end": 114, + "start": 234, + "end": 250, "loc": { "start": { - "line": 6, + "line": 9, "column": 18 }, "end": { - "line": 6, + "line": 9, "column": 34 } } @@ -1082,15 +1355,15 @@ "postfix": false, "binop": null }, - "start": 114, - "end": 116, + "start": 250, + "end": 252, "loc": { "start": { - "line": 6, + "line": 9, "column": 34 }, "end": { - "line": 6, + "line": 9, "column": 36 } } @@ -1108,15 +1381,15 @@ "binop": null }, "value": "format", - "start": 116, - "end": 122, + "start": 252, + "end": 258, "loc": { "start": { - "line": 6, + "line": 9, "column": 36 }, "end": { - "line": 6, + "line": 9, "column": 42 } } @@ -1133,15 +1406,15 @@ "postfix": false, "binop": null }, - "start": 122, - "end": 123, + "start": 258, + "end": 259, "loc": { "start": { - "line": 6, + "line": 9, "column": 42 }, "end": { - "line": 6, + "line": 9, "column": 43 } } @@ -1160,15 +1433,15 @@ "updateContext": null }, "value": "", - "start": 123, - "end": 123, + "start": 259, + "end": 259, "loc": { "start": { - "line": 6, + "line": 9, "column": 43 }, "end": { - "line": 6, + "line": 9, "column": 43 } } @@ -1185,19 +1458,152 @@ "postfix": false, "binop": null }, - "start": 123, - "end": 124, + "start": 259, + "end": 260, "loc": { "start": { - "line": 6, + "line": 9, "column": 43 }, "end": { - "line": 6, + "line": 9, "column": 44 } } }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 263, + "end": 267, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 267, + "end": 268, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "context", + "start": 268, + "end": 275, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 276, + "end": 277, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "context", + "start": 278, + "end": 285, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 24 + } + } + }, { "type": { "label": "}", @@ -1210,15 +1616,15 @@ "postfix": false, "binop": null }, - "start": 125, - "end": 126, + "start": 286, + "end": 287, "loc": { "start": { - "line": 7, + "line": 11, "column": 0 }, "end": { - "line": 7, + "line": 11, "column": 1 } } @@ -1236,15 +1642,15 @@ "binop": null }, "value": "ParseError", - "start": 128, - "end": 138, + "start": 289, + "end": 299, "loc": { "start": { - "line": 9, + "line": 13, "column": 0 }, "end": { - "line": 9, + "line": 13, "column": 10 } } @@ -1262,15 +1668,15 @@ "binop": null, "updateContext": null }, - "start": 138, - "end": 139, + "start": 299, + "end": 300, "loc": { "start": { - "line": 9, + "line": 13, "column": 10 }, "end": { - "line": 9, + "line": 13, "column": 11 } } @@ -1288,15 +1694,15 @@ "binop": null }, "value": "prototype", - "start": 139, - "end": 148, + "start": 300, + "end": 309, "loc": { "start": { - "line": 9, + "line": 13, "column": 11 }, "end": { - "line": 9, + "line": 13, "column": 20 } } @@ -1315,15 +1721,15 @@ "updateContext": null }, "value": "=", - "start": 149, - "end": 150, + "start": 310, + "end": 311, "loc": { "start": { - "line": 9, + "line": 13, "column": 21 }, "end": { - "line": 9, + "line": 13, "column": 22 } } @@ -1343,15 +1749,15 @@ "updateContext": null }, "value": "new", - "start": 151, - "end": 154, + "start": 312, + "end": 315, "loc": { "start": { - "line": 9, + "line": 13, "column": 23 }, "end": { - "line": 9, + "line": 13, "column": 26 } } @@ -1369,15 +1775,15 @@ "binop": null }, "value": "Error", - "start": 155, - "end": 160, + "start": 316, + "end": 321, "loc": { "start": { - "line": 9, + "line": 13, "column": 27 }, "end": { - "line": 9, + "line": 13, "column": 32 } } @@ -1394,15 +1800,15 @@ "postfix": false, "binop": null }, - "start": 160, - "end": 161, + "start": 321, + "end": 322, "loc": { "start": { - "line": 9, + "line": 13, "column": 32 }, "end": { - "line": 9, + "line": 13, "column": 33 } } @@ -1419,15 +1825,15 @@ "postfix": false, "binop": null }, - "start": 161, - "end": 162, + "start": 322, + "end": 323, "loc": { "start": { - "line": 9, + "line": 13, "column": 33 }, "end": { - "line": 9, + "line": 13, "column": 34 } } @@ -1445,15 +1851,15 @@ "binop": null }, "value": "module", - "start": 164, - "end": 170, + "start": 325, + "end": 331, "loc": { "start": { - "line": 11, + "line": 15, "column": 0 }, "end": { - "line": 11, + "line": 15, "column": 6 } } @@ -1471,15 +1877,15 @@ "binop": null, "updateContext": null }, - "start": 170, - "end": 171, + "start": 331, + "end": 332, "loc": { "start": { - "line": 11, + "line": 15, "column": 6 }, "end": { - "line": 11, + "line": 15, "column": 7 } } @@ -1497,15 +1903,15 @@ "binop": null }, "value": "exports", - "start": 171, - "end": 178, + "start": 332, + "end": 339, "loc": { "start": { - "line": 11, + "line": 15, "column": 7 }, "end": { - "line": 11, + "line": 15, "column": 14 } } @@ -1524,15 +1930,15 @@ "updateContext": null }, "value": "=", - "start": 179, - "end": 180, + "start": 340, + "end": 341, "loc": { "start": { - "line": 11, + "line": 15, "column": 15 }, "end": { - "line": 11, + "line": 15, "column": 16 } } @@ -1550,15 +1956,15 @@ "binop": null }, "value": "ParseError", - "start": 181, - "end": 191, + "start": 342, + "end": 352, "loc": { "start": { - "line": 11, + "line": 15, "column": 17 }, "end": { - "line": 11, + "line": 15, "column": 27 } } @@ -1576,15 +1982,15 @@ "binop": null, "updateContext": null }, - "start": 192, - "end": 192, + "start": 353, + "end": 353, "loc": { "start": { - "line": 12, + "line": 16, "column": 0 }, "end": { - "line": 12, + "line": 16, "column": 0 } } diff --git a/docs/ast/source/strategies/Base.js.json b/docs/ast/source/strategies/Base.js.json index 3a5ac6f..b43727f 100644 --- a/docs/ast/source/strategies/Base.js.json +++ b/docs/ast/source/strategies/Base.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 1039, + "end": 2042, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 44, + "line": 82, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 1039, + "end": 2042, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 44, + "line": 82, "column": 0 } }, @@ -126,6 +126,110 @@ }, "value": "../errors/NotImplemented" } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 59, + "end": 111, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 65, + "end": 111, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 52 + } + }, + "id": { + "type": "Identifier", + "start": 65, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 17 + }, + "identifierName": "ParserError" + }, + "name": "ParserError" + }, + "init": { + "type": "CallExpression", + "start": 79, + "end": 111, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 79, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 27 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 87, + "end": 110, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 51 + } + }, + "extra": { + "rawValue": "../errors/ParserError", + "raw": "'../errors/ParserError'" + }, + "value": "../errors/ParserError" + } ], "trailingComments": null }, @@ -137,15 +241,15 @@ { "type": "CommentBlock", "value": "*\n * Base class for strategies around the Parser\n * Every function that haven't been implemented\n * will throw an NotImplementedError\n *\n * @constructor\n ", - "start": 60, - "end": 218, + "start": 113, + "end": 271, "loc": { "start": { - "line": 3, + "line": 4, "column": 0 }, "end": { - "line": 9, + "line": 10, "column": 3 } } @@ -154,29 +258,29 @@ }, { "type": "FunctionDeclaration", - "start": 219, - "end": 238, + "start": 272, + "end": 291, "loc": { "start": { - "line": 10, + "line": 11, "column": 0 }, "end": { - "line": 10, + "line": 11, "column": 19 } }, "id": { "type": "Identifier", - "start": 228, - "end": 232, + "start": 281, + "end": 285, "loc": { "start": { - "line": 10, + "line": 11, "column": 9 }, "end": { - "line": 10, + "line": 11, "column": 13 }, "identifierName": "Base" @@ -190,15 +294,15 @@ "params": [], "body": { "type": "BlockStatement", - "start": 236, - "end": 238, + "start": 289, + "end": 291, "loc": { "start": { - "line": 10, + "line": 11, "column": 17 }, "end": { - "line": 10, + "line": 11, "column": 19 } }, @@ -211,15 +315,15 @@ { "type": "CommentBlock", "value": "*\n * Base class for strategies around the Parser\n * Every function that haven't been implemented\n * will throw an NotImplementedError\n *\n * @constructor\n ", - "start": 60, - "end": 218, + "start": 113, + "end": 271, "loc": { "start": { - "line": 3, + "line": 4, "column": 0 }, "end": { - "line": 9, + "line": 10, "column": 3 } } @@ -229,15 +333,15 @@ { "type": "CommentBlock", "value": "*\n * Base.prototype.stringify - receives * form of data and turns it into a string\n *\n * @param {*} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 240, - "end": 437, + "start": 293, + "end": 490, "loc": { "start": { - "line": 12, + "line": 13, "column": 0 }, "end": { - "line": 18, + "line": 19, "column": 3 } } @@ -246,72 +350,72 @@ }, { "type": "ExpressionStatement", - "start": 438, - "end": 532, + "start": 491, + "end": 585, "loc": { "start": { - "line": 19, + "line": 20, "column": 0 }, "end": { - "line": 21, + "line": 22, "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 438, - "end": 532, + "start": 491, + "end": 585, "loc": { "start": { - "line": 19, + "line": 20, "column": 0 }, "end": { - "line": 21, + "line": 22, "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 438, - "end": 462, + "start": 491, + "end": 515, "loc": { "start": { - "line": 19, + "line": 20, "column": 0 }, "end": { - "line": 19, + "line": 20, "column": 24 } }, "object": { "type": "MemberExpression", - "start": 438, - "end": 452, + "start": 491, + "end": 505, "loc": { "start": { - "line": 19, + "line": 20, "column": 0 }, "end": { - "line": 19, + "line": 20, "column": 14 } }, "object": { "type": "Identifier", - "start": 438, - "end": 442, + "start": 491, + "end": 495, "loc": { "start": { - "line": 19, + "line": 20, "column": 0 }, "end": { - "line": 19, + "line": 20, "column": 4 }, "identifierName": "Base" @@ -321,15 +425,15 @@ }, "property": { "type": "Identifier", - "start": 443, - "end": 452, + "start": 496, + "end": 505, "loc": { "start": { - "line": 19, + "line": 20, "column": 5 }, "end": { - "line": 19, + "line": 20, "column": 14 }, "identifierName": "prototype" @@ -341,15 +445,15 @@ }, "property": { "type": "Identifier", - "start": 453, - "end": 462, + "start": 506, + "end": 515, "loc": { "start": { - "line": 19, + "line": 20, "column": 15 }, "end": { - "line": 19, + "line": 20, "column": 24 }, "identifierName": "stringify" @@ -361,29 +465,29 @@ }, "right": { "type": "FunctionExpression", - "start": 465, - "end": 532, + "start": 518, + "end": 585, "loc": { "start": { - "line": 19, + "line": 20, "column": 27 }, "end": { - "line": 21, + "line": 22, "column": 1 } }, "id": { "type": "Identifier", - "start": 453, - "end": 462, + "start": 506, + "end": 515, "loc": { "start": { - "line": 19, + "line": 20, "column": 15 }, "end": { - "line": 19, + "line": 20, "column": 24 }, "identifierName": "stringify" @@ -396,15 +500,15 @@ "params": [ { "type": "Identifier", - "start": 485, - "end": 489, + "start": 538, + "end": 542, "loc": { "start": { - "line": 19, + "line": 20, "column": 47 }, "end": { - "line": 19, + "line": 20, "column": 51 }, "identifierName": "data" @@ -413,15 +517,15 @@ }, { "type": "Identifier", - "start": 491, - "end": 498, + "start": 544, + "end": 551, "loc": { "start": { - "line": 19, + "line": 20, "column": 53 }, "end": { - "line": 19, + "line": 20, "column": 60 }, "identifierName": "options" @@ -431,58 +535,58 @@ ], "body": { "type": "BlockStatement", - "start": 500, - "end": 532, + "start": 553, + "end": 585, "loc": { "start": { - "line": 19, + "line": 20, "column": 62 }, "end": { - "line": 21, + "line": 22, "column": 1 } }, "body": [ { "type": "ThrowStatement", - "start": 504, - "end": 530, + "start": 557, + "end": 583, "loc": { "start": { - "line": 20, + "line": 21, "column": 2 }, "end": { - "line": 20, + "line": 21, "column": 28 } }, "argument": { "type": "NewExpression", - "start": 510, - "end": 530, + "start": 563, + "end": 583, "loc": { "start": { - "line": 20, + "line": 21, "column": 8 }, "end": { - "line": 20, + "line": 21, "column": 28 } }, "callee": { "type": "Identifier", - "start": 514, - "end": 528, + "start": 567, + "end": 581, "loc": { "start": { - "line": 20, + "line": 21, "column": 12 }, "end": { - "line": 20, + "line": 21, "column": 26 }, "identifierName": "NotImplemented" @@ -505,15 +609,15 @@ { "type": "CommentBlock", "value": "*\n * Base.prototype.stringify - receives * form of data and turns it into a string\n *\n * @param {*} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 240, - "end": 437, + "start": 293, + "end": 490, "loc": { "start": { - "line": 12, + "line": 13, "column": 0 }, "end": { - "line": 18, + "line": 19, "column": 3 } } @@ -523,15 +627,15 @@ { "type": "CommentBlock", "value": "*\n * Base.prototype.parse - receives an string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 534, - "end": 737, + "start": 587, + "end": 790, "loc": { "start": { - "line": 23, + "line": 24, "column": 0 }, "end": { - "line": 29, + "line": 30, "column": 3 } } @@ -540,72 +644,72 @@ }, { "type": "ExpressionStatement", - "start": 738, - "end": 824, + "start": 791, + "end": 877, "loc": { "start": { - "line": 30, + "line": 31, "column": 0 }, "end": { - "line": 32, + "line": 33, "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 738, - "end": 824, + "start": 791, + "end": 877, "loc": { "start": { - "line": 30, + "line": 31, "column": 0 }, "end": { - "line": 32, + "line": 33, "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 738, - "end": 758, + "start": 791, + "end": 811, "loc": { "start": { - "line": 30, + "line": 31, "column": 0 }, "end": { - "line": 30, + "line": 31, "column": 20 } }, "object": { "type": "MemberExpression", - "start": 738, - "end": 752, + "start": 791, + "end": 805, "loc": { "start": { - "line": 30, + "line": 31, "column": 0 }, "end": { - "line": 30, + "line": 31, "column": 14 } }, "object": { "type": "Identifier", - "start": 738, - "end": 742, + "start": 791, + "end": 795, "loc": { "start": { - "line": 30, + "line": 31, "column": 0 }, "end": { - "line": 30, + "line": 31, "column": 4 }, "identifierName": "Base" @@ -615,15 +719,15 @@ }, "property": { "type": "Identifier", - "start": 743, - "end": 752, + "start": 796, + "end": 805, "loc": { "start": { - "line": 30, + "line": 31, "column": 5 }, "end": { - "line": 30, + "line": 31, "column": 14 }, "identifierName": "prototype" @@ -635,15 +739,15 @@ }, "property": { "type": "Identifier", - "start": 753, - "end": 758, + "start": 806, + "end": 811, "loc": { "start": { - "line": 30, + "line": 31, "column": 15 }, "end": { - "line": 30, + "line": 31, "column": 20 }, "identifierName": "parse" @@ -655,29 +759,29 @@ }, "right": { "type": "FunctionExpression", - "start": 761, - "end": 824, + "start": 814, + "end": 877, "loc": { "start": { - "line": 30, + "line": 31, "column": 23 }, "end": { - "line": 32, + "line": 33, "column": 1 } }, "id": { "type": "Identifier", - "start": 753, - "end": 758, + "start": 806, + "end": 811, "loc": { "start": { - "line": 30, + "line": 31, "column": 15 }, "end": { - "line": 30, + "line": 31, "column": 20 }, "identifierName": "parse" @@ -690,15 +794,15 @@ "params": [ { "type": "Identifier", - "start": 777, - "end": 781, + "start": 830, + "end": 834, "loc": { "start": { - "line": 30, + "line": 31, "column": 39 }, "end": { - "line": 30, + "line": 31, "column": 43 }, "identifierName": "data" @@ -707,15 +811,15 @@ }, { "type": "Identifier", - "start": 783, - "end": 790, + "start": 836, + "end": 843, "loc": { "start": { - "line": 30, + "line": 31, "column": 45 }, "end": { - "line": 30, + "line": 31, "column": 52 }, "identifierName": "options" @@ -725,58 +829,58 @@ ], "body": { "type": "BlockStatement", - "start": 792, - "end": 824, + "start": 845, + "end": 877, "loc": { "start": { - "line": 30, + "line": 31, "column": 54 }, "end": { - "line": 32, + "line": 33, "column": 1 } }, "body": [ { "type": "ThrowStatement", - "start": 796, - "end": 822, + "start": 849, + "end": 875, "loc": { "start": { - "line": 31, + "line": 32, "column": 2 }, "end": { - "line": 31, + "line": 32, "column": 28 } }, "argument": { "type": "NewExpression", - "start": 802, - "end": 822, + "start": 855, + "end": 875, "loc": { "start": { - "line": 31, + "line": 32, "column": 8 }, "end": { - "line": 31, + "line": 32, "column": 28 } }, "callee": { "type": "Identifier", - "start": 806, - "end": 820, + "start": 859, + "end": 873, "loc": { "start": { - "line": 31, + "line": 32, "column": 12 }, "end": { - "line": 31, + "line": 32, "column": 26 }, "identifierName": "NotImplemented" @@ -799,15 +903,15 @@ { "type": "CommentBlock", "value": "*\n * Base.prototype.parse - receives an string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 534, - "end": 737, + "start": 587, + "end": 790, "loc": { "start": { - "line": 23, + "line": 24, "column": 0 }, "end": { - "line": 29, + "line": 30, "column": 3 } } @@ -817,15 +921,15 @@ { "type": "CommentBlock", "value": "*\n * Base.prototype.pipe - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 826, - "end": 943, + "start": 879, + "end": 996, "loc": { "start": { - "line": 34, + "line": 35, "column": 0 }, "end": { - "line": 38, + "line": 39, "column": 3 } } @@ -834,72 +938,72 @@ }, { "type": "ExpressionStatement", - "start": 944, - "end": 1015, + "start": 997, + "end": 1068, "loc": { "start": { - "line": 39, + "line": 40, "column": 0 }, "end": { - "line": 41, + "line": 42, "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 944, - "end": 1015, + "start": 997, + "end": 1068, "loc": { "start": { - "line": 39, + "line": 40, "column": 0 }, "end": { - "line": 41, + "line": 42, "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 944, - "end": 963, + "start": 997, + "end": 1016, "loc": { "start": { - "line": 39, + "line": 40, "column": 0 }, "end": { - "line": 39, + "line": 40, "column": 19 } }, "object": { "type": "MemberExpression", - "start": 944, - "end": 958, + "start": 997, + "end": 1011, "loc": { "start": { - "line": 39, + "line": 40, "column": 0 }, "end": { - "line": 39, + "line": 40, "column": 14 } }, "object": { "type": "Identifier", - "start": 944, - "end": 948, + "start": 997, + "end": 1001, "loc": { "start": { - "line": 39, + "line": 40, "column": 0 }, "end": { - "line": 39, + "line": 40, "column": 4 }, "identifierName": "Base" @@ -909,15 +1013,15 @@ }, "property": { "type": "Identifier", - "start": 949, - "end": 958, + "start": 1002, + "end": 1011, "loc": { "start": { - "line": 39, + "line": 40, "column": 5 }, "end": { - "line": 39, + "line": 40, "column": 14 }, "identifierName": "prototype" @@ -929,15 +1033,15 @@ }, "property": { "type": "Identifier", - "start": 959, - "end": 963, + "start": 1012, + "end": 1016, "loc": { "start": { - "line": 39, + "line": 40, "column": 15 }, "end": { - "line": 39, + "line": 40, "column": 19 }, "identifierName": "pipe" @@ -949,29 +1053,29 @@ }, "right": { "type": "FunctionExpression", - "start": 966, - "end": 1015, + "start": 1019, + "end": 1068, "loc": { "start": { - "line": 39, + "line": 40, "column": 22 }, "end": { - "line": 41, + "line": 42, "column": 1 } }, "id": { "type": "Identifier", - "start": 959, - "end": 963, + "start": 1012, + "end": 1016, "loc": { "start": { - "line": 39, + "line": 40, "column": 15 }, "end": { - "line": 39, + "line": 40, "column": 19 }, "identifierName": "pipe" @@ -984,58 +1088,58 @@ "params": [], "body": { "type": "BlockStatement", - "start": 983, - "end": 1015, + "start": 1036, + "end": 1068, "loc": { "start": { - "line": 39, + "line": 40, "column": 39 }, "end": { - "line": 41, + "line": 42, "column": 1 } }, "body": [ { "type": "ThrowStatement", - "start": 987, - "end": 1013, + "start": 1040, + "end": 1066, "loc": { "start": { - "line": 40, + "line": 41, "column": 2 }, "end": { - "line": 40, + "line": 41, "column": 28 } }, "argument": { "type": "NewExpression", - "start": 993, - "end": 1013, + "start": 1046, + "end": 1066, "loc": { "start": { - "line": 40, + "line": 41, "column": 8 }, "end": { - "line": 40, + "line": 41, "column": 28 } }, "callee": { "type": "Identifier", - "start": 997, - "end": 1011, + "start": 1050, + "end": 1064, "loc": { "start": { - "line": 40, + "line": 41, "column": 12 }, "end": { - "line": 40, + "line": 41, "column": 26 }, "identifierName": "NotImplemented" @@ -1046,24 +1150,45 @@ } } ], - "directives": [] - } + "directives": [], + "trailingComments": null + }, + "trailingComments": null }, - "leadingComments": null + "leadingComments": null, + "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Base.prototype.pipe - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 826, - "end": 943, + "start": 879, + "end": 996, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 39, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.valid - checks if a given value is valid in desired format using the implemented method parse(), ignoring any exception\n *\n * @param {object} options - any option accepted for the implemented method parse()\n * @returns {boolean} wether or not the given data is a valid format\n ", + "start": 1070, + "end": 1371, "loc": { "start": { - "line": 34, + "line": 44, "column": 0 }, "end": { - "line": 38, + "line": 49, "column": 3 } } @@ -1072,197 +1197,3555 @@ }, { "type": "ExpressionStatement", - "start": 1017, - "end": 1038, + "start": 1372, + "end": 1594, "loc": { "start": { - "line": 43, + "line": 50, "column": 0 }, "end": { - "line": 43, - "column": 21 + "line": 61, + "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 1017, - "end": 1038, + "start": 1372, + "end": 1594, "loc": { "start": { - "line": 43, + "line": 50, "column": 0 }, "end": { - "line": 43, - "column": 21 + "line": 61, + "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1017, - "end": 1031, + "start": 1372, + "end": 1392, "loc": { "start": { - "line": 43, + "line": 50, "column": 0 }, "end": { - "line": 43, - "column": 14 + "line": 50, + "column": 20 } }, "object": { - "type": "Identifier", - "start": 1017, - "end": 1023, + "type": "MemberExpression", + "start": 1372, + "end": 1386, "loc": { "start": { - "line": 43, + "line": 50, "column": 0 }, "end": { - "line": 43, - "column": 6 + "line": 50, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 1372, + "end": 1376, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 50, + "column": 4 + }, + "identifierName": "Base" }, - "identifierName": "module" + "name": "Base", + "leadingComments": null }, - "name": "module" + "property": { + "type": "Identifier", + "start": 1377, + "end": 1386, + "loc": { + "start": { + "line": 50, + "column": 5 + }, + "end": { + "line": 50, + "column": 14 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null }, "property": { "type": "Identifier", - "start": 1024, - "end": 1031, + "start": 1387, + "end": 1392, "loc": { "start": { - "line": 43, - "column": 7 + "line": 50, + "column": 15 }, "end": { - "line": 43, - "column": 14 + "line": 50, + "column": 20 }, - "identifierName": "exports" + "identifierName": "valid" }, - "name": "exports" + "name": "valid" }, - "computed": false + "computed": false, + "leadingComments": null }, "right": { - "type": "Identifier", - "start": 1034, - "end": 1038, + "type": "FunctionExpression", + "start": 1395, + "end": 1594, "loc": { "start": { - "line": 43, - "column": 17 + "line": 50, + "column": 23 }, "end": { - "line": 43, - "column": 21 + "line": 61, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1387, + "end": 1392, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 20 + }, + "identifierName": "valid" }, - "identifierName": "Base" + "name": "valid" }, - "name": "Base" - } - } - } - ], - "directives": [] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Base class for strategies around the Parser\n * Every function that haven't been implemented\n * will throw an NotImplementedError\n *\n * @constructor\n ", - "start": 60, - "end": 218, - "loc": { - "start": { - "line": 3, - "column": 0 - }, - "end": { - "line": 9, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Base.prototype.stringify - receives * form of data and turns it into a string\n *\n * @param {*} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 240, - "end": 437, - "loc": { - "start": { - "line": 12, - "column": 0 - }, - "end": { - "line": 18, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Base.prototype.parse - receives an string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 534, - "end": 737, - "loc": { - "start": { - "line": 23, - "column": 0 - }, - "end": { - "line": 29, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Base.prototype.pipe - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 826, - "end": 943, - "loc": { - "start": { - "line": 34, - "column": 0 - }, - "end": { - "line": 38, - "column": 3 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 0, - "end": 5, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 5 + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1411, + "end": 1415, + "loc": { + "start": { + "line": 50, + "column": 39 + }, + "end": { + "line": 50, + "column": 43 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "AssignmentPattern", + "start": 1417, + "end": 1429, + "loc": { + "start": { + "line": 50, + "column": 45 + }, + "end": { + "line": 50, + "column": 57 + } + }, + "left": { + "type": "Identifier", + "start": 1417, + "end": 1424, + "loc": { + "start": { + "line": 50, + "column": 45 + }, + "end": { + "line": 50, + "column": 52 + }, + "identifierName": "options" + }, + "name": "options" + }, + "right": { + "type": "ObjectExpression", + "start": 1427, + "end": 1429, + "loc": { + "start": { + "line": 50, + "column": 55 + }, + "end": { + "line": 50, + "column": 57 + } + }, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 1431, + "end": 1594, + "loc": { + "start": { + "line": 50, + "column": 59 + }, + "end": { + "line": 61, + "column": 1 + } + }, + "body": [ + { + "type": "TryStatement", + "start": 1435, + "end": 1592, + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "block": { + "type": "BlockStatement", + "start": 1439, + "end": 1490, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 54, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1445, + "end": 1470, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 29 + } + }, + "expression": { + "type": "CallExpression", + "start": 1445, + "end": 1470, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 29 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1445, + "end": 1455, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 1445, + "end": 1449, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 8 + } + } + }, + "property": { + "type": "Identifier", + "start": 1450, + "end": 1455, + "loc": { + "start": { + "line": 52, + "column": 9 + }, + "end": { + "line": 52, + "column": 14 + }, + "identifierName": "parse" + }, + "name": "parse" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1456, + "end": 1460, + "loc": { + "start": { + "line": 52, + "column": 15 + }, + "end": { + "line": 52, + "column": 19 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "Identifier", + "start": 1462, + "end": 1469, + "loc": { + "start": { + "line": 52, + "column": 21 + }, + "end": { + "line": 52, + "column": 28 + }, + "identifierName": "options" + }, + "name": "options" + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 1475, + "end": 1486, + "loc": { + "start": { + "line": 53, + "column": 4 + }, + "end": { + "line": 53, + "column": 15 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 1482, + "end": 1486, + "loc": { + "start": { + "line": 53, + "column": 11 + }, + "end": { + "line": 53, + "column": 15 + } + }, + "value": true + } + } + ], + "directives": [] + }, + "handler": { + "type": "CatchClause", + "start": 1491, + "end": 1592, + "loc": { + "start": { + "line": 54, + "column": 4 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "param": { + "type": "Identifier", + "start": 1498, + "end": 1503, + "loc": { + "start": { + "line": 54, + "column": 11 + }, + "end": { + "line": 54, + "column": 16 + }, + "identifierName": "error" + }, + "name": "error" + }, + "body": { + "type": "BlockStatement", + "start": 1505, + "end": 1592, + "loc": { + "start": { + "line": 54, + "column": 18 + }, + "end": { + "line": 60, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1511, + "end": 1571, + "loc": { + "start": { + "line": 55, + "column": 4 + }, + "end": { + "line": 57, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 1515, + "end": 1543, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 36 + } + }, + "left": { + "type": "Identifier", + "start": 1515, + "end": 1520, + "loc": { + "start": { + "line": 55, + "column": 8 + }, + "end": { + "line": 55, + "column": 13 + }, + "identifierName": "error" + }, + "name": "error" + }, + "operator": "instanceof", + "right": { + "type": "Identifier", + "start": 1532, + "end": 1543, + "loc": { + "start": { + "line": 55, + "column": 25 + }, + "end": { + "line": 55, + "column": 36 + }, + "identifierName": "ParserError" + }, + "name": "ParserError" + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1545, + "end": 1571, + "loc": { + "start": { + "line": 55, + "column": 38 + }, + "end": { + "line": 57, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1553, + "end": 1565, + "loc": { + "start": { + "line": 56, + "column": 6 + }, + "end": { + "line": 56, + "column": 18 + } + }, + "argument": { + "type": "BooleanLiteral", + "start": 1560, + "end": 1565, + "loc": { + "start": { + "line": 56, + "column": 13 + }, + "end": { + "line": 56, + "column": 18 + } + }, + "value": false + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ThrowStatement", + "start": 1577, + "end": 1588, + "loc": { + "start": { + "line": 59, + "column": 4 + }, + "end": { + "line": 59, + "column": 15 + } + }, + "argument": { + "type": "Identifier", + "start": 1583, + "end": 1588, + "loc": { + "start": { + "line": 59, + "column": 10 + }, + "end": { + "line": 59, + "column": 15 + }, + "identifierName": "error" + }, + "name": "error" + } + } + ], + "directives": [] + } + }, + "guardedHandlers": [], + "finalizer": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.valid - checks if a given value is valid in desired format using the implemented method parse(), ignoring any exception\n *\n * @param {object} options - any option accepted for the implemented method parse()\n * @returns {boolean} wether or not the given data is a valid format\n ", + "start": 1070, + "end": 1371, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 49, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.pipeParse - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1596, + "end": 1718, + "loc": { + "start": { + "line": 63, + "column": 0 + }, + "end": { + "line": 67, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1719, + "end": 1800, + "loc": { + "start": { + "line": 68, + "column": 0 + }, + "end": { + "line": 70, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1719, + "end": 1800, + "loc": { + "start": { + "line": 68, + "column": 0 + }, + "end": { + "line": 70, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1719, + "end": 1743, + "loc": { + "start": { + "line": 68, + "column": 0 + }, + "end": { + "line": 68, + "column": 24 + } + }, + "object": { + "type": "MemberExpression", + "start": 1719, + "end": 1733, + "loc": { + "start": { + "line": 68, + "column": 0 + }, + "end": { + "line": 68, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 1719, + "end": 1723, + "loc": { + "start": { + "line": 68, + "column": 0 + }, + "end": { + "line": 68, + "column": 4 + }, + "identifierName": "Base" + }, + "name": "Base", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1724, + "end": 1733, + "loc": { + "start": { + "line": 68, + "column": 5 + }, + "end": { + "line": 68, + "column": 14 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1734, + "end": 1743, + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 68, + "column": 24 + }, + "identifierName": "pipeParse" + }, + "name": "pipeParse" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "FunctionExpression", + "start": 1746, + "end": 1800, + "loc": { + "start": { + "line": 68, + "column": 27 + }, + "end": { + "line": 70, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1734, + "end": 1743, + "loc": { + "start": { + "line": 68, + "column": 15 + }, + "end": { + "line": 68, + "column": 24 + }, + "identifierName": "pipeParse" + }, + "name": "pipeParse" + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1768, + "end": 1800, + "loc": { + "start": { + "line": 68, + "column": 49 + }, + "end": { + "line": 70, + "column": 1 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 1772, + "end": 1798, + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 69, + "column": 28 + } + }, + "argument": { + "type": "NewExpression", + "start": 1778, + "end": 1798, + "loc": { + "start": { + "line": 69, + "column": 8 + }, + "end": { + "line": 69, + "column": 28 + } + }, + "callee": { + "type": "Identifier", + "start": 1782, + "end": 1796, + "loc": { + "start": { + "line": 69, + "column": 12 + }, + "end": { + "line": 69, + "column": 26 + }, + "identifierName": "NotImplemented" + }, + "name": "NotImplemented" + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.pipeParse - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1596, + "end": 1718, + "loc": { + "start": { + "line": 63, + "column": 0 + }, + "end": { + "line": 67, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.pipeStringify - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1802, + "end": 1928, + "loc": { + "start": { + "line": 72, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1929, + "end": 2018, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 79, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1929, + "end": 2018, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 79, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1929, + "end": 1957, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 77, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 1929, + "end": 1943, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 77, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 1929, + "end": 1933, + "loc": { + "start": { + "line": 77, + "column": 0 + }, + "end": { + "line": 77, + "column": 4 + }, + "identifierName": "Base" + }, + "name": "Base", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1934, + "end": 1943, + "loc": { + "start": { + "line": 77, + "column": 5 + }, + "end": { + "line": 77, + "column": 14 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1944, + "end": 1957, + "loc": { + "start": { + "line": 77, + "column": 15 + }, + "end": { + "line": 77, + "column": 28 + }, + "identifierName": "pipeStringify" + }, + "name": "pipeStringify" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "FunctionExpression", + "start": 1960, + "end": 2018, + "loc": { + "start": { + "line": 77, + "column": 31 + }, + "end": { + "line": 79, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1944, + "end": 1957, + "loc": { + "start": { + "line": 77, + "column": 15 + }, + "end": { + "line": 77, + "column": 28 + }, + "identifierName": "pipeStringify" + }, + "name": "pipeStringify" + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 1986, + "end": 2018, + "loc": { + "start": { + "line": 77, + "column": 57 + }, + "end": { + "line": 79, + "column": 1 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 1990, + "end": 2016, + "loc": { + "start": { + "line": 78, + "column": 2 + }, + "end": { + "line": 78, + "column": 28 + } + }, + "argument": { + "type": "NewExpression", + "start": 1996, + "end": 2016, + "loc": { + "start": { + "line": 78, + "column": 8 + }, + "end": { + "line": 78, + "column": 28 + } + }, + "callee": { + "type": "Identifier", + "start": 2000, + "end": 2014, + "loc": { + "start": { + "line": 78, + "column": 12 + }, + "end": { + "line": 78, + "column": 26 + }, + "identifierName": "NotImplemented" + }, + "name": "NotImplemented" + }, + "arguments": [] + } + } + ], + "directives": [] + } + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.pipeStringify - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1802, + "end": 1928, + "loc": { + "start": { + "line": 72, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 2020, + "end": 2041, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 81, + "column": 21 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2020, + "end": 2041, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 81, + "column": 21 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2020, + "end": 2034, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 81, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 2020, + "end": 2026, + "loc": { + "start": { + "line": 81, + "column": 0 + }, + "end": { + "line": 81, + "column": 6 + }, + "identifierName": "module" + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 2027, + "end": 2034, + "loc": { + "start": { + "line": 81, + "column": 7 + }, + "end": { + "line": 81, + "column": 14 + }, + "identifierName": "exports" + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 2037, + "end": 2041, + "loc": { + "start": { + "line": 81, + "column": 17 + }, + "end": { + "line": 81, + "column": 21 + }, + "identifierName": "Base" + }, + "name": "Base" + } + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Base class for strategies around the Parser\n * Every function that haven't been implemented\n * will throw an NotImplementedError\n *\n * @constructor\n ", + "start": 113, + "end": 271, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.stringify - receives * form of data and turns it into a string\n *\n * @param {*} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 293, + "end": 490, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.parse - receives an string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 587, + "end": 790, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.pipe - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 879, + "end": 996, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.valid - checks if a given value is valid in desired format using the implemented method parse(), ignoring any exception\n *\n * @param {object} options - any option accepted for the implemented method parse()\n * @returns {boolean} wether or not the given data is a valid format\n ", + "start": 1070, + "end": 1371, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.pipeParse - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1596, + "end": 1718, + "loc": { + "start": { + "line": 63, + "column": 0 + }, + "end": { + "line": 67, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.pipeStringify - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1802, + "end": 1928, + "loc": { + "start": { + "line": 72, + "column": 0 + }, + "end": { + "line": 76, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 0, + "end": 5, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NotImplemented", + "start": 6, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 6 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 21, + "end": 22, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 23, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 23 + }, + "end": { + "line": 1, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../errors/NotImplemented", + "start": 31, + "end": 57, + "loc": { + "start": { + "line": 1, + "column": 31 + }, + "end": { + "line": 1, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 57, + "end": 58, + "loc": { + "start": { + "line": 1, + "column": 57 + }, + "end": { + "line": 1, + "column": 58 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 59, + "end": 64, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ParserError", + "start": 65, + "end": 76, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 77, + "end": 78, + "loc": { + "start": { + "line": 2, + "column": 18 + }, + "end": { + "line": 2, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 79, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 86, + "end": 87, + "loc": { + "start": { + "line": 2, + "column": 27 + }, + "end": { + "line": 2, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../errors/ParserError", + "start": 87, + "end": 110, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 51 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 110, + "end": 111, + "loc": { + "start": { + "line": 2, + "column": 51 + }, + "end": { + "line": 2, + "column": 52 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base class for strategies around the Parser\n * Every function that haven't been implemented\n * will throw an NotImplementedError\n *\n * @constructor\n ", + "start": 113, + "end": 271, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 10, + "column": 3 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 272, + "end": 280, + "loc": { + "start": { + "line": 11, + "column": 0 + }, + "end": { + "line": 11, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Base", + "start": 281, + "end": 285, + "loc": { + "start": { + "line": 11, + "column": 9 + }, + "end": { + "line": 11, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 286, + "end": 287, + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 15 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 287, + "end": 288, + "loc": { + "start": { + "line": 11, + "column": 15 + }, + "end": { + "line": 11, + "column": 16 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 289, + "end": 290, + "loc": { + "start": { + "line": 11, + "column": 17 + }, + "end": { + "line": 11, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 290, + "end": 291, + "loc": { + "start": { + "line": 11, + "column": 18 + }, + "end": { + "line": 11, + "column": 19 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.stringify - receives * form of data and turns it into a string\n *\n * @param {*} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 293, + "end": 490, + "loc": { + "start": { + "line": 13, + "column": 0 + }, + "end": { + "line": 19, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Base", + "start": 491, + "end": 495, + "loc": { + "start": { + "line": 20, + "column": 0 + }, + "end": { + "line": 20, + "column": 4 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 495, + "end": 496, + "loc": { + "start": { + "line": 20, + "column": 4 + }, + "end": { + "line": 20, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 496, + "end": 505, + "loc": { + "start": { + "line": 20, + "column": 5 + }, + "end": { + "line": 20, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 505, + "end": 506, + "loc": { + "start": { + "line": 20, + "column": 14 + }, + "end": { + "line": 20, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 506, + "end": 515, + "loc": { + "start": { + "line": 20, + "column": 15 + }, + "end": { + "line": 20, + "column": 24 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 516, + "end": 517, + "loc": { + "start": { + "line": 20, + "column": 25 + }, + "end": { + "line": 20, + "column": 26 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 518, + "end": 526, + "loc": { + "start": { + "line": 20, + "column": 27 + }, + "end": { + "line": 20, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 527, + "end": 536, + "loc": { + "start": { + "line": 20, + "column": 36 + }, + "end": { + "line": 20, + "column": 45 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 537, + "end": 538, + "loc": { + "start": { + "line": 20, + "column": 46 + }, + "end": { + "line": 20, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 538, + "end": 542, + "loc": { + "start": { + "line": 20, + "column": 47 + }, + "end": { + "line": 20, + "column": 51 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 542, + "end": 543, + "loc": { + "start": { + "line": 20, + "column": 51 + }, + "end": { + "line": 20, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 544, + "end": 551, + "loc": { + "start": { + "line": 20, + "column": 53 + }, + "end": { + "line": 20, + "column": 60 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 551, + "end": 552, + "loc": { + "start": { + "line": 20, + "column": 60 + }, + "end": { + "line": 20, + "column": 61 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 553, + "end": 554, + "loc": { + "start": { + "line": 20, + "column": 62 + }, + "end": { + "line": 20, + "column": 63 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 557, + "end": 562, + "loc": { + "start": { + "line": 21, + "column": 2 + }, + "end": { + "line": 21, + "column": 7 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 563, + "end": 566, + "loc": { + "start": { + "line": 21, + "column": 8 + }, + "end": { + "line": 21, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NotImplemented", + "start": 567, + "end": 581, + "loc": { + "start": { + "line": 21, + "column": 12 + }, + "end": { + "line": 21, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 581, + "end": 582, + "loc": { + "start": { + "line": 21, + "column": 26 + }, + "end": { + "line": 21, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 582, + "end": 583, + "loc": { + "start": { + "line": 21, + "column": 27 + }, + "end": { + "line": 21, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 584, + "end": 585, + "loc": { + "start": { + "line": 22, + "column": 0 + }, + "end": { + "line": 22, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.parse - receives an string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 587, + "end": 790, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 30, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Base", + "start": 791, + "end": 795, + "loc": { + "start": { + "line": 31, + "column": 0 + }, + "end": { + "line": 31, + "column": 4 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 795, + "end": 796, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 796, + "end": 805, + "loc": { + "start": { + "line": 31, + "column": 5 + }, + "end": { + "line": 31, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 805, + "end": 806, + "loc": { + "start": { + "line": 31, + "column": 14 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 806, + "end": 811, + "loc": { + "start": { + "line": 31, + "column": 15 + }, + "end": { + "line": 31, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 812, + "end": 813, + "loc": { + "start": { + "line": 31, + "column": 21 + }, + "end": { + "line": 31, + "column": 22 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 814, + "end": 822, + "loc": { + "start": { + "line": 31, + "column": 23 + }, + "end": { + "line": 31, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 823, + "end": 828, + "loc": { + "start": { + "line": 31, + "column": 32 + }, + "end": { + "line": 31, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 829, + "end": 830, + "loc": { + "start": { + "line": 31, + "column": 38 + }, + "end": { + "line": 31, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 830, + "end": 834, + "loc": { + "start": { + "line": 31, + "column": 39 + }, + "end": { + "line": 31, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 834, + "end": 835, + "loc": { + "start": { + "line": 31, + "column": 43 + }, + "end": { + "line": 31, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 836, + "end": 843, + "loc": { + "start": { + "line": 31, + "column": 45 + }, + "end": { + "line": 31, + "column": 52 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 843, + "end": 844, + "loc": { + "start": { + "line": 31, + "column": 52 + }, + "end": { + "line": 31, + "column": 53 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 845, + "end": 846, + "loc": { + "start": { + "line": 31, + "column": 54 + }, + "end": { + "line": 31, + "column": 55 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 849, + "end": 854, + "loc": { + "start": { + "line": 32, + "column": 2 + }, + "end": { + "line": 32, + "column": 7 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 855, + "end": 858, + "loc": { + "start": { + "line": 32, + "column": 8 + }, + "end": { + "line": 32, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NotImplemented", + "start": 859, + "end": 873, + "loc": { + "start": { + "line": 32, + "column": 12 + }, + "end": { + "line": 32, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 873, + "end": 874, + "loc": { + "start": { + "line": 32, + "column": 26 + }, + "end": { + "line": 32, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 874, + "end": 875, + "loc": { + "start": { + "line": 32, + "column": 27 + }, + "end": { + "line": 32, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 876, + "end": 877, + "loc": { + "start": { + "line": 33, + "column": 0 + }, + "end": { + "line": 33, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.pipe - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 879, + "end": 996, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Base", + "start": 997, + "end": 1001, + "loc": { + "start": { + "line": 40, + "column": 0 + }, + "end": { + "line": 40, + "column": 4 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1001, + "end": 1002, + "loc": { + "start": { + "line": 40, + "column": 4 + }, + "end": { + "line": 40, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 1002, + "end": 1011, + "loc": { + "start": { + "line": 40, + "column": 5 + }, + "end": { + "line": 40, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1011, + "end": 1012, + "loc": { + "start": { + "line": 40, + "column": 14 + }, + "end": { + "line": 40, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pipe", + "start": 1012, + "end": 1016, + "loc": { + "start": { + "line": 40, + "column": 15 + }, + "end": { + "line": 40, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1017, + "end": 1018, + "loc": { + "start": { + "line": 40, + "column": 20 + }, + "end": { + "line": 40, + "column": 21 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 1019, + "end": 1027, + "loc": { + "start": { + "line": 40, + "column": 22 + }, + "end": { + "line": 40, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pipe", + "start": 1028, + "end": 1032, + "loc": { + "start": { + "line": 40, + "column": 31 + }, + "end": { + "line": 40, + "column": 35 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1033, + "end": 1034, + "loc": { + "start": { + "line": 40, + "column": 36 + }, + "end": { + "line": 40, + "column": 37 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1034, + "end": 1035, + "loc": { + "start": { + "line": 40, + "column": 37 + }, + "end": { + "line": 40, + "column": 38 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1036, + "end": 1037, + "loc": { + "start": { + "line": 40, + "column": 39 + }, + "end": { + "line": 40, + "column": 40 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 1040, + "end": 1045, + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 41, + "column": 7 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1046, + "end": 1049, + "loc": { + "start": { + "line": 41, + "column": 8 + }, + "end": { + "line": 41, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NotImplemented", + "start": 1050, + "end": 1064, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1064, + "end": 1065, + "loc": { + "start": { + "line": 41, + "column": 26 + }, + "end": { + "line": 41, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1065, + "end": 1066, + "loc": { + "start": { + "line": 41, + "column": 27 + }, + "end": { + "line": 41, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1067, + "end": 1068, + "loc": { + "start": { + "line": 42, + "column": 0 + }, + "end": { + "line": 42, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Base.prototype.valid - checks if a given value is valid in desired format using the implemented method parse(), ignoring any exception\n *\n * @param {object} options - any option accepted for the implemented method parse()\n * @returns {boolean} wether or not the given data is a valid format\n ", + "start": 1070, + "end": 1371, + "loc": { + "start": { + "line": 44, + "column": 0 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Base", + "start": 1372, + "end": 1376, + "loc": { + "start": { + "line": 50, + "column": 0 + }, + "end": { + "line": 50, + "column": 4 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1376, + "end": 1377, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 1377, + "end": 1386, + "loc": { + "start": { + "line": 50, + "column": 5 + }, + "end": { + "line": 50, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1386, + "end": 1387, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 15 } } }, @@ -1278,16 +4761,16 @@ "postfix": false, "binop": null }, - "value": "NotImplemented", - "start": 6, - "end": 20, + "value": "valid", + "start": 1387, + "end": 1392, "loc": { "start": { - "line": 1, - "column": 6 + "line": 50, + "column": 15 }, "end": { - "line": 1, + "line": 50, "column": 20 } } @@ -1306,22 +4789,23 @@ "updateContext": null }, "value": "=", - "start": 21, - "end": 22, + "start": 1393, + "end": 1394, "loc": { "start": { - "line": 1, + "line": 50, "column": 21 }, "end": { - "line": 1, + "line": 50, "column": 22 } } }, { "type": { - "label": "name", + "label": "function", + "keyword": "function", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -1331,17 +4815,43 @@ "postfix": false, "binop": null }, - "value": "require", - "start": 23, - "end": 30, + "value": "function", + "start": 1395, + "end": 1403, "loc": { "start": { - "line": 1, + "line": 50, "column": 23 }, "end": { - "line": 1, - "column": 30 + "line": 50, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "valid", + "start": 1404, + "end": 1409, + "loc": { + "start": { + "line": 50, + "column": 32 + }, + "end": { + "line": 50, + "column": 37 } } }, @@ -1357,22 +4867,22 @@ "postfix": false, "binop": null }, - "start": 30, - "end": 31, + "start": 1410, + "end": 1411, "loc": { "start": { - "line": 1, - "column": 30 + "line": 50, + "column": 38 }, "end": { - "line": 1, - "column": 31 + "line": 50, + "column": 39 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -1380,19 +4890,147 @@ "isAssign": false, "prefix": false, "postfix": false, + "binop": null + }, + "value": "data", + "start": 1411, + "end": 1415, + "loc": { + "start": { + "line": 50, + "column": 39 + }, + "end": { + "line": 50, + "column": 43 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, "binop": null, "updateContext": null }, - "value": "../errors/NotImplemented", - "start": 31, - "end": 57, + "start": 1415, + "end": 1416, "loc": { "start": { - "line": 1, - "column": 31 + "line": 50, + "column": 43 }, "end": { - "line": 1, + "line": 50, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1417, + "end": 1424, + "loc": { + "start": { + "line": 50, + "column": 45 + }, + "end": { + "line": 50, + "column": 52 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1425, + "end": 1426, + "loc": { + "start": { + "line": 50, + "column": 53 + }, + "end": { + "line": 50, + "column": 54 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1427, + "end": 1428, + "loc": { + "start": { + "line": 50, + "column": 55 + }, + "end": { + "line": 50, + "column": 56 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1428, + "end": 1429, + "loc": { + "start": { + "line": 50, + "column": 56 + }, + "end": { + "line": 50, "column": 57 } } @@ -1409,59 +5047,148 @@ "postfix": false, "binop": null }, - "start": 57, - "end": 58, + "start": 1429, + "end": 1430, "loc": { "start": { - "line": 1, + "line": 50, "column": 57 }, "end": { - "line": 1, + "line": 50, "column": 58 } } }, { - "type": "CommentBlock", - "value": "*\n * Base class for strategies around the Parser\n * Every function that haven't been implemented\n * will throw an NotImplementedError\n *\n * @constructor\n ", - "start": 60, - "end": 218, + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1431, + "end": 1432, "loc": { "start": { - "line": 3, - "column": 0 + "line": 50, + "column": 59 }, "end": { - "line": 9, - "column": 3 + "line": 50, + "column": 60 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "try", + "keyword": "try", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "try", + "start": 1435, + "end": 1438, + "loc": { + "start": { + "line": 51, + "column": 2 + }, + "end": { + "line": 51, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1439, + "end": 1440, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 7 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1445, + "end": 1449, + "loc": { + "start": { + "line": 52, + "column": 4 + }, + "end": { + "line": 52, + "column": 8 + } + } + }, + { + "type": { + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "function", - "start": 219, - "end": 227, + "start": 1449, + "end": 1450, "loc": { "start": { - "line": 10, - "column": 0 + "line": 52, + "column": 8 }, "end": { - "line": 10, - "column": 8 + "line": 52, + "column": 9 } } }, @@ -1477,17 +5204,17 @@ "postfix": false, "binop": null }, - "value": "Base", - "start": 228, - "end": 232, + "value": "parse", + "start": 1450, + "end": 1455, "loc": { "start": { - "line": 10, + "line": 52, "column": 9 }, "end": { - "line": 10, - "column": 13 + "line": 52, + "column": 14 } } }, @@ -1503,24 +5230,24 @@ "postfix": false, "binop": null }, - "start": 233, - "end": 234, + "start": 1455, + "end": 1456, "loc": { "start": { - "line": 10, + "line": 52, "column": 14 }, "end": { - "line": 10, + "line": 52, "column": 15 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -1528,49 +5255,51 @@ "postfix": false, "binop": null }, - "start": 234, - "end": 235, + "value": "data", + "start": 1456, + "end": 1460, "loc": { "start": { - "line": 10, + "line": 52, "column": 15 }, "end": { - "line": 10, - "column": 16 + "line": 52, + "column": 19 } } }, { "type": { - "label": "{", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 236, - "end": 237, + "start": 1460, + "end": 1461, "loc": { "start": { - "line": 10, - "column": 17 + "line": 52, + "column": 19 }, "end": { - "line": 10, - "column": 18 + "line": 52, + "column": 20 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -1578,66 +5307,79 @@ "postfix": false, "binop": null }, - "start": 237, - "end": 238, + "value": "options", + "start": 1462, + "end": 1469, "loc": { "start": { - "line": 10, - "column": 18 + "line": 52, + "column": 21 }, "end": { - "line": 10, - "column": 19 + "line": 52, + "column": 28 } } }, { - "type": "CommentBlock", - "value": "*\n * Base.prototype.stringify - receives * form of data and turns it into a string\n *\n * @param {*} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 240, - "end": 437, + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1469, + "end": 1470, "loc": { "start": { - "line": 12, - "column": 0 + "line": 52, + "column": 28 }, "end": { - "line": 18, - "column": 3 + "line": 52, + "column": 29 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Base", - "start": 438, - "end": 442, + "value": "return", + "start": 1475, + "end": 1481, "loc": { "start": { - "line": 19, - "column": 0 + "line": 53, + "column": 4 }, "end": { - "line": 19, - "column": 4 + "line": 53, + "column": 10 } } }, { "type": { - "label": ".", + "label": "true", + "keyword": "true", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -1646,24 +5388,25 @@ "binop": null, "updateContext": null }, - "start": 442, - "end": 443, + "value": "true", + "start": 1482, + "end": 1486, "loc": { "start": { - "line": 19, - "column": 4 + "line": 53, + "column": 11 }, "end": { - "line": 19, - "column": 5 + "line": 53, + "column": 15 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -1671,23 +5414,23 @@ "postfix": false, "binop": null }, - "value": "prototype", - "start": 443, - "end": 452, + "start": 1489, + "end": 1490, "loc": { "start": { - "line": 19, - "column": 5 + "line": 54, + "column": 2 }, "end": { - "line": 19, - "column": 14 + "line": 54, + "column": 3 } } }, { "type": { - "label": ".", + "label": "catch", + "keyword": "catch", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -1698,16 +5441,42 @@ "binop": null, "updateContext": null }, - "start": 452, - "end": 453, + "value": "catch", + "start": 1491, + "end": 1496, "loc": { "start": { - "line": 19, - "column": 14 + "line": 54, + "column": 4 }, "end": { - "line": 19, - "column": 15 + "line": 54, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1497, + "end": 1498, + "loc": { + "start": { + "line": 54, + "column": 10 + }, + "end": { + "line": 54, + "column": 11 } } }, @@ -1723,52 +5492,49 @@ "postfix": false, "binop": null }, - "value": "stringify", - "start": 453, - "end": 462, + "value": "error", + "start": 1498, + "end": 1503, "loc": { "start": { - "line": 19, - "column": 15 + "line": 54, + "column": 11 }, "end": { - "line": 19, - "column": 24 + "line": 54, + "column": 16 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 463, - "end": 464, + "start": 1503, + "end": 1504, "loc": { "start": { - "line": 19, - "column": 25 + "line": 54, + "column": 16 }, "end": { - "line": 19, - "column": 26 + "line": 54, + "column": 17 } } }, { "type": { - "label": "function", - "keyword": "function", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -1777,43 +5543,44 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 465, - "end": 473, + "start": 1505, + "end": 1506, "loc": { "start": { - "line": 19, - "column": 27 + "line": 54, + "column": 18 }, "end": { - "line": 19, - "column": 35 + "line": 54, + "column": 19 } } }, { "type": { - "label": "name", + "label": "if", + "keyword": "if", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "stringify", - "start": 474, - "end": 483, + "value": "if", + "start": 1511, + "end": 1513, "loc": { "start": { - "line": 19, - "column": 36 + "line": 55, + "column": 4 }, "end": { - "line": 19, - "column": 45 + "line": 55, + "column": 6 } } }, @@ -1829,16 +5596,16 @@ "postfix": false, "binop": null }, - "start": 484, - "end": 485, + "start": 1514, + "end": 1515, "loc": { "start": { - "line": 19, - "column": 46 + "line": 55, + "column": 7 }, "end": { - "line": 19, - "column": 47 + "line": 55, + "column": 8 } } }, @@ -1854,23 +5621,24 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 485, - "end": 489, + "value": "error", + "start": 1515, + "end": 1520, "loc": { "start": { - "line": 19, - "column": 47 + "line": 55, + "column": 8 }, "end": { - "line": 19, - "column": 51 + "line": 55, + "column": 13 } } }, { "type": { - "label": ",", + "label": "instanceof", + "keyword": "instanceof", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -1878,19 +5646,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, + "binop": 7, "updateContext": null }, - "start": 489, - "end": 490, + "value": "instanceof", + "start": 1521, + "end": 1531, "loc": { "start": { - "line": 19, - "column": 51 + "line": 55, + "column": 14 }, "end": { - "line": 19, - "column": 52 + "line": 55, + "column": 24 } } }, @@ -1906,17 +5675,17 @@ "postfix": false, "binop": null }, - "value": "options", - "start": 491, - "end": 498, + "value": "ParserError", + "start": 1532, + "end": 1543, "loc": { "start": { - "line": 19, - "column": 53 + "line": 55, + "column": 25 }, "end": { - "line": 19, - "column": 60 + "line": 55, + "column": 36 } } }, @@ -1932,16 +5701,16 @@ "postfix": false, "binop": null }, - "start": 498, - "end": 499, + "start": 1543, + "end": 1544, "loc": { "start": { - "line": 19, - "column": 60 + "line": 55, + "column": 36 }, "end": { - "line": 19, - "column": 61 + "line": 55, + "column": 37 } } }, @@ -1957,23 +5726,23 @@ "postfix": false, "binop": null }, - "start": 500, - "end": 501, + "start": 1545, + "end": 1546, "loc": { "start": { - "line": 19, - "column": 62 + "line": 55, + "column": 38 }, "end": { - "line": 19, - "column": 63 + "line": 55, + "column": 39 } } }, { "type": { - "label": "throw", - "keyword": "throw", + "label": "return", + "keyword": "return", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, @@ -1984,78 +5753,105 @@ "binop": null, "updateContext": null }, - "value": "throw", - "start": 504, - "end": 509, + "value": "return", + "start": 1553, + "end": 1559, "loc": { "start": { - "line": 20, - "column": 2 + "line": 56, + "column": 6 }, "end": { - "line": 20, - "column": 7 + "line": 56, + "column": 12 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, + "label": "false", + "keyword": "false", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 1560, + "end": 1565, + "loc": { + "start": { + "line": 56, + "column": 13 + }, + "end": { + "line": 56, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null }, - "value": "new", - "start": 510, - "end": 513, + "start": 1570, + "end": 1571, "loc": { "start": { - "line": 20, - "column": 8 + "line": 57, + "column": 4 }, "end": { - "line": 20, - "column": 11 + "line": 57, + "column": 5 } } }, { "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "NotImplemented", - "start": 514, - "end": 528, + "value": "throw", + "start": 1577, + "end": 1582, "loc": { "start": { - "line": 20, - "column": 12 + "line": 59, + "column": 4 }, "end": { - "line": 20, - "column": 26 + "line": 59, + "column": 9 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -2064,22 +5860,23 @@ "postfix": false, "binop": null }, - "start": 528, - "end": 529, + "value": "error", + "start": 1583, + "end": 1588, "loc": { "start": { - "line": 20, - "column": 26 + "line": 59, + "column": 10 }, "end": { - "line": 20, - "column": 27 + "line": 59, + "column": 15 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -2089,16 +5886,16 @@ "postfix": false, "binop": null }, - "start": 529, - "end": 530, + "start": 1591, + "end": 1592, "loc": { "start": { - "line": 20, - "column": 27 + "line": 60, + "column": 2 }, "end": { - "line": 20, - "column": 28 + "line": 60, + "column": 3 } } }, @@ -2114,31 +5911,31 @@ "postfix": false, "binop": null }, - "start": 531, - "end": 532, + "start": 1593, + "end": 1594, "loc": { "start": { - "line": 21, + "line": 61, "column": 0 }, "end": { - "line": 21, + "line": 61, "column": 1 } } }, { "type": "CommentBlock", - "value": "*\n * Base.prototype.parse - receives an string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 534, - "end": 737, + "value": "*\n * Base.prototype.pipeParse - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1596, + "end": 1718, "loc": { "start": { - "line": 23, + "line": 63, "column": 0 }, "end": { - "line": 29, + "line": 67, "column": 3 } } @@ -2156,15 +5953,15 @@ "binop": null }, "value": "Base", - "start": 738, - "end": 742, + "start": 1719, + "end": 1723, "loc": { "start": { - "line": 30, + "line": 68, "column": 0 }, "end": { - "line": 30, + "line": 68, "column": 4 } } @@ -2182,15 +5979,15 @@ "binop": null, "updateContext": null }, - "start": 742, - "end": 743, + "start": 1723, + "end": 1724, "loc": { "start": { - "line": 30, + "line": 68, "column": 4 }, "end": { - "line": 30, + "line": 68, "column": 5 } } @@ -2208,15 +6005,15 @@ "binop": null }, "value": "prototype", - "start": 743, - "end": 752, + "start": 1724, + "end": 1733, "loc": { "start": { - "line": 30, + "line": 68, "column": 5 }, "end": { - "line": 30, + "line": 68, "column": 14 } } @@ -2234,15 +6031,15 @@ "binop": null, "updateContext": null }, - "start": 752, - "end": 753, + "start": 1733, + "end": 1734, "loc": { "start": { - "line": 30, + "line": 68, "column": 14 }, "end": { - "line": 30, + "line": 68, "column": 15 } } @@ -2259,17 +6056,17 @@ "postfix": false, "binop": null }, - "value": "parse", - "start": 753, - "end": 758, + "value": "pipeParse", + "start": 1734, + "end": 1743, "loc": { "start": { - "line": 30, + "line": 68, "column": 15 }, "end": { - "line": 30, - "column": 20 + "line": 68, + "column": 24 } } }, @@ -2287,16 +6084,16 @@ "updateContext": null }, "value": "=", - "start": 759, - "end": 760, + "start": 1744, + "end": 1745, "loc": { "start": { - "line": 30, - "column": 21 + "line": 68, + "column": 25 }, "end": { - "line": 30, - "column": 22 + "line": 68, + "column": 26 } } }, @@ -2314,16 +6111,16 @@ "binop": null }, "value": "function", - "start": 761, - "end": 769, + "start": 1746, + "end": 1754, "loc": { "start": { - "line": 30, - "column": 23 + "line": 68, + "column": 27 }, "end": { - "line": 30, - "column": 31 + "line": 68, + "column": 35 } } }, @@ -2339,17 +6136,17 @@ "postfix": false, "binop": null }, - "value": "parse", - "start": 770, - "end": 775, + "value": "pipeParse", + "start": 1755, + "end": 1764, "loc": { "start": { - "line": 30, - "column": 32 + "line": 68, + "column": 36 }, "end": { - "line": 30, - "column": 37 + "line": 68, + "column": 45 } } }, @@ -2365,94 +6162,16 @@ "postfix": false, "binop": null }, - "start": 776, - "end": 777, - "loc": { - "start": { - "line": 30, - "column": 38 - }, - "end": { - "line": 30, - "column": 39 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 777, - "end": 781, - "loc": { - "start": { - "line": 30, - "column": 39 - }, - "end": { - "line": 30, - "column": 43 - } - } - }, - { - "type": { - "label": ",", - "beforeExpr": true, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "start": 781, - "end": 782, - "loc": { - "start": { - "line": 30, - "column": 43 - }, - "end": { - "line": 30, - "column": 44 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "options", - "start": 783, - "end": 790, + "start": 1765, + "end": 1766, "loc": { "start": { - "line": 30, - "column": 45 + "line": 68, + "column": 46 }, "end": { - "line": 30, - "column": 52 + "line": 68, + "column": 47 } } }, @@ -2468,16 +6187,16 @@ "postfix": false, "binop": null }, - "start": 790, - "end": 791, + "start": 1766, + "end": 1767, "loc": { "start": { - "line": 30, - "column": 52 + "line": 68, + "column": 47 }, "end": { - "line": 30, - "column": 53 + "line": 68, + "column": 48 } } }, @@ -2493,16 +6212,16 @@ "postfix": false, "binop": null }, - "start": 792, - "end": 793, + "start": 1768, + "end": 1769, "loc": { "start": { - "line": 30, - "column": 54 + "line": 68, + "column": 49 }, "end": { - "line": 30, - "column": 55 + "line": 68, + "column": 50 } } }, @@ -2521,15 +6240,15 @@ "updateContext": null }, "value": "throw", - "start": 796, - "end": 801, + "start": 1772, + "end": 1777, "loc": { "start": { - "line": 31, + "line": 69, "column": 2 }, "end": { - "line": 31, + "line": 69, "column": 7 } } @@ -2549,15 +6268,15 @@ "updateContext": null }, "value": "new", - "start": 802, - "end": 805, + "start": 1778, + "end": 1781, "loc": { "start": { - "line": 31, + "line": 69, "column": 8 }, "end": { - "line": 31, + "line": 69, "column": 11 } } @@ -2575,15 +6294,15 @@ "binop": null }, "value": "NotImplemented", - "start": 806, - "end": 820, + "start": 1782, + "end": 1796, "loc": { "start": { - "line": 31, + "line": 69, "column": 12 }, "end": { - "line": 31, + "line": 69, "column": 26 } } @@ -2600,15 +6319,15 @@ "postfix": false, "binop": null }, - "start": 820, - "end": 821, + "start": 1796, + "end": 1797, "loc": { "start": { - "line": 31, + "line": 69, "column": 26 }, "end": { - "line": 31, + "line": 69, "column": 27 } } @@ -2625,15 +6344,15 @@ "postfix": false, "binop": null }, - "start": 821, - "end": 822, + "start": 1797, + "end": 1798, "loc": { "start": { - "line": 31, + "line": 69, "column": 27 }, "end": { - "line": 31, + "line": 69, "column": 28 } } @@ -2650,31 +6369,31 @@ "postfix": false, "binop": null }, - "start": 823, - "end": 824, + "start": 1799, + "end": 1800, "loc": { "start": { - "line": 32, + "line": 70, "column": 0 }, "end": { - "line": 32, + "line": 70, "column": 1 } } }, { "type": "CommentBlock", - "value": "*\n * Base.prototype.pipe - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", - "start": 826, - "end": 943, + "value": "*\n * Base.prototype.pipeStringify - prototype for streams\n *\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1802, + "end": 1928, "loc": { "start": { - "line": 34, + "line": 72, "column": 0 }, "end": { - "line": 38, + "line": 76, "column": 3 } } @@ -2692,15 +6411,15 @@ "binop": null }, "value": "Base", - "start": 944, - "end": 948, + "start": 1929, + "end": 1933, "loc": { "start": { - "line": 39, + "line": 77, "column": 0 }, "end": { - "line": 39, + "line": 77, "column": 4 } } @@ -2718,15 +6437,15 @@ "binop": null, "updateContext": null }, - "start": 948, - "end": 949, + "start": 1933, + "end": 1934, "loc": { "start": { - "line": 39, + "line": 77, "column": 4 }, "end": { - "line": 39, + "line": 77, "column": 5 } } @@ -2744,15 +6463,15 @@ "binop": null }, "value": "prototype", - "start": 949, - "end": 958, + "start": 1934, + "end": 1943, "loc": { "start": { - "line": 39, + "line": 77, "column": 5 }, "end": { - "line": 39, + "line": 77, "column": 14 } } @@ -2770,15 +6489,15 @@ "binop": null, "updateContext": null }, - "start": 958, - "end": 959, + "start": 1943, + "end": 1944, "loc": { "start": { - "line": 39, + "line": 77, "column": 14 }, "end": { - "line": 39, + "line": 77, "column": 15 } } @@ -2795,17 +6514,17 @@ "postfix": false, "binop": null }, - "value": "pipe", - "start": 959, - "end": 963, + "value": "pipeStringify", + "start": 1944, + "end": 1957, "loc": { "start": { - "line": 39, + "line": 77, "column": 15 }, "end": { - "line": 39, - "column": 19 + "line": 77, + "column": 28 } } }, @@ -2823,16 +6542,16 @@ "updateContext": null }, "value": "=", - "start": 964, - "end": 965, + "start": 1958, + "end": 1959, "loc": { "start": { - "line": 39, - "column": 20 + "line": 77, + "column": 29 }, "end": { - "line": 39, - "column": 21 + "line": 77, + "column": 30 } } }, @@ -2850,16 +6569,16 @@ "binop": null }, "value": "function", - "start": 966, - "end": 974, + "start": 1960, + "end": 1968, "loc": { "start": { - "line": 39, - "column": 22 + "line": 77, + "column": 31 }, "end": { - "line": 39, - "column": 30 + "line": 77, + "column": 39 } } }, @@ -2875,17 +6594,17 @@ "postfix": false, "binop": null }, - "value": "pipe", - "start": 975, - "end": 979, + "value": "pipeStringify", + "start": 1969, + "end": 1982, "loc": { "start": { - "line": 39, - "column": 31 + "line": 77, + "column": 40 }, "end": { - "line": 39, - "column": 35 + "line": 77, + "column": 53 } } }, @@ -2901,16 +6620,16 @@ "postfix": false, "binop": null }, - "start": 980, - "end": 981, + "start": 1983, + "end": 1984, "loc": { "start": { - "line": 39, - "column": 36 + "line": 77, + "column": 54 }, "end": { - "line": 39, - "column": 37 + "line": 77, + "column": 55 } } }, @@ -2926,16 +6645,16 @@ "postfix": false, "binop": null }, - "start": 981, - "end": 982, + "start": 1984, + "end": 1985, "loc": { "start": { - "line": 39, - "column": 37 + "line": 77, + "column": 55 }, "end": { - "line": 39, - "column": 38 + "line": 77, + "column": 56 } } }, @@ -2951,16 +6670,16 @@ "postfix": false, "binop": null }, - "start": 983, - "end": 984, + "start": 1986, + "end": 1987, "loc": { "start": { - "line": 39, - "column": 39 + "line": 77, + "column": 57 }, "end": { - "line": 39, - "column": 40 + "line": 77, + "column": 58 } } }, @@ -2979,15 +6698,15 @@ "updateContext": null }, "value": "throw", - "start": 987, - "end": 992, + "start": 1990, + "end": 1995, "loc": { "start": { - "line": 40, + "line": 78, "column": 2 }, "end": { - "line": 40, + "line": 78, "column": 7 } } @@ -3007,15 +6726,15 @@ "updateContext": null }, "value": "new", - "start": 993, - "end": 996, + "start": 1996, + "end": 1999, "loc": { "start": { - "line": 40, + "line": 78, "column": 8 }, "end": { - "line": 40, + "line": 78, "column": 11 } } @@ -3033,15 +6752,15 @@ "binop": null }, "value": "NotImplemented", - "start": 997, - "end": 1011, + "start": 2000, + "end": 2014, "loc": { "start": { - "line": 40, + "line": 78, "column": 12 }, "end": { - "line": 40, + "line": 78, "column": 26 } } @@ -3058,15 +6777,15 @@ "postfix": false, "binop": null }, - "start": 1011, - "end": 1012, + "start": 2014, + "end": 2015, "loc": { "start": { - "line": 40, + "line": 78, "column": 26 }, "end": { - "line": 40, + "line": 78, "column": 27 } } @@ -3083,15 +6802,15 @@ "postfix": false, "binop": null }, - "start": 1012, - "end": 1013, + "start": 2015, + "end": 2016, "loc": { "start": { - "line": 40, + "line": 78, "column": 27 }, "end": { - "line": 40, + "line": 78, "column": 28 } } @@ -3108,15 +6827,15 @@ "postfix": false, "binop": null }, - "start": 1014, - "end": 1015, + "start": 2017, + "end": 2018, "loc": { "start": { - "line": 41, + "line": 79, "column": 0 }, "end": { - "line": 41, + "line": 79, "column": 1 } } @@ -3134,15 +6853,15 @@ "binop": null }, "value": "module", - "start": 1017, - "end": 1023, + "start": 2020, + "end": 2026, "loc": { "start": { - "line": 43, + "line": 81, "column": 0 }, "end": { - "line": 43, + "line": 81, "column": 6 } } @@ -3160,15 +6879,15 @@ "binop": null, "updateContext": null }, - "start": 1023, - "end": 1024, + "start": 2026, + "end": 2027, "loc": { "start": { - "line": 43, + "line": 81, "column": 6 }, "end": { - "line": 43, + "line": 81, "column": 7 } } @@ -3186,15 +6905,15 @@ "binop": null }, "value": "exports", - "start": 1024, - "end": 1031, + "start": 2027, + "end": 2034, "loc": { "start": { - "line": 43, + "line": 81, "column": 7 }, "end": { - "line": 43, + "line": 81, "column": 14 } } @@ -3213,15 +6932,15 @@ "updateContext": null }, "value": "=", - "start": 1032, - "end": 1033, + "start": 2035, + "end": 2036, "loc": { "start": { - "line": 43, + "line": 81, "column": 15 }, "end": { - "line": 43, + "line": 81, "column": 16 } } @@ -3239,15 +6958,15 @@ "binop": null }, "value": "Base", - "start": 1034, - "end": 1038, + "start": 2037, + "end": 2041, "loc": { "start": { - "line": 43, + "line": 81, "column": 17 }, "end": { - "line": 43, + "line": 81, "column": 21 } } @@ -3265,15 +6984,15 @@ "binop": null, "updateContext": null }, - "start": 1039, - "end": 1039, + "start": 2042, + "end": 2042, "loc": { "start": { - "line": 44, + "line": 82, "column": 0 }, "end": { - "line": 44, + "line": 82, "column": 0 } } diff --git a/docs/ast/source/strategies/Csv.js.json b/docs/ast/source/strategies/Csv.js.json index d7c9ca0..9915527 100644 --- a/docs/ast/source/strategies/Csv.js.json +++ b/docs/ast/source/strategies/Csv.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 1880, + "end": 2261, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 71, + "line": 87, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 1880, + "end": 2261, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 71, + "line": 87, "column": 0 } }, @@ -126,36 +126,120 @@ }, "value": "./Base" } - ], - "trailingComments": null - }, - "trailingComments": null + ] + } } ], - "kind": "const", - "trailingComments": [ + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 31, + "end": 83, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 52 + } + }, + "declarations": [ { - "type": "CommentLine", - "value": " const ParserError = require('../errors/ParserError')", - "start": 31, - "end": 86, + "type": "VariableDeclarator", + "start": 37, + "end": 83, "loc": { "start": { "line": 2, - "column": 0 + "column": 6 }, "end": { "line": 2, - "column": 55 + "column": 52 } + }, + "id": { + "type": "Identifier", + "start": 37, + "end": 48, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 17 + }, + "identifierName": "ParserError" + }, + "name": "ParserError" + }, + "init": { + "type": "CallExpression", + "start": 51, + "end": 83, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 52 + } + }, + "callee": { + "type": "Identifier", + "start": 51, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 27 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 59, + "end": 82, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 51 + } + }, + "extra": { + "rawValue": "../errors/ParserError", + "raw": "'../errors/ParserError'" + }, + "value": "../errors/ParserError" + } + ] } } - ] + ], + "kind": "const" }, { "type": "VariableDeclaration", - "start": 87, - "end": 134, + "start": 84, + "end": 131, "loc": { "start": { "line": 3, @@ -169,8 +253,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 93, - "end": 134, + "start": 90, + "end": 131, "loc": { "start": { "line": 3, @@ -183,8 +267,8 @@ }, "id": { "type": "Identifier", - "start": 93, - "end": 102, + "start": 90, + "end": 99, "loc": { "start": { "line": 3, @@ -196,13 +280,12 @@ }, "identifierName": "csvParser" }, - "name": "csvParser", - "leadingComments": null + "name": "csvParser" }, "init": { "type": "CallExpression", - "start": 105, - "end": 134, + "start": 102, + "end": 131, "loc": { "start": { "line": 3, @@ -215,8 +298,8 @@ }, "callee": { "type": "Identifier", - "start": 105, - "end": 112, + "start": 102, + "end": 109, "loc": { "start": { "line": 3, @@ -233,8 +316,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 113, - "end": 133, + "start": 110, + "end": 130, "loc": { "start": { "line": 3, @@ -252,34 +335,15 @@ "value": "csv-parse/lib/sync" } ] - }, - "leadingComments": null - } - ], - "kind": "const", - "leadingComments": [ - { - "type": "CommentLine", - "value": " const ParserError = require('../errors/ParserError')", - "start": 31, - "end": 86, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 55 - } } } - ] + ], + "kind": "const" }, { "type": "VariableDeclaration", - "start": 135, - "end": 189, + "start": 132, + "end": 186, "loc": { "start": { "line": 4, @@ -293,8 +357,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 141, - "end": 189, + "start": 138, + "end": 186, "loc": { "start": { "line": 4, @@ -307,8 +371,8 @@ }, "id": { "type": "Identifier", - "start": 141, - "end": 153, + "start": 138, + "end": 150, "loc": { "start": { "line": 4, @@ -324,8 +388,8 @@ }, "init": { "type": "CallExpression", - "start": 156, - "end": 189, + "start": 153, + "end": 186, "loc": { "start": { "line": 4, @@ -338,8 +402,8 @@ }, "callee": { "type": "Identifier", - "start": 156, - "end": 163, + "start": 153, + "end": 160, "loc": { "start": { "line": 4, @@ -356,8 +420,8 @@ "arguments": [ { "type": "StringLiteral", - "start": 164, - "end": 188, + "start": 161, + "end": 185, "loc": { "start": { "line": 4, @@ -385,8 +449,8 @@ { "type": "CommentBlock", "value": "*\n * Csv - Support for CSV filetype\n *\n * @constructor\n ", - "start": 191, - "end": 251, + "start": 188, + "end": 248, "loc": { "start": { "line": 6, @@ -402,8 +466,8 @@ }, { "type": "FunctionDeclaration", - "start": 252, - "end": 270, + "start": 249, + "end": 267, "loc": { "start": { "line": 11, @@ -416,8 +480,8 @@ }, "id": { "type": "Identifier", - "start": 261, - "end": 264, + "start": 258, + "end": 261, "loc": { "start": { "line": 11, @@ -438,8 +502,8 @@ "params": [], "body": { "type": "BlockStatement", - "start": 268, - "end": 270, + "start": 265, + "end": 267, "loc": { "start": { "line": 11, @@ -457,8 +521,8 @@ { "type": "CommentBlock", "value": "*\n * Csv - Support for CSV filetype\n *\n * @constructor\n ", - "start": 191, - "end": 251, + "start": 188, + "end": 248, "loc": { "start": { "line": 6, @@ -474,8 +538,8 @@ }, { "type": "ExpressionStatement", - "start": 272, - "end": 317, + "start": 269, + "end": 314, "loc": { "start": { "line": 13, @@ -488,8 +552,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 272, - "end": 317, + "start": 269, + "end": 314, "loc": { "start": { "line": 13, @@ -503,8 +567,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 272, - "end": 285, + "start": 269, + "end": 282, "loc": { "start": { "line": 13, @@ -517,8 +581,8 @@ }, "object": { "type": "Identifier", - "start": 272, - "end": 275, + "start": 269, + "end": 272, "loc": { "start": { "line": 13, @@ -534,8 +598,8 @@ }, "property": { "type": "Identifier", - "start": 276, - "end": 285, + "start": 273, + "end": 282, "loc": { "start": { "line": 13, @@ -553,8 +617,8 @@ }, "right": { "type": "CallExpression", - "start": 288, - "end": 317, + "start": 285, + "end": 314, "loc": { "start": { "line": 13, @@ -567,8 +631,8 @@ }, "callee": { "type": "MemberExpression", - "start": 288, - "end": 301, + "start": 285, + "end": 298, "loc": { "start": { "line": 13, @@ -581,8 +645,8 @@ }, "object": { "type": "Identifier", - "start": 288, - "end": 294, + "start": 285, + "end": 291, "loc": { "start": { "line": 13, @@ -598,8 +662,8 @@ }, "property": { "type": "Identifier", - "start": 295, - "end": 301, + "start": 292, + "end": 298, "loc": { "start": { "line": 13, @@ -618,8 +682,8 @@ "arguments": [ { "type": "MemberExpression", - "start": 302, - "end": 316, + "start": 299, + "end": 313, "loc": { "start": { "line": 13, @@ -632,8 +696,8 @@ }, "object": { "type": "Identifier", - "start": 302, - "end": 306, + "start": 299, + "end": 303, "loc": { "start": { "line": 13, @@ -649,8 +713,8 @@ }, "property": { "type": "Identifier", - "start": 307, - "end": 316, + "start": 304, + "end": 313, "loc": { "start": { "line": 13, @@ -674,9 +738,9 @@ "trailingComments": [ { "type": "CommentBlock", - "value": "*\n * Csv.prototype.parse - receives an CSV string and returns valid JS\n *\n * @param {string} data\n * @param {object} options\n * @param {boolean} options.headers - If should parse first line as the headers, default is true\n * @param {(string|Buffer)} options.delimiter - Which delimiters to use when parsing, defaults to comma `,`\n * @param {number} options.skipLines - How many lines it should skip before parsing, defaults to 1\n * @param {number} options.offset - How many lines it should parse, defaults to -1\n * @returns {array}\n ", - "start": 319, - "end": 856, + "value": "*\n * Csv.prototype.parse - receives an CSV string and returns valid JS\n *\n * @param {string} data\n * @param {object} options\n * @param {(boolean|array|function)} options.headers - If should parse first line as the headers, default is true\n * @param {(string|Buffer)} options.delimiter - Which delimiters to use when parsing, defaults to comma `,`\n * @param {number} options.skipLines - How many lines it should skip before parsing, defaults to 1\n * @param {number} options.offset - How many lines it should parse, defaults to -1\n * @returns {array}\n ", + "start": 316, + "end": 870, "loc": { "start": { "line": 15, @@ -692,37 +756,37 @@ }, { "type": "ExpressionStatement", - "start": 857, - "end": 1233, + "start": 871, + "end": 1614, "loc": { "start": { "line": 26, "column": 0 }, "end": { - "line": 43, + "line": 59, "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 857, - "end": 1233, + "start": 871, + "end": 1614, "loc": { "start": { "line": 26, "column": 0 }, "end": { - "line": 43, + "line": 59, "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 857, - "end": 876, + "start": 871, + "end": 890, "loc": { "start": { "line": 26, @@ -735,8 +799,8 @@ }, "object": { "type": "MemberExpression", - "start": 857, - "end": 870, + "start": 871, + "end": 884, "loc": { "start": { "line": 26, @@ -749,8 +813,8 @@ }, "object": { "type": "Identifier", - "start": 857, - "end": 860, + "start": 871, + "end": 874, "loc": { "start": { "line": 26, @@ -767,8 +831,8 @@ }, "property": { "type": "Identifier", - "start": 861, - "end": 870, + "start": 875, + "end": 884, "loc": { "start": { "line": 26, @@ -787,8 +851,8 @@ }, "property": { "type": "Identifier", - "start": 871, - "end": 876, + "start": 885, + "end": 890, "loc": { "start": { "line": 26, @@ -807,22 +871,22 @@ }, "right": { "type": "FunctionExpression", - "start": 879, - "end": 1233, + "start": 893, + "end": 1614, "loc": { "start": { "line": 26, "column": 22 }, "end": { - "line": 43, + "line": 59, "column": 1 } }, "id": { "type": "Identifier", - "start": 871, - "end": 876, + "start": 885, + "end": 890, "loc": { "start": { "line": 26, @@ -842,8 +906,8 @@ "params": [ { "type": "Identifier", - "start": 895, - "end": 899, + "start": 909, + "end": 913, "loc": { "start": { "line": 26, @@ -859,8 +923,8 @@ }, { "type": "AssignmentPattern", - "start": 901, - "end": 913, + "start": 915, + "end": 927, "loc": { "start": { "line": 26, @@ -873,8 +937,8 @@ }, "left": { "type": "Identifier", - "start": 901, - "end": 908, + "start": 915, + "end": 922, "loc": { "start": { "line": 26, @@ -890,8 +954,8 @@ }, "right": { "type": "ObjectExpression", - "start": 911, - "end": 913, + "start": 925, + "end": 927, "loc": { "start": { "line": 26, @@ -908,23 +972,23 @@ ], "body": { "type": "BlockStatement", - "start": 915, - "end": 1233, + "start": 929, + "end": 1614, "loc": { "start": { "line": 26, "column": 58 }, "end": { - "line": 43, + "line": 59, "column": 1 } }, "body": [ { "type": "VariableDeclaration", - "start": 919, - "end": 1065, + "start": 933, + "end": 1079, "loc": { "start": { "line": 27, @@ -938,8 +1002,8 @@ "declarations": [ { "type": "VariableDeclarator", - "start": 925, - "end": 1065, + "start": 939, + "end": 1079, "loc": { "start": { "line": 27, @@ -952,8 +1016,8 @@ }, "id": { "type": "Identifier", - "start": 925, - "end": 931, + "start": 939, + "end": 945, "loc": { "start": { "line": 27, @@ -969,8 +1033,8 @@ }, "init": { "type": "ObjectExpression", - "start": 934, - "end": 1065, + "start": 948, + "end": 1079, "loc": { "start": { "line": 27, @@ -984,8 +1048,8 @@ "properties": [ { "type": "ObjectProperty", - "start": 940, - "end": 953, + "start": 954, + "end": 967, "loc": { "start": { "line": 28, @@ -1001,8 +1065,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 940, - "end": 947, + "start": 954, + "end": 961, "loc": { "start": { "line": 28, @@ -1018,8 +1082,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 949, - "end": 953, + "start": 963, + "end": 967, "loc": { "start": { "line": 28, @@ -1035,8 +1099,8 @@ }, { "type": "ObjectProperty", - "start": 959, - "end": 981, + "start": 973, + "end": 995, "loc": { "start": { "line": 29, @@ -1052,8 +1116,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 959, - "end": 975, + "start": 973, + "end": 989, "loc": { "start": { "line": 29, @@ -1069,8 +1133,8 @@ }, "value": { "type": "BooleanLiteral", - "start": 977, - "end": 981, + "start": 991, + "end": 995, "loc": { "start": { "line": 29, @@ -1086,8 +1150,8 @@ }, { "type": "ObjectProperty", - "start": 987, - "end": 1022, + "start": 1001, + "end": 1036, "loc": { "start": { "line": 30, @@ -1103,8 +1167,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 987, - "end": 996, + "start": 1001, + "end": 1010, "loc": { "start": { "line": 30, @@ -1120,8 +1184,8 @@ }, "value": { "type": "LogicalExpression", - "start": 998, - "end": 1022, + "start": 1012, + "end": 1036, "loc": { "start": { "line": 30, @@ -1134,8 +1198,8 @@ }, "left": { "type": "MemberExpression", - "start": 998, - "end": 1015, + "start": 1012, + "end": 1029, "loc": { "start": { "line": 30, @@ -1148,8 +1212,8 @@ }, "object": { "type": "Identifier", - "start": 998, - "end": 1005, + "start": 1012, + "end": 1019, "loc": { "start": { "line": 30, @@ -1165,8 +1229,8 @@ }, "property": { "type": "Identifier", - "start": 1006, - "end": 1015, + "start": 1020, + "end": 1029, "loc": { "start": { "line": 30, @@ -1185,8 +1249,8 @@ "operator": "||", "right": { "type": "StringLiteral", - "start": 1019, - "end": 1022, + "start": 1033, + "end": 1036, "loc": { "start": { "line": 30, @@ -1207,8 +1271,8 @@ }, { "type": "ObjectProperty", - "start": 1028, - "end": 1061, + "start": 1042, + "end": 1075, "loc": { "start": { "line": 31, @@ -1224,8 +1288,8 @@ "computed": false, "key": { "type": "Identifier", - "start": 1028, - "end": 1037, + "start": 1042, + "end": 1051, "loc": { "start": { "line": 31, @@ -1241,8 +1305,8 @@ }, "value": { "type": "LogicalExpression", - "start": 1039, - "end": 1061, + "start": 1053, + "end": 1075, "loc": { "start": { "line": 31, @@ -1255,8 +1319,8 @@ }, "left": { "type": "MemberExpression", - "start": 1039, - "end": 1056, + "start": 1053, + "end": 1070, "loc": { "start": { "line": 31, @@ -1269,8 +1333,8 @@ }, "object": { "type": "Identifier", - "start": 1039, - "end": 1046, + "start": 1053, + "end": 1060, "loc": { "start": { "line": 31, @@ -1286,8 +1350,8 @@ }, "property": { "type": "Identifier", - "start": 1047, - "end": 1056, + "start": 1061, + "end": 1070, "loc": { "start": { "line": 31, @@ -1306,8 +1370,8 @@ "operator": "||", "right": { "type": "NumericLiteral", - "start": 1060, - "end": 1061, + "start": 1074, + "end": 1075, "loc": { "start": { "line": 31, @@ -1334,8 +1398,8 @@ }, { "type": "IfStatement", - "start": 1069, - "end": 1132, + "start": 1083, + "end": 1190, "loc": { "start": { "line": 34, @@ -1347,9 +1411,9 @@ } }, "test": { - "type": "BinaryExpression", - "start": 1073, - "end": 1098, + "type": "CallExpression", + "start": 1087, + "end": 1146, "loc": { "start": { "line": 34, @@ -1357,13 +1421,13 @@ }, "end": { "line": 34, - "column": 31 + "column": 65 } }, - "left": { + "callee": { "type": "MemberExpression", - "start": 1073, - "end": 1088, + "start": 1087, + "end": 1124, "loc": { "start": { "line": 34, @@ -1371,13 +1435,13 @@ }, "end": { "line": 34, - "column": 21 + "column": 43 } }, "object": { - "type": "Identifier", - "start": 1073, - "end": 1080, + "type": "MemberExpression", + "start": 1087, + "end": 1118, "loc": { "start": { "line": 34, @@ -1385,57 +1449,162 @@ }, "end": { "line": 34, - "column": 13 + "column": 37 + } + }, + "object": { + "type": "MemberExpression", + "start": 1087, + "end": 1103, + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 22 + } }, - "identifierName": "options" + "object": { + "type": "Identifier", + "start": 1087, + "end": 1093, + "loc": { + "start": { + "line": 34, + "column": 6 + }, + "end": { + "line": 34, + "column": 12 + }, + "identifierName": "Object" + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 1094, + "end": 1103, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 22 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false }, - "name": "options" + "property": { + "type": "Identifier", + "start": 1104, + "end": 1118, + "loc": { + "start": { + "line": 34, + "column": 23 + }, + "end": { + "line": 34, + "column": 37 + }, + "identifierName": "hasOwnProperty" + }, + "name": "hasOwnProperty" + }, + "computed": false }, "property": { "type": "Identifier", - "start": 1081, - "end": 1088, + "start": 1119, + "end": 1124, "loc": { "start": { "line": 34, - "column": 14 + "column": 38 }, "end": { "line": 34, - "column": 21 + "column": 43 }, - "identifierName": "headers" + "identifierName": "apply" }, - "name": "headers" + "name": "apply" }, "computed": false }, - "operator": "===", - "right": { - "type": "BooleanLiteral", - "start": 1093, - "end": 1098, - "loc": { - "start": { - "line": 34, - "column": 26 + "arguments": [ + { + "type": "Identifier", + "start": 1125, + "end": 1132, + "loc": { + "start": { + "line": 34, + "column": 44 + }, + "end": { + "line": 34, + "column": 51 + }, + "identifierName": "options" }, - "end": { - "line": 34, - "column": 31 - } + "name": "options" }, - "value": false - } + { + "type": "ArrayExpression", + "start": 1134, + "end": 1145, + "loc": { + "start": { + "line": 34, + "column": 53 + }, + "end": { + "line": 34, + "column": 64 + } + }, + "elements": [ + { + "type": "StringLiteral", + "start": 1135, + "end": 1144, + "loc": { + "start": { + "line": 34, + "column": 54 + }, + "end": { + "line": 34, + "column": 63 + } + }, + "extra": { + "rawValue": "headers", + "raw": "'headers'" + }, + "value": "headers" + } + ] + } + ] }, "consequent": { "type": "BlockStatement", - "start": 1100, - "end": 1132, + "start": 1148, + "end": 1190, "loc": { "start": { "line": 34, - "column": 33 + "column": 67 }, "end": { "line": 36, @@ -1445,8 +1614,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1106, - "end": 1128, + "start": 1154, + "end": 1186, "loc": { "start": { "line": 35, @@ -1454,13 +1623,13 @@ }, "end": { "line": 35, - "column": 26 + "column": 36 } }, "expression": { "type": "AssignmentExpression", - "start": 1106, - "end": 1128, + "start": 1154, + "end": 1186, "loc": { "start": { "line": 35, @@ -1468,14 +1637,14 @@ }, "end": { "line": 35, - "column": 26 + "column": 36 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1106, - "end": 1120, + "start": 1154, + "end": 1168, "loc": { "start": { "line": 35, @@ -1488,8 +1657,8 @@ }, "object": { "type": "Identifier", - "start": 1106, - "end": 1112, + "start": 1154, + "end": 1160, "loc": { "start": { "line": 35, @@ -1505,8 +1674,8 @@ }, "property": { "type": "Identifier", - "start": 1113, - "end": 1120, + "start": 1161, + "end": 1168, "loc": { "start": { "line": 35, @@ -1523,9 +1692,9 @@ "computed": false }, "right": { - "type": "BooleanLiteral", - "start": 1123, - "end": 1128, + "type": "MemberExpression", + "start": 1171, + "end": 1186, "loc": { "start": { "line": 35, @@ -1533,10 +1702,44 @@ }, "end": { "line": 35, - "column": 26 + "column": 36 } }, - "value": false + "object": { + "type": "Identifier", + "start": 1171, + "end": 1178, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 28 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 1179, + "end": 1186, + "loc": { + "start": { + "line": 35, + "column": 29 + }, + "end": { + "line": 35, + "column": 36 + }, + "identifierName": "headers" + }, + "name": "headers" + }, + "computed": false } } } @@ -1547,8 +1750,8 @@ }, { "type": "IfStatement", - "start": 1136, - "end": 1197, + "start": 1194, + "end": 1255, "loc": { "start": { "line": 38, @@ -1561,8 +1764,8 @@ }, "test": { "type": "MemberExpression", - "start": 1140, - "end": 1154, + "start": 1198, + "end": 1212, "loc": { "start": { "line": 38, @@ -1575,8 +1778,8 @@ }, "object": { "type": "Identifier", - "start": 1140, - "end": 1147, + "start": 1198, + "end": 1205, "loc": { "start": { "line": 38, @@ -1592,8 +1795,8 @@ }, "property": { "type": "Identifier", - "start": 1148, - "end": 1154, + "start": 1206, + "end": 1212, "loc": { "start": { "line": 38, @@ -1611,8 +1814,8 @@ }, "consequent": { "type": "BlockStatement", - "start": 1156, - "end": 1197, + "start": 1214, + "end": 1255, "loc": { "start": { "line": 38, @@ -1626,8 +1829,8 @@ "body": [ { "type": "ExpressionStatement", - "start": 1162, - "end": 1193, + "start": 1220, + "end": 1251, "loc": { "start": { "line": 39, @@ -1640,8 +1843,8 @@ }, "expression": { "type": "AssignmentExpression", - "start": 1162, - "end": 1193, + "start": 1220, + "end": 1251, "loc": { "start": { "line": 39, @@ -1655,8 +1858,8 @@ "operator": "=", "left": { "type": "MemberExpression", - "start": 1162, - "end": 1176, + "start": 1220, + "end": 1234, "loc": { "start": { "line": 39, @@ -1669,8 +1872,8 @@ }, "object": { "type": "Identifier", - "start": 1162, - "end": 1168, + "start": 1220, + "end": 1226, "loc": { "start": { "line": 39, @@ -1686,8 +1889,8 @@ }, "property": { "type": "Identifier", - "start": 1169, - "end": 1176, + "start": 1227, + "end": 1234, "loc": { "start": { "line": 39, @@ -1705,8 +1908,8 @@ }, "right": { "type": "MemberExpression", - "start": 1179, - "end": 1193, + "start": 1237, + "end": 1251, "loc": { "start": { "line": 39, @@ -1719,8 +1922,8 @@ }, "object": { "type": "Identifier", - "start": 1179, - "end": 1186, + "start": 1237, + "end": 1244, "loc": { "start": { "line": 39, @@ -1736,8 +1939,8 @@ }, "property": { "type": "Identifier", - "start": 1187, - "end": 1193, + "start": 1245, + "end": 1251, "loc": { "start": { "line": 39, @@ -1761,87 +1964,1090 @@ "alternate": null }, { - "type": "ReturnStatement", - "start": 1201, - "end": 1231, + "type": "TryStatement", + "start": 1259, + "end": 1612, "loc": { "start": { "line": 42, "column": 2 }, "end": { - "line": 42, - "column": 32 + "line": 58, + "column": 3 } }, - "argument": { - "type": "CallExpression", - "start": 1208, - "end": 1231, + "block": { + "type": "BlockStatement", + "start": 1263, + "end": 1303, "loc": { "start": { "line": 42, - "column": 9 + "column": 6 }, "end": { - "line": 42, - "column": 32 + "line": 44, + "column": 3 } }, - "callee": { - "type": "Identifier", - "start": 1208, - "end": 1217, - "loc": { - "start": { - "line": 42, - "column": 9 - }, - "end": { - "line": 42, - "column": 18 - }, - "identifierName": "csvParser" - }, - "name": "csvParser" - }, - "arguments": [ + "body": [ { - "type": "Identifier", - "start": 1218, - "end": 1222, + "type": "ReturnStatement", + "start": 1269, + "end": 1299, "loc": { "start": { - "line": 42, - "column": 19 + "line": 43, + "column": 4 }, "end": { - "line": 42, - "column": 23 - }, - "identifierName": "data" + "line": 43, + "column": 34 + } }, - "name": "data" - }, - { - "type": "Identifier", - "start": 1224, - "end": 1230, - "loc": { - "start": { - "line": 42, - "column": 25 + "argument": { + "type": "CallExpression", + "start": 1276, + "end": 1299, + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 34 + } }, - "end": { - "line": 42, - "column": 31 + "callee": { + "type": "Identifier", + "start": 1276, + "end": 1285, + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 20 + }, + "identifierName": "csvParser" + }, + "name": "csvParser" }, - "identifierName": "config" - }, - "name": "config" + "arguments": [ + { + "type": "Identifier", + "start": 1286, + "end": 1290, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 25 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "Identifier", + "start": 1292, + "end": 1298, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 33 + }, + "identifierName": "config" + }, + "name": "config" + } + ] + } } - ] - } + ], + "directives": [] + }, + "handler": { + "type": "CatchClause", + "start": 1304, + "end": 1612, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 58, + "column": 3 + } + }, + "param": { + "type": "Identifier", + "start": 1311, + "end": 1312, + "loc": { + "start": { + "line": 44, + "column": 11 + }, + "end": { + "line": 44, + "column": 12 + }, + "identifierName": "e" + }, + "name": "e" + }, + "body": { + "type": "BlockStatement", + "start": 1314, + "end": 1612, + "loc": { + "start": { + "line": 44, + "column": 14 + }, + "end": { + "line": 58, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1320, + "end": 1565, + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 55, + "column": 5 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1326, + "end": 1565, + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 55, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 1326, + "end": 1333, + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 45, + "column": 17 + }, + "identifierName": "context" + }, + "name": "context" + }, + "init": { + "type": "ObjectExpression", + "start": 1336, + "end": 1565, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 55, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1344, + "end": 1356, + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1344, + "end": 1348, + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 10 + }, + "identifierName": "code" + }, + "name": "code" + }, + "value": { + "type": "MemberExpression", + "start": 1350, + "end": 1356, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 1350, + "end": 1351, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 13 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1352, + "end": 1356, + "loc": { + "start": { + "line": 46, + "column": 14 + }, + "end": { + "line": 46, + "column": 18 + }, + "identifierName": "code" + }, + "name": "code" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1364, + "end": 1382, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1364, + "end": 1371, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 13 + }, + "identifierName": "message" + }, + "name": "message" + }, + "value": { + "type": "MemberExpression", + "start": 1373, + "end": 1382, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 1373, + "end": 1374, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 16 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1375, + "end": 1382, + "loc": { + "start": { + "line": 47, + "column": 17 + }, + "end": { + "line": 47, + "column": 24 + }, + "identifierName": "message" + }, + "name": "message" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1390, + "end": 1406, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1390, + "end": 1396, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 12 + }, + "identifierName": "column" + }, + "name": "column" + }, + "value": { + "type": "MemberExpression", + "start": 1398, + "end": 1406, + "loc": { + "start": { + "line": 48, + "column": 14 + }, + "end": { + "line": 48, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 1398, + "end": 1399, + "loc": { + "start": { + "line": 48, + "column": 14 + }, + "end": { + "line": 48, + "column": 15 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1400, + "end": 1406, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 22 + }, + "identifierName": "column" + }, + "name": "column" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1414, + "end": 1439, + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1414, + "end": 1424, + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 16 + }, + "identifierName": "emptyLines" + }, + "name": "emptyLines" + }, + "value": { + "type": "MemberExpression", + "start": 1426, + "end": 1439, + "loc": { + "start": { + "line": 49, + "column": 18 + }, + "end": { + "line": 49, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1426, + "end": 1427, + "loc": { + "start": { + "line": 49, + "column": 18 + }, + "end": { + "line": 49, + "column": 19 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1428, + "end": 1439, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 31 + }, + "identifierName": "empty_lines" + }, + "name": "empty_lines" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1447, + "end": 1463, + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1447, + "end": 1453, + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 12 + }, + "identifierName": "header" + }, + "name": "header" + }, + "value": { + "type": "MemberExpression", + "start": 1455, + "end": 1463, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 1455, + "end": 1456, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 15 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1457, + "end": 1463, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 22 + }, + "identifierName": "header" + }, + "name": "header" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1471, + "end": 1485, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1471, + "end": 1476, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 11 + }, + "identifierName": "index" + }, + "name": "index" + }, + "value": { + "type": "MemberExpression", + "start": 1478, + "end": 1485, + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 51, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 1478, + "end": 1479, + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 51, + "column": 14 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1480, + "end": 1485, + "loc": { + "start": { + "line": 51, + "column": 15 + }, + "end": { + "line": 51, + "column": 20 + }, + "identifierName": "index" + }, + "name": "index" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1493, + "end": 1507, + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1493, + "end": 1498, + "loc": { + "start": { + "line": 52, + "column": 6 + }, + "end": { + "line": 52, + "column": 11 + }, + "identifierName": "lines" + }, + "name": "lines" + }, + "value": { + "type": "MemberExpression", + "start": 1500, + "end": 1507, + "loc": { + "start": { + "line": 52, + "column": 13 + }, + "end": { + "line": 52, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 1500, + "end": 1501, + "loc": { + "start": { + "line": 52, + "column": 13 + }, + "end": { + "line": 52, + "column": 14 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1502, + "end": 1507, + "loc": { + "start": { + "line": 52, + "column": 15 + }, + "end": { + "line": 52, + "column": 20 + }, + "identifierName": "lines" + }, + "name": "lines" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1515, + "end": 1533, + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1515, + "end": 1522, + "loc": { + "start": { + "line": 53, + "column": 6 + }, + "end": { + "line": 53, + "column": 13 + }, + "identifierName": "quoting" + }, + "name": "quoting" + }, + "value": { + "type": "MemberExpression", + "start": 1524, + "end": 1533, + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 53, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 1524, + "end": 1525, + "loc": { + "start": { + "line": 53, + "column": 15 + }, + "end": { + "line": 53, + "column": 16 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1526, + "end": 1533, + "loc": { + "start": { + "line": 53, + "column": 17 + }, + "end": { + "line": 53, + "column": 24 + }, + "identifierName": "quoting" + }, + "name": "quoting" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1541, + "end": 1559, + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1541, + "end": 1548, + "loc": { + "start": { + "line": 54, + "column": 6 + }, + "end": { + "line": 54, + "column": 13 + }, + "identifierName": "records" + }, + "name": "records" + }, + "value": { + "type": "MemberExpression", + "start": 1550, + "end": 1559, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 1550, + "end": 1551, + "loc": { + "start": { + "line": 54, + "column": 15 + }, + "end": { + "line": 54, + "column": 16 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1552, + "end": 1559, + "loc": { + "start": { + "line": 54, + "column": 17 + }, + "end": { + "line": 54, + "column": 24 + }, + "identifierName": "records" + }, + "name": "records" + }, + "computed": false + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ThrowStatement", + "start": 1571, + "end": 1608, + "loc": { + "start": { + "line": 57, + "column": 4 + }, + "end": { + "line": 57, + "column": 41 + } + }, + "argument": { + "type": "NewExpression", + "start": 1577, + "end": 1608, + "loc": { + "start": { + "line": 57, + "column": 10 + }, + "end": { + "line": 57, + "column": 41 + } + }, + "callee": { + "type": "Identifier", + "start": 1581, + "end": 1592, + "loc": { + "start": { + "line": 57, + "column": 14 + }, + "end": { + "line": 57, + "column": 25 + }, + "identifierName": "ParserError" + }, + "name": "ParserError" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1593, + "end": 1598, + "loc": { + "start": { + "line": 57, + "column": 26 + }, + "end": { + "line": 57, + "column": 31 + } + }, + "extra": { + "rawValue": "csv", + "raw": "'csv'" + }, + "value": "csv" + }, + { + "type": "Identifier", + "start": 1600, + "end": 1607, + "loc": { + "start": { + "line": 57, + "column": 33 + }, + "end": { + "line": 57, + "column": 40 + }, + "identifierName": "context" + }, + "name": "context" + } + ] + } + } + ], + "directives": [] + } + }, + "guardedHandlers": [], + "finalizer": null } ], "directives": [], @@ -1855,9 +3061,9 @@ "leadingComments": [ { "type": "CommentBlock", - "value": "*\n * Csv.prototype.parse - receives an CSV string and returns valid JS\n *\n * @param {string} data\n * @param {object} options\n * @param {boolean} options.headers - If should parse first line as the headers, default is true\n * @param {(string|Buffer)} options.delimiter - Which delimiters to use when parsing, defaults to comma `,`\n * @param {number} options.skipLines - How many lines it should skip before parsing, defaults to 1\n * @param {number} options.offset - How many lines it should parse, defaults to -1\n * @returns {array}\n ", - "start": 319, - "end": 856, + "value": "*\n * Csv.prototype.parse - receives an CSV string and returns valid JS\n *\n * @param {string} data\n * @param {object} options\n * @param {(boolean|array|function)} options.headers - If should parse first line as the headers, default is true\n * @param {(string|Buffer)} options.delimiter - Which delimiters to use when parsing, defaults to comma `,`\n * @param {number} options.skipLines - How many lines it should skip before parsing, defaults to 1\n * @param {number} options.offset - How many lines it should parse, defaults to -1\n * @returns {array}\n ", + "start": 316, + "end": 870, "loc": { "start": { "line": 15, @@ -1874,15 +3080,15 @@ { "type": "CommentBlock", "value": "*\n * Csv.prototype.stringify - receives * valid JS data and returns it as CSV\n *\n * @param {array} data\n * @param {object} options\n * @param {boolean} options.headers - If should set first line as the headers, default is true\n * @param {(array|object)} options.columns - Custom column mapping, see examples for more\n * @returns {string}\n ", - "start": 1235, - "end": 1577, + "start": 1616, + "end": 1958, "loc": { "start": { - "line": 45, + "line": 61, "column": 0 }, "end": { - "line": 53, + "line": 69, "column": 3 } } @@ -1891,72 +3097,72 @@ }, { "type": "ExpressionStatement", - "start": 1578, - "end": 1857, + "start": 1959, + "end": 2238, "loc": { "start": { - "line": 54, + "line": 70, "column": 0 }, "end": { - "line": 68, + "line": 84, "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 1578, - "end": 1857, + "start": 1959, + "end": 2238, "loc": { "start": { - "line": 54, + "line": 70, "column": 0 }, "end": { - "line": 68, + "line": 84, "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1578, - "end": 1601, + "start": 1959, + "end": 1982, "loc": { "start": { - "line": 54, + "line": 70, "column": 0 }, "end": { - "line": 54, + "line": 70, "column": 23 } }, "object": { "type": "MemberExpression", - "start": 1578, - "end": 1591, + "start": 1959, + "end": 1972, "loc": { "start": { - "line": 54, + "line": 70, "column": 0 }, "end": { - "line": 54, + "line": 70, "column": 13 } }, "object": { "type": "Identifier", - "start": 1578, - "end": 1581, + "start": 1959, + "end": 1962, "loc": { "start": { - "line": 54, + "line": 70, "column": 0 }, "end": { - "line": 54, + "line": 70, "column": 3 }, "identifierName": "Csv" @@ -1966,15 +3172,15 @@ }, "property": { "type": "Identifier", - "start": 1582, - "end": 1591, + "start": 1963, + "end": 1972, "loc": { "start": { - "line": 54, + "line": 70, "column": 4 }, "end": { - "line": 54, + "line": 70, "column": 13 }, "identifierName": "prototype" @@ -1986,15 +3192,15 @@ }, "property": { "type": "Identifier", - "start": 1592, - "end": 1601, + "start": 1973, + "end": 1982, "loc": { "start": { - "line": 54, + "line": 70, "column": 14 }, "end": { - "line": 54, + "line": 70, "column": 23 }, "identifierName": "stringify" @@ -2006,29 +3212,29 @@ }, "right": { "type": "FunctionExpression", - "start": 1604, - "end": 1857, + "start": 1985, + "end": 2238, "loc": { "start": { - "line": 54, + "line": 70, "column": 26 }, "end": { - "line": 68, + "line": 84, "column": 1 } }, "id": { "type": "Identifier", - "start": 1592, - "end": 1601, + "start": 1973, + "end": 1982, "loc": { "start": { - "line": 54, + "line": 70, "column": 14 }, "end": { - "line": 54, + "line": 70, "column": 23 }, "identifierName": "stringify" @@ -2041,15 +3247,15 @@ "params": [ { "type": "Identifier", - "start": 1624, - "end": 1628, + "start": 2005, + "end": 2009, "loc": { "start": { - "line": 54, + "line": 70, "column": 46 }, "end": { - "line": 54, + "line": 70, "column": 50 }, "identifierName": "data" @@ -2058,29 +3264,29 @@ }, { "type": "AssignmentPattern", - "start": 1630, - "end": 1642, + "start": 2011, + "end": 2023, "loc": { "start": { - "line": 54, + "line": 70, "column": 52 }, "end": { - "line": 54, + "line": 70, "column": 64 } }, "left": { "type": "Identifier", - "start": 1630, - "end": 1637, + "start": 2011, + "end": 2018, "loc": { "start": { - "line": 54, + "line": 70, "column": 52 }, "end": { - "line": 54, + "line": 70, "column": 59 }, "identifierName": "options" @@ -2089,15 +3295,15 @@ }, "right": { "type": "ObjectExpression", - "start": 1640, - "end": 1642, + "start": 2021, + "end": 2023, "loc": { "start": { - "line": 54, + "line": 70, "column": 62 }, "end": { - "line": 54, + "line": 70, "column": 64 } }, @@ -2107,59 +3313,59 @@ ], "body": { "type": "BlockStatement", - "start": 1644, - "end": 1857, + "start": 2025, + "end": 2238, "loc": { "start": { - "line": 54, + "line": 70, "column": 66 }, "end": { - "line": 68, + "line": 84, "column": 1 } }, "body": [ { "type": "VariableDeclaration", - "start": 1648, - "end": 1685, + "start": 2029, + "end": 2066, "loc": { "start": { - "line": 55, + "line": 71, "column": 2 }, "end": { - "line": 57, + "line": 73, "column": 3 } }, "declarations": [ { "type": "VariableDeclarator", - "start": 1654, - "end": 1685, + "start": 2035, + "end": 2066, "loc": { "start": { - "line": 55, + "line": 71, "column": 8 }, "end": { - "line": 57, + "line": 73, "column": 3 } }, "id": { "type": "Identifier", - "start": 1654, - "end": 1660, + "start": 2035, + "end": 2041, "loc": { "start": { - "line": 55, + "line": 71, "column": 8 }, "end": { - "line": 55, + "line": 71, "column": 14 }, "identifierName": "config" @@ -2168,30 +3374,30 @@ }, "init": { "type": "ObjectExpression", - "start": 1663, - "end": 1685, + "start": 2044, + "end": 2066, "loc": { "start": { - "line": 55, + "line": 71, "column": 17 }, "end": { - "line": 57, + "line": 73, "column": 3 } }, "properties": [ { "type": "ObjectProperty", - "start": 1669, - "end": 1681, + "start": 2050, + "end": 2062, "loc": { "start": { - "line": 56, + "line": 72, "column": 4 }, "end": { - "line": 56, + "line": 72, "column": 16 } }, @@ -2200,15 +3406,15 @@ "computed": false, "key": { "type": "Identifier", - "start": 1669, - "end": 1675, + "start": 2050, + "end": 2056, "loc": { "start": { - "line": 56, + "line": 72, "column": 4 }, "end": { - "line": 56, + "line": 72, "column": 10 }, "identifierName": "header" @@ -2217,15 +3423,15 @@ }, "value": { "type": "BooleanLiteral", - "start": 1677, - "end": 1681, + "start": 2058, + "end": 2062, "loc": { "start": { - "line": 56, + "line": 72, "column": 12 }, "end": { - "line": 56, + "line": 72, "column": 16 } }, @@ -2240,57 +3446,57 @@ }, { "type": "IfStatement", - "start": 1689, - "end": 1751, + "start": 2070, + "end": 2132, "loc": { "start": { - "line": 59, + "line": 75, "column": 2 }, "end": { - "line": 61, + "line": 77, "column": 3 } }, "test": { "type": "BinaryExpression", - "start": 1693, - "end": 1718, + "start": 2074, + "end": 2099, "loc": { "start": { - "line": 59, + "line": 75, "column": 6 }, "end": { - "line": 59, + "line": 75, "column": 31 } }, "left": { "type": "MemberExpression", - "start": 1693, - "end": 1708, + "start": 2074, + "end": 2089, "loc": { "start": { - "line": 59, + "line": 75, "column": 6 }, "end": { - "line": 59, + "line": 75, "column": 21 } }, "object": { "type": "Identifier", - "start": 1693, - "end": 1700, + "start": 2074, + "end": 2081, "loc": { "start": { - "line": 59, + "line": 75, "column": 6 }, "end": { - "line": 59, + "line": 75, "column": 13 }, "identifierName": "options" @@ -2299,15 +3505,15 @@ }, "property": { "type": "Identifier", - "start": 1701, - "end": 1708, + "start": 2082, + "end": 2089, "loc": { "start": { - "line": 59, + "line": 75, "column": 14 }, "end": { - "line": 59, + "line": 75, "column": 21 }, "identifierName": "headers" @@ -2319,15 +3525,15 @@ "operator": "===", "right": { "type": "BooleanLiteral", - "start": 1713, - "end": 1718, + "start": 2094, + "end": 2099, "loc": { "start": { - "line": 59, + "line": 75, "column": 26 }, "end": { - "line": 59, + "line": 75, "column": 31 } }, @@ -2336,73 +3542,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 1720, - "end": 1751, + "start": 2101, + "end": 2132, "loc": { "start": { - "line": 59, + "line": 75, "column": 33 }, "end": { - "line": 61, + "line": 77, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 1726, - "end": 1747, + "start": 2107, + "end": 2128, "loc": { "start": { - "line": 60, + "line": 76, "column": 4 }, "end": { - "line": 60, + "line": 76, "column": 25 } }, "expression": { "type": "AssignmentExpression", - "start": 1726, - "end": 1747, + "start": 2107, + "end": 2128, "loc": { "start": { - "line": 60, + "line": 76, "column": 4 }, "end": { - "line": 60, + "line": 76, "column": 25 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1726, - "end": 1739, + "start": 2107, + "end": 2120, "loc": { "start": { - "line": 60, + "line": 76, "column": 4 }, "end": { - "line": 60, + "line": 76, "column": 17 } }, "object": { "type": "Identifier", - "start": 1726, - "end": 1732, + "start": 2107, + "end": 2113, "loc": { "start": { - "line": 60, + "line": 76, "column": 4 }, "end": { - "line": 60, + "line": 76, "column": 10 }, "identifierName": "config" @@ -2411,15 +3617,15 @@ }, "property": { "type": "Identifier", - "start": 1733, - "end": 1739, + "start": 2114, + "end": 2120, "loc": { "start": { - "line": 60, + "line": 76, "column": 11 }, "end": { - "line": 60, + "line": 76, "column": 17 }, "identifierName": "header" @@ -2430,15 +3636,15 @@ }, "right": { "type": "BooleanLiteral", - "start": 1742, - "end": 1747, + "start": 2123, + "end": 2128, "loc": { "start": { - "line": 60, + "line": 76, "column": 20 }, "end": { - "line": 60, + "line": 76, "column": 25 } }, @@ -2453,43 +3659,43 @@ }, { "type": "IfStatement", - "start": 1755, - "end": 1818, + "start": 2136, + "end": 2199, "loc": { "start": { - "line": 63, + "line": 79, "column": 2 }, "end": { - "line": 65, + "line": 81, "column": 3 } }, "test": { "type": "MemberExpression", - "start": 1759, - "end": 1774, + "start": 2140, + "end": 2155, "loc": { "start": { - "line": 63, + "line": 79, "column": 6 }, "end": { - "line": 63, + "line": 79, "column": 21 } }, "object": { "type": "Identifier", - "start": 1759, - "end": 1766, + "start": 2140, + "end": 2147, "loc": { "start": { - "line": 63, + "line": 79, "column": 6 }, "end": { - "line": 63, + "line": 79, "column": 13 }, "identifierName": "options" @@ -2498,15 +3704,15 @@ }, "property": { "type": "Identifier", - "start": 1767, - "end": 1774, + "start": 2148, + "end": 2155, "loc": { "start": { - "line": 63, + "line": 79, "column": 14 }, "end": { - "line": 63, + "line": 79, "column": 21 }, "identifierName": "columns" @@ -2517,73 +3723,73 @@ }, "consequent": { "type": "BlockStatement", - "start": 1776, - "end": 1818, + "start": 2157, + "end": 2199, "loc": { "start": { - "line": 63, + "line": 79, "column": 23 }, "end": { - "line": 65, + "line": 81, "column": 3 } }, "body": [ { "type": "ExpressionStatement", - "start": 1782, - "end": 1814, + "start": 2163, + "end": 2195, "loc": { "start": { - "line": 64, + "line": 80, "column": 4 }, "end": { - "line": 64, + "line": 80, "column": 36 } }, "expression": { "type": "AssignmentExpression", - "start": 1782, - "end": 1814, + "start": 2163, + "end": 2195, "loc": { "start": { - "line": 64, + "line": 80, "column": 4 }, "end": { - "line": 64, + "line": 80, "column": 36 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1782, - "end": 1796, + "start": 2163, + "end": 2177, "loc": { "start": { - "line": 64, + "line": 80, "column": 4 }, "end": { - "line": 64, + "line": 80, "column": 18 } }, "object": { "type": "Identifier", - "start": 1782, - "end": 1788, + "start": 2163, + "end": 2169, "loc": { "start": { - "line": 64, + "line": 80, "column": 4 }, "end": { - "line": 64, + "line": 80, "column": 10 }, "identifierName": "config" @@ -2592,15 +3798,15 @@ }, "property": { "type": "Identifier", - "start": 1789, - "end": 1796, + "start": 2170, + "end": 2177, "loc": { "start": { - "line": 64, + "line": 80, "column": 11 }, "end": { - "line": 64, + "line": 80, "column": 18 }, "identifierName": "columns" @@ -2611,29 +3817,29 @@ }, "right": { "type": "MemberExpression", - "start": 1799, - "end": 1814, + "start": 2180, + "end": 2195, "loc": { "start": { - "line": 64, + "line": 80, "column": 21 }, "end": { - "line": 64, + "line": 80, "column": 36 } }, "object": { "type": "Identifier", - "start": 1799, - "end": 1806, + "start": 2180, + "end": 2187, "loc": { "start": { - "line": 64, + "line": 80, "column": 21 }, "end": { - "line": 64, + "line": 80, "column": 28 }, "identifierName": "options" @@ -2642,15 +3848,15 @@ }, "property": { "type": "Identifier", - "start": 1807, - "end": 1814, + "start": 2188, + "end": 2195, "loc": { "start": { - "line": 64, + "line": 80, "column": 29 }, "end": { - "line": 64, + "line": 80, "column": 36 }, "identifierName": "columns" @@ -2668,43 +3874,43 @@ }, { "type": "ReturnStatement", - "start": 1822, - "end": 1855, + "start": 2203, + "end": 2236, "loc": { "start": { - "line": 67, + "line": 83, "column": 2 }, "end": { - "line": 67, + "line": 83, "column": 35 } }, "argument": { "type": "CallExpression", - "start": 1829, - "end": 1855, + "start": 2210, + "end": 2236, "loc": { "start": { - "line": 67, + "line": 83, "column": 9 }, "end": { - "line": 67, + "line": 83, "column": 35 } }, "callee": { "type": "Identifier", - "start": 1829, - "end": 1841, + "start": 2210, + "end": 2222, "loc": { "start": { - "line": 67, + "line": 83, "column": 9 }, "end": { - "line": 67, + "line": 83, "column": 21 }, "identifierName": "csvStringify" @@ -2714,15 +3920,15 @@ "arguments": [ { "type": "Identifier", - "start": 1842, - "end": 1846, + "start": 2223, + "end": 2227, "loc": { "start": { - "line": 67, + "line": 83, "column": 22 }, "end": { - "line": 67, + "line": 83, "column": 26 }, "identifierName": "data" @@ -2731,15 +3937,15 @@ }, { "type": "Identifier", - "start": 1848, - "end": 1854, + "start": 2229, + "end": 2235, "loc": { "start": { - "line": 67, + "line": 83, "column": 28 }, "end": { - "line": 67, + "line": 83, "column": 34 }, "identifierName": "config" @@ -2759,15 +3965,15 @@ { "type": "CommentBlock", "value": "*\n * Csv.prototype.stringify - receives * valid JS data and returns it as CSV\n *\n * @param {array} data\n * @param {object} options\n * @param {boolean} options.headers - If should set first line as the headers, default is true\n * @param {(array|object)} options.columns - Custom column mapping, see examples for more\n * @returns {string}\n ", - "start": 1235, - "end": 1577, + "start": 1616, + "end": 1958, "loc": { "start": { - "line": 45, + "line": 61, "column": 0 }, "end": { - "line": 53, + "line": 69, "column": 3 } } @@ -2776,58 +3982,58 @@ }, { "type": "ExpressionStatement", - "start": 1859, - "end": 1879, + "start": 2240, + "end": 2260, "loc": { "start": { - "line": 70, + "line": 86, "column": 0 }, "end": { - "line": 70, + "line": 86, "column": 20 } }, "expression": { "type": "AssignmentExpression", - "start": 1859, - "end": 1879, + "start": 2240, + "end": 2260, "loc": { "start": { - "line": 70, + "line": 86, "column": 0 }, "end": { - "line": 70, + "line": 86, "column": 20 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1859, - "end": 1873, + "start": 2240, + "end": 2254, "loc": { "start": { - "line": 70, + "line": 86, "column": 0 }, "end": { - "line": 70, + "line": 86, "column": 14 } }, "object": { "type": "Identifier", - "start": 1859, - "end": 1865, + "start": 2240, + "end": 2246, "loc": { "start": { - "line": 70, + "line": 86, "column": 0 }, "end": { - "line": 70, + "line": 86, "column": 6 }, "identifierName": "module" @@ -2836,15 +4042,15 @@ }, "property": { "type": "Identifier", - "start": 1866, - "end": 1873, + "start": 2247, + "end": 2254, "loc": { "start": { - "line": 70, + "line": 86, "column": 7 }, "end": { - "line": 70, + "line": 86, "column": 14 }, "identifierName": "exports" @@ -2855,15 +4061,15 @@ }, "right": { "type": "Identifier", - "start": 1876, - "end": 1879, + "start": 2257, + "end": 2260, "loc": { "start": { - "line": 70, + "line": 86, "column": 17 }, "end": { - "line": 70, + "line": 86, "column": 20 }, "identifierName": "Csv" @@ -2876,27 +4082,11 @@ "directives": [] }, "comments": [ - { - "type": "CommentLine", - "value": " const ParserError = require('../errors/ParserError')", - "start": 31, - "end": 86, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 55 - } - } - }, { "type": "CommentBlock", "value": "*\n * Csv - Support for CSV filetype\n *\n * @constructor\n ", - "start": 191, - "end": 251, + "start": 188, + "end": 248, "loc": { "start": { "line": 6, @@ -2910,9 +4100,9 @@ }, { "type": "CommentBlock", - "value": "*\n * Csv.prototype.parse - receives an CSV string and returns valid JS\n *\n * @param {string} data\n * @param {object} options\n * @param {boolean} options.headers - If should parse first line as the headers, default is true\n * @param {(string|Buffer)} options.delimiter - Which delimiters to use when parsing, defaults to comma `,`\n * @param {number} options.skipLines - How many lines it should skip before parsing, defaults to 1\n * @param {number} options.offset - How many lines it should parse, defaults to -1\n * @returns {array}\n ", - "start": 319, - "end": 856, + "value": "*\n * Csv.prototype.parse - receives an CSV string and returns valid JS\n *\n * @param {string} data\n * @param {object} options\n * @param {(boolean|array|function)} options.headers - If should parse first line as the headers, default is true\n * @param {(string|Buffer)} options.delimiter - Which delimiters to use when parsing, defaults to comma `,`\n * @param {number} options.skipLines - How many lines it should skip before parsing, defaults to 1\n * @param {number} options.offset - How many lines it should parse, defaults to -1\n * @returns {array}\n ", + "start": 316, + "end": 870, "loc": { "start": { "line": 15, @@ -2927,15 +4117,15 @@ { "type": "CommentBlock", "value": "*\n * Csv.prototype.stringify - receives * valid JS data and returns it as CSV\n *\n * @param {array} data\n * @param {object} options\n * @param {boolean} options.headers - If should set first line as the headers, default is true\n * @param {(array|object)} options.columns - Custom column mapping, see examples for more\n * @returns {string}\n ", - "start": 1235, - "end": 1577, + "start": 1616, + "end": 1958, "loc": { "start": { - "line": 45, + "line": 61, "column": 0 }, "end": { - "line": 53, + "line": 69, "column": 3 } } @@ -3126,22 +4316,6 @@ } } }, - { - "type": "CommentLine", - "value": " const ParserError = require('../errors/ParserError')", - "start": 31, - "end": 86, - "loc": { - "start": { - "line": 2, - "column": 0 - }, - "end": { - "line": 2, - "column": 55 - } - } - }, { "type": { "label": "const", @@ -3157,15 +4331,15 @@ "updateContext": null }, "value": "const", - "start": 87, - "end": 92, + "start": 31, + "end": 36, "loc": { "start": { - "line": 3, + "line": 2, "column": 0 }, "end": { - "line": 3, + "line": 2, "column": 5 } } @@ -3182,17 +4356,17 @@ "postfix": false, "binop": null }, - "value": "csvParser", - "start": 93, - "end": 102, + "value": "ParserError", + "start": 37, + "end": 48, "loc": { "start": { - "line": 3, + "line": 2, "column": 6 }, "end": { - "line": 3, - "column": 15 + "line": 2, + "column": 17 } } }, @@ -3210,16 +4384,16 @@ "updateContext": null }, "value": "=", - "start": 103, - "end": 104, + "start": 49, + "end": 50, "loc": { "start": { - "line": 3, - "column": 16 + "line": 2, + "column": 18 }, "end": { - "line": 3, - "column": 17 + "line": 2, + "column": 19 } } }, @@ -3236,16 +4410,16 @@ "binop": null }, "value": "require", - "start": 105, - "end": 112, + "start": 51, + "end": 58, "loc": { "start": { - "line": 3, - "column": 18 + "line": 2, + "column": 20 }, "end": { - "line": 3, - "column": 25 + "line": 2, + "column": 27 } } }, @@ -3261,15 +4435,199 @@ "postfix": false, "binop": null }, - "start": 112, - "end": 113, + "start": 58, + "end": 59, "loc": { "start": { - "line": 3, - "column": 25 + "line": 2, + "column": 27 }, "end": { - "line": 3, + "line": 2, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../errors/ParserError", + "start": 59, + "end": 82, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 51 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 82, + "end": 83, + "loc": { + "start": { + "line": 2, + "column": 51 + }, + "end": { + "line": 2, + "column": 52 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 84, + "end": 89, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "csvParser", + "start": 90, + "end": 99, + "loc": { + "start": { + "line": 3, + "column": 6 + }, + "end": { + "line": 3, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 100, + "end": 101, + "loc": { + "start": { + "line": 3, + "column": 16 + }, + "end": { + "line": 3, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 102, + "end": 109, + "loc": { + "start": { + "line": 3, + "column": 18 + }, + "end": { + "line": 3, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 109, + "end": 110, + "loc": { + "start": { + "line": 3, + "column": 25 + }, + "end": { + "line": 3, "column": 26 } } @@ -3288,8 +4646,8 @@ "updateContext": null }, "value": "csv-parse/lib/sync", - "start": 113, - "end": 133, + "start": 110, + "end": 130, "loc": { "start": { "line": 3, @@ -3313,8 +4671,8 @@ "postfix": false, "binop": null }, - "start": 133, - "end": 134, + "start": 130, + "end": 131, "loc": { "start": { "line": 3, @@ -3341,8 +4699,8 @@ "updateContext": null }, "value": "const", - "start": 135, - "end": 140, + "start": 132, + "end": 137, "loc": { "start": { "line": 4, @@ -3367,8 +4725,8 @@ "binop": null }, "value": "csvStringify", - "start": 141, - "end": 153, + "start": 138, + "end": 150, "loc": { "start": { "line": 4, @@ -3394,8 +4752,8 @@ "updateContext": null }, "value": "=", - "start": 154, - "end": 155, + "start": 151, + "end": 152, "loc": { "start": { "line": 4, @@ -3420,8 +4778,8 @@ "binop": null }, "value": "require", - "start": 156, - "end": 163, + "start": 153, + "end": 160, "loc": { "start": { "line": 4, @@ -3445,8 +4803,8 @@ "postfix": false, "binop": null }, - "start": 163, - "end": 164, + "start": 160, + "end": 161, "loc": { "start": { "line": 4, @@ -3472,8 +4830,8 @@ "updateContext": null }, "value": "csv-stringify/lib/sync", - "start": 164, - "end": 188, + "start": 161, + "end": 185, "loc": { "start": { "line": 4, @@ -3497,8 +4855,8 @@ "postfix": false, "binop": null }, - "start": 188, - "end": 189, + "start": 185, + "end": 186, "loc": { "start": { "line": 4, @@ -3513,8 +4871,8 @@ { "type": "CommentBlock", "value": "*\n * Csv - Support for CSV filetype\n *\n * @constructor\n ", - "start": 191, - "end": 251, + "start": 188, + "end": 248, "loc": { "start": { "line": 6, @@ -3540,8 +4898,8 @@ "binop": null }, "value": "function", - "start": 252, - "end": 260, + "start": 249, + "end": 257, "loc": { "start": { "line": 11, @@ -3566,8 +4924,8 @@ "binop": null }, "value": "Csv", - "start": 261, - "end": 264, + "start": 258, + "end": 261, "loc": { "start": { "line": 11, @@ -3591,8 +4949,8 @@ "postfix": false, "binop": null }, - "start": 265, - "end": 266, + "start": 262, + "end": 263, "loc": { "start": { "line": 11, @@ -3616,8 +4974,8 @@ "postfix": false, "binop": null }, - "start": 266, - "end": 267, + "start": 263, + "end": 264, "loc": { "start": { "line": 11, @@ -3641,8 +4999,8 @@ "postfix": false, "binop": null }, - "start": 268, - "end": 269, + "start": 265, + "end": 266, "loc": { "start": { "line": 11, @@ -3666,8 +5024,8 @@ "postfix": false, "binop": null }, - "start": 269, - "end": 270, + "start": 266, + "end": 267, "loc": { "start": { "line": 11, @@ -3692,8 +5050,8 @@ "binop": null }, "value": "Csv", - "start": 272, - "end": 275, + "start": 269, + "end": 272, "loc": { "start": { "line": 13, @@ -3718,8 +5076,8 @@ "binop": null, "updateContext": null }, - "start": 275, - "end": 276, + "start": 272, + "end": 273, "loc": { "start": { "line": 13, @@ -3744,8 +5102,8 @@ "binop": null }, "value": "prototype", - "start": 276, - "end": 285, + "start": 273, + "end": 282, "loc": { "start": { "line": 13, @@ -3771,8 +5129,8 @@ "updateContext": null }, "value": "=", - "start": 286, - "end": 287, + "start": 283, + "end": 284, "loc": { "start": { "line": 13, @@ -3797,8 +5155,8 @@ "binop": null }, "value": "Object", - "start": 288, - "end": 294, + "start": 285, + "end": 291, "loc": { "start": { "line": 13, @@ -3823,8 +5181,8 @@ "binop": null, "updateContext": null }, - "start": 294, - "end": 295, + "start": 291, + "end": 292, "loc": { "start": { "line": 13, @@ -3849,8 +5207,8 @@ "binop": null }, "value": "create", - "start": 295, - "end": 301, + "start": 292, + "end": 298, "loc": { "start": { "line": 13, @@ -3874,8 +5232,8 @@ "postfix": false, "binop": null }, - "start": 301, - "end": 302, + "start": 298, + "end": 299, "loc": { "start": { "line": 13, @@ -3900,8 +5258,8 @@ "binop": null }, "value": "Base", - "start": 302, - "end": 306, + "start": 299, + "end": 303, "loc": { "start": { "line": 13, @@ -3926,8 +5284,8 @@ "binop": null, "updateContext": null }, - "start": 306, - "end": 307, + "start": 303, + "end": 304, "loc": { "start": { "line": 13, @@ -3952,8 +5310,8 @@ "binop": null }, "value": "prototype", - "start": 307, - "end": 316, + "start": 304, + "end": 313, "loc": { "start": { "line": 13, @@ -3977,8 +5335,8 @@ "postfix": false, "binop": null }, - "start": 316, - "end": 317, + "start": 313, + "end": 314, "loc": { "start": { "line": 13, @@ -3992,9 +5350,9 @@ }, { "type": "CommentBlock", - "value": "*\n * Csv.prototype.parse - receives an CSV string and returns valid JS\n *\n * @param {string} data\n * @param {object} options\n * @param {boolean} options.headers - If should parse first line as the headers, default is true\n * @param {(string|Buffer)} options.delimiter - Which delimiters to use when parsing, defaults to comma `,`\n * @param {number} options.skipLines - How many lines it should skip before parsing, defaults to 1\n * @param {number} options.offset - How many lines it should parse, defaults to -1\n * @returns {array}\n ", - "start": 319, - "end": 856, + "value": "*\n * Csv.prototype.parse - receives an CSV string and returns valid JS\n *\n * @param {string} data\n * @param {object} options\n * @param {(boolean|array|function)} options.headers - If should parse first line as the headers, default is true\n * @param {(string|Buffer)} options.delimiter - Which delimiters to use when parsing, defaults to comma `,`\n * @param {number} options.skipLines - How many lines it should skip before parsing, defaults to 1\n * @param {number} options.offset - How many lines it should parse, defaults to -1\n * @returns {array}\n ", + "start": 316, + "end": 870, "loc": { "start": { "line": 15, @@ -4019,8 +5377,8 @@ "binop": null }, "value": "Csv", - "start": 857, - "end": 860, + "start": 871, + "end": 874, "loc": { "start": { "line": 26, @@ -4045,8 +5403,8 @@ "binop": null, "updateContext": null }, - "start": 860, - "end": 861, + "start": 874, + "end": 875, "loc": { "start": { "line": 26, @@ -4071,8 +5429,8 @@ "binop": null }, "value": "prototype", - "start": 861, - "end": 870, + "start": 875, + "end": 884, "loc": { "start": { "line": 26, @@ -4097,8 +5455,8 @@ "binop": null, "updateContext": null }, - "start": 870, - "end": 871, + "start": 884, + "end": 885, "loc": { "start": { "line": 26, @@ -4123,8 +5481,8 @@ "binop": null }, "value": "parse", - "start": 871, - "end": 876, + "start": 885, + "end": 890, "loc": { "start": { "line": 26, @@ -4150,8 +5508,8 @@ "updateContext": null }, "value": "=", - "start": 877, - "end": 878, + "start": 891, + "end": 892, "loc": { "start": { "line": 26, @@ -4177,8 +5535,8 @@ "binop": null }, "value": "function", - "start": 879, - "end": 887, + "start": 893, + "end": 901, "loc": { "start": { "line": 26, @@ -4203,8 +5561,8 @@ "binop": null }, "value": "parse", - "start": 888, - "end": 893, + "start": 902, + "end": 907, "loc": { "start": { "line": 26, @@ -4228,8 +5586,8 @@ "postfix": false, "binop": null }, - "start": 894, - "end": 895, + "start": 908, + "end": 909, "loc": { "start": { "line": 26, @@ -4254,8 +5612,8 @@ "binop": null }, "value": "data", - "start": 895, - "end": 899, + "start": 909, + "end": 913, "loc": { "start": { "line": 26, @@ -4280,8 +5638,8 @@ "binop": null, "updateContext": null }, - "start": 899, - "end": 900, + "start": 913, + "end": 914, "loc": { "start": { "line": 26, @@ -4306,8 +5664,8 @@ "binop": null }, "value": "options", - "start": 901, - "end": 908, + "start": 915, + "end": 922, "loc": { "start": { "line": 26, @@ -4333,8 +5691,8 @@ "updateContext": null }, "value": "=", - "start": 909, - "end": 910, + "start": 923, + "end": 924, "loc": { "start": { "line": 26, @@ -4358,8 +5716,8 @@ "postfix": false, "binop": null }, - "start": 911, - "end": 912, + "start": 925, + "end": 926, "loc": { "start": { "line": 26, @@ -4383,8 +5741,8 @@ "postfix": false, "binop": null }, - "start": 912, - "end": 913, + "start": 926, + "end": 927, "loc": { "start": { "line": 26, @@ -4408,8 +5766,8 @@ "postfix": false, "binop": null }, - "start": 913, - "end": 914, + "start": 927, + "end": 928, "loc": { "start": { "line": 26, @@ -4433,8 +5791,8 @@ "postfix": false, "binop": null }, - "start": 915, - "end": 916, + "start": 929, + "end": 930, "loc": { "start": { "line": 26, @@ -4461,8 +5819,8 @@ "updateContext": null }, "value": "const", - "start": 919, - "end": 924, + "start": 933, + "end": 938, "loc": { "start": { "line": 27, @@ -4487,8 +5845,8 @@ "binop": null }, "value": "config", - "start": 925, - "end": 931, + "start": 939, + "end": 945, "loc": { "start": { "line": 27, @@ -4514,8 +5872,8 @@ "updateContext": null }, "value": "=", - "start": 932, - "end": 933, + "start": 946, + "end": 947, "loc": { "start": { "line": 27, @@ -4539,8 +5897,8 @@ "postfix": false, "binop": null }, - "start": 934, - "end": 935, + "start": 948, + "end": 949, "loc": { "start": { "line": 27, @@ -4565,8 +5923,8 @@ "binop": null }, "value": "columns", - "start": 940, - "end": 947, + "start": 954, + "end": 961, "loc": { "start": { "line": 28, @@ -4591,8 +5949,8 @@ "binop": null, "updateContext": null }, - "start": 947, - "end": 948, + "start": 961, + "end": 962, "loc": { "start": { "line": 28, @@ -4619,8 +5977,8 @@ "updateContext": null }, "value": "true", - "start": 949, - "end": 953, + "start": 963, + "end": 967, "loc": { "start": { "line": 28, @@ -4645,8 +6003,8 @@ "binop": null, "updateContext": null }, - "start": 953, - "end": 954, + "start": 967, + "end": 968, "loc": { "start": { "line": 28, @@ -4671,8 +6029,8 @@ "binop": null }, "value": "skip_empty_lines", - "start": 959, - "end": 975, + "start": 973, + "end": 989, "loc": { "start": { "line": 29, @@ -4697,8 +6055,8 @@ "binop": null, "updateContext": null }, - "start": 975, - "end": 976, + "start": 989, + "end": 990, "loc": { "start": { "line": 29, @@ -4725,8 +6083,8 @@ "updateContext": null }, "value": "true", - "start": 977, - "end": 981, + "start": 991, + "end": 995, "loc": { "start": { "line": 29, @@ -4751,8 +6109,8 @@ "binop": null, "updateContext": null }, - "start": 981, - "end": 982, + "start": 995, + "end": 996, "loc": { "start": { "line": 29, @@ -4777,8 +6135,8 @@ "binop": null }, "value": "delimiter", - "start": 987, - "end": 996, + "start": 1001, + "end": 1010, "loc": { "start": { "line": 30, @@ -4803,8 +6161,8 @@ "binop": null, "updateContext": null }, - "start": 996, - "end": 997, + "start": 1010, + "end": 1011, "loc": { "start": { "line": 30, @@ -4829,8 +6187,8 @@ "binop": null }, "value": "options", - "start": 998, - "end": 1005, + "start": 1012, + "end": 1019, "loc": { "start": { "line": 30, @@ -4855,8 +6213,8 @@ "binop": null, "updateContext": null }, - "start": 1005, - "end": 1006, + "start": 1019, + "end": 1020, "loc": { "start": { "line": 30, @@ -4881,8 +6239,8 @@ "binop": null }, "value": "delimiter", - "start": 1006, - "end": 1015, + "start": 1020, + "end": 1029, "loc": { "start": { "line": 30, @@ -4908,8 +6266,8 @@ "updateContext": null }, "value": "||", - "start": 1016, - "end": 1018, + "start": 1030, + "end": 1032, "loc": { "start": { "line": 30, @@ -4935,8 +6293,8 @@ "updateContext": null }, "value": ",", - "start": 1019, - "end": 1022, + "start": 1033, + "end": 1036, "loc": { "start": { "line": 30, @@ -4961,8 +6319,8 @@ "binop": null, "updateContext": null }, - "start": 1022, - "end": 1023, + "start": 1036, + "end": 1037, "loc": { "start": { "line": 30, @@ -4987,8 +6345,8 @@ "binop": null }, "value": "from_line", - "start": 1028, - "end": 1037, + "start": 1042, + "end": 1051, "loc": { "start": { "line": 31, @@ -5013,8 +6371,8 @@ "binop": null, "updateContext": null }, - "start": 1037, - "end": 1038, + "start": 1051, + "end": 1052, "loc": { "start": { "line": 31, @@ -5039,8 +6397,8 @@ "binop": null }, "value": "options", - "start": 1039, - "end": 1046, + "start": 1053, + "end": 1060, "loc": { "start": { "line": 31, @@ -5065,8 +6423,8 @@ "binop": null, "updateContext": null }, - "start": 1046, - "end": 1047, + "start": 1060, + "end": 1061, "loc": { "start": { "line": 31, @@ -5091,8 +6449,8 @@ "binop": null }, "value": "skipLines", - "start": 1047, - "end": 1056, + "start": 1061, + "end": 1070, "loc": { "start": { "line": 31, @@ -5118,8 +6476,8 @@ "updateContext": null }, "value": "||", - "start": 1057, - "end": 1059, + "start": 1071, + "end": 1073, "loc": { "start": { "line": 31, @@ -5145,8 +6503,8 @@ "updateContext": null }, "value": 1, - "start": 1060, - "end": 1061, + "start": 1074, + "end": 1075, "loc": { "start": { "line": 31, @@ -5170,8 +6528,8 @@ "postfix": false, "binop": null }, - "start": 1064, - "end": 1065, + "start": 1078, + "end": 1079, "loc": { "start": { "line": 32, @@ -5198,8 +6556,8 @@ "updateContext": null }, "value": "if", - "start": 1069, - "end": 1071, + "start": 1083, + "end": 1085, "loc": { "start": { "line": 34, @@ -5223,8 +6581,8 @@ "postfix": false, "binop": null }, - "start": 1072, - "end": 1073, + "start": 1086, + "end": 1087, "loc": { "start": { "line": 34, @@ -5248,9 +6606,9 @@ "postfix": false, "binop": null }, - "value": "options", - "start": 1073, - "end": 1080, + "value": "Object", + "start": 1087, + "end": 1093, "loc": { "start": { "line": 34, @@ -5258,7 +6616,7 @@ }, "end": { "line": 34, - "column": 13 + "column": 12 } } }, @@ -5275,16 +6633,16 @@ "binop": null, "updateContext": null }, - "start": 1080, - "end": 1081, + "start": 1093, + "end": 1094, "loc": { "start": { "line": 34, - "column": 13 + "column": 12 }, "end": { "line": 34, - "column": 14 + "column": 13 } } }, @@ -5300,36 +6658,35 @@ "postfix": false, "binop": null }, - "value": "headers", - "start": 1081, - "end": 1088, + "value": "prototype", + "start": 1094, + "end": 1103, "loc": { "start": { "line": 34, - "column": 14 + "column": 13 }, "end": { "line": 34, - "column": 21 + "column": 22 } } }, { "type": { - "label": "==/!=", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": 6, + "binop": null, "updateContext": null }, - "value": "===", - "start": 1089, - "end": 1092, + "start": 1103, + "end": 1104, "loc": { "start": { "line": 34, @@ -5337,14 +6694,13 @@ }, "end": { "line": 34, - "column": 25 + "column": 23 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -5352,20 +6708,252 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 1093, - "end": 1098, + "value": "hasOwnProperty", + "start": 1104, + "end": 1118, "loc": { "start": { "line": 34, - "column": 26 + "column": 23 }, "end": { "line": 34, - "column": 31 + "column": 37 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1118, + "end": 1119, + "loc": { + "start": { + "line": 34, + "column": 37 + }, + "end": { + "line": 34, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "apply", + "start": 1119, + "end": 1124, + "loc": { + "start": { + "line": 34, + "column": 38 + }, + "end": { + "line": 34, + "column": 43 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1124, + "end": 1125, + "loc": { + "start": { + "line": 34, + "column": 43 + }, + "end": { + "line": 34, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1125, + "end": 1132, + "loc": { + "start": { + "line": 34, + "column": 44 + }, + "end": { + "line": 34, + "column": 51 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1132, + "end": 1133, + "loc": { + "start": { + "line": 34, + "column": 51 + }, + "end": { + "line": 34, + "column": 52 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1134, + "end": 1135, + "loc": { + "start": { + "line": 34, + "column": 53 + }, + "end": { + "line": 34, + "column": 54 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "headers", + "start": 1135, + "end": 1144, + "loc": { + "start": { + "line": 34, + "column": 54 + }, + "end": { + "line": 34, + "column": 63 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1144, + "end": 1145, + "loc": { + "start": { + "line": 34, + "column": 63 + }, + "end": { + "line": 34, + "column": 64 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1145, + "end": 1146, + "loc": { + "start": { + "line": 34, + "column": 64 + }, + "end": { + "line": 34, + "column": 65 } } }, @@ -5373,7 +6961,1981 @@ "type": { "label": ")", "beforeExpr": false, - "startsExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1146, + "end": 1147, + "loc": { + "start": { + "line": 34, + "column": 65 + }, + "end": { + "line": 34, + "column": 66 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1148, + "end": 1149, + "loc": { + "start": { + "line": 34, + "column": 67 + }, + "end": { + "line": 34, + "column": 68 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 1154, + "end": 1160, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1160, + "end": 1161, + "loc": { + "start": { + "line": 35, + "column": 10 + }, + "end": { + "line": 35, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "columns", + "start": 1161, + "end": 1168, + "loc": { + "start": { + "line": 35, + "column": 11 + }, + "end": { + "line": 35, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1169, + "end": 1170, + "loc": { + "start": { + "line": 35, + "column": 19 + }, + "end": { + "line": 35, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1171, + "end": 1178, + "loc": { + "start": { + "line": 35, + "column": 21 + }, + "end": { + "line": 35, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1178, + "end": 1179, + "loc": { + "start": { + "line": 35, + "column": 28 + }, + "end": { + "line": 35, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "headers", + "start": 1179, + "end": 1186, + "loc": { + "start": { + "line": 35, + "column": 29 + }, + "end": { + "line": 35, + "column": 36 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1189, + "end": 1190, + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1194, + "end": 1196, + "loc": { + "start": { + "line": 38, + "column": 2 + }, + "end": { + "line": 38, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1197, + "end": 1198, + "loc": { + "start": { + "line": 38, + "column": 5 + }, + "end": { + "line": 38, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1198, + "end": 1205, + "loc": { + "start": { + "line": 38, + "column": 6 + }, + "end": { + "line": 38, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1205, + "end": 1206, + "loc": { + "start": { + "line": 38, + "column": 13 + }, + "end": { + "line": 38, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "offset", + "start": 1206, + "end": 1212, + "loc": { + "start": { + "line": 38, + "column": 14 + }, + "end": { + "line": 38, + "column": 20 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1212, + "end": 1213, + "loc": { + "start": { + "line": 38, + "column": 20 + }, + "end": { + "line": 38, + "column": 21 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1214, + "end": 1215, + "loc": { + "start": { + "line": 38, + "column": 22 + }, + "end": { + "line": 38, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 1220, + "end": 1226, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1226, + "end": 1227, + "loc": { + "start": { + "line": 39, + "column": 10 + }, + "end": { + "line": 39, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "to_line", + "start": 1227, + "end": 1234, + "loc": { + "start": { + "line": 39, + "column": 11 + }, + "end": { + "line": 39, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1235, + "end": 1236, + "loc": { + "start": { + "line": 39, + "column": 19 + }, + "end": { + "line": 39, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1237, + "end": 1244, + "loc": { + "start": { + "line": 39, + "column": 21 + }, + "end": { + "line": 39, + "column": 28 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1244, + "end": 1245, + "loc": { + "start": { + "line": 39, + "column": 28 + }, + "end": { + "line": 39, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "offset", + "start": 1245, + "end": 1251, + "loc": { + "start": { + "line": 39, + "column": 29 + }, + "end": { + "line": 39, + "column": 35 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1254, + "end": 1255, + "loc": { + "start": { + "line": 40, + "column": 2 + }, + "end": { + "line": 40, + "column": 3 + } + } + }, + { + "type": { + "label": "try", + "keyword": "try", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "try", + "start": 1259, + "end": 1262, + "loc": { + "start": { + "line": 42, + "column": 2 + }, + "end": { + "line": 42, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1263, + "end": 1264, + "loc": { + "start": { + "line": 42, + "column": 6 + }, + "end": { + "line": 42, + "column": 7 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1269, + "end": 1275, + "loc": { + "start": { + "line": 43, + "column": 4 + }, + "end": { + "line": 43, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "csvParser", + "start": 1276, + "end": 1285, + "loc": { + "start": { + "line": 43, + "column": 11 + }, + "end": { + "line": 43, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1285, + "end": 1286, + "loc": { + "start": { + "line": 43, + "column": 20 + }, + "end": { + "line": 43, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1286, + "end": 1290, + "loc": { + "start": { + "line": 43, + "column": 21 + }, + "end": { + "line": 43, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1290, + "end": 1291, + "loc": { + "start": { + "line": 43, + "column": 25 + }, + "end": { + "line": 43, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 1292, + "end": 1298, + "loc": { + "start": { + "line": 43, + "column": 27 + }, + "end": { + "line": 43, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1298, + "end": 1299, + "loc": { + "start": { + "line": 43, + "column": 33 + }, + "end": { + "line": 43, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1302, + "end": 1303, + "loc": { + "start": { + "line": 44, + "column": 2 + }, + "end": { + "line": 44, + "column": 3 + } + } + }, + { + "type": { + "label": "catch", + "keyword": "catch", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "catch", + "start": 1304, + "end": 1309, + "loc": { + "start": { + "line": 44, + "column": 4 + }, + "end": { + "line": 44, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1310, + "end": 1311, + "loc": { + "start": { + "line": 44, + "column": 10 + }, + "end": { + "line": 44, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1311, + "end": 1312, + "loc": { + "start": { + "line": 44, + "column": 11 + }, + "end": { + "line": 44, + "column": 12 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1312, + "end": 1313, + "loc": { + "start": { + "line": 44, + "column": 12 + }, + "end": { + "line": 44, + "column": 13 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1314, + "end": 1315, + "loc": { + "start": { + "line": 44, + "column": 14 + }, + "end": { + "line": 44, + "column": 15 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1320, + "end": 1325, + "loc": { + "start": { + "line": 45, + "column": 4 + }, + "end": { + "line": 45, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "context", + "start": 1326, + "end": 1333, + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 45, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1334, + "end": 1335, + "loc": { + "start": { + "line": 45, + "column": 18 + }, + "end": { + "line": 45, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1336, + "end": 1337, + "loc": { + "start": { + "line": 45, + "column": 20 + }, + "end": { + "line": 45, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 1344, + "end": 1348, + "loc": { + "start": { + "line": 46, + "column": 6 + }, + "end": { + "line": 46, + "column": 10 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1348, + "end": 1349, + "loc": { + "start": { + "line": 46, + "column": 10 + }, + "end": { + "line": 46, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1350, + "end": 1351, + "loc": { + "start": { + "line": 46, + "column": 12 + }, + "end": { + "line": 46, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1351, + "end": 1352, + "loc": { + "start": { + "line": 46, + "column": 13 + }, + "end": { + "line": 46, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "code", + "start": 1352, + "end": 1356, + "loc": { + "start": { + "line": 46, + "column": 14 + }, + "end": { + "line": 46, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1356, + "end": 1357, + "loc": { + "start": { + "line": 46, + "column": 18 + }, + "end": { + "line": 46, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 1364, + "end": 1371, + "loc": { + "start": { + "line": 47, + "column": 6 + }, + "end": { + "line": 47, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1371, + "end": 1372, + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1373, + "end": 1374, + "loc": { + "start": { + "line": 47, + "column": 15 + }, + "end": { + "line": 47, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1374, + "end": 1375, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 1375, + "end": 1382, + "loc": { + "start": { + "line": 47, + "column": 17 + }, + "end": { + "line": 47, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1382, + "end": 1383, + "loc": { + "start": { + "line": 47, + "column": 24 + }, + "end": { + "line": 47, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "column", + "start": 1390, + "end": 1396, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1396, + "end": 1397, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1398, + "end": 1399, + "loc": { + "start": { + "line": 48, + "column": 14 + }, + "end": { + "line": 48, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1399, + "end": 1400, + "loc": { + "start": { + "line": 48, + "column": 15 + }, + "end": { + "line": 48, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "column", + "start": 1400, + "end": 1406, + "loc": { + "start": { + "line": 48, + "column": 16 + }, + "end": { + "line": 48, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1406, + "end": 1407, + "loc": { + "start": { + "line": 48, + "column": 22 + }, + "end": { + "line": 48, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "emptyLines", + "start": 1414, + "end": 1424, + "loc": { + "start": { + "line": 49, + "column": 6 + }, + "end": { + "line": 49, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1424, + "end": 1425, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1426, + "end": 1427, + "loc": { + "start": { + "line": 49, + "column": 18 + }, + "end": { + "line": 49, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1427, + "end": 1428, + "loc": { + "start": { + "line": 49, + "column": 19 + }, + "end": { + "line": 49, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "empty_lines", + "start": 1428, + "end": 1439, + "loc": { + "start": { + "line": 49, + "column": 20 + }, + "end": { + "line": 49, + "column": 31 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1439, + "end": 1440, + "loc": { + "start": { + "line": 49, + "column": 31 + }, + "end": { + "line": 49, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "header", + "start": 1447, + "end": 1453, + "loc": { + "start": { + "line": 50, + "column": 6 + }, + "end": { + "line": 50, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1453, + "end": 1454, + "loc": { + "start": { + "line": 50, + "column": 12 + }, + "end": { + "line": 50, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1455, + "end": 1456, + "loc": { + "start": { + "line": 50, + "column": 14 + }, + "end": { + "line": 50, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1456, + "end": 1457, + "loc": { + "start": { + "line": 50, + "column": 15 + }, + "end": { + "line": 50, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "header", + "start": 1457, + "end": 1463, + "loc": { + "start": { + "line": 50, + "column": 16 + }, + "end": { + "line": 50, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1463, + "end": 1464, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 1471, + "end": 1476, + "loc": { + "start": { + "line": 51, + "column": 6 + }, + "end": { + "line": 51, + "column": 11 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1476, + "end": 1477, + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5381,41 +8943,43 @@ "postfix": false, "binop": null }, - "start": 1098, - "end": 1099, + "value": "e", + "start": 1478, + "end": 1479, "loc": { "start": { - "line": 34, - "column": 31 + "line": 51, + "column": 13 }, "end": { - "line": 34, - "column": 32 + "line": 51, + "column": 14 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1100, - "end": 1101, + "start": 1479, + "end": 1480, "loc": { "start": { - "line": 34, - "column": 33 + "line": 51, + "column": 14 }, "end": { - "line": 34, - "column": 34 + "line": 51, + "column": 15 } } }, @@ -5431,24 +8995,24 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1106, - "end": 1112, + "value": "index", + "start": 1480, + "end": 1485, "loc": { "start": { - "line": 35, - "column": 4 + "line": 51, + "column": 15 }, "end": { - "line": 35, - "column": 10 + "line": 51, + "column": 20 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -5458,16 +9022,16 @@ "binop": null, "updateContext": null }, - "start": 1112, - "end": 1113, + "start": 1485, + "end": 1486, "loc": { "start": { - "line": 35, - "column": 10 + "line": 51, + "column": 20 }, "end": { - "line": 35, - "column": 11 + "line": 51, + "column": 21 } } }, @@ -5483,51 +9047,49 @@ "postfix": false, "binop": null }, - "value": "columns", - "start": 1113, - "end": 1120, + "value": "lines", + "start": 1493, + "end": 1498, "loc": { "start": { - "line": 35, - "column": 11 + "line": 52, + "column": 6 }, "end": { - "line": 35, - "column": 18 + "line": 52, + "column": 11 } } }, { "type": { - "label": "=", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1121, - "end": 1122, + "start": 1498, + "end": 1499, "loc": { "start": { - "line": 35, - "column": 19 + "line": 52, + "column": 11 }, "end": { - "line": 35, - "column": 20 + "line": 52, + "column": 12 } } }, { "type": { - "label": "false", - "keyword": "false", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -5535,26 +9097,25 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "false", - "start": 1123, - "end": 1128, + "value": "e", + "start": 1500, + "end": 1501, "loc": { "start": { - "line": 35, - "column": 21 + "line": 52, + "column": 13 }, "end": { - "line": 35, - "column": 26 + "line": 52, + "column": 14 } } }, { "type": { - "label": "}", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -5562,71 +9123,71 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1131, - "end": 1132, + "start": 1501, + "end": 1502, "loc": { "start": { - "line": 36, - "column": 2 + "line": 52, + "column": 14 }, "end": { - "line": 36, - "column": 3 + "line": 52, + "column": 15 } } }, { "type": { - "label": "if", - "keyword": "if", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "if", - "start": 1136, - "end": 1138, + "value": "lines", + "start": 1502, + "end": 1507, "loc": { "start": { - "line": 38, - "column": 2 + "line": 52, + "column": 15 }, "end": { - "line": 38, - "column": 4 + "line": 52, + "column": 20 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1139, - "end": 1140, + "start": 1507, + "end": 1508, "loc": { "start": { - "line": 38, - "column": 5 + "line": 52, + "column": 20 }, "end": { - "line": 38, - "column": 6 + "line": 52, + "column": 21 } } }, @@ -5642,24 +9203,24 @@ "postfix": false, "binop": null }, - "value": "options", - "start": 1140, - "end": 1147, + "value": "quoting", + "start": 1515, + "end": 1522, "loc": { "start": { - "line": 38, + "line": 53, "column": 6 }, "end": { - "line": 38, + "line": 53, "column": 13 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -5669,15 +9230,15 @@ "binop": null, "updateContext": null }, - "start": 1147, - "end": 1148, + "start": 1522, + "end": 1523, "loc": { "start": { - "line": 38, + "line": 53, "column": 13 }, "end": { - "line": 38, + "line": 53, "column": 14 } } @@ -5694,23 +9255,23 @@ "postfix": false, "binop": null }, - "value": "offset", - "start": 1148, - "end": 1154, + "value": "e", + "start": 1524, + "end": 1525, "loc": { "start": { - "line": 38, - "column": 14 + "line": 53, + "column": 15 }, "end": { - "line": 38, - "column": 20 + "line": 53, + "column": 16 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -5718,43 +9279,19 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null - }, - "start": 1154, - "end": 1155, - "loc": { - "start": { - "line": 38, - "column": 20 - }, - "end": { - "line": 38, - "column": 21 - } - } - }, - { - "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1156, - "end": 1157, + "start": 1525, + "end": 1526, "loc": { "start": { - "line": 38, - "column": 22 + "line": 53, + "column": 16 }, "end": { - "line": 38, - "column": 23 + "line": 53, + "column": 17 } } }, @@ -5770,24 +9307,24 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1162, - "end": 1168, + "value": "quoting", + "start": 1526, + "end": 1533, "loc": { "start": { - "line": 39, - "column": 4 + "line": 53, + "column": 17 }, "end": { - "line": 39, - "column": 10 + "line": 53, + "column": 24 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ",", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -5797,16 +9334,16 @@ "binop": null, "updateContext": null }, - "start": 1168, - "end": 1169, + "start": 1533, + "end": 1534, "loc": { "start": { - "line": 39, - "column": 10 + "line": 53, + "column": 24 }, "end": { - "line": 39, - "column": 11 + "line": 53, + "column": 25 } } }, @@ -5822,44 +9359,43 @@ "postfix": false, "binop": null }, - "value": "to_line", - "start": 1169, - "end": 1176, + "value": "records", + "start": 1541, + "end": 1548, "loc": { "start": { - "line": 39, - "column": 11 + "line": 54, + "column": 6 }, "end": { - "line": 39, - "column": 18 + "line": 54, + "column": 13 } } }, { "type": { - "label": "=", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 1177, - "end": 1178, + "start": 1548, + "end": 1549, "loc": { "start": { - "line": 39, - "column": 19 + "line": 54, + "column": 13 }, "end": { - "line": 39, - "column": 20 + "line": 54, + "column": 14 } } }, @@ -5875,17 +9411,17 @@ "postfix": false, "binop": null }, - "value": "options", - "start": 1179, - "end": 1186, + "value": "e", + "start": 1550, + "end": 1551, "loc": { "start": { - "line": 39, - "column": 21 + "line": 54, + "column": 15 }, "end": { - "line": 39, - "column": 28 + "line": 54, + "column": 16 } } }, @@ -5902,24 +9438,50 @@ "binop": null, "updateContext": null }, - "start": 1186, - "end": 1187, + "start": 1551, + "end": 1552, "loc": { "start": { - "line": 39, - "column": 28 + "line": 54, + "column": 16 + }, + "end": { + "line": 54, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "records", + "start": 1552, + "end": 1559, + "loc": { + "start": { + "line": 54, + "column": 17 }, "end": { - "line": 39, - "column": 29 + "line": 54, + "column": 24 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5927,51 +9489,53 @@ "postfix": false, "binop": null }, - "value": "offset", - "start": 1187, - "end": 1193, + "start": 1564, + "end": 1565, "loc": { "start": { - "line": 39, - "column": 29 + "line": 55, + "column": 4 }, "end": { - "line": 39, - "column": 35 + "line": 55, + "column": 5 } } }, { "type": { - "label": "}", - "beforeExpr": false, + "label": "throw", + "keyword": "throw", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 1196, - "end": 1197, + "value": "throw", + "start": 1571, + "end": 1576, "loc": { "start": { - "line": 40, - "column": 2 + "line": 57, + "column": 4 }, "end": { - "line": 40, - "column": 3 + "line": 57, + "column": 9 } } }, { "type": { - "label": "return", - "keyword": "return", + "label": "new", + "keyword": "new", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -5980,17 +9544,17 @@ "binop": null, "updateContext": null }, - "value": "return", - "start": 1201, - "end": 1207, + "value": "new", + "start": 1577, + "end": 1580, "loc": { "start": { - "line": 42, - "column": 2 + "line": 57, + "column": 10 }, "end": { - "line": 42, - "column": 8 + "line": 57, + "column": 13 } } }, @@ -6006,17 +9570,17 @@ "postfix": false, "binop": null }, - "value": "csvParser", - "start": 1208, - "end": 1217, + "value": "ParserError", + "start": 1581, + "end": 1592, "loc": { "start": { - "line": 42, - "column": 9 + "line": 57, + "column": 14 }, "end": { - "line": 42, - "column": 18 + "line": 57, + "column": 25 } } }, @@ -6032,22 +9596,22 @@ "postfix": false, "binop": null }, - "start": 1217, - "end": 1218, + "start": 1592, + "end": 1593, "loc": { "start": { - "line": 42, - "column": 18 + "line": 57, + "column": 25 }, "end": { - "line": 42, - "column": 19 + "line": 57, + "column": 26 } } }, { "type": { - "label": "name", + "label": "string", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -6055,19 +9619,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 1218, - "end": 1222, + "value": "csv", + "start": 1593, + "end": 1598, "loc": { "start": { - "line": 42, - "column": 19 + "line": 57, + "column": 26 }, "end": { - "line": 42, - "column": 23 + "line": 57, + "column": 31 } } }, @@ -6084,16 +9649,16 @@ "binop": null, "updateContext": null }, - "start": 1222, - "end": 1223, + "start": 1598, + "end": 1599, "loc": { "start": { - "line": 42, - "column": 23 + "line": 57, + "column": 31 }, "end": { - "line": 42, - "column": 24 + "line": 57, + "column": 32 } } }, @@ -6109,17 +9674,17 @@ "postfix": false, "binop": null }, - "value": "config", - "start": 1224, - "end": 1230, + "value": "context", + "start": 1600, + "end": 1607, "loc": { "start": { - "line": 42, - "column": 25 + "line": 57, + "column": 33 }, "end": { - "line": 42, - "column": 31 + "line": 57, + "column": 40 } } }, @@ -6135,16 +9700,16 @@ "postfix": false, "binop": null }, - "start": 1230, - "end": 1231, + "start": 1607, + "end": 1608, "loc": { "start": { - "line": 42, - "column": 31 + "line": 57, + "column": 40 }, "end": { - "line": 42, - "column": 32 + "line": 57, + "column": 41 } } }, @@ -6160,15 +9725,40 @@ "postfix": false, "binop": null }, - "start": 1232, - "end": 1233, + "start": 1611, + "end": 1612, "loc": { "start": { - "line": 43, + "line": 58, + "column": 2 + }, + "end": { + "line": 58, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1613, + "end": 1614, + "loc": { + "start": { + "line": 59, "column": 0 }, "end": { - "line": 43, + "line": 59, "column": 1 } } @@ -6176,15 +9766,15 @@ { "type": "CommentBlock", "value": "*\n * Csv.prototype.stringify - receives * valid JS data and returns it as CSV\n *\n * @param {array} data\n * @param {object} options\n * @param {boolean} options.headers - If should set first line as the headers, default is true\n * @param {(array|object)} options.columns - Custom column mapping, see examples for more\n * @returns {string}\n ", - "start": 1235, - "end": 1577, + "start": 1616, + "end": 1958, "loc": { "start": { - "line": 45, + "line": 61, "column": 0 }, "end": { - "line": 53, + "line": 69, "column": 3 } } @@ -6202,15 +9792,15 @@ "binop": null }, "value": "Csv", - "start": 1578, - "end": 1581, + "start": 1959, + "end": 1962, "loc": { "start": { - "line": 54, + "line": 70, "column": 0 }, "end": { - "line": 54, + "line": 70, "column": 3 } } @@ -6228,15 +9818,15 @@ "binop": null, "updateContext": null }, - "start": 1581, - "end": 1582, + "start": 1962, + "end": 1963, "loc": { "start": { - "line": 54, + "line": 70, "column": 3 }, "end": { - "line": 54, + "line": 70, "column": 4 } } @@ -6254,15 +9844,15 @@ "binop": null }, "value": "prototype", - "start": 1582, - "end": 1591, + "start": 1963, + "end": 1972, "loc": { "start": { - "line": 54, + "line": 70, "column": 4 }, "end": { - "line": 54, + "line": 70, "column": 13 } } @@ -6280,15 +9870,15 @@ "binop": null, "updateContext": null }, - "start": 1591, - "end": 1592, + "start": 1972, + "end": 1973, "loc": { "start": { - "line": 54, + "line": 70, "column": 13 }, "end": { - "line": 54, + "line": 70, "column": 14 } } @@ -6306,15 +9896,15 @@ "binop": null }, "value": "stringify", - "start": 1592, - "end": 1601, + "start": 1973, + "end": 1982, "loc": { "start": { - "line": 54, + "line": 70, "column": 14 }, "end": { - "line": 54, + "line": 70, "column": 23 } } @@ -6333,15 +9923,15 @@ "updateContext": null }, "value": "=", - "start": 1602, - "end": 1603, + "start": 1983, + "end": 1984, "loc": { "start": { - "line": 54, + "line": 70, "column": 24 }, "end": { - "line": 54, + "line": 70, "column": 25 } } @@ -6360,15 +9950,15 @@ "binop": null }, "value": "function", - "start": 1604, - "end": 1612, + "start": 1985, + "end": 1993, "loc": { "start": { - "line": 54, + "line": 70, "column": 26 }, "end": { - "line": 54, + "line": 70, "column": 34 } } @@ -6386,15 +9976,15 @@ "binop": null }, "value": "stringify", - "start": 1613, - "end": 1622, + "start": 1994, + "end": 2003, "loc": { "start": { - "line": 54, + "line": 70, "column": 35 }, "end": { - "line": 54, + "line": 70, "column": 44 } } @@ -6411,15 +10001,15 @@ "postfix": false, "binop": null }, - "start": 1623, - "end": 1624, + "start": 2004, + "end": 2005, "loc": { "start": { - "line": 54, + "line": 70, "column": 45 }, "end": { - "line": 54, + "line": 70, "column": 46 } } @@ -6437,15 +10027,15 @@ "binop": null }, "value": "data", - "start": 1624, - "end": 1628, + "start": 2005, + "end": 2009, "loc": { "start": { - "line": 54, + "line": 70, "column": 46 }, "end": { - "line": 54, + "line": 70, "column": 50 } } @@ -6463,15 +10053,15 @@ "binop": null, "updateContext": null }, - "start": 1628, - "end": 1629, + "start": 2009, + "end": 2010, "loc": { "start": { - "line": 54, + "line": 70, "column": 50 }, "end": { - "line": 54, + "line": 70, "column": 51 } } @@ -6489,15 +10079,15 @@ "binop": null }, "value": "options", - "start": 1630, - "end": 1637, + "start": 2011, + "end": 2018, "loc": { "start": { - "line": 54, + "line": 70, "column": 52 }, "end": { - "line": 54, + "line": 70, "column": 59 } } @@ -6516,15 +10106,15 @@ "updateContext": null }, "value": "=", - "start": 1638, - "end": 1639, + "start": 2019, + "end": 2020, "loc": { "start": { - "line": 54, + "line": 70, "column": 60 }, "end": { - "line": 54, + "line": 70, "column": 61 } } @@ -6541,15 +10131,15 @@ "postfix": false, "binop": null }, - "start": 1640, - "end": 1641, + "start": 2021, + "end": 2022, "loc": { "start": { - "line": 54, + "line": 70, "column": 62 }, "end": { - "line": 54, + "line": 70, "column": 63 } } @@ -6566,15 +10156,15 @@ "postfix": false, "binop": null }, - "start": 1641, - "end": 1642, + "start": 2022, + "end": 2023, "loc": { "start": { - "line": 54, + "line": 70, "column": 63 }, "end": { - "line": 54, + "line": 70, "column": 64 } } @@ -6591,15 +10181,15 @@ "postfix": false, "binop": null }, - "start": 1642, - "end": 1643, + "start": 2023, + "end": 2024, "loc": { "start": { - "line": 54, + "line": 70, "column": 64 }, "end": { - "line": 54, + "line": 70, "column": 65 } } @@ -6616,15 +10206,15 @@ "postfix": false, "binop": null }, - "start": 1644, - "end": 1645, + "start": 2025, + "end": 2026, "loc": { "start": { - "line": 54, + "line": 70, "column": 66 }, "end": { - "line": 54, + "line": 70, "column": 67 } } @@ -6644,15 +10234,15 @@ "updateContext": null }, "value": "const", - "start": 1648, - "end": 1653, + "start": 2029, + "end": 2034, "loc": { "start": { - "line": 55, + "line": 71, "column": 2 }, "end": { - "line": 55, + "line": 71, "column": 7 } } @@ -6670,15 +10260,15 @@ "binop": null }, "value": "config", - "start": 1654, - "end": 1660, + "start": 2035, + "end": 2041, "loc": { "start": { - "line": 55, + "line": 71, "column": 8 }, "end": { - "line": 55, + "line": 71, "column": 14 } } @@ -6697,15 +10287,15 @@ "updateContext": null }, "value": "=", - "start": 1661, - "end": 1662, + "start": 2042, + "end": 2043, "loc": { "start": { - "line": 55, + "line": 71, "column": 15 }, "end": { - "line": 55, + "line": 71, "column": 16 } } @@ -6722,15 +10312,15 @@ "postfix": false, "binop": null }, - "start": 1663, - "end": 1664, + "start": 2044, + "end": 2045, "loc": { "start": { - "line": 55, + "line": 71, "column": 17 }, "end": { - "line": 55, + "line": 71, "column": 18 } } @@ -6748,15 +10338,15 @@ "binop": null }, "value": "header", - "start": 1669, - "end": 1675, + "start": 2050, + "end": 2056, "loc": { "start": { - "line": 56, + "line": 72, "column": 4 }, "end": { - "line": 56, + "line": 72, "column": 10 } } @@ -6774,15 +10364,15 @@ "binop": null, "updateContext": null }, - "start": 1675, - "end": 1676, + "start": 2056, + "end": 2057, "loc": { "start": { - "line": 56, + "line": 72, "column": 10 }, "end": { - "line": 56, + "line": 72, "column": 11 } } @@ -6802,15 +10392,15 @@ "updateContext": null }, "value": "true", - "start": 1677, - "end": 1681, + "start": 2058, + "end": 2062, "loc": { "start": { - "line": 56, + "line": 72, "column": 12 }, "end": { - "line": 56, + "line": 72, "column": 16 } } @@ -6827,15 +10417,15 @@ "postfix": false, "binop": null }, - "start": 1684, - "end": 1685, + "start": 2065, + "end": 2066, "loc": { "start": { - "line": 57, + "line": 73, "column": 2 }, "end": { - "line": 57, + "line": 73, "column": 3 } } @@ -6855,15 +10445,15 @@ "updateContext": null }, "value": "if", - "start": 1689, - "end": 1691, + "start": 2070, + "end": 2072, "loc": { "start": { - "line": 59, + "line": 75, "column": 2 }, "end": { - "line": 59, + "line": 75, "column": 4 } } @@ -6880,15 +10470,15 @@ "postfix": false, "binop": null }, - "start": 1692, - "end": 1693, + "start": 2073, + "end": 2074, "loc": { "start": { - "line": 59, + "line": 75, "column": 5 }, "end": { - "line": 59, + "line": 75, "column": 6 } } @@ -6906,15 +10496,15 @@ "binop": null }, "value": "options", - "start": 1693, - "end": 1700, + "start": 2074, + "end": 2081, "loc": { "start": { - "line": 59, + "line": 75, "column": 6 }, "end": { - "line": 59, + "line": 75, "column": 13 } } @@ -6932,15 +10522,15 @@ "binop": null, "updateContext": null }, - "start": 1700, - "end": 1701, + "start": 2081, + "end": 2082, "loc": { "start": { - "line": 59, + "line": 75, "column": 13 }, "end": { - "line": 59, + "line": 75, "column": 14 } } @@ -6958,15 +10548,15 @@ "binop": null }, "value": "headers", - "start": 1701, - "end": 1708, + "start": 2082, + "end": 2089, "loc": { "start": { - "line": 59, + "line": 75, "column": 14 }, "end": { - "line": 59, + "line": 75, "column": 21 } } @@ -6985,15 +10575,15 @@ "updateContext": null }, "value": "===", - "start": 1709, - "end": 1712, + "start": 2090, + "end": 2093, "loc": { "start": { - "line": 59, + "line": 75, "column": 22 }, "end": { - "line": 59, + "line": 75, "column": 25 } } @@ -7013,15 +10603,15 @@ "updateContext": null }, "value": "false", - "start": 1713, - "end": 1718, + "start": 2094, + "end": 2099, "loc": { "start": { - "line": 59, + "line": 75, "column": 26 }, "end": { - "line": 59, + "line": 75, "column": 31 } } @@ -7038,15 +10628,15 @@ "postfix": false, "binop": null }, - "start": 1718, - "end": 1719, + "start": 2099, + "end": 2100, "loc": { "start": { - "line": 59, + "line": 75, "column": 31 }, "end": { - "line": 59, + "line": 75, "column": 32 } } @@ -7063,15 +10653,15 @@ "postfix": false, "binop": null }, - "start": 1720, - "end": 1721, + "start": 2101, + "end": 2102, "loc": { "start": { - "line": 59, + "line": 75, "column": 33 }, "end": { - "line": 59, + "line": 75, "column": 34 } } @@ -7089,15 +10679,15 @@ "binop": null }, "value": "config", - "start": 1726, - "end": 1732, + "start": 2107, + "end": 2113, "loc": { "start": { - "line": 60, + "line": 76, "column": 4 }, "end": { - "line": 60, + "line": 76, "column": 10 } } @@ -7115,15 +10705,15 @@ "binop": null, "updateContext": null }, - "start": 1732, - "end": 1733, + "start": 2113, + "end": 2114, "loc": { "start": { - "line": 60, + "line": 76, "column": 10 }, "end": { - "line": 60, + "line": 76, "column": 11 } } @@ -7141,15 +10731,15 @@ "binop": null }, "value": "header", - "start": 1733, - "end": 1739, + "start": 2114, + "end": 2120, "loc": { "start": { - "line": 60, + "line": 76, "column": 11 }, "end": { - "line": 60, + "line": 76, "column": 17 } } @@ -7168,15 +10758,15 @@ "updateContext": null }, "value": "=", - "start": 1740, - "end": 1741, + "start": 2121, + "end": 2122, "loc": { "start": { - "line": 60, + "line": 76, "column": 18 }, "end": { - "line": 60, + "line": 76, "column": 19 } } @@ -7196,15 +10786,15 @@ "updateContext": null }, "value": "false", - "start": 1742, - "end": 1747, + "start": 2123, + "end": 2128, "loc": { "start": { - "line": 60, + "line": 76, "column": 20 }, "end": { - "line": 60, + "line": 76, "column": 25 } } @@ -7221,15 +10811,15 @@ "postfix": false, "binop": null }, - "start": 1750, - "end": 1751, + "start": 2131, + "end": 2132, "loc": { "start": { - "line": 61, + "line": 77, "column": 2 }, "end": { - "line": 61, + "line": 77, "column": 3 } } @@ -7249,15 +10839,15 @@ "updateContext": null }, "value": "if", - "start": 1755, - "end": 1757, + "start": 2136, + "end": 2138, "loc": { "start": { - "line": 63, + "line": 79, "column": 2 }, "end": { - "line": 63, + "line": 79, "column": 4 } } @@ -7274,15 +10864,15 @@ "postfix": false, "binop": null }, - "start": 1758, - "end": 1759, + "start": 2139, + "end": 2140, "loc": { "start": { - "line": 63, + "line": 79, "column": 5 }, "end": { - "line": 63, + "line": 79, "column": 6 } } @@ -7300,15 +10890,15 @@ "binop": null }, "value": "options", - "start": 1759, - "end": 1766, + "start": 2140, + "end": 2147, "loc": { "start": { - "line": 63, + "line": 79, "column": 6 }, "end": { - "line": 63, + "line": 79, "column": 13 } } @@ -7326,15 +10916,15 @@ "binop": null, "updateContext": null }, - "start": 1766, - "end": 1767, + "start": 2147, + "end": 2148, "loc": { "start": { - "line": 63, + "line": 79, "column": 13 }, "end": { - "line": 63, + "line": 79, "column": 14 } } @@ -7352,15 +10942,15 @@ "binop": null }, "value": "columns", - "start": 1767, - "end": 1774, + "start": 2148, + "end": 2155, "loc": { "start": { - "line": 63, + "line": 79, "column": 14 }, "end": { - "line": 63, + "line": 79, "column": 21 } } @@ -7377,15 +10967,15 @@ "postfix": false, "binop": null }, - "start": 1774, - "end": 1775, + "start": 2155, + "end": 2156, "loc": { "start": { - "line": 63, + "line": 79, "column": 21 }, "end": { - "line": 63, + "line": 79, "column": 22 } } @@ -7402,15 +10992,15 @@ "postfix": false, "binop": null }, - "start": 1776, - "end": 1777, + "start": 2157, + "end": 2158, "loc": { "start": { - "line": 63, + "line": 79, "column": 23 }, "end": { - "line": 63, + "line": 79, "column": 24 } } @@ -7428,15 +11018,15 @@ "binop": null }, "value": "config", - "start": 1782, - "end": 1788, + "start": 2163, + "end": 2169, "loc": { "start": { - "line": 64, + "line": 80, "column": 4 }, "end": { - "line": 64, + "line": 80, "column": 10 } } @@ -7454,15 +11044,15 @@ "binop": null, "updateContext": null }, - "start": 1788, - "end": 1789, + "start": 2169, + "end": 2170, "loc": { "start": { - "line": 64, + "line": 80, "column": 10 }, "end": { - "line": 64, + "line": 80, "column": 11 } } @@ -7480,15 +11070,15 @@ "binop": null }, "value": "columns", - "start": 1789, - "end": 1796, + "start": 2170, + "end": 2177, "loc": { "start": { - "line": 64, + "line": 80, "column": 11 }, "end": { - "line": 64, + "line": 80, "column": 18 } } @@ -7507,15 +11097,15 @@ "updateContext": null }, "value": "=", - "start": 1797, - "end": 1798, + "start": 2178, + "end": 2179, "loc": { "start": { - "line": 64, + "line": 80, "column": 19 }, "end": { - "line": 64, + "line": 80, "column": 20 } } @@ -7533,15 +11123,15 @@ "binop": null }, "value": "options", - "start": 1799, - "end": 1806, + "start": 2180, + "end": 2187, "loc": { "start": { - "line": 64, + "line": 80, "column": 21 }, "end": { - "line": 64, + "line": 80, "column": 28 } } @@ -7559,15 +11149,15 @@ "binop": null, "updateContext": null }, - "start": 1806, - "end": 1807, + "start": 2187, + "end": 2188, "loc": { "start": { - "line": 64, + "line": 80, "column": 28 }, "end": { - "line": 64, + "line": 80, "column": 29 } } @@ -7585,15 +11175,15 @@ "binop": null }, "value": "columns", - "start": 1807, - "end": 1814, + "start": 2188, + "end": 2195, "loc": { "start": { - "line": 64, + "line": 80, "column": 29 }, "end": { - "line": 64, + "line": 80, "column": 36 } } @@ -7610,15 +11200,15 @@ "postfix": false, "binop": null }, - "start": 1817, - "end": 1818, + "start": 2198, + "end": 2199, "loc": { "start": { - "line": 65, + "line": 81, "column": 2 }, "end": { - "line": 65, + "line": 81, "column": 3 } } @@ -7638,15 +11228,15 @@ "updateContext": null }, "value": "return", - "start": 1822, - "end": 1828, + "start": 2203, + "end": 2209, "loc": { "start": { - "line": 67, + "line": 83, "column": 2 }, "end": { - "line": 67, + "line": 83, "column": 8 } } @@ -7664,15 +11254,15 @@ "binop": null }, "value": "csvStringify", - "start": 1829, - "end": 1841, + "start": 2210, + "end": 2222, "loc": { "start": { - "line": 67, + "line": 83, "column": 9 }, "end": { - "line": 67, + "line": 83, "column": 21 } } @@ -7689,15 +11279,15 @@ "postfix": false, "binop": null }, - "start": 1841, - "end": 1842, + "start": 2222, + "end": 2223, "loc": { "start": { - "line": 67, + "line": 83, "column": 21 }, "end": { - "line": 67, + "line": 83, "column": 22 } } @@ -7715,15 +11305,15 @@ "binop": null }, "value": "data", - "start": 1842, - "end": 1846, + "start": 2223, + "end": 2227, "loc": { "start": { - "line": 67, + "line": 83, "column": 22 }, "end": { - "line": 67, + "line": 83, "column": 26 } } @@ -7741,15 +11331,15 @@ "binop": null, "updateContext": null }, - "start": 1846, - "end": 1847, + "start": 2227, + "end": 2228, "loc": { "start": { - "line": 67, + "line": 83, "column": 26 }, "end": { - "line": 67, + "line": 83, "column": 27 } } @@ -7767,15 +11357,15 @@ "binop": null }, "value": "config", - "start": 1848, - "end": 1854, + "start": 2229, + "end": 2235, "loc": { "start": { - "line": 67, + "line": 83, "column": 28 }, "end": { - "line": 67, + "line": 83, "column": 34 } } @@ -7792,15 +11382,15 @@ "postfix": false, "binop": null }, - "start": 1854, - "end": 1855, + "start": 2235, + "end": 2236, "loc": { "start": { - "line": 67, + "line": 83, "column": 34 }, "end": { - "line": 67, + "line": 83, "column": 35 } } @@ -7817,15 +11407,15 @@ "postfix": false, "binop": null }, - "start": 1856, - "end": 1857, + "start": 2237, + "end": 2238, "loc": { "start": { - "line": 68, + "line": 84, "column": 0 }, "end": { - "line": 68, + "line": 84, "column": 1 } } @@ -7843,15 +11433,15 @@ "binop": null }, "value": "module", - "start": 1859, - "end": 1865, + "start": 2240, + "end": 2246, "loc": { "start": { - "line": 70, + "line": 86, "column": 0 }, "end": { - "line": 70, + "line": 86, "column": 6 } } @@ -7869,15 +11459,15 @@ "binop": null, "updateContext": null }, - "start": 1865, - "end": 1866, + "start": 2246, + "end": 2247, "loc": { "start": { - "line": 70, + "line": 86, "column": 6 }, "end": { - "line": 70, + "line": 86, "column": 7 } } @@ -7895,15 +11485,15 @@ "binop": null }, "value": "exports", - "start": 1866, - "end": 1873, + "start": 2247, + "end": 2254, "loc": { "start": { - "line": 70, + "line": 86, "column": 7 }, "end": { - "line": 70, + "line": 86, "column": 14 } } @@ -7922,15 +11512,15 @@ "updateContext": null }, "value": "=", - "start": 1874, - "end": 1875, + "start": 2255, + "end": 2256, "loc": { "start": { - "line": 70, + "line": 86, "column": 15 }, "end": { - "line": 70, + "line": 86, "column": 16 } } @@ -7948,15 +11538,15 @@ "binop": null }, "value": "Csv", - "start": 1876, - "end": 1879, + "start": 2257, + "end": 2260, "loc": { "start": { - "line": 70, + "line": 86, "column": 17 }, "end": { - "line": 70, + "line": 86, "column": 20 } } @@ -7974,15 +11564,15 @@ "binop": null, "updateContext": null }, - "start": 1880, - "end": 1880, + "start": 2261, + "end": 2261, "loc": { "start": { - "line": 71, + "line": 87, "column": 0 }, "end": { - "line": 71, + "line": 87, "column": 0 } } diff --git a/docs/ast/source/strategies/Json.js.json b/docs/ast/source/strategies/Json.js.json index b2f56be..94f8543 100644 --- a/docs/ast/source/strategies/Json.js.json +++ b/docs/ast/source/strategies/Json.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 808, + "end": 1836, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 39, + "line": 74, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 808, + "end": 1836, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 39, + "line": 74, "column": 0 } }, @@ -230,6 +230,110 @@ }, "value": "../errors/ParserError" } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 84, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 40 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 90, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 6 + }, + "end": { + "line": 3, + "column": 40 + } + }, + "id": { + "type": "Identifier", + "start": 90, + "end": 100, + "loc": { + "start": { + "line": 3, + "column": 6 + }, + "end": { + "line": 3, + "column": 16 + }, + "identifierName": "JSONStream" + }, + "name": "JSONStream" + }, + "init": { + "type": "CallExpression", + "start": 103, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 103, + "end": 110, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 26 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 111, + "end": 123, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 39 + } + }, + "extra": { + "rawValue": "JSONStream", + "raw": "'JSONStream'" + }, + "value": "JSONStream" + } ], "trailingComments": null }, @@ -241,15 +345,15 @@ { "type": "CommentBlock", "value": "*\n * Json - Support for JSON filetype\n *\n * @constructor\n ", - "start": 85, - "end": 147, + "start": 126, + "end": 188, "loc": { "start": { - "line": 4, + "line": 5, "column": 0 }, "end": { - "line": 8, + "line": 9, "column": 3 } } @@ -258,29 +362,29 @@ }, { "type": "FunctionDeclaration", - "start": 148, - "end": 167, + "start": 189, + "end": 208, "loc": { "start": { - "line": 9, + "line": 10, "column": 0 }, "end": { - "line": 9, + "line": 10, "column": 19 } }, "id": { "type": "Identifier", - "start": 157, - "end": 161, + "start": 198, + "end": 202, "loc": { "start": { - "line": 9, + "line": 10, "column": 9 }, "end": { - "line": 9, + "line": 10, "column": 13 }, "identifierName": "Json" @@ -294,15 +398,15 @@ "params": [], "body": { "type": "BlockStatement", - "start": 165, - "end": 167, + "start": 206, + "end": 208, "loc": { "start": { - "line": 9, + "line": 10, "column": 17 }, "end": { - "line": 9, + "line": 10, "column": 19 } }, @@ -313,15 +417,15 @@ { "type": "CommentBlock", "value": "*\n * Json - Support for JSON filetype\n *\n * @constructor\n ", - "start": 85, - "end": 147, + "start": 126, + "end": 188, "loc": { "start": { - "line": 4, + "line": 5, "column": 0 }, "end": { - "line": 8, + "line": 9, "column": 3 } } @@ -330,58 +434,58 @@ }, { "type": "ExpressionStatement", - "start": 169, - "end": 215, + "start": 210, + "end": 256, "loc": { "start": { - "line": 11, + "line": 12, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 46 } }, "expression": { "type": "AssignmentExpression", - "start": 169, - "end": 215, + "start": 210, + "end": 256, "loc": { "start": { - "line": 11, + "line": 12, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 46 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 169, - "end": 183, + "start": 210, + "end": 224, "loc": { "start": { - "line": 11, + "line": 12, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 14 } }, "object": { "type": "Identifier", - "start": 169, - "end": 173, + "start": 210, + "end": 214, "loc": { "start": { - "line": 11, + "line": 12, "column": 0 }, "end": { - "line": 11, + "line": 12, "column": 4 }, "identifierName": "Json" @@ -390,15 +494,15 @@ }, "property": { "type": "Identifier", - "start": 174, - "end": 183, + "start": 215, + "end": 224, "loc": { "start": { - "line": 11, + "line": 12, "column": 5 }, "end": { - "line": 11, + "line": 12, "column": 14 }, "identifierName": "prototype" @@ -409,43 +513,43 @@ }, "right": { "type": "CallExpression", - "start": 186, - "end": 215, + "start": 227, + "end": 256, "loc": { "start": { - "line": 11, + "line": 12, "column": 17 }, "end": { - "line": 11, + "line": 12, "column": 46 } }, "callee": { "type": "MemberExpression", - "start": 186, - "end": 199, + "start": 227, + "end": 240, "loc": { "start": { - "line": 11, + "line": 12, "column": 17 }, "end": { - "line": 11, + "line": 12, "column": 30 } }, "object": { "type": "Identifier", - "start": 186, - "end": 192, + "start": 227, + "end": 233, "loc": { "start": { - "line": 11, + "line": 12, "column": 17 }, "end": { - "line": 11, + "line": 12, "column": 23 }, "identifierName": "Object" @@ -454,15 +558,15 @@ }, "property": { "type": "Identifier", - "start": 193, - "end": 199, + "start": 234, + "end": 240, "loc": { "start": { - "line": 11, + "line": 12, "column": 24 }, "end": { - "line": 11, + "line": 12, "column": 30 }, "identifierName": "create" @@ -474,29 +578,29 @@ "arguments": [ { "type": "MemberExpression", - "start": 200, - "end": 214, + "start": 241, + "end": 255, "loc": { "start": { - "line": 11, + "line": 12, "column": 31 }, "end": { - "line": 11, + "line": 12, "column": 45 } }, "object": { "type": "Identifier", - "start": 200, - "end": 204, + "start": 241, + "end": 245, "loc": { "start": { - "line": 11, + "line": 12, "column": 31 }, "end": { - "line": 11, + "line": 12, "column": 35 }, "identifierName": "Base" @@ -505,15 +609,15 @@ }, "property": { "type": "Identifier", - "start": 205, - "end": 214, + "start": 246, + "end": 255, "loc": { "start": { - "line": 11, + "line": 12, "column": 36 }, "end": { - "line": 11, + "line": 12, "column": 45 }, "identifierName": "prototype" @@ -531,15 +635,15 @@ { "type": "CommentBlock", "value": "*\n * Json.prototype.parse - receives an JSON string and returns valid JS\n *\n * @param {string} data\n * @throws {ParserError} In case the JSON string is not valid, ParserError will be thrown\n * @returns {*}\n ", - "start": 217, - "end": 428, + "start": 258, + "end": 469, "loc": { "start": { - "line": 13, + "line": 14, "column": 0 }, "end": { - "line": 19, + "line": 20, "column": 3 } } @@ -548,72 +652,72 @@ }, { "type": "ExpressionStatement", - "start": 429, - "end": 567, + "start": 470, + "end": 608, "loc": { "start": { - "line": 20, + "line": 21, "column": 0 }, "end": { - "line": 26, + "line": 27, "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 429, - "end": 567, + "start": 470, + "end": 608, "loc": { "start": { - "line": 20, + "line": 21, "column": 0 }, "end": { - "line": 26, + "line": 27, "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 429, - "end": 449, + "start": 470, + "end": 490, "loc": { "start": { - "line": 20, + "line": 21, "column": 0 }, "end": { - "line": 20, + "line": 21, "column": 20 } }, "object": { "type": "MemberExpression", - "start": 429, - "end": 443, + "start": 470, + "end": 484, "loc": { "start": { - "line": 20, + "line": 21, "column": 0 }, "end": { - "line": 20, + "line": 21, "column": 14 } }, "object": { "type": "Identifier", - "start": 429, - "end": 433, + "start": 470, + "end": 474, "loc": { "start": { - "line": 20, + "line": 21, "column": 0 }, "end": { - "line": 20, + "line": 21, "column": 4 }, "identifierName": "Json" @@ -623,15 +727,15 @@ }, "property": { "type": "Identifier", - "start": 434, - "end": 443, + "start": 475, + "end": 484, "loc": { "start": { - "line": 20, + "line": 21, "column": 5 }, "end": { - "line": 20, + "line": 21, "column": 14 }, "identifierName": "prototype" @@ -643,15 +747,15 @@ }, "property": { "type": "Identifier", - "start": 444, - "end": 449, + "start": 485, + "end": 490, "loc": { "start": { - "line": 20, + "line": 21, "column": 15 }, "end": { - "line": 20, + "line": 21, "column": 20 }, "identifierName": "parse" @@ -663,29 +767,29 @@ }, "right": { "type": "FunctionExpression", - "start": 452, - "end": 567, + "start": 493, + "end": 608, "loc": { "start": { - "line": 20, + "line": 21, "column": 23 }, "end": { - "line": 26, + "line": 27, "column": 1 } }, "id": { "type": "Identifier", - "start": 444, - "end": 449, + "start": 485, + "end": 490, "loc": { "start": { - "line": 20, + "line": 21, "column": 15 }, "end": { - "line": 20, + "line": 21, "column": 20 }, "identifierName": "parse" @@ -698,15 +802,15 @@ "params": [ { "type": "Identifier", - "start": 468, - "end": 472, + "start": 509, + "end": 513, "loc": { "start": { - "line": 20, + "line": 21, "column": 39 }, "end": { - "line": 20, + "line": 21, "column": 43 }, "identifierName": "data" @@ -716,101 +820,101 @@ ], "body": { "type": "BlockStatement", - "start": 474, - "end": 567, + "start": 515, + "end": 608, "loc": { "start": { - "line": 20, + "line": 21, "column": 45 }, "end": { - "line": 26, + "line": 27, "column": 1 } }, "body": [ { "type": "TryStatement", - "start": 478, - "end": 565, + "start": 519, + "end": 606, "loc": { "start": { - "line": 21, + "line": 22, "column": 2 }, "end": { - "line": 25, + "line": 26, "column": 3 } }, "block": { "type": "BlockStatement", - "start": 482, - "end": 515, + "start": 523, + "end": 556, "loc": { "start": { - "line": 21, + "line": 22, "column": 6 }, "end": { - "line": 23, + "line": 24, "column": 3 } }, "body": [ { "type": "ReturnStatement", - "start": 488, - "end": 511, + "start": 529, + "end": 552, "loc": { "start": { - "line": 22, + "line": 23, "column": 4 }, "end": { - "line": 22, + "line": 23, "column": 27 } }, "argument": { "type": "CallExpression", - "start": 495, - "end": 511, + "start": 536, + "end": 552, "loc": { "start": { - "line": 22, + "line": 23, "column": 11 }, "end": { - "line": 22, + "line": 23, "column": 27 } }, "callee": { "type": "MemberExpression", - "start": 495, - "end": 505, + "start": 536, + "end": 546, "loc": { "start": { - "line": 22, + "line": 23, "column": 11 }, "end": { - "line": 22, + "line": 23, "column": 21 } }, "object": { "type": "Identifier", - "start": 495, - "end": 499, + "start": 536, + "end": 540, "loc": { "start": { - "line": 22, + "line": 23, "column": 11 }, "end": { - "line": 22, + "line": 23, "column": 15 }, "identifierName": "JSON" @@ -819,15 +923,15 @@ }, "property": { "type": "Identifier", - "start": 500, - "end": 505, + "start": 541, + "end": 546, "loc": { "start": { - "line": 22, + "line": 23, "column": 16 }, "end": { - "line": 22, + "line": 23, "column": 21 }, "identifierName": "parse" @@ -839,15 +943,15 @@ "arguments": [ { "type": "Identifier", - "start": 506, - "end": 510, + "start": 547, + "end": 551, "loc": { "start": { - "line": 22, + "line": 23, "column": 22 }, "end": { - "line": 22, + "line": 23, "column": 26 }, "identifierName": "data" @@ -862,29 +966,29 @@ }, "handler": { "type": "CatchClause", - "start": 516, - "end": 565, + "start": 557, + "end": 606, "loc": { "start": { - "line": 23, + "line": 24, "column": 4 }, "end": { - "line": 25, + "line": 26, "column": 3 } }, "param": { "type": "Identifier", - "start": 523, - "end": 524, + "start": 564, + "end": 565, "loc": { "start": { - "line": 23, + "line": 24, "column": 11 }, "end": { - "line": 23, + "line": 24, "column": 12 }, "identifierName": "e" @@ -893,58 +997,58 @@ }, "body": { "type": "BlockStatement", - "start": 526, - "end": 565, + "start": 567, + "end": 606, "loc": { "start": { - "line": 23, + "line": 24, "column": 14 }, "end": { - "line": 25, + "line": 26, "column": 3 } }, "body": [ { "type": "ThrowStatement", - "start": 532, - "end": 561, + "start": 573, + "end": 602, "loc": { "start": { - "line": 24, + "line": 25, "column": 4 }, "end": { - "line": 24, + "line": 25, "column": 33 } }, "argument": { "type": "NewExpression", - "start": 538, - "end": 561, + "start": 579, + "end": 602, "loc": { "start": { - "line": 24, + "line": 25, "column": 10 }, "end": { - "line": 24, + "line": 25, "column": 33 } }, "callee": { "type": "Identifier", - "start": 542, - "end": 553, + "start": 583, + "end": 594, "loc": { "start": { - "line": 24, + "line": 25, "column": 14 }, "end": { - "line": 24, + "line": 25, "column": 25 }, "identifierName": "ParserError" @@ -954,15 +1058,15 @@ "arguments": [ { "type": "StringLiteral", - "start": 554, - "end": 560, + "start": 595, + "end": 601, "loc": { "start": { - "line": 24, + "line": 25, "column": 26 }, "end": { - "line": 24, + "line": 25, "column": 32 } }, @@ -995,15 +1099,15 @@ { "type": "CommentBlock", "value": "*\n * Json.prototype.parse - receives an JSON string and returns valid JS\n *\n * @param {string} data\n * @throws {ParserError} In case the JSON string is not valid, ParserError will be thrown\n * @returns {*}\n ", - "start": 217, - "end": 428, + "start": 258, + "end": 469, "loc": { "start": { - "line": 13, + "line": 14, "column": 0 }, "end": { - "line": 19, + "line": 20, "column": 3 } } @@ -1013,15 +1117,15 @@ { "type": "CommentBlock", "value": "*\n * Json.prototype.stringify - receives * valid JS data and returns it as JSON\n *\n * @param {*} data\n * @returns {string}\n ", - "start": 569, - "end": 697, + "start": 610, + "end": 738, "loc": { "start": { - "line": 28, + "line": 29, "column": 0 }, "end": { - "line": 33, + "line": 34, "column": 3 } } @@ -1030,72 +1134,72 @@ }, { "type": "ExpressionStatement", - "start": 698, - "end": 784, + "start": 739, + "end": 825, "loc": { "start": { - "line": 34, + "line": 35, "column": 0 }, "end": { - "line": 36, + "line": 37, "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 698, - "end": 784, + "start": 739, + "end": 825, "loc": { "start": { - "line": 34, + "line": 35, "column": 0 }, "end": { - "line": 36, + "line": 37, "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 698, - "end": 722, + "start": 739, + "end": 763, "loc": { "start": { - "line": 34, + "line": 35, "column": 0 }, "end": { - "line": 34, + "line": 35, "column": 24 } }, "object": { "type": "MemberExpression", - "start": 698, - "end": 712, + "start": 739, + "end": 753, "loc": { "start": { - "line": 34, + "line": 35, "column": 0 }, "end": { - "line": 34, + "line": 35, "column": 14 } }, "object": { "type": "Identifier", - "start": 698, - "end": 702, + "start": 739, + "end": 743, "loc": { "start": { - "line": 34, + "line": 35, "column": 0 }, "end": { - "line": 34, + "line": 35, "column": 4 }, "identifierName": "Json" @@ -1105,15 +1209,15 @@ }, "property": { "type": "Identifier", - "start": 703, - "end": 712, + "start": 744, + "end": 753, "loc": { "start": { - "line": 34, + "line": 35, "column": 5 }, "end": { - "line": 34, + "line": 35, "column": 14 }, "identifierName": "prototype" @@ -1125,15 +1229,15 @@ }, "property": { "type": "Identifier", - "start": 713, - "end": 722, + "start": 754, + "end": 763, "loc": { "start": { - "line": 34, + "line": 35, "column": 15 }, "end": { - "line": 34, + "line": 35, "column": 24 }, "identifierName": "stringify" @@ -1145,29 +1249,29 @@ }, "right": { "type": "FunctionExpression", - "start": 725, - "end": 784, + "start": 766, + "end": 825, "loc": { "start": { - "line": 34, + "line": 35, "column": 27 }, "end": { - "line": 36, + "line": 37, "column": 1 } }, "id": { "type": "Identifier", - "start": 713, - "end": 722, + "start": 754, + "end": 763, "loc": { "start": { - "line": 34, + "line": 35, "column": 15 }, "end": { - "line": 34, + "line": 35, "column": 24 }, "identifierName": "stringify" @@ -1180,15 +1284,15 @@ "params": [ { "type": "Identifier", - "start": 745, - "end": 749, + "start": 786, + "end": 790, "loc": { "start": { - "line": 34, + "line": 35, "column": 47 }, "end": { - "line": 34, + "line": 35, "column": 51 }, "identifierName": "data" @@ -1198,72 +1302,72 @@ ], "body": { "type": "BlockStatement", - "start": 751, - "end": 784, + "start": 792, + "end": 825, "loc": { "start": { - "line": 34, + "line": 35, "column": 53 }, "end": { - "line": 36, + "line": 37, "column": 1 } }, "body": [ { "type": "ReturnStatement", - "start": 755, - "end": 782, + "start": 796, + "end": 823, "loc": { "start": { - "line": 35, + "line": 36, "column": 2 }, "end": { - "line": 35, + "line": 36, "column": 29 } }, "argument": { "type": "CallExpression", - "start": 762, - "end": 782, + "start": 803, + "end": 823, "loc": { "start": { - "line": 35, + "line": 36, "column": 9 }, "end": { - "line": 35, + "line": 36, "column": 29 } }, "callee": { "type": "MemberExpression", - "start": 762, - "end": 776, + "start": 803, + "end": 817, "loc": { "start": { - "line": 35, + "line": 36, "column": 9 }, "end": { - "line": 35, + "line": 36, "column": 23 } }, "object": { "type": "Identifier", - "start": 762, - "end": 766, + "start": 803, + "end": 807, "loc": { "start": { - "line": 35, + "line": 36, "column": 9 }, "end": { - "line": 35, + "line": 36, "column": 13 }, "identifierName": "JSON" @@ -1272,15 +1376,15 @@ }, "property": { "type": "Identifier", - "start": 767, - "end": 776, + "start": 808, + "end": 817, "loc": { "start": { - "line": 35, + "line": 36, "column": 14 }, "end": { - "line": 35, + "line": 36, "column": 23 }, "identifierName": "stringify" @@ -1292,15 +1396,15 @@ "arguments": [ { "type": "Identifier", - "start": 777, - "end": 781, + "start": 818, + "end": 822, "loc": { "start": { - "line": 35, + "line": 36, "column": 24 }, "end": { - "line": 35, + "line": 36, "column": 28 }, "identifierName": "data" @@ -1311,24 +1415,45 @@ } } ], - "directives": [] - } + "directives": [], + "trailingComments": null + }, + "trailingComments": null }, - "leadingComments": null + "leadingComments": null, + "trailingComments": null }, "leadingComments": [ { "type": "CommentBlock", "value": "*\n * Json.prototype.stringify - receives * valid JS data and returns it as JSON\n *\n * @param {*} data\n * @returns {string}\n ", - "start": 569, - "end": 697, + "start": 610, + "end": 738, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.pipeStringify - helps to stream object or array into JSON valid data\n *\n * @param {object} [config] - sets config for stream\n * @param {string} [config.type='array'] - which type of data you're streaming, defaults do array\n * @returns {WritableStream}\n ", + "start": 827, + "end": 1104, "loc": { "start": { - "line": 28, + "line": 39, "column": 0 }, "end": { - "line": 33, + "line": 45, "column": 3 } } @@ -1337,234 +1462,4055 @@ }, { "type": "ExpressionStatement", - "start": 786, - "end": 807, + "start": 1105, + "end": 1486, "loc": { "start": { - "line": 38, + "line": 46, "column": 0 }, "end": { - "line": 38, - "column": 21 + "line": 60, + "column": 1 } }, "expression": { "type": "AssignmentExpression", - "start": 786, - "end": 807, + "start": 1105, + "end": 1486, "loc": { "start": { - "line": 38, + "line": 46, "column": 0 }, "end": { - "line": 38, - "column": 21 + "line": 60, + "column": 1 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 786, - "end": 800, + "start": 1105, + "end": 1133, "loc": { "start": { - "line": 38, + "line": 46, "column": 0 }, "end": { - "line": 38, - "column": 14 + "line": 46, + "column": 28 } }, "object": { - "type": "Identifier", - "start": 786, - "end": 792, + "type": "MemberExpression", + "start": 1105, + "end": 1119, "loc": { "start": { - "line": 38, + "line": 46, "column": 0 }, "end": { - "line": 38, - "column": 6 + "line": 46, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 1105, + "end": 1109, + "loc": { + "start": { + "line": 46, + "column": 0 + }, + "end": { + "line": 46, + "column": 4 + }, + "identifierName": "Json" }, - "identifierName": "module" + "name": "Json", + "leadingComments": null }, - "name": "module" + "property": { + "type": "Identifier", + "start": 1110, + "end": 1119, + "loc": { + "start": { + "line": 46, + "column": 5 + }, + "end": { + "line": 46, + "column": 14 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null }, "property": { "type": "Identifier", - "start": 793, - "end": 800, + "start": 1120, + "end": 1133, "loc": { "start": { - "line": 38, - "column": 7 + "line": 46, + "column": 15 }, "end": { - "line": 38, - "column": 14 + "line": 46, + "column": 28 }, - "identifierName": "exports" + "identifierName": "pipeStringify" }, - "name": "exports" + "name": "pipeStringify" }, - "computed": false + "computed": false, + "leadingComments": null }, "right": { - "type": "Identifier", - "start": 803, - "end": 807, + "type": "FunctionExpression", + "start": 1136, + "end": 1486, "loc": { "start": { - "line": 38, - "column": 17 + "line": 46, + "column": 31 }, "end": { - "line": 38, - "column": 21 + "line": 60, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1120, + "end": 1133, + "loc": { + "start": { + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 28 + }, + "identifierName": "pipeStringify" }, - "identifierName": "Json" + "name": "pipeStringify" }, - "name": "Json" - } - } - } - ], - "directives": [] - }, - "comments": [ - { - "type": "CommentBlock", - "value": "*\n * Json - Support for JSON filetype\n *\n * @constructor\n ", - "start": 85, - "end": 147, - "loc": { - "start": { - "line": 4, - "column": 0 - }, - "end": { - "line": 8, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Json.prototype.parse - receives an JSON string and returns valid JS\n *\n * @param {string} data\n * @throws {ParserError} In case the JSON string is not valid, ParserError will be thrown\n * @returns {*}\n ", - "start": 217, - "end": 428, - "loc": { - "start": { - "line": 13, - "column": 0 - }, - "end": { - "line": 19, - "column": 3 - } - } - }, - { - "type": "CommentBlock", - "value": "*\n * Json.prototype.stringify - receives * valid JS data and returns it as JSON\n *\n * @param {*} data\n * @returns {string}\n ", - "start": 569, - "end": 697, - "loc": { - "start": { - "line": 28, - "column": 0 - }, - "end": { - "line": 33, - "column": 3 - } - } - } - ], - "tokens": [ - { - "type": { - "label": "const", - "keyword": "const", - "beforeExpr": false, - "startsExpr": false, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null, - "updateContext": null - }, - "value": "const", - "start": 0, - "end": 5, - "loc": { - "start": { - "line": 1, - "column": 0 - }, - "end": { - "line": 1, - "column": 5 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "Base", - "start": 6, - "end": 10, - "loc": { - "start": { - "line": 1, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 1160, + "end": 1171, + "loc": { + "start": { + "line": 46, + "column": 55 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "left": { + "type": "Identifier", + "start": 1160, + "end": 1166, + "loc": { + "start": { + "line": 46, + "column": 55 + }, + "end": { + "line": 46, + "column": 61 + }, + "identifierName": "config" + }, + "name": "config" + }, + "right": { + "type": "ObjectExpression", + "start": 1169, + "end": 1171, + "loc": { + "start": { + "line": 46, + "column": 64 + }, + "end": { + "line": 46, + "column": 66 + } + }, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 1173, + "end": 1486, + "loc": { + "start": { + "line": 46, + "column": 68 + }, + "end": { + "line": 60, + "column": 1 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1177, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 47, + "column": 38 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1177, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 47, + "column": 38 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1177, + "end": 1188, + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 47, + "column": 13 + } + }, + "object": { + "type": "Identifier", + "start": 1177, + "end": 1183, + "loc": { + "start": { + "line": 47, + "column": 2 + }, + "end": { + "line": 47, + "column": 8 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1184, + "end": 1188, + "loc": { + "start": { + "line": 47, + "column": 9 + }, + "end": { + "line": 47, + "column": 13 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 1191, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 38 + } + }, + "left": { + "type": "MemberExpression", + "start": 1191, + "end": 1202, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 1191, + "end": 1197, + "loc": { + "start": { + "line": 47, + "column": 16 + }, + "end": { + "line": 47, + "column": 22 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1198, + "end": 1202, + "loc": { + "start": { + "line": 47, + "column": 23 + }, + "end": { + "line": 47, + "column": 27 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "StringLiteral", + "start": 1206, + "end": 1213, + "loc": { + "start": { + "line": 47, + "column": 31 + }, + "end": { + "line": 47, + "column": 38 + } + }, + "extra": { + "rawValue": "array", + "raw": "'array'" + }, + "value": "array" + } + } + } + }, + { + "type": "VariableDeclaration", + "start": 1216, + "end": 1309, + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1222, + "end": 1309, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "id": { + "type": "Identifier", + "start": 1222, + "end": 1229, + "loc": { + "start": { + "line": 48, + "column": 8 + }, + "end": { + "line": 48, + "column": 15 + }, + "identifierName": "streams" + }, + "name": "streams" + }, + "init": { + "type": "ObjectExpression", + "start": 1232, + "end": 1309, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 51, + "column": 3 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1238, + "end": 1272, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 38 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1238, + "end": 1244, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 10 + }, + "identifierName": "object" + }, + "name": "object" + }, + "value": { + "type": "MemberExpression", + "start": 1246, + "end": 1272, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 38 + } + }, + "object": { + "type": "Identifier", + "start": 1246, + "end": 1256, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 22 + }, + "identifierName": "JSONStream" + }, + "name": "JSONStream" + }, + "property": { + "type": "Identifier", + "start": 1257, + "end": 1272, + "loc": { + "start": { + "line": 49, + "column": 23 + }, + "end": { + "line": 49, + "column": 38 + }, + "identifierName": "stringifyObject" + }, + "name": "stringifyObject" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1278, + "end": 1305, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1278, + "end": 1283, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 9 + }, + "identifierName": "array" + }, + "name": "array" + }, + "value": { + "type": "MemberExpression", + "start": 1285, + "end": 1305, + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1285, + "end": 1295, + "loc": { + "start": { + "line": 50, + "column": 11 + }, + "end": { + "line": 50, + "column": 21 + }, + "identifierName": "JSONStream" + }, + "name": "JSONStream" + }, + "property": { + "type": "Identifier", + "start": 1296, + "end": 1305, + "loc": { + "start": { + "line": 50, + "column": 22 + }, + "end": { + "line": 50, + "column": 31 + }, + "identifierName": "stringify" + }, + "name": "stringify" + }, + "computed": false + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 1313, + "end": 1344, + "loc": { + "start": { + "line": 53, + "column": 2 + }, + "end": { + "line": 53, + "column": 33 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1319, + "end": 1344, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 33 + } + }, + "id": { + "type": "Identifier", + "start": 1319, + "end": 1321, + "loc": { + "start": { + "line": 53, + "column": 8 + }, + "end": { + "line": 53, + "column": 10 + }, + "identifierName": "fn" + }, + "name": "fn" + }, + "init": { + "type": "MemberExpression", + "start": 1324, + "end": 1344, + "loc": { + "start": { + "line": 53, + "column": 13 + }, + "end": { + "line": 53, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 1324, + "end": 1331, + "loc": { + "start": { + "line": 53, + "column": 13 + }, + "end": { + "line": 53, + "column": 20 + }, + "identifierName": "streams" + }, + "name": "streams" + }, + "property": { + "type": "MemberExpression", + "start": 1332, + "end": 1343, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 1332, + "end": 1338, + "loc": { + "start": { + "line": 53, + "column": 21 + }, + "end": { + "line": 53, + "column": 27 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1339, + "end": 1343, + "loc": { + "start": { + "line": 53, + "column": 28 + }, + "end": { + "line": 53, + "column": 32 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 1348, + "end": 1469, + "loc": { + "start": { + "line": 55, + "column": 2 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "test": { + "type": "UnaryExpression", + "start": 1352, + "end": 1355, + "loc": { + "start": { + "line": 55, + "column": 6 + }, + "end": { + "line": 55, + "column": 9 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "Identifier", + "start": 1353, + "end": 1355, + "loc": { + "start": { + "line": 55, + "column": 7 + }, + "end": { + "line": 55, + "column": 9 + }, + "identifierName": "fn" + }, + "name": "fn" + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 1357, + "end": 1469, + "loc": { + "start": { + "line": 55, + "column": 11 + }, + "end": { + "line": 57, + "column": 3 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 1363, + "end": 1465, + "loc": { + "start": { + "line": 56, + "column": 4 + }, + "end": { + "line": 56, + "column": 106 + } + }, + "argument": { + "type": "NewExpression", + "start": 1369, + "end": 1465, + "loc": { + "start": { + "line": 56, + "column": 10 + }, + "end": { + "line": 56, + "column": 106 + } + }, + "callee": { + "type": "Identifier", + "start": 1373, + "end": 1384, + "loc": { + "start": { + "line": 56, + "column": 14 + }, + "end": { + "line": 56, + "column": 25 + }, + "identifierName": "ParserError" + }, + "name": "ParserError" + }, + "arguments": [ + { + "type": "TemplateLiteral", + "start": 1385, + "end": 1464, + "loc": { + "start": { + "line": 56, + "column": 26 + }, + "end": { + "line": 56, + "column": 105 + } + }, + "expressions": [ + { + "type": "MemberExpression", + "start": 1403, + "end": 1414, + "loc": { + "start": { + "line": 56, + "column": 44 + }, + "end": { + "line": 56, + "column": 55 + } + }, + "object": { + "type": "Identifier", + "start": 1403, + "end": 1409, + "loc": { + "start": { + "line": 56, + "column": 44 + }, + "end": { + "line": 56, + "column": 50 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1410, + "end": 1414, + "loc": { + "start": { + "line": 56, + "column": 51 + }, + "end": { + "line": 56, + "column": 55 + }, + "identifierName": "type" + }, + "name": "type" + }, + "computed": false + } + ], + "quasis": [ + { + "type": "TemplateElement", + "start": 1386, + "end": 1401, + "loc": { + "start": { + "line": 56, + "column": 27 + }, + "end": { + "line": 56, + "column": 42 + } + }, + "value": { + "raw": "Supplied type \"", + "cooked": "Supplied type \"" + }, + "tail": false + }, + { + "type": "TemplateElement", + "start": 1415, + "end": 1463, + "loc": { + "start": { + "line": 56, + "column": 56 + }, + "end": { + "line": 56, + "column": 104 + } + }, + "value": { + "raw": "\" is not allowed. Use either \"array\" or \"object\"", + "cooked": "\" is not allowed. Use either \"array\" or \"object\"" + }, + "tail": true + } + ] + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1473, + "end": 1484, + "loc": { + "start": { + "line": 59, + "column": 2 + }, + "end": { + "line": 59, + "column": 13 + } + }, + "argument": { + "type": "CallExpression", + "start": 1480, + "end": 1484, + "loc": { + "start": { + "line": 59, + "column": 9 + }, + "end": { + "line": 59, + "column": 13 + } + }, + "callee": { + "type": "Identifier", + "start": 1480, + "end": 1482, + "loc": { + "start": { + "line": 59, + "column": 9 + }, + "end": { + "line": 59, + "column": 11 + }, + "identifierName": "fn" + }, + "name": "fn" + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.pipeStringify - helps to stream object or array into JSON valid data\n *\n * @param {object} [config] - sets config for stream\n * @param {string} [config.type='array'] - which type of data you're streaming, defaults do array\n * @returns {WritableStream}\n ", + "start": 827, + "end": 1104, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 45, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.pipeStringify - helps to stream JSON data to JS\n *\n * @param {object} [config] - sets config for stream\n * @param {string} [config.path] - select which data path to be parsed from JSON to JS\n * @returns {Stream}\n ", + "start": 1488, + "end": 1725, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1726, + "end": 1812, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 71, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1726, + "end": 1812, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 71, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1726, + "end": 1750, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 69, + "column": 24 + } + }, + "object": { + "type": "MemberExpression", + "start": 1726, + "end": 1740, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 69, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 1726, + "end": 1730, + "loc": { + "start": { + "line": 69, + "column": 0 + }, + "end": { + "line": 69, + "column": 4 + }, + "identifierName": "Json" + }, + "name": "Json", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1731, + "end": 1740, + "loc": { + "start": { + "line": 69, + "column": 5 + }, + "end": { + "line": 69, + "column": 14 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1741, + "end": 1750, + "loc": { + "start": { + "line": 69, + "column": 15 + }, + "end": { + "line": 69, + "column": 24 + }, + "identifierName": "pipeParse" + }, + "name": "pipeParse" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "FunctionExpression", + "start": 1753, + "end": 1812, + "loc": { + "start": { + "line": 69, + "column": 27 + }, + "end": { + "line": 71, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1741, + "end": 1750, + "loc": { + "start": { + "line": 69, + "column": 15 + }, + "end": { + "line": 69, + "column": 24 + }, + "identifierName": "pipeParse" + }, + "name": "pipeParse" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1773, + "end": 1779, + "loc": { + "start": { + "line": 69, + "column": 47 + }, + "end": { + "line": 69, + "column": 53 + }, + "identifierName": "config" + }, + "name": "config" + } + ], + "body": { + "type": "BlockStatement", + "start": 1781, + "end": 1812, + "loc": { + "start": { + "line": 69, + "column": 55 + }, + "end": { + "line": 71, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 1785, + "end": 1810, + "loc": { + "start": { + "line": 70, + "column": 2 + }, + "end": { + "line": 70, + "column": 27 + } + }, + "argument": { + "type": "CallExpression", + "start": 1792, + "end": 1810, + "loc": { + "start": { + "line": 70, + "column": 9 + }, + "end": { + "line": 70, + "column": 27 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1792, + "end": 1808, + "loc": { + "start": { + "line": 70, + "column": 9 + }, + "end": { + "line": 70, + "column": 25 + } + }, + "object": { + "type": "Identifier", + "start": 1792, + "end": 1802, + "loc": { + "start": { + "line": 70, + "column": 9 + }, + "end": { + "line": 70, + "column": 19 + }, + "identifierName": "JSONStream" + }, + "name": "JSONStream" + }, + "property": { + "type": "Identifier", + "start": 1803, + "end": 1808, + "loc": { + "start": { + "line": 70, + "column": 20 + }, + "end": { + "line": 70, + "column": 25 + }, + "identifierName": "parse" + }, + "name": "parse" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "directives": [] + } + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.pipeStringify - helps to stream JSON data to JS\n *\n * @param {object} [config] - sets config for stream\n * @param {string} [config.path] - select which data path to be parsed from JSON to JS\n * @returns {Stream}\n ", + "start": 1488, + "end": 1725, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1814, + "end": 1835, + "loc": { + "start": { + "line": 73, + "column": 0 + }, + "end": { + "line": 73, + "column": 21 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1814, + "end": 1835, + "loc": { + "start": { + "line": 73, + "column": 0 + }, + "end": { + "line": 73, + "column": 21 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1814, + "end": 1828, + "loc": { + "start": { + "line": 73, + "column": 0 + }, + "end": { + "line": 73, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 1814, + "end": 1820, + "loc": { + "start": { + "line": 73, + "column": 0 + }, + "end": { + "line": 73, + "column": 6 + }, + "identifierName": "module" + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 1821, + "end": 1828, + "loc": { + "start": { + "line": 73, + "column": 7 + }, + "end": { + "line": 73, + "column": 14 + }, + "identifierName": "exports" + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 1831, + "end": 1835, + "loc": { + "start": { + "line": 73, + "column": 17 + }, + "end": { + "line": 73, + "column": 21 + }, + "identifierName": "Json" + }, + "name": "Json" + } + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Json - Support for JSON filetype\n *\n * @constructor\n ", + "start": 126, + "end": 188, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.parse - receives an JSON string and returns valid JS\n *\n * @param {string} data\n * @throws {ParserError} In case the JSON string is not valid, ParserError will be thrown\n * @returns {*}\n ", + "start": 258, + "end": 469, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.stringify - receives * valid JS data and returns it as JSON\n *\n * @param {*} data\n * @returns {string}\n ", + "start": 610, + "end": 738, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.pipeStringify - helps to stream object or array into JSON valid data\n *\n * @param {object} [config] - sets config for stream\n * @param {string} [config.type='array'] - which type of data you're streaming, defaults do array\n * @returns {WritableStream}\n ", + "start": 827, + "end": 1104, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 45, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.pipeStringify - helps to stream JSON data to JS\n *\n * @param {object} [config] - sets config for stream\n * @param {string} [config.path] - select which data path to be parsed from JSON to JS\n * @returns {Stream}\n ", + "start": 1488, + "end": 1725, + "loc": { + "start": { + "line": 62, + "column": 0 + }, + "end": { + "line": 68, + "column": 3 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 0, + "end": 5, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Base", + "start": 6, + "end": 10, + "loc": { + "start": { + "line": 1, + "column": 6 + }, + "end": { + "line": 1, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 11, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 11 + }, + "end": { + "line": 1, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 13, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./Base", + "start": 21, + "end": 29, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 29, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 29 + }, + "end": { + "line": 1, + "column": 30 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 31, + "end": 36, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ParserError", + "start": 37, + "end": 48, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 49, + "end": 50, + "loc": { + "start": { + "line": 2, + "column": 18 + }, + "end": { + "line": 2, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 51, + "end": 58, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 58, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 27 + }, + "end": { + "line": 2, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../errors/ParserError", + "start": 59, + "end": 82, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 51 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 82, + "end": 83, + "loc": { + "start": { + "line": 2, + "column": 51 + }, + "end": { + "line": 2, + "column": 52 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 84, + "end": 89, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "JSONStream", + "start": 90, + "end": 100, + "loc": { + "start": { + "line": 3, + "column": 6 + }, + "end": { + "line": 3, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 101, + "end": 102, + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 103, + "end": 110, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 110, + "end": 111, + "loc": { + "start": { + "line": 3, + "column": 26 + }, + "end": { + "line": 3, + "column": 27 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "JSONStream", + "start": 111, + "end": 123, + "loc": { + "start": { + "line": 3, + "column": 27 + }, + "end": { + "line": 3, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 123, + "end": 124, + "loc": { + "start": { + "line": 3, + "column": 39 + }, + "end": { + "line": 3, + "column": 40 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Json - Support for JSON filetype\n *\n * @constructor\n ", + "start": 126, + "end": 188, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 9, + "column": 3 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 189, + "end": 197, + "loc": { + "start": { + "line": 10, + "column": 0 + }, + "end": { + "line": 10, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Json", + "start": 198, + "end": 202, + "loc": { + "start": { + "line": 10, + "column": 9 + }, + "end": { + "line": 10, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 203, + "end": 204, + "loc": { + "start": { + "line": 10, + "column": 14 + }, + "end": { + "line": 10, + "column": 15 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 204, + "end": 205, + "loc": { + "start": { + "line": 10, + "column": 15 + }, + "end": { + "line": 10, + "column": 16 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 206, + "end": 207, + "loc": { + "start": { + "line": 10, + "column": 17 + }, + "end": { + "line": 10, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 207, + "end": 208, + "loc": { + "start": { + "line": 10, + "column": 18 + }, + "end": { + "line": 10, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Json", + "start": 210, + "end": 214, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 4 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 214, + "end": 215, + "loc": { + "start": { + "line": 12, + "column": 4 + }, + "end": { + "line": 12, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 215, + "end": 224, + "loc": { + "start": { + "line": 12, + "column": 5 + }, + "end": { + "line": 12, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 225, + "end": 226, + "loc": { + "start": { + "line": 12, + "column": 15 + }, + "end": { + "line": 12, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Object", + "start": 227, + "end": 233, + "loc": { + "start": { + "line": 12, + "column": 17 + }, + "end": { + "line": 12, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 233, + "end": 234, + "loc": { + "start": { + "line": 12, + "column": 23 + }, + "end": { + "line": 12, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "create", + "start": 234, + "end": 240, + "loc": { + "start": { + "line": 12, + "column": 24 + }, + "end": { + "line": 12, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 240, + "end": 241, + "loc": { + "start": { + "line": 12, + "column": 30 + }, + "end": { + "line": 12, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Base", + "start": 241, + "end": 245, + "loc": { + "start": { + "line": 12, + "column": 31 + }, + "end": { + "line": 12, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 245, + "end": 246, + "loc": { + "start": { + "line": 12, + "column": 35 + }, + "end": { + "line": 12, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 246, + "end": 255, + "loc": { + "start": { + "line": 12, + "column": 36 + }, + "end": { + "line": 12, + "column": 45 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 255, + "end": 256, + "loc": { + "start": { + "line": 12, + "column": 45 + }, + "end": { + "line": 12, + "column": 46 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.parse - receives an JSON string and returns valid JS\n *\n * @param {string} data\n * @throws {ParserError} In case the JSON string is not valid, ParserError will be thrown\n * @returns {*}\n ", + "start": 258, + "end": 469, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 20, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Json", + "start": 470, + "end": 474, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 4 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 474, + "end": 475, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 475, + "end": 484, + "loc": { + "start": { + "line": 21, + "column": 5 + }, + "end": { + "line": 21, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 484, + "end": 485, + "loc": { + "start": { + "line": 21, + "column": 14 + }, + "end": { + "line": 21, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 485, + "end": 490, + "loc": { + "start": { + "line": 21, + "column": 15 + }, + "end": { + "line": 21, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 491, + "end": 492, + "loc": { + "start": { + "line": 21, + "column": 21 + }, + "end": { + "line": 21, + "column": 22 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 493, + "end": 501, + "loc": { + "start": { + "line": 21, + "column": 23 + }, + "end": { + "line": 21, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 502, + "end": 507, + "loc": { + "start": { + "line": 21, + "column": 32 + }, + "end": { + "line": 21, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 508, + "end": 509, + "loc": { + "start": { + "line": 21, + "column": 38 + }, + "end": { + "line": 21, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 509, + "end": 513, + "loc": { + "start": { + "line": 21, + "column": 39 + }, + "end": { + "line": 21, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 513, + "end": 514, + "loc": { + "start": { + "line": 21, + "column": 43 + }, + "end": { + "line": 21, + "column": 44 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 515, + "end": 516, + "loc": { + "start": { + "line": 21, + "column": 45 + }, + "end": { + "line": 21, + "column": 46 + } + } + }, + { + "type": { + "label": "try", + "keyword": "try", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "try", + "start": 519, + "end": 522, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 523, + "end": 524, + "loc": { + "start": { + "line": 22, "column": 6 }, "end": { - "line": 1, - "column": 10 + "line": 22, + "column": 7 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 529, + "end": 535, + "loc": { + "start": { + "line": 23, + "column": 4 + }, + "end": { + "line": 23, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "JSON", + "start": 536, + "end": 540, + "loc": { + "start": { + "line": 23, + "column": 11 + }, + "end": { + "line": 23, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 540, + "end": 541, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 541, + "end": 546, + "loc": { + "start": { + "line": 23, + "column": 16 + }, + "end": { + "line": 23, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 546, + "end": 547, + "loc": { + "start": { + "line": 23, + "column": 21 + }, + "end": { + "line": 23, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 547, + "end": 551, + "loc": { + "start": { + "line": 23, + "column": 22 + }, + "end": { + "line": 23, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 551, + "end": 552, + "loc": { + "start": { + "line": 23, + "column": 26 + }, + "end": { + "line": 23, + "column": 27 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 555, + "end": 556, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 3 + } + } + }, + { + "type": { + "label": "catch", + "keyword": "catch", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "catch", + "start": 557, + "end": 562, + "loc": { + "start": { + "line": 24, + "column": 4 + }, + "end": { + "line": 24, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 563, + "end": 564, + "loc": { + "start": { + "line": 24, + "column": 10 + }, + "end": { + "line": 24, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 564, + "end": 565, + "loc": { + "start": { + "line": 24, + "column": 11 + }, + "end": { + "line": 24, + "column": 12 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 565, + "end": 566, + "loc": { + "start": { + "line": 24, + "column": 12 + }, + "end": { + "line": 24, + "column": 13 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 567, + "end": 568, + "loc": { + "start": { + "line": 24, + "column": 14 + }, + "end": { + "line": 24, + "column": 15 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 573, + "end": 578, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 9 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 579, + "end": 582, + "loc": { + "start": { + "line": 25, + "column": 10 + }, + "end": { + "line": 25, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ParserError", + "start": 583, + "end": 594, + "loc": { + "start": { + "line": 25, + "column": 14 + }, + "end": { + "line": 25, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 594, + "end": 595, + "loc": { + "start": { + "line": 25, + "column": 25 + }, + "end": { + "line": 25, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "json", + "start": 595, + "end": 601, + "loc": { + "start": { + "line": 25, + "column": 26 + }, + "end": { + "line": 25, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 601, + "end": 602, + "loc": { + "start": { + "line": 25, + "column": 32 + }, + "end": { + "line": 25, + "column": 33 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 605, + "end": 606, + "loc": { + "start": { + "line": 26, + "column": 2 + }, + "end": { + "line": 26, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 607, + "end": 608, + "loc": { + "start": { + "line": 27, + "column": 0 + }, + "end": { + "line": 27, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.stringify - receives * valid JS data and returns it as JSON\n *\n * @param {*} data\n * @returns {string}\n ", + "start": 610, + "end": 738, + "loc": { + "start": { + "line": 29, + "column": 0 + }, + "end": { + "line": 34, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Json", + "start": 739, + "end": 743, + "loc": { + "start": { + "line": 35, + "column": 0 + }, + "end": { + "line": 35, + "column": 4 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 743, + "end": 744, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 744, + "end": 753, + "loc": { + "start": { + "line": 35, + "column": 5 + }, + "end": { + "line": 35, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 753, + "end": 754, + "loc": { + "start": { + "line": 35, + "column": 14 + }, + "end": { + "line": 35, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 754, + "end": 763, + "loc": { + "start": { + "line": 35, + "column": 15 + }, + "end": { + "line": 35, + "column": 24 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 764, + "end": 765, + "loc": { + "start": { + "line": 35, + "column": 25 + }, + "end": { + "line": 35, + "column": 26 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 766, + "end": 774, + "loc": { + "start": { + "line": 35, + "column": 27 + }, + "end": { + "line": 35, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 775, + "end": 784, + "loc": { + "start": { + "line": 35, + "column": 36 + }, + "end": { + "line": 35, + "column": 45 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 785, + "end": 786, + "loc": { + "start": { + "line": 35, + "column": 46 + }, + "end": { + "line": 35, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 786, + "end": 790, + "loc": { + "start": { + "line": 35, + "column": 47 + }, + "end": { + "line": 35, + "column": 51 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 790, + "end": 791, + "loc": { + "start": { + "line": 35, + "column": 51 + }, + "end": { + "line": 35, + "column": 52 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 792, + "end": 793, + "loc": { + "start": { + "line": 35, + "column": 53 + }, + "end": { + "line": 35, + "column": 54 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 796, + "end": 802, + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 36, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "JSON", + "start": 803, + "end": 807, + "loc": { + "start": { + "line": 36, + "column": 9 + }, + "end": { + "line": 36, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 807, + "end": 808, + "loc": { + "start": { + "line": 36, + "column": 13 + }, + "end": { + "line": 36, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 808, + "end": 817, + "loc": { + "start": { + "line": 36, + "column": 14 + }, + "end": { + "line": 36, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 817, + "end": 818, + "loc": { + "start": { + "line": 36, + "column": 23 + }, + "end": { + "line": 36, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 818, + "end": 822, + "loc": { + "start": { + "line": 36, + "column": 24 + }, + "end": { + "line": 36, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 822, + "end": 823, + "loc": { + "start": { + "line": 36, + "column": 28 + }, + "end": { + "line": 36, + "column": 29 } } }, { "type": { - "label": "=", - "beforeExpr": true, + "label": "}", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "=", - "start": 11, - "end": 12, + "start": 824, + "end": 825, "loc": { "start": { - "line": 1, - "column": 11 + "line": 37, + "column": 0 }, "end": { - "line": 1, - "column": 12 + "line": 37, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Json.prototype.pipeStringify - helps to stream object or array into JSON valid data\n *\n * @param {object} [config] - sets config for stream\n * @param {string} [config.type='array'] - which type of data you're streaming, defaults do array\n * @returns {WritableStream}\n ", + "start": 827, + "end": 1104, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 45, + "column": 3 } } }, @@ -1580,24 +5526,50 @@ "postfix": false, "binop": null }, - "value": "require", - "start": 13, - "end": 20, + "value": "Json", + "start": 1105, + "end": 1109, "loc": { "start": { - "line": 1, - "column": 13 + "line": 46, + "column": 0 }, "end": { - "line": 1, - "column": 20 + "line": 46, + "column": 4 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1109, + "end": 1110, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -1606,24 +5578,25 @@ "postfix": false, "binop": null }, - "start": 20, - "end": 21, + "value": "prototype", + "start": 1110, + "end": 1119, "loc": { "start": { - "line": 1, - "column": 20 + "line": 46, + "column": 5 }, "end": { - "line": 1, - "column": 21 + "line": 46, + "column": 14 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -1632,25 +5605,24 @@ "binop": null, "updateContext": null }, - "value": "./Base", - "start": 21, - "end": 29, + "start": 1119, + "end": 1120, "loc": { "start": { - "line": 1, - "column": 21 + "line": 46, + "column": 14 }, "end": { - "line": 1, - "column": 29 + "line": 46, + "column": 15 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -1658,44 +5630,71 @@ "postfix": false, "binop": null }, - "start": 29, - "end": 30, + "value": "pipeStringify", + "start": 1120, + "end": 1133, "loc": { "start": { - "line": 1, + "line": 46, + "column": 15 + }, + "end": { + "line": 46, + "column": 28 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1134, + "end": 1135, + "loc": { + "start": { + "line": 46, "column": 29 }, "end": { - "line": 1, + "line": 46, "column": 30 } } }, { "type": { - "label": "const", - "keyword": "const", + "label": "function", + "keyword": "function", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "const", - "start": 31, - "end": 36, + "value": "function", + "start": 1136, + "end": 1144, "loc": { "start": { - "line": 2, - "column": 0 + "line": 46, + "column": 31 }, "end": { - "line": 2, - "column": 5 + "line": 46, + "column": 39 } } }, @@ -1711,17 +5710,68 @@ "postfix": false, "binop": null }, - "value": "ParserError", - "start": 37, - "end": 48, + "value": "pipeStringify", + "start": 1145, + "end": 1158, "loc": { "start": { - "line": 2, - "column": 6 + "line": 46, + "column": 40 }, "end": { - "line": 2, - "column": 17 + "line": 46, + "column": 53 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1159, + "end": 1160, + "loc": { + "start": { + "line": 46, + "column": 54 + }, + "end": { + "line": 46, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 1160, + "end": 1166, + "loc": { + "start": { + "line": 46, + "column": 55 + }, + "end": { + "line": 46, + "column": 61 } } }, @@ -1739,23 +5789,98 @@ "updateContext": null }, "value": "=", - "start": 49, - "end": 50, + "start": 1167, + "end": 1168, "loc": { "start": { - "line": 2, - "column": 18 + "line": 46, + "column": 62 + }, + "end": { + "line": 46, + "column": 63 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1169, + "end": 1170, + "loc": { + "start": { + "line": 46, + "column": 64 + }, + "end": { + "line": 46, + "column": 65 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1170, + "end": 1171, + "loc": { + "start": { + "line": 46, + "column": 65 + }, + "end": { + "line": 46, + "column": 66 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1171, + "end": 1172, + "loc": { + "start": { + "line": 46, + "column": 66 }, "end": { - "line": 2, - "column": 19 + "line": 46, + "column": 67 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -1764,24 +5889,23 @@ "postfix": false, "binop": null }, - "value": "require", - "start": 51, - "end": 58, + "start": 1173, + "end": 1174, "loc": { "start": { - "line": 2, - "column": 20 + "line": 46, + "column": 68 }, "end": { - "line": 2, - "column": 27 + "line": 46, + "column": 69 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -1790,24 +5914,25 @@ "postfix": false, "binop": null }, - "start": 58, - "end": 59, + "value": "config", + "start": 1177, + "end": 1183, "loc": { "start": { - "line": 2, - "column": 27 + "line": 47, + "column": 2 }, "end": { - "line": 2, - "column": 28 + "line": 47, + "column": 8 } } }, { "type": { - "label": "string", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -1816,25 +5941,24 @@ "binop": null, "updateContext": null }, - "value": "../errors/ParserError", - "start": 59, - "end": 82, + "start": 1183, + "end": 1184, "loc": { "start": { - "line": 2, - "column": 28 + "line": 47, + "column": 8 }, "end": { - "line": 2, - "column": 51 + "line": 47, + "column": 9 } } }, { "type": { - "label": ")", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -1842,39 +5966,50 @@ "postfix": false, "binop": null }, - "start": 82, - "end": 83, + "value": "type", + "start": 1184, + "end": 1188, "loc": { "start": { - "line": 2, - "column": 51 + "line": 47, + "column": 9 }, "end": { - "line": 2, - "column": 52 + "line": 47, + "column": 13 } } }, { - "type": "CommentBlock", - "value": "*\n * Json - Support for JSON filetype\n *\n * @constructor\n ", - "start": 85, - "end": 147, + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1189, + "end": 1190, "loc": { "start": { - "line": 4, - "column": 0 + "line": 47, + "column": 14 }, "end": { - "line": 8, - "column": 3 + "line": 47, + "column": 15 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -1884,50 +6019,50 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 148, - "end": 156, + "value": "config", + "start": 1191, + "end": 1197, "loc": { "start": { - "line": 9, - "column": 0 + "line": 47, + "column": 16 }, "end": { - "line": 9, - "column": 8 + "line": 47, + "column": 22 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "Json", - "start": 157, - "end": 161, + "start": 1197, + "end": 1198, "loc": { "start": { - "line": 9, - "column": 9 + "line": 47, + "column": 22 }, "end": { - "line": 9, - "column": 13 + "line": 47, + "column": 23 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -1936,72 +6071,78 @@ "postfix": false, "binop": null }, - "start": 162, - "end": 163, + "value": "type", + "start": 1198, + "end": 1202, "loc": { "start": { - "line": 9, - "column": 14 + "line": 47, + "column": 23 }, "end": { - "line": 9, - "column": 15 + "line": 47, + "column": 27 } } }, { "type": { - "label": ")", - "beforeExpr": false, + "label": "||", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": 1, + "updateContext": null }, - "start": 163, - "end": 164, + "value": "||", + "start": 1203, + "end": 1205, "loc": { "start": { - "line": 9, - "column": 15 + "line": 47, + "column": 28 }, "end": { - "line": 9, - "column": 16 + "line": 47, + "column": 30 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "string", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 165, - "end": 166, + "value": "array", + "start": 1206, + "end": 1213, "loc": { "start": { - "line": 9, - "column": 17 + "line": 47, + "column": 31 }, "end": { - "line": 9, - "column": 18 + "line": 47, + "column": 38 } } }, { "type": { - "label": "}", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -2009,18 +6150,20 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 166, - "end": 167, + "value": "const", + "start": 1216, + "end": 1221, "loc": { "start": { - "line": 9, - "column": 18 + "line": 48, + "column": 2 }, "end": { - "line": 9, - "column": 19 + "line": 48, + "column": 7 } } }, @@ -2036,43 +6179,69 @@ "postfix": false, "binop": null }, - "value": "Json", - "start": 169, - "end": 173, + "value": "streams", + "start": 1222, + "end": 1229, "loc": { "start": { - "line": 11, - "column": 0 + "line": 48, + "column": 8 }, "end": { - "line": 11, - "column": 4 + "line": 48, + "column": 15 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 173, - "end": 174, + "value": "=", + "start": 1230, + "end": 1231, "loc": { "start": { - "line": 11, - "column": 4 + "line": 48, + "column": 16 }, "end": { - "line": 11, - "column": 5 + "line": 48, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1232, + "end": 1233, + "loc": { + "start": { + "line": 48, + "column": 18 + }, + "end": { + "line": 48, + "column": 19 } } }, @@ -2088,44 +6257,43 @@ "postfix": false, "binop": null }, - "value": "prototype", - "start": 174, - "end": 183, + "value": "object", + "start": 1238, + "end": 1244, "loc": { "start": { - "line": 11, - "column": 5 + "line": 49, + "column": 4 }, "end": { - "line": 11, - "column": 14 + "line": 49, + "column": 10 } } }, { "type": { - "label": "=", + "label": ":", "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 184, - "end": 185, + "start": 1244, + "end": 1245, "loc": { "start": { - "line": 11, - "column": 15 + "line": 49, + "column": 10 }, "end": { - "line": 11, - "column": 16 + "line": 49, + "column": 11 } } }, @@ -2141,17 +6309,17 @@ "postfix": false, "binop": null }, - "value": "Object", - "start": 186, - "end": 192, + "value": "JSONStream", + "start": 1246, + "end": 1256, "loc": { "start": { - "line": 11, - "column": 17 + "line": 49, + "column": 12 }, "end": { - "line": 11, - "column": 23 + "line": 49, + "column": 22 } } }, @@ -2168,16 +6336,16 @@ "binop": null, "updateContext": null }, - "start": 192, - "end": 193, + "start": 1256, + "end": 1257, "loc": { "start": { - "line": 11, - "column": 23 + "line": 49, + "column": 22 }, "end": { - "line": 11, - "column": 24 + "line": 49, + "column": 23 } } }, @@ -2193,42 +6361,43 @@ "postfix": false, "binop": null }, - "value": "create", - "start": 193, - "end": 199, + "value": "stringifyObject", + "start": 1257, + "end": 1272, "loc": { "start": { - "line": 11, - "column": 24 + "line": 49, + "column": 23 }, "end": { - "line": 11, - "column": 30 + "line": 49, + "column": 38 } } }, { "type": { - "label": "(", + "label": ",", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 199, - "end": 200, + "start": 1272, + "end": 1273, "loc": { "start": { - "line": 11, - "column": 30 + "line": 49, + "column": 38 }, "end": { - "line": 11, - "column": 31 + "line": 49, + "column": 39 } } }, @@ -2244,24 +6413,24 @@ "postfix": false, "binop": null }, - "value": "Base", - "start": 200, - "end": 204, + "value": "array", + "start": 1278, + "end": 1283, "loc": { "start": { - "line": 11, - "column": 31 + "line": 50, + "column": 4 }, "end": { - "line": 11, - "column": 35 + "line": 50, + "column": 9 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": ":", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -2271,16 +6440,16 @@ "binop": null, "updateContext": null }, - "start": 204, - "end": 205, + "start": 1283, + "end": 1284, "loc": { "start": { - "line": 11, - "column": 35 + "line": 50, + "column": 9 }, "end": { - "line": 11, - "column": 36 + "line": 50, + "column": 10 } } }, @@ -2296,23 +6465,23 @@ "postfix": false, "binop": null }, - "value": "prototype", - "start": 205, - "end": 214, + "value": "JSONStream", + "start": 1285, + "end": 1295, "loc": { "start": { - "line": 11, - "column": 36 + "line": 50, + "column": 11 }, "end": { - "line": 11, - "column": 45 + "line": 50, + "column": 21 } } }, { "type": { - "label": ")", + "label": ".", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -2320,42 +6489,53 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 214, - "end": 215, + "start": 1295, + "end": 1296, "loc": { "start": { - "line": 11, - "column": 45 + "line": 50, + "column": 21 }, "end": { - "line": 11, - "column": 46 + "line": 50, + "column": 22 } } }, { - "type": "CommentBlock", - "value": "*\n * Json.prototype.parse - receives an JSON string and returns valid JS\n *\n * @param {string} data\n * @throws {ParserError} In case the JSON string is not valid, ParserError will be thrown\n * @returns {*}\n ", - "start": 217, - "end": 428, + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 1296, + "end": 1305, "loc": { "start": { - "line": 13, - "column": 0 + "line": 50, + "column": 22 }, "end": { - "line": 19, - "column": 3 + "line": 50, + "column": 31 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -2363,23 +6543,23 @@ "postfix": false, "binop": null }, - "value": "Json", - "start": 429, - "end": 433, + "start": 1308, + "end": 1309, "loc": { "start": { - "line": 20, - "column": 0 + "line": 51, + "column": 2 }, "end": { - "line": 20, - "column": 4 + "line": 51, + "column": 3 } } }, { "type": { - "label": ".", + "label": "const", + "keyword": "const", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -2390,16 +6570,17 @@ "binop": null, "updateContext": null }, - "start": 433, - "end": 434, + "value": "const", + "start": 1313, + "end": 1318, "loc": { "start": { - "line": 20, - "column": 4 + "line": 53, + "column": 2 }, "end": { - "line": 20, - "column": 5 + "line": 53, + "column": 7 } } }, @@ -2415,43 +6596,44 @@ "postfix": false, "binop": null }, - "value": "prototype", - "start": 434, - "end": 443, + "value": "fn", + "start": 1319, + "end": 1321, "loc": { "start": { - "line": 20, - "column": 5 + "line": 53, + "column": 8 }, "end": { - "line": 20, - "column": 14 + "line": 53, + "column": 10 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "=", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, - "isAssign": false, + "isAssign": true, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "start": 443, - "end": 444, + "value": "=", + "start": 1322, + "end": 1323, "loc": { "start": { - "line": 20, - "column": 14 + "line": 53, + "column": 11 }, "end": { - "line": 20, - "column": 15 + "line": 53, + "column": 12 } } }, @@ -2467,51 +6649,49 @@ "postfix": false, "binop": null }, - "value": "parse", - "start": 444, - "end": 449, + "value": "streams", + "start": 1324, + "end": 1331, "loc": { "start": { - "line": 20, - "column": 15 + "line": 53, + "column": 13 }, "end": { - "line": 20, + "line": 53, "column": 20 } } }, { "type": { - "label": "=", + "label": "[", "beforeExpr": true, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, - "isAssign": true, + "isAssign": false, "prefix": false, "postfix": false, "binop": null, "updateContext": null }, - "value": "=", - "start": 450, - "end": 451, + "start": 1331, + "end": 1332, "loc": { "start": { - "line": 20, - "column": 21 + "line": 53, + "column": 20 }, "end": { - "line": 20, - "column": 22 + "line": 53, + "column": 21 } } }, { "type": { - "label": "function", - "keyword": "function", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -2521,50 +6701,50 @@ "postfix": false, "binop": null }, - "value": "function", - "start": 452, - "end": 460, + "value": "config", + "start": 1332, + "end": 1338, "loc": { "start": { - "line": 20, - "column": 23 + "line": 53, + "column": 21 }, "end": { - "line": 20, - "column": 31 + "line": 53, + "column": 27 } } }, { "type": { - "label": "name", + "label": ".", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "parse", - "start": 461, - "end": 466, + "start": 1338, + "end": 1339, "loc": { "start": { - "line": 20, - "column": 32 + "line": 53, + "column": 27 }, "end": { - "line": 20, - "column": 37 + "line": 53, + "column": 28 } } }, { "type": { - "label": "(", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -2573,48 +6753,50 @@ "postfix": false, "binop": null }, - "start": 467, - "end": 468, + "value": "type", + "start": 1339, + "end": 1343, "loc": { "start": { - "line": 20, - "column": 38 + "line": 53, + "column": 28 }, "end": { - "line": 20, - "column": 39 + "line": 53, + "column": 32 } } }, { "type": { - "label": "name", + "label": "]", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "value": "data", - "start": 468, - "end": 472, + "start": 1343, + "end": 1344, "loc": { "start": { - "line": 20, - "column": 39 + "line": 53, + "column": 32 }, "end": { - "line": 20, - "column": 43 + "line": 53, + "column": 33 } } }, { "type": { - "label": ")", + "label": "if", + "keyword": "if", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -2622,24 +6804,26 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 472, - "end": 473, + "value": "if", + "start": 1348, + "end": 1350, "loc": { "start": { - "line": 20, - "column": 43 + "line": 55, + "column": 2 }, "end": { - "line": 20, - "column": 44 + "line": 55, + "column": 4 } } }, { "type": { - "label": "{", + "label": "(", "beforeExpr": true, "startsExpr": true, "rightAssociative": false, @@ -2649,51 +6833,50 @@ "postfix": false, "binop": null }, - "start": 474, - "end": 475, + "start": 1351, + "end": 1352, "loc": { "start": { - "line": 20, - "column": 45 + "line": 55, + "column": 5 }, "end": { - "line": 20, - "column": 46 + "line": 55, + "column": 6 } } }, { "type": { - "label": "try", - "keyword": "try", - "beforeExpr": false, - "startsExpr": false, + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, - "prefix": false, + "prefix": true, "postfix": false, "binop": null, "updateContext": null }, - "value": "try", - "start": 478, - "end": 481, + "value": "!", + "start": 1352, + "end": 1353, "loc": { "start": { - "line": 21, - "column": 2 + "line": 55, + "column": 6 }, "end": { - "line": 21, - "column": 5 + "line": 55, + "column": 7 } } }, { "type": { - "label": "{", - "beforeExpr": true, + "label": "name", + "beforeExpr": false, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -2702,51 +6885,49 @@ "postfix": false, "binop": null }, - "start": 482, - "end": 483, + "value": "fn", + "start": 1353, + "end": 1355, "loc": { "start": { - "line": 21, - "column": 6 + "line": 55, + "column": 7 }, "end": { - "line": 21, - "column": 7 + "line": 55, + "column": 9 } } }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": ")", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "return", - "start": 488, - "end": 494, + "start": 1355, + "end": 1356, "loc": { "start": { - "line": 22, - "column": 4 + "line": 55, + "column": 9 }, "end": { - "line": 22, + "line": 55, "column": 10 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -2755,24 +6936,24 @@ "postfix": false, "binop": null }, - "value": "JSON", - "start": 495, - "end": 499, + "start": 1357, + "end": 1358, "loc": { "start": { - "line": 22, + "line": 55, "column": 11 }, "end": { - "line": 22, - "column": 15 + "line": 55, + "column": 12 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "throw", + "keyword": "throw", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -2782,16 +6963,45 @@ "binop": null, "updateContext": null }, - "start": 499, - "end": 500, + "value": "throw", + "start": 1363, + "end": 1368, "loc": { "start": { - "line": 22, - "column": 15 + "line": 56, + "column": 4 }, "end": { - "line": 22, - "column": 16 + "line": 56, + "column": 9 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1369, + "end": 1372, + "loc": { + "start": { + "line": 56, + "column": 10 + }, + "end": { + "line": 56, + "column": 13 } } }, @@ -2807,17 +7017,17 @@ "postfix": false, "binop": null }, - "value": "parse", - "start": 500, - "end": 505, + "value": "ParserError", + "start": 1373, + "end": 1384, "loc": { "start": { - "line": 22, - "column": 16 + "line": 56, + "column": 14 }, "end": { - "line": 22, - "column": 21 + "line": 56, + "column": 25 } } }, @@ -2833,22 +7043,22 @@ "postfix": false, "binop": null }, - "start": 505, - "end": 506, + "start": 1384, + "end": 1385, "loc": { "start": { - "line": 22, - "column": 21 + "line": 56, + "column": 25 }, "end": { - "line": 22, - "column": 22 + "line": 56, + "column": 26 } } }, { "type": { - "label": "name", + "label": "`", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -2858,23 +7068,22 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 506, - "end": 510, + "start": 1385, + "end": 1386, "loc": { "start": { - "line": 22, - "column": 22 + "line": 56, + "column": 26 }, "end": { - "line": 22, - "column": 26 + "line": 56, + "column": 27 } } }, { "type": { - "label": ")", + "label": "template", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -2882,26 +7091,28 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 510, - "end": 511, + "value": "Supplied type \"", + "start": 1386, + "end": 1401, "loc": { "start": { - "line": 22, - "column": 26 + "line": 56, + "column": 27 }, "end": { - "line": 22, - "column": 27 + "line": 56, + "column": 42 } } }, { "type": { - "label": "}", - "beforeExpr": false, - "startsExpr": false, + "label": "${", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -2909,69 +7120,68 @@ "postfix": false, "binop": null }, - "start": 514, - "end": 515, + "start": 1401, + "end": 1403, "loc": { "start": { - "line": 23, - "column": 2 + "line": 56, + "column": 42 }, "end": { - "line": 23, - "column": 3 + "line": 56, + "column": 44 } } }, { "type": { - "label": "catch", - "keyword": "catch", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "catch", - "start": 516, - "end": 521, + "value": "config", + "start": 1403, + "end": 1409, "loc": { "start": { - "line": 23, - "column": 4 + "line": 56, + "column": 44 }, "end": { - "line": 23, - "column": 9 + "line": 56, + "column": 50 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 522, - "end": 523, + "start": 1409, + "end": 1410, "loc": { "start": { - "line": 23, - "column": 10 + "line": 56, + "column": 50 }, "end": { - "line": 23, - "column": 11 + "line": 56, + "column": 51 } } }, @@ -2987,23 +7197,23 @@ "postfix": false, "binop": null }, - "value": "e", - "start": 523, - "end": 524, + "value": "type", + "start": 1410, + "end": 1414, "loc": { "start": { - "line": 23, - "column": 11 + "line": 56, + "column": 51 }, "end": { - "line": 23, - "column": 12 + "line": 56, + "column": 55 } } }, { "type": { - "label": ")", + "label": "}", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3013,105 +7223,101 @@ "postfix": false, "binop": null }, - "start": 524, - "end": 525, + "start": 1414, + "end": 1415, "loc": { "start": { - "line": 23, - "column": 12 + "line": 56, + "column": 55 }, "end": { - "line": 23, - "column": 13 + "line": 56, + "column": 56 } } }, { "type": { - "label": "{", - "beforeExpr": true, - "startsExpr": true, + "label": "template", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 526, - "end": 527, + "value": "\" is not allowed. Use either \"array\" or \"object\"", + "start": 1415, + "end": 1463, "loc": { "start": { - "line": 23, - "column": 14 + "line": 56, + "column": 56 }, "end": { - "line": 23, - "column": 15 + "line": 56, + "column": 104 } } }, { "type": { - "label": "throw", - "keyword": "throw", - "beforeExpr": true, - "startsExpr": false, + "label": "`", + "beforeExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "throw", - "start": 532, - "end": 537, + "start": 1463, + "end": 1464, "loc": { "start": { - "line": 24, - "column": 4 + "line": 56, + "column": 104 }, "end": { - "line": 24, - "column": 9 + "line": 56, + "column": 105 } } }, { "type": { - "label": "new", - "keyword": "new", - "beforeExpr": true, - "startsExpr": true, + "label": ")", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "new", - "start": 538, - "end": 541, + "start": 1464, + "end": 1465, "loc": { "start": { - "line": 24, - "column": 10 + "line": 56, + "column": 105 }, "end": { - "line": 24, - "column": 13 + "line": 56, + "column": 106 } } }, { "type": { - "label": "name", + "label": "}", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3119,48 +7325,50 @@ "postfix": false, "binop": null }, - "value": "ParserError", - "start": 542, - "end": 553, + "start": 1468, + "end": 1469, "loc": { "start": { - "line": 24, - "column": 14 + "line": 57, + "column": 2 }, "end": { - "line": 24, - "column": 25 + "line": 57, + "column": 3 } } }, { "type": { - "label": "(", + "label": "return", + "keyword": "return", "beforeExpr": true, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 553, - "end": 554, + "value": "return", + "start": 1473, + "end": 1479, "loc": { "start": { - "line": 24, - "column": 25 + "line": 59, + "column": 2 }, "end": { - "line": 24, - "column": 26 + "line": 59, + "column": 8 } } }, { "type": { - "label": "string", + "label": "name", "beforeExpr": false, "startsExpr": true, "rightAssociative": false, @@ -3168,28 +7376,27 @@ "isAssign": false, "prefix": false, "postfix": false, - "binop": null, - "updateContext": null + "binop": null }, - "value": "json", - "start": 554, - "end": 560, + "value": "fn", + "start": 1480, + "end": 1482, "loc": { "start": { - "line": 24, - "column": 26 + "line": 59, + "column": 9 }, "end": { - "line": 24, - "column": 32 + "line": 59, + "column": 11 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -3197,22 +7404,22 @@ "postfix": false, "binop": null }, - "start": 560, - "end": 561, + "start": 1482, + "end": 1483, "loc": { "start": { - "line": 24, - "column": 32 + "line": 59, + "column": 11 }, "end": { - "line": 24, - "column": 33 + "line": 59, + "column": 12 } } }, { "type": { - "label": "}", + "label": ")", "beforeExpr": false, "startsExpr": false, "rightAssociative": false, @@ -3222,16 +7429,16 @@ "postfix": false, "binop": null }, - "start": 564, - "end": 565, + "start": 1483, + "end": 1484, "loc": { "start": { - "line": 25, - "column": 2 + "line": 59, + "column": 12 }, "end": { - "line": 25, - "column": 3 + "line": 59, + "column": 13 } } }, @@ -3247,31 +7454,31 @@ "postfix": false, "binop": null }, - "start": 566, - "end": 567, + "start": 1485, + "end": 1486, "loc": { "start": { - "line": 26, + "line": 60, "column": 0 }, "end": { - "line": 26, + "line": 60, "column": 1 } } }, { "type": "CommentBlock", - "value": "*\n * Json.prototype.stringify - receives * valid JS data and returns it as JSON\n *\n * @param {*} data\n * @returns {string}\n ", - "start": 569, - "end": 697, + "value": "*\n * Json.prototype.pipeStringify - helps to stream JSON data to JS\n *\n * @param {object} [config] - sets config for stream\n * @param {string} [config.path] - select which data path to be parsed from JSON to JS\n * @returns {Stream}\n ", + "start": 1488, + "end": 1725, "loc": { "start": { - "line": 28, + "line": 62, "column": 0 }, "end": { - "line": 33, + "line": 68, "column": 3 } } @@ -3289,15 +7496,15 @@ "binop": null }, "value": "Json", - "start": 698, - "end": 702, + "start": 1726, + "end": 1730, "loc": { "start": { - "line": 34, + "line": 69, "column": 0 }, "end": { - "line": 34, + "line": 69, "column": 4 } } @@ -3315,15 +7522,15 @@ "binop": null, "updateContext": null }, - "start": 702, - "end": 703, + "start": 1730, + "end": 1731, "loc": { "start": { - "line": 34, + "line": 69, "column": 4 }, "end": { - "line": 34, + "line": 69, "column": 5 } } @@ -3341,15 +7548,15 @@ "binop": null }, "value": "prototype", - "start": 703, - "end": 712, + "start": 1731, + "end": 1740, "loc": { "start": { - "line": 34, + "line": 69, "column": 5 }, "end": { - "line": 34, + "line": 69, "column": 14 } } @@ -3367,15 +7574,15 @@ "binop": null, "updateContext": null }, - "start": 712, - "end": 713, + "start": 1740, + "end": 1741, "loc": { "start": { - "line": 34, + "line": 69, "column": 14 }, "end": { - "line": 34, + "line": 69, "column": 15 } } @@ -3392,16 +7599,16 @@ "postfix": false, "binop": null }, - "value": "stringify", - "start": 713, - "end": 722, + "value": "pipeParse", + "start": 1741, + "end": 1750, "loc": { "start": { - "line": 34, + "line": 69, "column": 15 }, "end": { - "line": 34, + "line": 69, "column": 24 } } @@ -3420,15 +7627,15 @@ "updateContext": null }, "value": "=", - "start": 723, - "end": 724, + "start": 1751, + "end": 1752, "loc": { "start": { - "line": 34, + "line": 69, "column": 25 }, "end": { - "line": 34, + "line": 69, "column": 26 } } @@ -3447,15 +7654,15 @@ "binop": null }, "value": "function", - "start": 725, - "end": 733, + "start": 1753, + "end": 1761, "loc": { "start": { - "line": 34, + "line": 69, "column": 27 }, "end": { - "line": 34, + "line": 69, "column": 35 } } @@ -3472,16 +7679,16 @@ "postfix": false, "binop": null }, - "value": "stringify", - "start": 734, - "end": 743, + "value": "pipeParse", + "start": 1762, + "end": 1771, "loc": { "start": { - "line": 34, + "line": 69, "column": 36 }, "end": { - "line": 34, + "line": 69, "column": 45 } } @@ -3498,15 +7705,15 @@ "postfix": false, "binop": null }, - "start": 744, - "end": 745, + "start": 1772, + "end": 1773, "loc": { "start": { - "line": 34, + "line": 69, "column": 46 }, "end": { - "line": 34, + "line": 69, "column": 47 } } @@ -3523,17 +7730,17 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 745, - "end": 749, + "value": "config", + "start": 1773, + "end": 1779, "loc": { "start": { - "line": 34, + "line": 69, "column": 47 }, "end": { - "line": 34, - "column": 51 + "line": 69, + "column": 53 } } }, @@ -3549,16 +7756,16 @@ "postfix": false, "binop": null }, - "start": 749, - "end": 750, + "start": 1779, + "end": 1780, "loc": { "start": { - "line": 34, - "column": 51 + "line": 69, + "column": 53 }, "end": { - "line": 34, - "column": 52 + "line": 69, + "column": 54 } } }, @@ -3574,16 +7781,16 @@ "postfix": false, "binop": null }, - "start": 751, - "end": 752, + "start": 1781, + "end": 1782, "loc": { "start": { - "line": 34, - "column": 53 + "line": 69, + "column": 55 }, "end": { - "line": 34, - "column": 54 + "line": 69, + "column": 56 } } }, @@ -3602,15 +7809,15 @@ "updateContext": null }, "value": "return", - "start": 755, - "end": 761, + "start": 1785, + "end": 1791, "loc": { "start": { - "line": 35, + "line": 70, "column": 2 }, "end": { - "line": 35, + "line": 70, "column": 8 } } @@ -3627,17 +7834,17 @@ "postfix": false, "binop": null }, - "value": "JSON", - "start": 762, - "end": 766, + "value": "JSONStream", + "start": 1792, + "end": 1802, "loc": { "start": { - "line": 35, + "line": 70, "column": 9 }, "end": { - "line": 35, - "column": 13 + "line": 70, + "column": 19 } } }, @@ -3654,16 +7861,16 @@ "binop": null, "updateContext": null }, - "start": 766, - "end": 767, + "start": 1802, + "end": 1803, "loc": { "start": { - "line": 35, - "column": 13 + "line": 70, + "column": 19 }, "end": { - "line": 35, - "column": 14 + "line": 70, + "column": 20 } } }, @@ -3679,17 +7886,17 @@ "postfix": false, "binop": null }, - "value": "stringify", - "start": 767, - "end": 776, + "value": "parse", + "start": 1803, + "end": 1808, "loc": { "start": { - "line": 35, - "column": 14 + "line": 70, + "column": 20 }, "end": { - "line": 35, - "column": 23 + "line": 70, + "column": 25 } } }, @@ -3705,42 +7912,16 @@ "postfix": false, "binop": null }, - "start": 776, - "end": 777, - "loc": { - "start": { - "line": 35, - "column": 23 - }, - "end": { - "line": 35, - "column": 24 - } - } - }, - { - "type": { - "label": "name", - "beforeExpr": false, - "startsExpr": true, - "rightAssociative": false, - "isLoop": false, - "isAssign": false, - "prefix": false, - "postfix": false, - "binop": null - }, - "value": "data", - "start": 777, - "end": 781, + "start": 1808, + "end": 1809, "loc": { "start": { - "line": 35, - "column": 24 + "line": 70, + "column": 25 }, "end": { - "line": 35, - "column": 28 + "line": 70, + "column": 26 } } }, @@ -3756,16 +7937,16 @@ "postfix": false, "binop": null }, - "start": 781, - "end": 782, + "start": 1809, + "end": 1810, "loc": { "start": { - "line": 35, - "column": 28 + "line": 70, + "column": 26 }, "end": { - "line": 35, - "column": 29 + "line": 70, + "column": 27 } } }, @@ -3781,15 +7962,15 @@ "postfix": false, "binop": null }, - "start": 783, - "end": 784, + "start": 1811, + "end": 1812, "loc": { "start": { - "line": 36, + "line": 71, "column": 0 }, "end": { - "line": 36, + "line": 71, "column": 1 } } @@ -3807,15 +7988,15 @@ "binop": null }, "value": "module", - "start": 786, - "end": 792, + "start": 1814, + "end": 1820, "loc": { "start": { - "line": 38, + "line": 73, "column": 0 }, "end": { - "line": 38, + "line": 73, "column": 6 } } @@ -3833,15 +8014,15 @@ "binop": null, "updateContext": null }, - "start": 792, - "end": 793, + "start": 1820, + "end": 1821, "loc": { "start": { - "line": 38, + "line": 73, "column": 6 }, "end": { - "line": 38, + "line": 73, "column": 7 } } @@ -3859,15 +8040,15 @@ "binop": null }, "value": "exports", - "start": 793, - "end": 800, + "start": 1821, + "end": 1828, "loc": { "start": { - "line": 38, + "line": 73, "column": 7 }, "end": { - "line": 38, + "line": 73, "column": 14 } } @@ -3886,15 +8067,15 @@ "updateContext": null }, "value": "=", - "start": 801, - "end": 802, + "start": 1829, + "end": 1830, "loc": { "start": { - "line": 38, + "line": 73, "column": 15 }, "end": { - "line": 38, + "line": 73, "column": 16 } } @@ -3912,15 +8093,15 @@ "binop": null }, "value": "Json", - "start": 803, - "end": 807, + "start": 1831, + "end": 1835, "loc": { "start": { - "line": 38, + "line": 73, "column": 17 }, "end": { - "line": 38, + "line": 73, "column": 21 } } @@ -3938,15 +8119,15 @@ "binop": null, "updateContext": null }, - "start": 808, - "end": 808, + "start": 1836, + "end": 1836, "loc": { "start": { - "line": 39, + "line": 74, "column": 0 }, "end": { - "line": 39, + "line": 74, "column": 0 } } diff --git a/docs/ast/source/strategies/Xml/XmlTag.js.json b/docs/ast/source/strategies/Xml/XmlTag.js.json new file mode 100644 index 0000000..3d3910f --- /dev/null +++ b/docs/ast/source/strategies/Xml/XmlTag.js.json @@ -0,0 +1,4958 @@ +{ + "type": "File", + "start": 0, + "end": 535, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 535, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 24, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "FunctionDeclaration", + "start": 0, + "end": 127, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 9, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 23 + }, + "identifierName": "XmlDeclaration" + }, + "name": "XmlDeclaration" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 25, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 32 + }, + "identifierName": "version" + }, + "name": "version" + }, + { + "type": "Identifier", + "start": 34, + "end": 42, + "loc": { + "start": { + "line": 1, + "column": 34 + }, + "end": { + "line": 1, + "column": 42 + }, + "identifierName": "encoding" + }, + "name": "encoding" + } + ], + "body": { + "type": "BlockStatement", + "start": 44, + "end": 127, + "loc": { + "start": { + "line": 1, + "column": 44 + }, + "end": { + "line": 5, + "column": 1 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 48, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 2 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 48, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 2 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 48, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 2 + }, + "end": { + "line": 2, + "column": 11 + } + }, + "object": { + "type": "ThisExpression", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 2 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 53, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 11 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 60, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 27 + } + }, + "extra": { + "rawValue": "declaration", + "raw": "'declaration'" + }, + "value": "declaration" + } + } + }, + { + "type": "ExpressionStatement", + "start": 76, + "end": 98, + "loc": { + "start": { + "line": 3, + "column": 2 + }, + "end": { + "line": 3, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 76, + "end": 98, + "loc": { + "start": { + "line": 3, + "column": 2 + }, + "end": { + "line": 3, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 76, + "end": 88, + "loc": { + "start": { + "line": 3, + "column": 2 + }, + "end": { + "line": 3, + "column": 14 + } + }, + "object": { + "type": "ThisExpression", + "start": 76, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 2 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 81, + "end": 88, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 14 + }, + "identifierName": "version" + }, + "name": "version" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 91, + "end": 98, + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 24 + }, + "identifierName": "version" + }, + "name": "version" + } + } + }, + { + "type": "ExpressionStatement", + "start": 101, + "end": 125, + "loc": { + "start": { + "line": 4, + "column": 2 + }, + "end": { + "line": 4, + "column": 26 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 101, + "end": 125, + "loc": { + "start": { + "line": 4, + "column": 2 + }, + "end": { + "line": 4, + "column": 26 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 101, + "end": 114, + "loc": { + "start": { + "line": 4, + "column": 2 + }, + "end": { + "line": 4, + "column": 15 + } + }, + "object": { + "type": "ThisExpression", + "start": 101, + "end": 105, + "loc": { + "start": { + "line": 4, + "column": 2 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 106, + "end": 114, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 15 + }, + "identifierName": "encoding" + }, + "name": "encoding" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 117, + "end": 125, + "loc": { + "start": { + "line": 4, + "column": 18 + }, + "end": { + "line": 4, + "column": 26 + }, + "identifierName": "encoding" + }, + "name": "encoding" + } + } + } + ], + "directives": [] + } + }, + { + "type": "FunctionDeclaration", + "start": 129, + "end": 270, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 138, + "end": 144, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 15 + }, + "identifierName": "XmlTag" + }, + "name": "XmlTag" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 146, + "end": 150, + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 21 + }, + "identifierName": "name" + }, + "name": "name" + }, + { + "type": "Identifier", + "start": 152, + "end": 157, + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 28 + }, + "identifierName": "value" + }, + "name": "value" + }, + { + "type": "Identifier", + "start": 159, + "end": 169, + "loc": { + "start": { + "line": 7, + "column": 30 + }, + "end": { + "line": 7, + "column": 40 + }, + "identifierName": "attributes" + }, + "name": "attributes" + }, + { + "type": "Identifier", + "start": 171, + "end": 175, + "loc": { + "start": { + "line": 7, + "column": 42 + }, + "end": { + "line": 7, + "column": 46 + }, + "identifierName": "tags" + }, + "name": "tags" + } + ], + "body": { + "type": "BlockStatement", + "start": 177, + "end": 270, + "loc": { + "start": { + "line": 7, + "column": 48 + }, + "end": { + "line": 12, + "column": 1 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 181, + "end": 197, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 18 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 181, + "end": 197, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 18 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 181, + "end": 190, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 11 + } + }, + "object": { + "type": "ThisExpression", + "start": 181, + "end": 185, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 186, + "end": 190, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 11 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 193, + "end": 197, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 18 + }, + "identifierName": "name" + }, + "name": "name" + } + } + }, + { + "type": "ExpressionStatement", + "start": 200, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 2 + }, + "end": { + "line": 9, + "column": 20 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 200, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 2 + }, + "end": { + "line": 9, + "column": 20 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 200, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 2 + }, + "end": { + "line": 9, + "column": 12 + } + }, + "object": { + "type": "ThisExpression", + "start": 200, + "end": 204, + "loc": { + "start": { + "line": 9, + "column": 2 + }, + "end": { + "line": 9, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 205, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + }, + "identifierName": "value" + }, + "name": "value" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 213, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 15 + }, + "end": { + "line": 9, + "column": 20 + }, + "identifierName": "value" + }, + "name": "value" + } + } + }, + { + "type": "ExpressionStatement", + "start": 221, + "end": 249, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 221, + "end": 249, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 30 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 221, + "end": 236, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 221, + "end": 225, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 226, + "end": 236, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 17 + }, + "identifierName": "attributes" + }, + "name": "attributes" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 239, + "end": 249, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 30 + }, + "identifierName": "attributes" + }, + "name": "attributes" + } + } + }, + { + "type": "ExpressionStatement", + "start": 252, + "end": 268, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 18 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 252, + "end": 268, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 18 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 252, + "end": 261, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 11 + } + }, + "object": { + "type": "ThisExpression", + "start": 252, + "end": 256, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 257, + "end": 261, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 11 + }, + "identifierName": "tags" + }, + "name": "tags" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 264, + "end": 268, + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 18 + }, + "identifierName": "tags" + }, + "name": "tags" + } + } + } + ], + "directives": [] + } + }, + { + "type": "ExpressionStatement", + "start": 272, + "end": 389, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 272, + "end": 389, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 272, + "end": 294, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 22 + } + }, + "object": { + "type": "MemberExpression", + "start": 272, + "end": 288, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 272, + "end": 278, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 6 + }, + "identifierName": "XmlTag" + }, + "name": "XmlTag" + }, + "property": { + "type": "Identifier", + "start": 279, + "end": 288, + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 14, + "column": 16 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 289, + "end": 294, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 22 + }, + "identifierName": "reset" + }, + "name": "reset" + }, + "computed": false + }, + "right": { + "type": "FunctionExpression", + "start": 297, + "end": 389, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 289, + "end": 294, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 22 + }, + "identifierName": "reset" + }, + "name": "reset" + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 315, + "end": 389, + "loc": { + "start": { + "line": 14, + "column": 43 + }, + "end": { + "line": 16, + "column": 1 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 319, + "end": 387, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 70 + } + }, + "argument": { + "type": "NewExpression", + "start": 326, + "end": 387, + "loc": { + "start": { + "line": 15, + "column": 9 + }, + "end": { + "line": 15, + "column": 70 + } + }, + "callee": { + "type": "Identifier", + "start": 330, + "end": 336, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 19 + }, + "identifierName": "XmlTag" + }, + "name": "XmlTag" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 337, + "end": 346, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 29 + } + }, + "object": { + "type": "ThisExpression", + "start": 337, + "end": 341, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 24 + } + } + }, + "property": { + "type": "Identifier", + "start": 342, + "end": 346, + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 29 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 348, + "end": 358, + "loc": { + "start": { + "line": 15, + "column": 31 + }, + "end": { + "line": 15, + "column": 41 + } + }, + "object": { + "type": "ThisExpression", + "start": 348, + "end": 352, + "loc": { + "start": { + "line": 15, + "column": 31 + }, + "end": { + "line": 15, + "column": 35 + } + } + }, + "property": { + "type": "Identifier", + "start": 353, + "end": 358, + "loc": { + "start": { + "line": 15, + "column": 36 + }, + "end": { + "line": 15, + "column": 41 + }, + "identifierName": "value" + }, + "name": "value" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 360, + "end": 375, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 58 + } + }, + "object": { + "type": "ThisExpression", + "start": 360, + "end": 364, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 47 + } + } + }, + "property": { + "type": "Identifier", + "start": 365, + "end": 375, + "loc": { + "start": { + "line": 15, + "column": 48 + }, + "end": { + "line": 15, + "column": 58 + }, + "identifierName": "attributes" + }, + "name": "attributes" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 377, + "end": 386, + "loc": { + "start": { + "line": 15, + "column": 60 + }, + "end": { + "line": 15, + "column": 69 + } + }, + "object": { + "type": "ThisExpression", + "start": 377, + "end": 381, + "loc": { + "start": { + "line": 15, + "column": 60 + }, + "end": { + "line": 15, + "column": 64 + } + } + }, + "property": { + "type": "Identifier", + "start": 382, + "end": 386, + "loc": { + "start": { + "line": 15, + "column": 65 + }, + "end": { + "line": 15, + "column": 69 + }, + "identifierName": "tags" + }, + "name": "tags" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + } + } + } + }, + { + "type": "FunctionDeclaration", + "start": 391, + "end": 471, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 21, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 400, + "end": 416, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 25 + }, + "identifierName": "XmlCharacterData" + }, + "name": "XmlCharacterData" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 418, + "end": 423, + "loc": { + "start": { + "line": 18, + "column": 27 + }, + "end": { + "line": 18, + "column": 32 + }, + "identifierName": "cdata" + }, + "name": "cdata" + } + ], + "body": { + "type": "BlockStatement", + "start": 425, + "end": 471, + "loc": { + "start": { + "line": 18, + "column": 34 + }, + "end": { + "line": 21, + "column": 1 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 429, + "end": 448, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 21 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 429, + "end": 448, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 21 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 429, + "end": 438, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 11 + } + }, + "object": { + "type": "ThisExpression", + "start": 429, + "end": 433, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 434, + "end": 438, + "loc": { + "start": { + "line": 19, + "column": 7 + }, + "end": { + "line": 19, + "column": 11 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "right": { + "type": "StringLiteral", + "start": 441, + "end": 448, + "loc": { + "start": { + "line": 19, + "column": 14 + }, + "end": { + "line": 19, + "column": 21 + } + }, + "extra": { + "rawValue": "cdata", + "raw": "'cdata'" + }, + "value": "cdata" + } + } + }, + { + "type": "ExpressionStatement", + "start": 451, + "end": 469, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 20 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 451, + "end": 469, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 20 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 451, + "end": 461, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 12 + } + }, + "object": { + "type": "ThisExpression", + "start": 451, + "end": 455, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 456, + "end": 461, + "loc": { + "start": { + "line": 20, + "column": 7 + }, + "end": { + "line": 20, + "column": 12 + }, + "identifierName": "cdata" + }, + "name": "cdata" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 464, + "end": 469, + "loc": { + "start": { + "line": 20, + "column": 15 + }, + "end": { + "line": 20, + "column": 20 + }, + "identifierName": "cdata" + }, + "name": "cdata" + } + } + } + ], + "directives": [] + } + }, + { + "type": "ExpressionStatement", + "start": 473, + "end": 534, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 61 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 473, + "end": 534, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 61 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 473, + "end": 487, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 473, + "end": 479, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 6 + }, + "identifierName": "module" + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 480, + "end": 487, + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 14 + }, + "identifierName": "exports" + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 490, + "end": 534, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 61 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 492, + "end": 498, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 25 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 492, + "end": 498, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 25 + }, + "identifierName": "XmlTag" + }, + "name": "XmlTag" + }, + "value": { + "type": "Identifier", + "start": 492, + "end": 498, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 25 + }, + "identifierName": "XmlTag" + }, + "name": "XmlTag" + }, + "extra": { + "shorthand": true + } + }, + { + "type": "ObjectProperty", + "start": 500, + "end": 514, + "loc": { + "start": { + "line": 23, + "column": 27 + }, + "end": { + "line": 23, + "column": 41 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 500, + "end": 514, + "loc": { + "start": { + "line": 23, + "column": 27 + }, + "end": { + "line": 23, + "column": 41 + }, + "identifierName": "XmlDeclaration" + }, + "name": "XmlDeclaration" + }, + "value": { + "type": "Identifier", + "start": 500, + "end": 514, + "loc": { + "start": { + "line": 23, + "column": 27 + }, + "end": { + "line": 23, + "column": 41 + }, + "identifierName": "XmlDeclaration" + }, + "name": "XmlDeclaration" + }, + "extra": { + "shorthand": true + } + }, + { + "type": "ObjectProperty", + "start": 516, + "end": 532, + "loc": { + "start": { + "line": 23, + "column": 43 + }, + "end": { + "line": 23, + "column": 59 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 516, + "end": 532, + "loc": { + "start": { + "line": 23, + "column": 43 + }, + "end": { + "line": 23, + "column": 59 + }, + "identifierName": "XmlCharacterData" + }, + "name": "XmlCharacterData" + }, + "value": { + "type": "Identifier", + "start": 516, + "end": 532, + "loc": { + "start": { + "line": 23, + "column": 43 + }, + "end": { + "line": 23, + "column": 59 + }, + "identifierName": "XmlCharacterData" + }, + "name": "XmlCharacterData" + }, + "extra": { + "shorthand": true + } + } + ] + } + } + } + ], + "directives": [] + }, + "comments": [], + "tokens": [ + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 0, + "end": 8, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlDeclaration", + "start": 9, + "end": 23, + "loc": { + "start": { + "line": 1, + "column": 9 + }, + "end": { + "line": 1, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 24, + "end": 25, + "loc": { + "start": { + "line": 1, + "column": 24 + }, + "end": { + "line": 1, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "version", + "start": 25, + "end": 32, + "loc": { + "start": { + "line": 1, + "column": 25 + }, + "end": { + "line": 1, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 32, + "end": 33, + "loc": { + "start": { + "line": 1, + "column": 32 + }, + "end": { + "line": 1, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "encoding", + "start": 34, + "end": 42, + "loc": { + "start": { + "line": 1, + "column": 34 + }, + "end": { + "line": 1, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 42, + "end": 43, + "loc": { + "start": { + "line": 1, + "column": 42 + }, + "end": { + "line": 1, + "column": 43 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 44, + "end": 45, + "loc": { + "start": { + "line": 1, + "column": 44 + }, + "end": { + "line": 1, + "column": 45 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 48, + "end": 52, + "loc": { + "start": { + "line": 2, + "column": 2 + }, + "end": { + "line": 2, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 52, + "end": 53, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 53, + "end": 57, + "loc": { + "start": { + "line": 2, + "column": 7 + }, + "end": { + "line": 2, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 58, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 12 + }, + "end": { + "line": 2, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "declaration", + "start": 60, + "end": 73, + "loc": { + "start": { + "line": 2, + "column": 14 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 76, + "end": 80, + "loc": { + "start": { + "line": 3, + "column": 2 + }, + "end": { + "line": 3, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 80, + "end": 81, + "loc": { + "start": { + "line": 3, + "column": 6 + }, + "end": { + "line": 3, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "version", + "start": 81, + "end": 88, + "loc": { + "start": { + "line": 3, + "column": 7 + }, + "end": { + "line": 3, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 89, + "end": 90, + "loc": { + "start": { + "line": 3, + "column": 15 + }, + "end": { + "line": 3, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "version", + "start": 91, + "end": 98, + "loc": { + "start": { + "line": 3, + "column": 17 + }, + "end": { + "line": 3, + "column": 24 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 101, + "end": 105, + "loc": { + "start": { + "line": 4, + "column": 2 + }, + "end": { + "line": 4, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 105, + "end": 106, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "encoding", + "start": 106, + "end": 114, + "loc": { + "start": { + "line": 4, + "column": 7 + }, + "end": { + "line": 4, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 115, + "end": 116, + "loc": { + "start": { + "line": 4, + "column": 16 + }, + "end": { + "line": 4, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "encoding", + "start": 117, + "end": 125, + "loc": { + "start": { + "line": 4, + "column": 18 + }, + "end": { + "line": 4, + "column": 26 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 126, + "end": 127, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 1 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 129, + "end": 137, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlTag", + "start": 138, + "end": 144, + "loc": { + "start": { + "line": 7, + "column": 9 + }, + "end": { + "line": 7, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 145, + "end": 146, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 146, + "end": 150, + "loc": { + "start": { + "line": 7, + "column": 17 + }, + "end": { + "line": 7, + "column": 21 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 150, + "end": 151, + "loc": { + "start": { + "line": 7, + "column": 21 + }, + "end": { + "line": 7, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 152, + "end": 157, + "loc": { + "start": { + "line": 7, + "column": 23 + }, + "end": { + "line": 7, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 157, + "end": 158, + "loc": { + "start": { + "line": 7, + "column": 28 + }, + "end": { + "line": 7, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attributes", + "start": 159, + "end": 169, + "loc": { + "start": { + "line": 7, + "column": 30 + }, + "end": { + "line": 7, + "column": 40 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 169, + "end": 170, + "loc": { + "start": { + "line": 7, + "column": 40 + }, + "end": { + "line": 7, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tags", + "start": 171, + "end": 175, + "loc": { + "start": { + "line": 7, + "column": 42 + }, + "end": { + "line": 7, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 175, + "end": 176, + "loc": { + "start": { + "line": 7, + "column": 46 + }, + "end": { + "line": 7, + "column": 47 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 177, + "end": 178, + "loc": { + "start": { + "line": 7, + "column": 48 + }, + "end": { + "line": 7, + "column": 49 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 181, + "end": 185, + "loc": { + "start": { + "line": 8, + "column": 2 + }, + "end": { + "line": 8, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 185, + "end": 186, + "loc": { + "start": { + "line": 8, + "column": 6 + }, + "end": { + "line": 8, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 186, + "end": 190, + "loc": { + "start": { + "line": 8, + "column": 7 + }, + "end": { + "line": 8, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 191, + "end": 192, + "loc": { + "start": { + "line": 8, + "column": 12 + }, + "end": { + "line": 8, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 193, + "end": 197, + "loc": { + "start": { + "line": 8, + "column": 14 + }, + "end": { + "line": 8, + "column": 18 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 200, + "end": 204, + "loc": { + "start": { + "line": 9, + "column": 2 + }, + "end": { + "line": 9, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 204, + "end": 205, + "loc": { + "start": { + "line": 9, + "column": 6 + }, + "end": { + "line": 9, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 205, + "end": 210, + "loc": { + "start": { + "line": 9, + "column": 7 + }, + "end": { + "line": 9, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 211, + "end": 212, + "loc": { + "start": { + "line": 9, + "column": 13 + }, + "end": { + "line": 9, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 213, + "end": 218, + "loc": { + "start": { + "line": 9, + "column": 15 + }, + "end": { + "line": 9, + "column": 20 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 221, + "end": 225, + "loc": { + "start": { + "line": 10, + "column": 2 + }, + "end": { + "line": 10, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 225, + "end": 226, + "loc": { + "start": { + "line": 10, + "column": 6 + }, + "end": { + "line": 10, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attributes", + "start": 226, + "end": 236, + "loc": { + "start": { + "line": 10, + "column": 7 + }, + "end": { + "line": 10, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 237, + "end": 238, + "loc": { + "start": { + "line": 10, + "column": 18 + }, + "end": { + "line": 10, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attributes", + "start": 239, + "end": 249, + "loc": { + "start": { + "line": 10, + "column": 20 + }, + "end": { + "line": 10, + "column": 30 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 252, + "end": 256, + "loc": { + "start": { + "line": 11, + "column": 2 + }, + "end": { + "line": 11, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 256, + "end": 257, + "loc": { + "start": { + "line": 11, + "column": 6 + }, + "end": { + "line": 11, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tags", + "start": 257, + "end": 261, + "loc": { + "start": { + "line": 11, + "column": 7 + }, + "end": { + "line": 11, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 262, + "end": 263, + "loc": { + "start": { + "line": 11, + "column": 12 + }, + "end": { + "line": 11, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tags", + "start": 264, + "end": 268, + "loc": { + "start": { + "line": 11, + "column": 14 + }, + "end": { + "line": 11, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 269, + "end": 270, + "loc": { + "start": { + "line": 12, + "column": 0 + }, + "end": { + "line": 12, + "column": 1 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlTag", + "start": 272, + "end": 278, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 278, + "end": 279, + "loc": { + "start": { + "line": 14, + "column": 6 + }, + "end": { + "line": 14, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 279, + "end": 288, + "loc": { + "start": { + "line": 14, + "column": 7 + }, + "end": { + "line": 14, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 288, + "end": 289, + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 14, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reset", + "start": 289, + "end": 294, + "loc": { + "start": { + "line": 14, + "column": 17 + }, + "end": { + "line": 14, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 295, + "end": 296, + "loc": { + "start": { + "line": 14, + "column": 23 + }, + "end": { + "line": 14, + "column": 24 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 297, + "end": 305, + "loc": { + "start": { + "line": 14, + "column": 25 + }, + "end": { + "line": 14, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reset", + "start": 306, + "end": 311, + "loc": { + "start": { + "line": 14, + "column": 34 + }, + "end": { + "line": 14, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 312, + "end": 313, + "loc": { + "start": { + "line": 14, + "column": 40 + }, + "end": { + "line": 14, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 313, + "end": 314, + "loc": { + "start": { + "line": 14, + "column": 41 + }, + "end": { + "line": 14, + "column": 42 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 315, + "end": 316, + "loc": { + "start": { + "line": 14, + "column": 43 + }, + "end": { + "line": 14, + "column": 44 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 319, + "end": 325, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 8 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 326, + "end": 329, + "loc": { + "start": { + "line": 15, + "column": 9 + }, + "end": { + "line": 15, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlTag", + "start": 330, + "end": 336, + "loc": { + "start": { + "line": 15, + "column": 13 + }, + "end": { + "line": 15, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 336, + "end": 337, + "loc": { + "start": { + "line": 15, + "column": 19 + }, + "end": { + "line": 15, + "column": 20 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 337, + "end": 341, + "loc": { + "start": { + "line": 15, + "column": 20 + }, + "end": { + "line": 15, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 341, + "end": 342, + "loc": { + "start": { + "line": 15, + "column": 24 + }, + "end": { + "line": 15, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 342, + "end": 346, + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 346, + "end": 347, + "loc": { + "start": { + "line": 15, + "column": 29 + }, + "end": { + "line": 15, + "column": 30 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 348, + "end": 352, + "loc": { + "start": { + "line": 15, + "column": 31 + }, + "end": { + "line": 15, + "column": 35 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 352, + "end": 353, + "loc": { + "start": { + "line": 15, + "column": 35 + }, + "end": { + "line": 15, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 353, + "end": 358, + "loc": { + "start": { + "line": 15, + "column": 36 + }, + "end": { + "line": 15, + "column": 41 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 358, + "end": 359, + "loc": { + "start": { + "line": 15, + "column": 41 + }, + "end": { + "line": 15, + "column": 42 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 360, + "end": 364, + "loc": { + "start": { + "line": 15, + "column": 43 + }, + "end": { + "line": 15, + "column": 47 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 364, + "end": 365, + "loc": { + "start": { + "line": 15, + "column": 47 + }, + "end": { + "line": 15, + "column": 48 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attributes", + "start": 365, + "end": 375, + "loc": { + "start": { + "line": 15, + "column": 48 + }, + "end": { + "line": 15, + "column": 58 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 375, + "end": 376, + "loc": { + "start": { + "line": 15, + "column": 58 + }, + "end": { + "line": 15, + "column": 59 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 377, + "end": 381, + "loc": { + "start": { + "line": 15, + "column": 60 + }, + "end": { + "line": 15, + "column": 64 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 381, + "end": 382, + "loc": { + "start": { + "line": 15, + "column": 64 + }, + "end": { + "line": 15, + "column": 65 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tags", + "start": 382, + "end": 386, + "loc": { + "start": { + "line": 15, + "column": 65 + }, + "end": { + "line": 15, + "column": 69 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 386, + "end": 387, + "loc": { + "start": { + "line": 15, + "column": 69 + }, + "end": { + "line": 15, + "column": 70 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 388, + "end": 389, + "loc": { + "start": { + "line": 16, + "column": 0 + }, + "end": { + "line": 16, + "column": 1 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 391, + "end": 399, + "loc": { + "start": { + "line": 18, + "column": 0 + }, + "end": { + "line": 18, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlCharacterData", + "start": 400, + "end": 416, + "loc": { + "start": { + "line": 18, + "column": 9 + }, + "end": { + "line": 18, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 417, + "end": 418, + "loc": { + "start": { + "line": 18, + "column": 26 + }, + "end": { + "line": 18, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cdata", + "start": 418, + "end": 423, + "loc": { + "start": { + "line": 18, + "column": 27 + }, + "end": { + "line": 18, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 423, + "end": 424, + "loc": { + "start": { + "line": 18, + "column": 32 + }, + "end": { + "line": 18, + "column": 33 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 425, + "end": 426, + "loc": { + "start": { + "line": 18, + "column": 34 + }, + "end": { + "line": 18, + "column": 35 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 429, + "end": 433, + "loc": { + "start": { + "line": 19, + "column": 2 + }, + "end": { + "line": 19, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 433, + "end": 434, + "loc": { + "start": { + "line": 19, + "column": 6 + }, + "end": { + "line": 19, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 434, + "end": 438, + "loc": { + "start": { + "line": 19, + "column": 7 + }, + "end": { + "line": 19, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 439, + "end": 440, + "loc": { + "start": { + "line": 19, + "column": 12 + }, + "end": { + "line": 19, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "cdata", + "start": 441, + "end": 448, + "loc": { + "start": { + "line": 19, + "column": 14 + }, + "end": { + "line": 19, + "column": 21 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 451, + "end": 455, + "loc": { + "start": { + "line": 20, + "column": 2 + }, + "end": { + "line": 20, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 455, + "end": 456, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cdata", + "start": 456, + "end": 461, + "loc": { + "start": { + "line": 20, + "column": 7 + }, + "end": { + "line": 20, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 462, + "end": 463, + "loc": { + "start": { + "line": 20, + "column": 13 + }, + "end": { + "line": 20, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cdata", + "start": 464, + "end": 469, + "loc": { + "start": { + "line": 20, + "column": 15 + }, + "end": { + "line": 20, + "column": 20 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 470, + "end": 471, + "loc": { + "start": { + "line": 21, + "column": 0 + }, + "end": { + "line": 21, + "column": 1 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "module", + "start": 473, + "end": 479, + "loc": { + "start": { + "line": 23, + "column": 0 + }, + "end": { + "line": 23, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 479, + "end": 480, + "loc": { + "start": { + "line": 23, + "column": 6 + }, + "end": { + "line": 23, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "exports", + "start": 480, + "end": 487, + "loc": { + "start": { + "line": 23, + "column": 7 + }, + "end": { + "line": 23, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 488, + "end": 489, + "loc": { + "start": { + "line": 23, + "column": 15 + }, + "end": { + "line": 23, + "column": 16 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 490, + "end": 491, + "loc": { + "start": { + "line": 23, + "column": 17 + }, + "end": { + "line": 23, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlTag", + "start": 492, + "end": 498, + "loc": { + "start": { + "line": 23, + "column": 19 + }, + "end": { + "line": 23, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 498, + "end": 499, + "loc": { + "start": { + "line": 23, + "column": 25 + }, + "end": { + "line": 23, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlDeclaration", + "start": 500, + "end": 514, + "loc": { + "start": { + "line": 23, + "column": 27 + }, + "end": { + "line": 23, + "column": 41 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 514, + "end": 515, + "loc": { + "start": { + "line": 23, + "column": 41 + }, + "end": { + "line": 23, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlCharacterData", + "start": 516, + "end": 532, + "loc": { + "start": { + "line": 23, + "column": 43 + }, + "end": { + "line": 23, + "column": 59 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 533, + "end": 534, + "loc": { + "start": { + "line": 23, + "column": 60 + }, + "end": { + "line": 23, + "column": 61 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 535, + "end": 535, + "loc": { + "start": { + "line": 24, + "column": 0 + }, + "end": { + "line": 24, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/strategies/Xml/index.js.json b/docs/ast/source/strategies/Xml/index.js.json new file mode 100644 index 0000000..da8072c --- /dev/null +++ b/docs/ast/source/strategies/Xml/index.js.json @@ -0,0 +1,44512 @@ +{ + "type": "File", + "start": 0, + "end": 6574, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 281, + "column": 0 + } + }, + "program": { + "type": "Program", + "start": 0, + "end": 6574, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 281, + "column": 0 + } + }, + "sourceType": "module", + "body": [ + { + "type": "VariableDeclaration", + "start": 0, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 6 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "id": { + "type": "Identifier", + "start": 6, + "end": 10, + "loc": { + "start": { + "line": 1, + "column": 6 + }, + "end": { + "line": 1, + "column": 10 + }, + "identifierName": "Base" + }, + "name": "Base" + }, + "init": { + "type": "CallExpression", + "start": 13, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 1, + "column": 31 + } + }, + "callee": { + "type": "Identifier", + "start": 13, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 1, + "column": 20 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 21, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 30 + } + }, + "extra": { + "rawValue": "../Base", + "raw": "'../Base'" + }, + "value": "../Base" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 32, + "end": 87, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 55 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 38, + "end": 87, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 55 + } + }, + "id": { + "type": "Identifier", + "start": 38, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 17 + }, + "identifierName": "ParserError" + }, + "name": "ParserError" + }, + "init": { + "type": "CallExpression", + "start": 52, + "end": 87, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 55 + } + }, + "callee": { + "type": "Identifier", + "start": 52, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 27 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 60, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 54 + } + }, + "extra": { + "rawValue": "../../errors/ParserError", + "raw": "'../../errors/ParserError'" + }, + "value": "../../errors/ParserError" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 88, + "end": 117, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 29 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 94, + "end": 117, + "loc": { + "start": { + "line": 3, + "column": 6 + }, + "end": { + "line": 3, + "column": 29 + } + }, + "id": { + "type": "Identifier", + "start": 94, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 6 + }, + "end": { + "line": 3, + "column": 9 + }, + "identifierName": "xml" + }, + "name": "xml" + }, + "init": { + "type": "CallExpression", + "start": 100, + "end": 117, + "loc": { + "start": { + "line": 3, + "column": 12 + }, + "end": { + "line": 3, + "column": 29 + } + }, + "callee": { + "type": "Identifier", + "start": 100, + "end": 107, + "loc": { + "start": { + "line": 3, + "column": 12 + }, + "end": { + "line": 3, + "column": 19 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 108, + "end": 116, + "loc": { + "start": { + "line": 3, + "column": 20 + }, + "end": { + "line": 3, + "column": 28 + } + }, + "extra": { + "rawValue": "xml-js", + "raw": "'xml-js'" + }, + "value": "xml-js" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 118, + "end": 179, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 61 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 124, + "end": 179, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 61 + } + }, + "id": { + "type": "Identifier", + "start": 124, + "end": 138, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 20 + }, + "identifierName": "NotImplemented" + }, + "name": "NotImplemented" + }, + "init": { + "type": "CallExpression", + "start": 141, + "end": 179, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 61 + } + }, + "callee": { + "type": "Identifier", + "start": 141, + "end": 148, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 30 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 149, + "end": 178, + "loc": { + "start": { + "line": 4, + "column": 31 + }, + "end": { + "line": 4, + "column": 60 + } + }, + "extra": { + "rawValue": "../../errors/NotImplemented", + "raw": "'../../errors/NotImplemented'" + }, + "value": "../../errors/NotImplemented" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 180, + "end": 219, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 39 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 186, + "end": 219, + "loc": { + "start": { + "line": 5, + "column": 6 + }, + "end": { + "line": 5, + "column": 39 + } + }, + "id": { + "type": "ObjectPattern", + "start": 186, + "end": 199, + "loc": { + "start": { + "line": 5, + "column": 6 + }, + "end": { + "line": 5, + "column": 19 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 188, + "end": 197, + "loc": { + "start": { + "line": 5, + "column": 8 + }, + "end": { + "line": 5, + "column": 17 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 188, + "end": 197, + "loc": { + "start": { + "line": 5, + "column": 8 + }, + "end": { + "line": 5, + "column": 17 + }, + "identifierName": "Transform" + }, + "name": "Transform" + }, + "value": { + "type": "Identifier", + "start": 188, + "end": 197, + "loc": { + "start": { + "line": 5, + "column": 8 + }, + "end": { + "line": 5, + "column": 17 + }, + "identifierName": "Transform" + }, + "name": "Transform" + }, + "extra": { + "shorthand": true + } + } + ] + }, + "init": { + "type": "CallExpression", + "start": 202, + "end": 219, + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 39 + } + }, + "callee": { + "type": "Identifier", + "start": 202, + "end": 209, + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 29 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 210, + "end": 218, + "loc": { + "start": { + "line": 5, + "column": 30 + }, + "end": { + "line": 5, + "column": 38 + } + }, + "extra": { + "rawValue": "stream", + "raw": "'stream'" + }, + "value": "stream" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 220, + "end": 267, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 47 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 226, + "end": 267, + "loc": { + "start": { + "line": 6, + "column": 6 + }, + "end": { + "line": 6, + "column": 47 + } + }, + "id": { + "type": "Identifier", + "start": 226, + "end": 238, + "loc": { + "start": { + "line": 6, + "column": 6 + }, + "end": { + "line": 6, + "column": 18 + }, + "identifierName": "StreamParser" + }, + "name": "StreamParser" + }, + "init": { + "type": "CallExpression", + "start": 241, + "end": 267, + "loc": { + "start": { + "line": 6, + "column": 21 + }, + "end": { + "line": 6, + "column": 47 + } + }, + "callee": { + "type": "Identifier", + "start": 241, + "end": 248, + "loc": { + "start": { + "line": 6, + "column": 21 + }, + "end": { + "line": 6, + "column": 28 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 249, + "end": 266, + "loc": { + "start": { + "line": 6, + "column": 29 + }, + "end": { + "line": 6, + "column": 46 + } + }, + "extra": { + "rawValue": "node-xml-stream", + "raw": "'node-xml-stream'" + }, + "value": "node-xml-stream" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 268, + "end": 340, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 72 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 274, + "end": 340, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 72 + } + }, + "id": { + "type": "ObjectPattern", + "start": 274, + "end": 318, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 50 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 276, + "end": 282, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 14 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 276, + "end": 282, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 14 + }, + "identifierName": "XmlTag" + }, + "name": "XmlTag" + }, + "value": { + "type": "Identifier", + "start": 276, + "end": 282, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 14 + }, + "identifierName": "XmlTag" + }, + "name": "XmlTag" + }, + "extra": { + "shorthand": true + } + }, + { + "type": "ObjectProperty", + "start": 284, + "end": 300, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 32 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 284, + "end": 300, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 32 + }, + "identifierName": "XmlCharacterData" + }, + "name": "XmlCharacterData" + }, + "value": { + "type": "Identifier", + "start": 284, + "end": 300, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 32 + }, + "identifierName": "XmlCharacterData" + }, + "name": "XmlCharacterData" + }, + "extra": { + "shorthand": true + } + }, + { + "type": "ObjectProperty", + "start": 302, + "end": 316, + "loc": { + "start": { + "line": 7, + "column": 34 + }, + "end": { + "line": 7, + "column": 48 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 302, + "end": 316, + "loc": { + "start": { + "line": 7, + "column": 34 + }, + "end": { + "line": 7, + "column": 48 + }, + "identifierName": "XmlDeclaration" + }, + "name": "XmlDeclaration" + }, + "value": { + "type": "Identifier", + "start": 302, + "end": 316, + "loc": { + "start": { + "line": 7, + "column": 34 + }, + "end": { + "line": 7, + "column": 48 + }, + "identifierName": "XmlDeclaration" + }, + "name": "XmlDeclaration" + }, + "extra": { + "shorthand": true + } + } + ] + }, + "init": { + "type": "CallExpression", + "start": 321, + "end": 340, + "loc": { + "start": { + "line": 7, + "column": 53 + }, + "end": { + "line": 7, + "column": 72 + } + }, + "callee": { + "type": "Identifier", + "start": 321, + "end": 328, + "loc": { + "start": { + "line": 7, + "column": 53 + }, + "end": { + "line": 7, + "column": 60 + }, + "identifierName": "require" + }, + "name": "require" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 329, + "end": 339, + "loc": { + "start": { + "line": 7, + "column": 61 + }, + "end": { + "line": 7, + "column": 71 + } + }, + "extra": { + "rawValue": "./XmlTag", + "raw": "'./XmlTag'" + }, + "value": "./XmlTag" + } + ], + "trailingComments": null + }, + "trailingComments": null + } + ], + "kind": "const", + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml - Support for XML filetype\n *\n * @constructor\n ", + "start": 342, + "end": 402, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + }, + { + "type": "FunctionDeclaration", + "start": 403, + "end": 893, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 37, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 412, + "end": 415, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 12 + }, + "identifierName": "Xml" + }, + "name": "Xml", + "leadingComments": null + }, + "generator": false, + "expression": false, + "async": false, + "params": [], + "body": { + "type": "BlockStatement", + "start": 419, + "end": 893, + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 37, + "column": 1 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 423, + "end": 556, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 423, + "end": 556, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 423, + "end": 443, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 22 + } + }, + "object": { + "type": "ThisExpression", + "start": 423, + "end": 427, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 428, + "end": 443, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 22 + }, + "identifierName": "XML_VERSION_TAG" + }, + "name": "XML_VERSION_TAG" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 446, + "end": 556, + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 22, + "column": 3 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 452, + "end": 552, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 21, + "column": 5 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 452, + "end": 464, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 16 + }, + "identifierName": "_declaration" + }, + "name": "_declaration" + }, + "value": { + "type": "ObjectExpression", + "start": 466, + "end": 552, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 21, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 474, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 20, + "column": 7 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 474, + "end": 485, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 17 + }, + "identifierName": "_attributes" + }, + "name": "_attributes" + }, + "value": { + "type": "ObjectExpression", + "start": 487, + "end": 546, + "loc": { + "start": { + "line": 17, + "column": 19 + }, + "end": { + "line": 20, + "column": 7 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 497, + "end": 511, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 497, + "end": 504, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 15 + }, + "identifierName": "version" + }, + "name": "version" + }, + "value": { + "type": "StringLiteral", + "start": 506, + "end": 511, + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 22 + } + }, + "extra": { + "rawValue": "1.0", + "raw": "'1.0'" + }, + "value": "1.0" + } + }, + { + "type": "ObjectProperty", + "start": 521, + "end": 538, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 25 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 521, + "end": 529, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 16 + }, + "identifierName": "encoding" + }, + "name": "encoding" + }, + "value": { + "type": "StringLiteral", + "start": 531, + "end": 538, + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 25 + } + }, + "extra": { + "rawValue": "utf-8", + "raw": "'utf-8'" + }, + "value": "utf-8" + } + } + ] + } + } + ] + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 560, + "end": 891, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 36, + "column": 3 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 560, + "end": 891, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 36, + "column": 3 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 560, + "end": 576, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 18 + } + }, + "object": { + "type": "ThisExpression", + "start": 560, + "end": 564, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 6 + } + } + }, + "property": { + "type": "Identifier", + "start": 565, + "end": 576, + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 24, + "column": 18 + }, + "identifierName": "XML_JS_KEYS" + }, + "name": "XML_JS_KEYS" + }, + "computed": false + }, + "right": { + "type": "ObjectExpression", + "start": 579, + "end": 891, + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 36, + "column": 3 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 585, + "end": 615, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 585, + "end": 599, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 18 + }, + "identifierName": "declarationKey" + }, + "name": "declarationKey" + }, + "value": { + "type": "StringLiteral", + "start": 601, + "end": 615, + "loc": { + "start": { + "line": 25, + "column": 20 + }, + "end": { + "line": 25, + "column": 34 + } + }, + "extra": { + "rawValue": "_declaration", + "raw": "'_declaration'" + }, + "value": "_declaration" + } + }, + { + "type": "ObjectProperty", + "start": 621, + "end": 651, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 34 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 621, + "end": 635, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 18 + }, + "identifierName": "instructionKey" + }, + "name": "instructionKey" + }, + "value": { + "type": "StringLiteral", + "start": 637, + "end": 651, + "loc": { + "start": { + "line": 26, + "column": 20 + }, + "end": { + "line": 26, + "column": 34 + } + }, + "extra": { + "rawValue": "_instruction", + "raw": "'_instruction'" + }, + "value": "_instruction" + } + }, + { + "type": "ObjectProperty", + "start": 657, + "end": 685, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 657, + "end": 670, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 17 + }, + "identifierName": "attributesKey" + }, + "name": "attributesKey" + }, + "value": { + "type": "StringLiteral", + "start": 672, + "end": 685, + "loc": { + "start": { + "line": 27, + "column": 19 + }, + "end": { + "line": 27, + "column": 32 + } + }, + "extra": { + "rawValue": "_attributes", + "raw": "'_attributes'" + }, + "value": "_attributes" + } + }, + { + "type": "ObjectProperty", + "start": 691, + "end": 707, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 691, + "end": 698, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 11 + }, + "identifierName": "textKey" + }, + "name": "textKey" + }, + "value": { + "type": "StringLiteral", + "start": 700, + "end": 707, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 20 + } + }, + "extra": { + "rawValue": "_text", + "raw": "'_text'" + }, + "value": "_text" + } + }, + { + "type": "ObjectProperty", + "start": 713, + "end": 731, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 713, + "end": 721, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 12 + }, + "identifierName": "cdataKey" + }, + "name": "cdataKey" + }, + "value": { + "type": "StringLiteral", + "start": 723, + "end": 731, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 22 + } + }, + "extra": { + "rawValue": "_cdata", + "raw": "'_cdata'" + }, + "value": "_cdata" + } + }, + { + "type": "ObjectProperty", + "start": 737, + "end": 759, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 737, + "end": 747, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 14 + }, + "identifierName": "doctypeKey" + }, + "name": "doctypeKey" + }, + "value": { + "type": "StringLiteral", + "start": 749, + "end": 759, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 26 + } + }, + "extra": { + "rawValue": "_doctype", + "raw": "'_doctype'" + }, + "value": "_doctype" + } + }, + { + "type": "ObjectProperty", + "start": 765, + "end": 787, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 26 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 765, + "end": 775, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 14 + }, + "identifierName": "commentKey" + }, + "name": "commentKey" + }, + "value": { + "type": "StringLiteral", + "start": 777, + "end": 787, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 26 + } + }, + "extra": { + "rawValue": "_comment", + "raw": "'_comment'" + }, + "value": "_comment" + } + }, + { + "type": "ObjectProperty", + "start": 793, + "end": 813, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 793, + "end": 802, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 13 + }, + "identifierName": "parentKey" + }, + "name": "parentKey" + }, + "value": { + "type": "StringLiteral", + "start": 804, + "end": 813, + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 24 + } + }, + "extra": { + "rawValue": "_parent", + "raw": "'_parent'" + }, + "value": "_parent" + } + }, + { + "type": "ObjectProperty", + "start": 819, + "end": 835, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 819, + "end": 826, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 11 + }, + "identifierName": "typeKey" + }, + "name": "typeKey" + }, + "value": { + "type": "StringLiteral", + "start": 828, + "end": 835, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 20 + } + }, + "extra": { + "rawValue": "_type", + "raw": "'_type'" + }, + "value": "_type" + } + }, + { + "type": "ObjectProperty", + "start": 841, + "end": 857, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 841, + "end": 848, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 11 + }, + "identifierName": "nameKey" + }, + "name": "nameKey" + }, + "value": { + "type": "StringLiteral", + "start": 850, + "end": 857, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 20 + } + }, + "extra": { + "rawValue": "_name", + "raw": "'_name'" + }, + "value": "_name" + } + }, + { + "type": "ObjectProperty", + "start": 863, + "end": 887, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 863, + "end": 874, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 15 + }, + "identifierName": "elementsKey" + }, + "name": "elementsKey" + }, + "value": { + "type": "StringLiteral", + "start": 876, + "end": 887, + "loc": { + "start": { + "line": 35, + "column": 17 + }, + "end": { + "line": 35, + "column": 28 + } + }, + "extra": { + "rawValue": "_elements", + "raw": "'_elements'" + }, + "value": "_elements" + } + } + ] + } + } + } + ], + "directives": [] + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml - Support for XML filetype\n *\n * @constructor\n ", + "start": 342, + "end": 402, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 895, + "end": 940, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 39, + "column": 45 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 895, + "end": 940, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 39, + "column": 45 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 895, + "end": 908, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 39, + "column": 13 + } + }, + "object": { + "type": "Identifier", + "start": 895, + "end": 898, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 39, + "column": 3 + }, + "identifierName": "Xml" + }, + "name": "Xml" + }, + "property": { + "type": "Identifier", + "start": 899, + "end": 908, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 13 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false + }, + "right": { + "type": "CallExpression", + "start": 911, + "end": 940, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 45 + } + }, + "callee": { + "type": "MemberExpression", + "start": 911, + "end": 924, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 911, + "end": 917, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 22 + }, + "identifierName": "Object" + }, + "name": "Object" + }, + "property": { + "type": "Identifier", + "start": 918, + "end": 924, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 29 + }, + "identifierName": "create" + }, + "name": "create" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 925, + "end": 939, + "loc": { + "start": { + "line": 39, + "column": 30 + }, + "end": { + "line": 39, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 925, + "end": 929, + "loc": { + "start": { + "line": 39, + "column": 30 + }, + "end": { + "line": 39, + "column": 34 + }, + "identifierName": "Base" + }, + "name": "Base" + }, + "property": { + "type": "Identifier", + "start": 930, + "end": 939, + "loc": { + "start": { + "line": 39, + "column": 35 + }, + "end": { + "line": 39, + "column": 44 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false + } + ], + "trailingComments": null + }, + "trailingComments": null + }, + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.setXmlDeclaration - sets XML declaration tag on first position of array or object\n *\n * @param {(object|array)} data - input data\n * @returns {(object|array)}\n ", + "start": 942, + "end": 1125, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 46, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1126, + "end": 1347, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 55, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1126, + "end": 1347, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 55, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1126, + "end": 1157, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 47, + "column": 31 + } + }, + "object": { + "type": "MemberExpression", + "start": 1126, + "end": 1139, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 47, + "column": 13 + } + }, + "object": { + "type": "Identifier", + "start": 1126, + "end": 1129, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 47, + "column": 3 + }, + "identifierName": "Xml" + }, + "name": "Xml", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1130, + "end": 1139, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 47, + "column": 13 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1140, + "end": 1157, + "loc": { + "start": { + "line": 47, + "column": 14 + }, + "end": { + "line": 47, + "column": 31 + }, + "identifierName": "setXmlDeclaration" + }, + "name": "setXmlDeclaration" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "FunctionExpression", + "start": 1160, + "end": 1347, + "loc": { + "start": { + "line": 47, + "column": 34 + }, + "end": { + "line": 55, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1140, + "end": 1157, + "loc": { + "start": { + "line": 47, + "column": 14 + }, + "end": { + "line": 47, + "column": 31 + }, + "identifierName": "setXmlDeclaration" + }, + "name": "setXmlDeclaration" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1188, + "end": 1192, + "loc": { + "start": { + "line": 47, + "column": 62 + }, + "end": { + "line": 47, + "column": 66 + }, + "identifierName": "data" + }, + "name": "data" + } + ], + "body": { + "type": "BlockStatement", + "start": 1194, + "end": 1347, + "loc": { + "start": { + "line": 47, + "column": 68 + }, + "end": { + "line": 55, + "column": 1 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 1198, + "end": 1330, + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 52, + "column": 3 + } + }, + "test": { + "type": "CallExpression", + "start": 1202, + "end": 1221, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 25 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1202, + "end": 1215, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 1202, + "end": 1207, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 11 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 1208, + "end": 1215, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 19 + }, + "identifierName": "isArray" + }, + "name": "isArray" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1216, + "end": 1220, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 24 + }, + "identifierName": "data" + }, + "name": "data" + } + ] + }, + "consequent": { + "type": "BlockStatement", + "start": 1223, + "end": 1271, + "loc": { + "start": { + "line": 48, + "column": 27 + }, + "end": { + "line": 50, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1229, + "end": 1267, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 42 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1229, + "end": 1267, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 42 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1229, + "end": 1233, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 8 + }, + "identifierName": "data" + }, + "name": "data" + }, + "right": { + "type": "ArrayExpression", + "start": 1236, + "end": 1267, + "loc": { + "start": { + "line": 49, + "column": 11 + }, + "end": { + "line": 49, + "column": 42 + } + }, + "elements": [ + { + "type": "MemberExpression", + "start": 1237, + "end": 1257, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 32 + } + }, + "object": { + "type": "ThisExpression", + "start": 1237, + "end": 1241, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 16 + } + } + }, + "property": { + "type": "Identifier", + "start": 1242, + "end": 1257, + "loc": { + "start": { + "line": 49, + "column": 17 + }, + "end": { + "line": 49, + "column": 32 + }, + "identifierName": "XML_VERSION_TAG" + }, + "name": "XML_VERSION_TAG" + }, + "computed": false + }, + { + "type": "SpreadElement", + "start": 1259, + "end": 1266, + "loc": { + "start": { + "line": 49, + "column": 34 + }, + "end": { + "line": 49, + "column": 41 + } + }, + "argument": { + "type": "Identifier", + "start": 1262, + "end": 1266, + "loc": { + "start": { + "line": 49, + "column": 37 + }, + "end": { + "line": 49, + "column": 41 + }, + "identifierName": "data" + }, + "name": "data" + } + } + ] + } + } + } + ], + "directives": [] + }, + "alternate": { + "type": "BlockStatement", + "start": 1277, + "end": 1330, + "loc": { + "start": { + "line": 50, + "column": 9 + }, + "end": { + "line": 52, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1283, + "end": 1326, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1283, + "end": 1326, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 47 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1283, + "end": 1287, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 8 + }, + "identifierName": "data" + }, + "name": "data" + }, + "right": { + "type": "ObjectExpression", + "start": 1290, + "end": 1326, + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 47 + } + }, + "properties": [ + { + "type": "SpreadProperty", + "start": 1292, + "end": 1315, + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 51, + "column": 36 + } + }, + "argument": { + "type": "MemberExpression", + "start": 1295, + "end": 1315, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 36 + } + }, + "object": { + "type": "ThisExpression", + "start": 1295, + "end": 1299, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 20 + } + } + }, + "property": { + "type": "Identifier", + "start": 1300, + "end": 1315, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 36 + }, + "identifierName": "XML_VERSION_TAG" + }, + "name": "XML_VERSION_TAG" + }, + "computed": false + } + }, + { + "type": "SpreadProperty", + "start": 1317, + "end": 1324, + "loc": { + "start": { + "line": 51, + "column": 38 + }, + "end": { + "line": 51, + "column": 45 + } + }, + "argument": { + "type": "Identifier", + "start": 1320, + "end": 1324, + "loc": { + "start": { + "line": 51, + "column": 41 + }, + "end": { + "line": 51, + "column": 45 + }, + "identifierName": "data" + }, + "name": "data" + } + } + ] + } + } + } + ], + "directives": [] + } + }, + { + "type": "ReturnStatement", + "start": 1334, + "end": 1345, + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 54, + "column": 13 + } + }, + "argument": { + "type": "Identifier", + "start": 1341, + "end": 1345, + "loc": { + "start": { + "line": 54, + "column": 9 + }, + "end": { + "line": 54, + "column": 13 + }, + "identifierName": "data" + }, + "name": "data" + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.setXmlDeclaration - sets XML declaration tag on first position of array or object\n *\n * @param {(object|array)} data - input data\n * @returns {(object|array)}\n ", + "start": 942, + "end": 1125, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 46, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.stringify - receives * valid JS data and returns it as XML\n *\n * @param {(object|array)} data\n * @param {Object} options - options for turning JS data into XML\n * @param {boolean} options.ignoreDeclaration - don't output XML version tag, default is true\n * @returns {string}\n ", + "start": 1349, + "end": 1648, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 1649, + "end": 1939, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 78, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1649, + "end": 1939, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 78, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1649, + "end": 1672, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 65, + "column": 23 + } + }, + "object": { + "type": "MemberExpression", + "start": 1649, + "end": 1662, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 65, + "column": 13 + } + }, + "object": { + "type": "Identifier", + "start": 1649, + "end": 1652, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 65, + "column": 3 + }, + "identifierName": "Xml" + }, + "name": "Xml", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1653, + "end": 1662, + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 13 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 1663, + "end": 1672, + "loc": { + "start": { + "line": 65, + "column": 14 + }, + "end": { + "line": 65, + "column": 23 + }, + "identifierName": "stringify" + }, + "name": "stringify" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "FunctionExpression", + "start": 1675, + "end": 1939, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 78, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 1663, + "end": 1672, + "loc": { + "start": { + "line": 65, + "column": 14 + }, + "end": { + "line": 65, + "column": 23 + }, + "identifierName": "stringify" + }, + "name": "stringify" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 1695, + "end": 1699, + "loc": { + "start": { + "line": 65, + "column": 46 + }, + "end": { + "line": 65, + "column": 50 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "AssignmentPattern", + "start": 1701, + "end": 1713, + "loc": { + "start": { + "line": 65, + "column": 52 + }, + "end": { + "line": 65, + "column": 64 + } + }, + "left": { + "type": "Identifier", + "start": 1701, + "end": 1708, + "loc": { + "start": { + "line": 65, + "column": 52 + }, + "end": { + "line": 65, + "column": 59 + }, + "identifierName": "options" + }, + "name": "options" + }, + "right": { + "type": "ObjectExpression", + "start": 1711, + "end": 1713, + "loc": { + "start": { + "line": 65, + "column": 62 + }, + "end": { + "line": 65, + "column": 64 + } + }, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 1715, + "end": 1939, + "loc": { + "start": { + "line": 65, + "column": 66 + }, + "end": { + "line": 78, + "column": 1 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1719, + "end": 1787, + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 69, + "column": 3 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1725, + "end": 1787, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 69, + "column": 3 + } + }, + "id": { + "type": "Identifier", + "start": 1725, + "end": 1731, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 14 + }, + "identifierName": "config" + }, + "name": "config" + }, + "init": { + "type": "ObjectExpression", + "start": 1734, + "end": 1787, + "loc": { + "start": { + "line": 66, + "column": 17 + }, + "end": { + "line": 69, + "column": 3 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1740, + "end": 1753, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1740, + "end": 1747, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 11 + }, + "identifierName": "compact" + }, + "name": "compact" + }, + "value": { + "type": "BooleanLiteral", + "start": 1749, + "end": 1753, + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 67, + "column": 17 + } + }, + "value": true + } + }, + { + "type": "ObjectProperty", + "start": 1759, + "end": 1783, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 28 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1759, + "end": 1776, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 21 + }, + "identifierName": "ignoreDeclaration" + }, + "name": "ignoreDeclaration" + }, + "value": { + "type": "BooleanLiteral", + "start": 1778, + "end": 1783, + "loc": { + "start": { + "line": 68, + "column": 23 + }, + "end": { + "line": 68, + "column": 28 + } + }, + "value": false + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 1791, + "end": 1826, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1791, + "end": 1826, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 1791, + "end": 1795, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 6 + }, + "identifierName": "data" + }, + "name": "data" + }, + "right": { + "type": "CallExpression", + "start": 1798, + "end": 1826, + "loc": { + "start": { + "line": 71, + "column": 9 + }, + "end": { + "line": 71, + "column": 37 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1798, + "end": 1820, + "loc": { + "start": { + "line": 71, + "column": 9 + }, + "end": { + "line": 71, + "column": 31 + } + }, + "object": { + "type": "ThisExpression", + "start": 1798, + "end": 1802, + "loc": { + "start": { + "line": 71, + "column": 9 + }, + "end": { + "line": 71, + "column": 13 + } + } + }, + "property": { + "type": "Identifier", + "start": 1803, + "end": 1820, + "loc": { + "start": { + "line": 71, + "column": 14 + }, + "end": { + "line": 71, + "column": 31 + }, + "identifierName": "setXmlDeclaration" + }, + "name": "setXmlDeclaration" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1821, + "end": 1825, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 36 + }, + "identifierName": "data" + }, + "name": "data" + } + ] + } + } + }, + { + "type": "IfStatement", + "start": 1830, + "end": 1902, + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 75, + "column": 3 + } + }, + "test": { + "type": "MemberExpression", + "start": 1834, + "end": 1859, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 1834, + "end": 1841, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 13 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 1842, + "end": 1859, + "loc": { + "start": { + "line": 73, + "column": 14 + }, + "end": { + "line": 73, + "column": 31 + }, + "identifierName": "ignoreDeclaration" + }, + "name": "ignoreDeclaration" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 1861, + "end": 1902, + "loc": { + "start": { + "line": 73, + "column": 33 + }, + "end": { + "line": 75, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 1867, + "end": 1898, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 35 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 1867, + "end": 1898, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 35 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 1867, + "end": 1891, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 28 + } + }, + "object": { + "type": "Identifier", + "start": 1867, + "end": 1873, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 10 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 1874, + "end": 1891, + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 28 + }, + "identifierName": "ignoreDeclaration" + }, + "name": "ignoreDeclaration" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 1894, + "end": 1898, + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 35 + } + }, + "value": true + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 1906, + "end": 1937, + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 77, + "column": 33 + } + }, + "argument": { + "type": "CallExpression", + "start": 1913, + "end": 1937, + "loc": { + "start": { + "line": 77, + "column": 9 + }, + "end": { + "line": 77, + "column": 33 + } + }, + "callee": { + "type": "MemberExpression", + "start": 1913, + "end": 1923, + "loc": { + "start": { + "line": 77, + "column": 9 + }, + "end": { + "line": 77, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 1913, + "end": 1916, + "loc": { + "start": { + "line": 77, + "column": 9 + }, + "end": { + "line": 77, + "column": 12 + }, + "identifierName": "xml" + }, + "name": "xml" + }, + "property": { + "type": "Identifier", + "start": 1917, + "end": 1923, + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 19 + }, + "identifierName": "js2xml" + }, + "name": "js2xml" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 1924, + "end": 1928, + "loc": { + "start": { + "line": 77, + "column": 20 + }, + "end": { + "line": 77, + "column": 24 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "Identifier", + "start": 1930, + "end": 1936, + "loc": { + "start": { + "line": 77, + "column": 26 + }, + "end": { + "line": 77, + "column": 32 + }, + "identifierName": "config" + }, + "name": "config" + } + ] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.stringify - receives * valid JS data and returns it as XML\n *\n * @param {(object|array)} data\n * @param {Object} options - options for turning JS data into XML\n * @param {boolean} options.ignoreDeclaration - don't output XML version tag, default is true\n * @returns {string}\n ", + "start": 1349, + "end": 1648, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.parse - receives an XML string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @param {object} options.showDeclaration - force parsing XML declaration tag\n * @param {boolean} options.verbose - makes xml2js return non compact mode, defaults to false\n * @param {boolean} options.experimentalXmlTag - use experimental XmlTag prototype, default is false\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1941, + "end": 2421, + "loc": { + "start": { + "line": 80, + "column": 0 + }, + "end": { + "line": 89, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 2422, + "end": 2980, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 117, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2422, + "end": 2980, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 117, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2422, + "end": 2441, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 19 + } + }, + "object": { + "type": "MemberExpression", + "start": 2422, + "end": 2435, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 13 + } + }, + "object": { + "type": "Identifier", + "start": 2422, + "end": 2425, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 3 + }, + "identifierName": "Xml" + }, + "name": "Xml", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 2426, + "end": 2435, + "loc": { + "start": { + "line": 90, + "column": 4 + }, + "end": { + "line": 90, + "column": 13 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 2436, + "end": 2441, + "loc": { + "start": { + "line": 90, + "column": 14 + }, + "end": { + "line": 90, + "column": 19 + }, + "identifierName": "parse" + }, + "name": "parse" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "FunctionExpression", + "start": 2444, + "end": 2980, + "loc": { + "start": { + "line": 90, + "column": 22 + }, + "end": { + "line": 117, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 2436, + "end": 2441, + "loc": { + "start": { + "line": 90, + "column": 14 + }, + "end": { + "line": 90, + "column": 19 + }, + "identifierName": "parse" + }, + "name": "parse" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 2460, + "end": 2464, + "loc": { + "start": { + "line": 90, + "column": 38 + }, + "end": { + "line": 90, + "column": 42 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "AssignmentPattern", + "start": 2466, + "end": 2478, + "loc": { + "start": { + "line": 90, + "column": 44 + }, + "end": { + "line": 90, + "column": 56 + } + }, + "left": { + "type": "Identifier", + "start": 2466, + "end": 2473, + "loc": { + "start": { + "line": 90, + "column": 44 + }, + "end": { + "line": 90, + "column": 51 + }, + "identifierName": "options" + }, + "name": "options" + }, + "right": { + "type": "ObjectExpression", + "start": 2476, + "end": 2478, + "loc": { + "start": { + "line": 90, + "column": 54 + }, + "end": { + "line": 90, + "column": 56 + } + }, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 2480, + "end": 2980, + "loc": { + "start": { + "line": 90, + "column": 58 + }, + "end": { + "line": 117, + "column": 1 + } + }, + "body": [ + { + "type": "TryStatement", + "start": 2484, + "end": 2978, + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 116, + "column": 3 + } + }, + "block": { + "type": "BlockStatement", + "start": 2488, + "end": 2917, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 114, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 2494, + "end": 2625, + "loc": { + "start": { + "line": 92, + "column": 4 + }, + "end": { + "line": 97, + "column": 5 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2500, + "end": 2625, + "loc": { + "start": { + "line": 92, + "column": 10 + }, + "end": { + "line": 97, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 2500, + "end": 2506, + "loc": { + "start": { + "line": 92, + "column": 10 + }, + "end": { + "line": 92, + "column": 16 + }, + "identifierName": "config" + }, + "name": "config" + }, + "init": { + "type": "ObjectExpression", + "start": 2509, + "end": 2625, + "loc": { + "start": { + "line": 92, + "column": 19 + }, + "end": { + "line": 97, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 2517, + "end": 2530, + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 19 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2517, + "end": 2524, + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 13 + }, + "identifierName": "compact" + }, + "name": "compact" + }, + "value": { + "type": "BooleanLiteral", + "start": 2526, + "end": 2530, + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 93, + "column": 19 + } + }, + "value": true + } + }, + { + "type": "ObjectProperty", + "start": 2538, + "end": 2561, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 29 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2538, + "end": 2555, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 23 + }, + "identifierName": "ignoreDeclaration" + }, + "name": "ignoreDeclaration" + }, + "value": { + "type": "BooleanLiteral", + "start": 2557, + "end": 2561, + "loc": { + "start": { + "line": 94, + "column": 25 + }, + "end": { + "line": 94, + "column": 29 + } + }, + "value": true + } + }, + { + "type": "ObjectProperty", + "start": 2569, + "end": 2585, + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 22 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2569, + "end": 2579, + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 16 + }, + "identifierName": "nativeType" + }, + "name": "nativeType" + }, + "value": { + "type": "BooleanLiteral", + "start": 2581, + "end": 2585, + "loc": { + "start": { + "line": 95, + "column": 18 + }, + "end": { + "line": 95, + "column": 22 + } + }, + "value": true + } + }, + { + "type": "ObjectProperty", + "start": 2593, + "end": 2619, + "loc": { + "start": { + "line": 96, + "column": 6 + }, + "end": { + "line": 96, + "column": 32 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 2593, + "end": 2613, + "loc": { + "start": { + "line": 96, + "column": 6 + }, + "end": { + "line": 96, + "column": 26 + }, + "identifierName": "nativeTypeAttributes" + }, + "name": "nativeTypeAttributes" + }, + "value": { + "type": "BooleanLiteral", + "start": 2615, + "end": 2619, + "loc": { + "start": { + "line": 96, + "column": 28 + }, + "end": { + "line": 96, + "column": 32 + } + }, + "value": true + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 2631, + "end": 2706, + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 101, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 2635, + "end": 2658, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 2635, + "end": 2642, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 15 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 2643, + "end": 2658, + "loc": { + "start": { + "line": 99, + "column": 16 + }, + "end": { + "line": 99, + "column": 31 + }, + "identifierName": "showDeclaration" + }, + "name": "showDeclaration" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 2660, + "end": 2706, + "loc": { + "start": { + "line": 99, + "column": 33 + }, + "end": { + "line": 101, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2668, + "end": 2700, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 38 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2668, + "end": 2700, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 38 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2668, + "end": 2692, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 2668, + "end": 2674, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 12 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 2675, + "end": 2692, + "loc": { + "start": { + "line": 100, + "column": 13 + }, + "end": { + "line": 100, + "column": 30 + }, + "identifierName": "ignoreDeclaration" + }, + "name": "ignoreDeclaration" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 2695, + "end": 2700, + "loc": { + "start": { + "line": 100, + "column": 33 + }, + "end": { + "line": 100, + "column": 38 + } + }, + "value": false + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 2712, + "end": 2769, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 105, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 2716, + "end": 2731, + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 2716, + "end": 2723, + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 15 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 2724, + "end": 2731, + "loc": { + "start": { + "line": 103, + "column": 16 + }, + "end": { + "line": 103, + "column": 23 + }, + "identifierName": "verbose" + }, + "name": "verbose" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 2733, + "end": 2769, + "loc": { + "start": { + "line": 103, + "column": 25 + }, + "end": { + "line": 105, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 2741, + "end": 2763, + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 28 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 2741, + "end": 2763, + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 2741, + "end": 2755, + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 2741, + "end": 2747, + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 12 + }, + "identifierName": "config" + }, + "name": "config" + }, + "property": { + "type": "Identifier", + "start": 2748, + "end": 2755, + "loc": { + "start": { + "line": 104, + "column": 13 + }, + "end": { + "line": 104, + "column": 20 + }, + "identifierName": "compact" + }, + "name": "compact" + }, + "computed": false + }, + "right": { + "type": "BooleanLiteral", + "start": 2758, + "end": 2763, + "loc": { + "start": { + "line": 104, + "column": 23 + }, + "end": { + "line": 104, + "column": 28 + } + }, + "value": false + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 2775, + "end": 2814, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 107, + "column": 43 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 2781, + "end": 2814, + "loc": { + "start": { + "line": 107, + "column": 10 + }, + "end": { + "line": 107, + "column": 43 + } + }, + "id": { + "type": "Identifier", + "start": 2781, + "end": 2787, + "loc": { + "start": { + "line": 107, + "column": 10 + }, + "end": { + "line": 107, + "column": 16 + }, + "identifierName": "result" + }, + "name": "result" + }, + "init": { + "type": "CallExpression", + "start": 2790, + "end": 2814, + "loc": { + "start": { + "line": 107, + "column": 19 + }, + "end": { + "line": 107, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2790, + "end": 2800, + "loc": { + "start": { + "line": 107, + "column": 19 + }, + "end": { + "line": 107, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 2790, + "end": 2793, + "loc": { + "start": { + "line": 107, + "column": 19 + }, + "end": { + "line": 107, + "column": 22 + }, + "identifierName": "xml" + }, + "name": "xml" + }, + "property": { + "type": "Identifier", + "start": 2794, + "end": 2800, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 29 + }, + "identifierName": "xml2js" + }, + "name": "xml2js" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2801, + "end": 2805, + "loc": { + "start": { + "line": 107, + "column": 30 + }, + "end": { + "line": 107, + "column": 34 + }, + "identifierName": "data" + }, + "name": "data" + }, + { + "type": "Identifier", + "start": 2807, + "end": 2813, + "loc": { + "start": { + "line": 107, + "column": 36 + }, + "end": { + "line": 107, + "column": 42 + }, + "identifierName": "config" + }, + "name": "config" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 2820, + "end": 2894, + "loc": { + "start": { + "line": 109, + "column": 4 + }, + "end": { + "line": 111, + "column": 5 + } + }, + "test": { + "type": "MemberExpression", + "start": 2824, + "end": 2850, + "loc": { + "start": { + "line": 109, + "column": 8 + }, + "end": { + "line": 109, + "column": 34 + } + }, + "object": { + "type": "Identifier", + "start": 2824, + "end": 2831, + "loc": { + "start": { + "line": 109, + "column": 8 + }, + "end": { + "line": 109, + "column": 15 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 2832, + "end": 2850, + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 34 + }, + "identifierName": "experimentalXmlTag" + }, + "name": "experimentalXmlTag" + }, + "computed": false + }, + "consequent": { + "type": "BlockStatement", + "start": 2852, + "end": 2894, + "loc": { + "start": { + "line": 109, + "column": 36 + }, + "end": { + "line": 111, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 2860, + "end": 2888, + "loc": { + "start": { + "line": 110, + "column": 6 + }, + "end": { + "line": 110, + "column": 34 + } + }, + "argument": { + "type": "CallExpression", + "start": 2867, + "end": 2888, + "loc": { + "start": { + "line": 110, + "column": 13 + }, + "end": { + "line": 110, + "column": 34 + } + }, + "callee": { + "type": "MemberExpression", + "start": 2867, + "end": 2880, + "loc": { + "start": { + "line": 110, + "column": 13 + }, + "end": { + "line": 110, + "column": 26 + } + }, + "object": { + "type": "ThisExpression", + "start": 2867, + "end": 2871, + "loc": { + "start": { + "line": 110, + "column": 13 + }, + "end": { + "line": 110, + "column": 17 + } + } + }, + "property": { + "type": "Identifier", + "start": 2872, + "end": 2880, + "loc": { + "start": { + "line": 110, + "column": 18 + }, + "end": { + "line": 110, + "column": 26 + }, + "identifierName": "toXmlTag" + }, + "name": "toXmlTag" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 2881, + "end": 2887, + "loc": { + "start": { + "line": 110, + "column": 27 + }, + "end": { + "line": 110, + "column": 33 + }, + "identifierName": "result" + }, + "name": "result" + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 2900, + "end": 2913, + "loc": { + "start": { + "line": 113, + "column": 4 + }, + "end": { + "line": 113, + "column": 17 + } + }, + "argument": { + "type": "Identifier", + "start": 2907, + "end": 2913, + "loc": { + "start": { + "line": 113, + "column": 11 + }, + "end": { + "line": 113, + "column": 17 + }, + "identifierName": "result" + }, + "name": "result" + } + } + ], + "directives": [] + }, + "handler": { + "type": "CatchClause", + "start": 2918, + "end": 2978, + "loc": { + "start": { + "line": 114, + "column": 4 + }, + "end": { + "line": 116, + "column": 3 + } + }, + "param": { + "type": "Identifier", + "start": 2925, + "end": 2930, + "loc": { + "start": { + "line": 114, + "column": 11 + }, + "end": { + "line": 114, + "column": 16 + }, + "identifierName": "error" + }, + "name": "error" + }, + "body": { + "type": "BlockStatement", + "start": 2932, + "end": 2978, + "loc": { + "start": { + "line": 114, + "column": 18 + }, + "end": { + "line": 116, + "column": 3 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 2938, + "end": 2974, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 40 + } + }, + "argument": { + "type": "NewExpression", + "start": 2944, + "end": 2974, + "loc": { + "start": { + "line": 115, + "column": 10 + }, + "end": { + "line": 115, + "column": 40 + } + }, + "callee": { + "type": "Identifier", + "start": 2948, + "end": 2959, + "loc": { + "start": { + "line": 115, + "column": 14 + }, + "end": { + "line": 115, + "column": 25 + }, + "identifierName": "ParserError" + }, + "name": "ParserError" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 2960, + "end": 2973, + "loc": { + "start": { + "line": 115, + "column": 26 + }, + "end": { + "line": 115, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 2960, + "end": 2965, + "loc": { + "start": { + "line": 115, + "column": 26 + }, + "end": { + "line": 115, + "column": 31 + }, + "identifierName": "error" + }, + "name": "error" + }, + "property": { + "type": "Identifier", + "start": 2966, + "end": 2973, + "loc": { + "start": { + "line": 115, + "column": 32 + }, + "end": { + "line": 115, + "column": 39 + }, + "identifierName": "message" + }, + "name": "message" + }, + "computed": false + } + ] + } + } + ], + "directives": [] + } + }, + "guardedHandlers": [], + "finalizer": null + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.parse - receives an XML string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @param {object} options.showDeclaration - force parsing XML declaration tag\n * @param {boolean} options.verbose - makes xml2js return non compact mode, defaults to false\n * @param {boolean} options.experimentalXmlTag - use experimental XmlTag prototype, default is false\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1941, + "end": 2421, + "loc": { + "start": { + "line": 80, + "column": 0 + }, + "end": { + "line": 89, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.toXmlTag - turns xml2js non-compact result into XmlTag and XmlResult\n *\n * @param {object} xml2jsResult\n * @throws {NotImplemented}\n ", + "start": 2982, + "end": 3138, + "loc": { + "start": { + "line": 119, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3139, + "end": 3229, + "loc": { + "start": { + "line": 125, + "column": 0 + }, + "end": { + "line": 127, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3139, + "end": 3229, + "loc": { + "start": { + "line": 125, + "column": 0 + }, + "end": { + "line": 127, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 3139, + "end": 3161, + "loc": { + "start": { + "line": 125, + "column": 0 + }, + "end": { + "line": 125, + "column": 22 + } + }, + "object": { + "type": "MemberExpression", + "start": 3139, + "end": 3152, + "loc": { + "start": { + "line": 125, + "column": 0 + }, + "end": { + "line": 125, + "column": 13 + } + }, + "object": { + "type": "Identifier", + "start": 3139, + "end": 3142, + "loc": { + "start": { + "line": 125, + "column": 0 + }, + "end": { + "line": 125, + "column": 3 + }, + "identifierName": "Xml" + }, + "name": "Xml", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3143, + "end": 3152, + "loc": { + "start": { + "line": 125, + "column": 4 + }, + "end": { + "line": 125, + "column": 13 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3153, + "end": 3161, + "loc": { + "start": { + "line": 125, + "column": 14 + }, + "end": { + "line": 125, + "column": 22 + }, + "identifierName": "toXmlTag" + }, + "name": "toXmlTag" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "FunctionExpression", + "start": 3164, + "end": 3229, + "loc": { + "start": { + "line": 125, + "column": 25 + }, + "end": { + "line": 127, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 3153, + "end": 3161, + "loc": { + "start": { + "line": 125, + "column": 14 + }, + "end": { + "line": 125, + "column": 22 + }, + "identifierName": "toXmlTag" + }, + "name": "toXmlTag" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3183, + "end": 3195, + "loc": { + "start": { + "line": 125, + "column": 44 + }, + "end": { + "line": 125, + "column": 56 + }, + "identifierName": "xml2jsResult" + }, + "name": "xml2jsResult" + } + ], + "body": { + "type": "BlockStatement", + "start": 3197, + "end": 3229, + "loc": { + "start": { + "line": 125, + "column": 58 + }, + "end": { + "line": 127, + "column": 1 + } + }, + "body": [ + { + "type": "ThrowStatement", + "start": 3201, + "end": 3227, + "loc": { + "start": { + "line": 126, + "column": 2 + }, + "end": { + "line": 126, + "column": 28 + } + }, + "argument": { + "type": "NewExpression", + "start": 3207, + "end": 3227, + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 28 + } + }, + "callee": { + "type": "Identifier", + "start": 3211, + "end": 3225, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 26 + }, + "identifierName": "NotImplemented" + }, + "name": "NotImplemented" + }, + "arguments": [] + } + } + ], + "directives": [], + "trailingComments": null + }, + "trailingComments": null + }, + "leadingComments": null, + "trailingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.toXmlTag - turns xml2js non-compact result into XmlTag and XmlResult\n *\n * @param {object} xml2jsResult\n * @throws {NotImplemented}\n ", + "start": 2982, + "end": 3138, + "loc": { + "start": { + "line": 119, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + } + ], + "trailingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.pipeParse - stream\n *\n * @param {object} [options]\n * @param {Number} [options.depth=0]\n ", + "start": 3231, + "end": 3343, + "loc": { + "start": { + "line": 129, + "column": 0 + }, + "end": { + "line": 134, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 3344, + "end": 6551, + "loc": { + "start": { + "line": 135, + "column": 0 + }, + "end": { + "line": 278, + "column": 1 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3344, + "end": 6551, + "loc": { + "start": { + "line": 135, + "column": 0 + }, + "end": { + "line": 278, + "column": 1 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 3344, + "end": 3367, + "loc": { + "start": { + "line": 135, + "column": 0 + }, + "end": { + "line": 135, + "column": 23 + } + }, + "object": { + "type": "MemberExpression", + "start": 3344, + "end": 3357, + "loc": { + "start": { + "line": 135, + "column": 0 + }, + "end": { + "line": 135, + "column": 13 + } + }, + "object": { + "type": "Identifier", + "start": 3344, + "end": 3347, + "loc": { + "start": { + "line": 135, + "column": 0 + }, + "end": { + "line": 135, + "column": 3 + }, + "identifierName": "Xml" + }, + "name": "Xml", + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3348, + "end": 3357, + "loc": { + "start": { + "line": 135, + "column": 4 + }, + "end": { + "line": 135, + "column": 13 + }, + "identifierName": "prototype" + }, + "name": "prototype" + }, + "computed": false, + "leadingComments": null + }, + "property": { + "type": "Identifier", + "start": 3358, + "end": 3367, + "loc": { + "start": { + "line": 135, + "column": 14 + }, + "end": { + "line": 135, + "column": 23 + }, + "identifierName": "pipeParse" + }, + "name": "pipeParse" + }, + "computed": false, + "leadingComments": null + }, + "right": { + "type": "FunctionExpression", + "start": 3370, + "end": 6551, + "loc": { + "start": { + "line": 135, + "column": 26 + }, + "end": { + "line": 278, + "column": 1 + } + }, + "id": { + "type": "Identifier", + "start": 3358, + "end": 3367, + "loc": { + "start": { + "line": 135, + "column": 14 + }, + "end": { + "line": 135, + "column": 23 + }, + "identifierName": "pipeParse" + }, + "name": "pipeParse" + }, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "AssignmentPattern", + "start": 3390, + "end": 3402, + "loc": { + "start": { + "line": 135, + "column": 46 + }, + "end": { + "line": 135, + "column": 58 + } + }, + "left": { + "type": "Identifier", + "start": 3390, + "end": 3397, + "loc": { + "start": { + "line": 135, + "column": 46 + }, + "end": { + "line": 135, + "column": 53 + }, + "identifierName": "options" + }, + "name": "options" + }, + "right": { + "type": "ObjectExpression", + "start": 3400, + "end": 3402, + "loc": { + "start": { + "line": 135, + "column": 56 + }, + "end": { + "line": 135, + "column": 58 + } + }, + "properties": [] + } + } + ], + "body": { + "type": "BlockStatement", + "start": 3404, + "end": 6551, + "loc": { + "start": { + "line": 135, + "column": 60 + }, + "end": { + "line": 278, + "column": 1 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 3408, + "end": 3442, + "loc": { + "start": { + "line": 136, + "column": 2 + }, + "end": { + "line": 136, + "column": 36 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 3408, + "end": 3442, + "loc": { + "start": { + "line": 136, + "column": 2 + }, + "end": { + "line": 136, + "column": 36 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 3408, + "end": 3421, + "loc": { + "start": { + "line": 136, + "column": 2 + }, + "end": { + "line": 136, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 3408, + "end": 3415, + "loc": { + "start": { + "line": 136, + "column": 2 + }, + "end": { + "line": 136, + "column": 9 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 3416, + "end": 3421, + "loc": { + "start": { + "line": 136, + "column": 10 + }, + "end": { + "line": 136, + "column": 15 + }, + "identifierName": "depth" + }, + "name": "depth" + }, + "computed": false + }, + "right": { + "type": "LogicalExpression", + "start": 3424, + "end": 3442, + "loc": { + "start": { + "line": 136, + "column": 18 + }, + "end": { + "line": 136, + "column": 36 + } + }, + "left": { + "type": "MemberExpression", + "start": 3424, + "end": 3437, + "loc": { + "start": { + "line": 136, + "column": 18 + }, + "end": { + "line": 136, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 3424, + "end": 3431, + "loc": { + "start": { + "line": 136, + "column": 18 + }, + "end": { + "line": 136, + "column": 25 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 3432, + "end": 3437, + "loc": { + "start": { + "line": 136, + "column": 26 + }, + "end": { + "line": 136, + "column": 31 + }, + "identifierName": "depth" + }, + "name": "depth" + }, + "computed": false + }, + "operator": "||", + "right": { + "type": "NumericLiteral", + "start": 3441, + "end": 3442, + "loc": { + "start": { + "line": 136, + "column": 35 + }, + "end": { + "line": 136, + "column": 36 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + } + }, + { + "type": "VariableDeclaration", + "start": 3445, + "end": 3478, + "loc": { + "start": { + "line": 137, + "column": 2 + }, + "end": { + "line": 137, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3451, + "end": 3478, + "loc": { + "start": { + "line": 137, + "column": 8 + }, + "end": { + "line": 137, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 3451, + "end": 3457, + "loc": { + "start": { + "line": 137, + "column": 8 + }, + "end": { + "line": 137, + "column": 14 + }, + "identifierName": "parser" + }, + "name": "parser" + }, + "init": { + "type": "NewExpression", + "start": 3460, + "end": 3478, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 35 + } + }, + "callee": { + "type": "Identifier", + "start": 3464, + "end": 3476, + "loc": { + "start": { + "line": 137, + "column": 21 + }, + "end": { + "line": 137, + "column": 33 + }, + "identifierName": "StreamParser" + }, + "name": "StreamParser" + }, + "arguments": [] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 3482, + "end": 3495, + "loc": { + "start": { + "line": 139, + "column": 2 + }, + "end": { + "line": 139, + "column": 15 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3486, + "end": 3495, + "loc": { + "start": { + "line": 139, + "column": 6 + }, + "end": { + "line": 139, + "column": 15 + } + }, + "id": { + "type": "Identifier", + "start": 3486, + "end": 3491, + "loc": { + "start": { + "line": 139, + "column": 6 + }, + "end": { + "line": 139, + "column": 11 + }, + "identifierName": "index" + }, + "name": "index" + }, + "init": { + "type": "NumericLiteral", + "start": 3494, + "end": 3495, + "loc": { + "start": { + "line": 139, + "column": 14 + }, + "end": { + "line": 139, + "column": 15 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 3498, + "end": 3524, + "loc": { + "start": { + "line": 140, + "column": 2 + }, + "end": { + "line": 140, + "column": 28 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3502, + "end": 3524, + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 28 + } + }, + "id": { + "type": "Identifier", + "start": 3502, + "end": 3512, + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 16 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "init": { + "type": "NewExpression", + "start": 3515, + "end": 3524, + "loc": { + "start": { + "line": 140, + "column": 19 + }, + "end": { + "line": 140, + "column": 28 + } + }, + "callee": { + "type": "Identifier", + "start": 3519, + "end": 3522, + "loc": { + "start": { + "line": 140, + "column": 23 + }, + "end": { + "line": 140, + "column": 26 + }, + "identifierName": "Map" + }, + "name": "Map" + }, + "arguments": [] + } + } + ], + "kind": "let" + }, + { + "type": "VariableDeclaration", + "start": 3527, + "end": 3544, + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 141, + "column": 19 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3533, + "end": 3544, + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 19 + } + }, + "id": { + "type": "Identifier", + "start": 3533, + "end": 3539, + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 14 + }, + "identifierName": "toEmit" + }, + "name": "toEmit" + }, + "init": { + "type": "ArrayExpression", + "start": 3542, + "end": 3544, + "loc": { + "start": { + "line": 141, + "column": 17 + }, + "end": { + "line": 141, + "column": 19 + } + }, + "elements": [] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 3547, + "end": 3620, + "loc": { + "start": { + "line": 142, + "column": 2 + }, + "end": { + "line": 146, + "column": 3 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3553, + "end": 3620, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 146, + "column": 3 + } + }, + "id": { + "type": "Identifier", + "start": 3553, + "end": 3560, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 15 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "init": { + "type": "ObjectExpression", + "start": 3563, + "end": 3620, + "loc": { + "start": { + "line": 142, + "column": 18 + }, + "end": { + "line": 146, + "column": 3 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 3569, + "end": 3580, + "loc": { + "start": { + "line": 143, + "column": 4 + }, + "end": { + "line": 143, + "column": 15 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3569, + "end": 3574, + "loc": { + "start": { + "line": 143, + "column": 4 + }, + "end": { + "line": 143, + "column": 9 + }, + "identifierName": "index" + }, + "name": "index" + }, + "value": { + "type": "NullLiteral", + "start": 3576, + "end": 3580, + "loc": { + "start": { + "line": 143, + "column": 11 + }, + "end": { + "line": 143, + "column": 15 + } + } + } + }, + { + "type": "ObjectProperty", + "start": 3586, + "end": 3596, + "loc": { + "start": { + "line": 144, + "column": 4 + }, + "end": { + "line": 144, + "column": 14 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3586, + "end": 3590, + "loc": { + "start": { + "line": 144, + "column": 4 + }, + "end": { + "line": 144, + "column": 8 + }, + "identifierName": "name" + }, + "name": "name" + }, + "value": { + "type": "NullLiteral", + "start": 3592, + "end": 3596, + "loc": { + "start": { + "line": 144, + "column": 10 + }, + "end": { + "line": 144, + "column": 14 + } + } + } + }, + { + "type": "ObjectProperty", + "start": 3602, + "end": 3616, + "loc": { + "start": { + "line": 145, + "column": 4 + }, + "end": { + "line": 145, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 3602, + "end": 3610, + "loc": { + "start": { + "line": 145, + "column": 4 + }, + "end": { + "line": 145, + "column": 12 + }, + "identifierName": "tagIndex" + }, + "name": "tagIndex" + }, + "value": { + "type": "NullLiteral", + "start": 3612, + "end": 3616, + "loc": { + "start": { + "line": 145, + "column": 14 + }, + "end": { + "line": 145, + "column": 18 + } + } + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 3624, + "end": 3969, + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 167, + "column": 3 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3630, + "end": 3969, + "loc": { + "start": { + "line": 148, + "column": 8 + }, + "end": { + "line": 167, + "column": 3 + } + }, + "id": { + "type": "Identifier", + "start": 3630, + "end": 3645, + "loc": { + "start": { + "line": 148, + "column": 8 + }, + "end": { + "line": 148, + "column": 23 + }, + "identifierName": "getFirstTagName" + }, + "name": "getFirstTagName" + }, + "init": { + "type": "ArrowFunctionExpression", + "start": 3648, + "end": 3969, + "loc": { + "start": { + "line": 148, + "column": 26 + }, + "end": { + "line": 167, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3648, + "end": 3651, + "loc": { + "start": { + "line": 148, + "column": 26 + }, + "end": { + "line": 148, + "column": 29 + }, + "identifierName": "map" + }, + "name": "map" + } + ], + "body": { + "type": "BlockStatement", + "start": 3655, + "end": 3969, + "loc": { + "start": { + "line": 148, + "column": 33 + }, + "end": { + "line": 167, + "column": 3 + } + }, + "body": [ + { + "type": "IfStatement", + "start": 3661, + "end": 3712, + "loc": { + "start": { + "line": 149, + "column": 4 + }, + "end": { + "line": 151, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 3665, + "end": 3685, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 28 + } + }, + "left": { + "type": "CallExpression", + "start": 3665, + "end": 3675, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3665, + "end": 3672, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 3665, + "end": 3668, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 11 + }, + "identifierName": "map" + }, + "name": "map" + }, + "property": { + "type": "Identifier", + "start": 3669, + "end": 3672, + "loc": { + "start": { + "line": 149, + "column": 12 + }, + "end": { + "line": 149, + "column": 15 + }, + "identifierName": "has" + }, + "name": "has" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 3673, + "end": 3674, + "loc": { + "start": { + "line": 149, + "column": 16 + }, + "end": { + "line": 149, + "column": 17 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + ] + }, + "operator": "===", + "right": { + "type": "BooleanLiteral", + "start": 3680, + "end": 3685, + "loc": { + "start": { + "line": 149, + "column": 23 + }, + "end": { + "line": 149, + "column": 28 + } + }, + "value": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3687, + "end": 3712, + "loc": { + "start": { + "line": 149, + "column": 30 + }, + "end": { + "line": 151, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3695, + "end": 3706, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 17 + } + }, + "argument": { + "type": "NullLiteral", + "start": 3702, + "end": 3706, + "loc": { + "start": { + "line": 150, + "column": 13 + }, + "end": { + "line": 150, + "column": 17 + } + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 3718, + "end": 3747, + "loc": { + "start": { + "line": 153, + "column": 4 + }, + "end": { + "line": 153, + "column": 33 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3724, + "end": 3747, + "loc": { + "start": { + "line": 153, + "column": 10 + }, + "end": { + "line": 153, + "column": 33 + } + }, + "id": { + "type": "Identifier", + "start": 3724, + "end": 3734, + "loc": { + "start": { + "line": 153, + "column": 10 + }, + "end": { + "line": 153, + "column": 20 + }, + "identifierName": "mapPosZero" + }, + "name": "mapPosZero" + }, + "init": { + "type": "CallExpression", + "start": 3737, + "end": 3747, + "loc": { + "start": { + "line": 153, + "column": 23 + }, + "end": { + "line": 153, + "column": 33 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3737, + "end": 3744, + "loc": { + "start": { + "line": 153, + "column": 23 + }, + "end": { + "line": 153, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 3737, + "end": 3740, + "loc": { + "start": { + "line": 153, + "column": 23 + }, + "end": { + "line": 153, + "column": 26 + }, + "identifierName": "map" + }, + "name": "map" + }, + "property": { + "type": "Identifier", + "start": 3741, + "end": 3744, + "loc": { + "start": { + "line": 153, + "column": 27 + }, + "end": { + "line": 153, + "column": 30 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "NumericLiteral", + "start": 3745, + "end": 3746, + "loc": { + "start": { + "line": 153, + "column": 31 + }, + "end": { + "line": 153, + "column": 32 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 3752, + "end": 3791, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 43 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3758, + "end": 3791, + "loc": { + "start": { + "line": 154, + "column": 10 + }, + "end": { + "line": 154, + "column": 43 + } + }, + "id": { + "type": "Identifier", + "start": 3758, + "end": 3766, + "loc": { + "start": { + "line": 154, + "column": 10 + }, + "end": { + "line": 154, + "column": 18 + }, + "identifierName": "arrayMap" + }, + "name": "arrayMap" + }, + "init": { + "type": "CallExpression", + "start": 3769, + "end": 3791, + "loc": { + "start": { + "line": 154, + "column": 21 + }, + "end": { + "line": 154, + "column": 43 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3769, + "end": 3779, + "loc": { + "start": { + "line": 154, + "column": 21 + }, + "end": { + "line": 154, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 3769, + "end": 3774, + "loc": { + "start": { + "line": 154, + "column": 21 + }, + "end": { + "line": 154, + "column": 26 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 3775, + "end": 3779, + "loc": { + "start": { + "line": 154, + "column": 27 + }, + "end": { + "line": 154, + "column": 31 + }, + "identifierName": "from" + }, + "name": "from" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 3780, + "end": 3790, + "loc": { + "start": { + "line": 154, + "column": 32 + }, + "end": { + "line": 154, + "column": 42 + }, + "identifierName": "mapPosZero" + }, + "name": "mapPosZero" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 3797, + "end": 3849, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 158, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 3801, + "end": 3822, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 29 + } + }, + "left": { + "type": "MemberExpression", + "start": 3801, + "end": 3816, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 3801, + "end": 3809, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 16 + }, + "identifierName": "arrayMap" + }, + "name": "arrayMap" + }, + "property": { + "type": "Identifier", + "start": 3810, + "end": 3816, + "loc": { + "start": { + "line": 156, + "column": 17 + }, + "end": { + "line": 156, + "column": 23 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 3821, + "end": 3822, + "loc": { + "start": { + "line": 156, + "column": 28 + }, + "end": { + "line": 156, + "column": 29 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3824, + "end": 3849, + "loc": { + "start": { + "line": 156, + "column": 31 + }, + "end": { + "line": 158, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3832, + "end": 3843, + "loc": { + "start": { + "line": 157, + "column": 6 + }, + "end": { + "line": 157, + "column": 17 + } + }, + "argument": { + "type": "NullLiteral", + "start": 3839, + "end": 3843, + "loc": { + "start": { + "line": 157, + "column": 13 + }, + "end": { + "line": 157, + "column": 17 + } + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 3855, + "end": 3883, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 32 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 3861, + "end": 3883, + "loc": { + "start": { + "line": 160, + "column": 10 + }, + "end": { + "line": 160, + "column": 32 + } + }, + "id": { + "type": "Identifier", + "start": 3861, + "end": 3869, + "loc": { + "start": { + "line": 160, + "column": 10 + }, + "end": { + "line": 160, + "column": 18 + }, + "identifierName": "keyValue" + }, + "name": "keyValue" + }, + "init": { + "type": "MemberExpression", + "start": 3872, + "end": 3883, + "loc": { + "start": { + "line": 160, + "column": 21 + }, + "end": { + "line": 160, + "column": 32 + } + }, + "object": { + "type": "Identifier", + "start": 3872, + "end": 3880, + "loc": { + "start": { + "line": 160, + "column": 21 + }, + "end": { + "line": 160, + "column": 29 + }, + "identifierName": "arrayMap" + }, + "name": "arrayMap" + }, + "property": { + "type": "NumericLiteral", + "start": 3881, + "end": 3882, + "loc": { + "start": { + "line": 160, + "column": 30 + }, + "end": { + "line": 160, + "column": 31 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 3889, + "end": 3941, + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 164, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 3893, + "end": 3914, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 29 + } + }, + "left": { + "type": "MemberExpression", + "start": 3893, + "end": 3908, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 3893, + "end": 3901, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 16 + }, + "identifierName": "keyValue" + }, + "name": "keyValue" + }, + "property": { + "type": "Identifier", + "start": 3902, + "end": 3908, + "loc": { + "start": { + "line": 162, + "column": 17 + }, + "end": { + "line": 162, + "column": 23 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 3913, + "end": 3914, + "loc": { + "start": { + "line": 162, + "column": 28 + }, + "end": { + "line": 162, + "column": 29 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 3916, + "end": 3941, + "loc": { + "start": { + "line": 162, + "column": 31 + }, + "end": { + "line": 164, + "column": 5 + } + }, + "body": [ + { + "type": "ReturnStatement", + "start": 3924, + "end": 3935, + "loc": { + "start": { + "line": 163, + "column": 6 + }, + "end": { + "line": 163, + "column": 17 + } + }, + "argument": { + "type": "NullLiteral", + "start": 3931, + "end": 3935, + "loc": { + "start": { + "line": 163, + "column": 13 + }, + "end": { + "line": 163, + "column": 17 + } + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ReturnStatement", + "start": 3947, + "end": 3965, + "loc": { + "start": { + "line": 166, + "column": 4 + }, + "end": { + "line": 166, + "column": 22 + } + }, + "argument": { + "type": "MemberExpression", + "start": 3954, + "end": 3965, + "loc": { + "start": { + "line": 166, + "column": 11 + }, + "end": { + "line": 166, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 3954, + "end": 3962, + "loc": { + "start": { + "line": 166, + "column": 11 + }, + "end": { + "line": 166, + "column": 19 + }, + "identifierName": "keyValue" + }, + "name": "keyValue" + }, + "property": { + "type": "NumericLiteral", + "start": 3963, + "end": 3964, + "loc": { + "start": { + "line": 166, + "column": 20 + }, + "end": { + "line": 166, + "column": 21 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + } + } + ], + "directives": [] + } + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 3973, + "end": 4786, + "loc": { + "start": { + "line": 169, + "column": 2 + }, + "end": { + "line": 202, + "column": 4 + } + }, + "expression": { + "type": "CallExpression", + "start": 3973, + "end": 4786, + "loc": { + "start": { + "line": 169, + "column": 2 + }, + "end": { + "line": 202, + "column": 4 + } + }, + "callee": { + "type": "MemberExpression", + "start": 3973, + "end": 3982, + "loc": { + "start": { + "line": 169, + "column": 2 + }, + "end": { + "line": 169, + "column": 11 + } + }, + "object": { + "type": "Identifier", + "start": 3973, + "end": 3979, + "loc": { + "start": { + "line": 169, + "column": 2 + }, + "end": { + "line": 169, + "column": 8 + }, + "identifierName": "parser" + }, + "name": "parser" + }, + "property": { + "type": "Identifier", + "start": 3980, + "end": 3982, + "loc": { + "start": { + "line": 169, + "column": 9 + }, + "end": { + "line": 169, + "column": 11 + }, + "identifierName": "on" + }, + "name": "on" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 3983, + "end": 3992, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 21 + } + }, + "extra": { + "rawValue": "opentag", + "raw": "'opentag'" + }, + "value": "opentag" + }, + { + "type": "ArrowFunctionExpression", + "start": 3994, + "end": 4785, + "loc": { + "start": { + "line": 169, + "column": 23 + }, + "end": { + "line": 202, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 3995, + "end": 3999, + "loc": { + "start": { + "line": 169, + "column": 24 + }, + "end": { + "line": 169, + "column": 28 + }, + "identifierName": "name" + }, + "name": "name" + }, + { + "type": "Identifier", + "start": 4001, + "end": 4006, + "loc": { + "start": { + "line": 169, + "column": 30 + }, + "end": { + "line": 169, + "column": 35 + }, + "identifierName": "attrs" + }, + "name": "attrs" + } + ], + "body": { + "type": "BlockStatement", + "start": 4011, + "end": 4785, + "loc": { + "start": { + "line": 169, + "column": 40 + }, + "end": { + "line": 202, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 4017, + "end": 4080, + "loc": { + "start": { + "line": 170, + "column": 4 + }, + "end": { + "line": 173, + "column": 5 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4023, + "end": 4080, + "loc": { + "start": { + "line": 170, + "column": 10 + }, + "end": { + "line": 173, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 4023, + "end": 4034, + "loc": { + "start": { + "line": 170, + "column": 10 + }, + "end": { + "line": 170, + "column": 21 + }, + "identifierName": "inheritFrom" + }, + "name": "inheritFrom" + }, + "init": { + "type": "ObjectExpression", + "start": 4037, + "end": 4080, + "loc": { + "start": { + "line": 170, + "column": 24 + }, + "end": { + "line": 173, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 4045, + "end": 4056, + "loc": { + "start": { + "line": 171, + "column": 6 + }, + "end": { + "line": 171, + "column": 17 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4045, + "end": 4050, + "loc": { + "start": { + "line": 171, + "column": 6 + }, + "end": { + "line": 171, + "column": 11 + }, + "identifierName": "index" + }, + "name": "index" + }, + "value": { + "type": "NullLiteral", + "start": 4052, + "end": 4056, + "loc": { + "start": { + "line": 171, + "column": 13 + }, + "end": { + "line": 171, + "column": 17 + } + } + } + }, + { + "type": "ObjectProperty", + "start": 4064, + "end": 4074, + "loc": { + "start": { + "line": 172, + "column": 6 + }, + "end": { + "line": 172, + "column": 16 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 4064, + "end": 4068, + "loc": { + "start": { + "line": 172, + "column": 6 + }, + "end": { + "line": 172, + "column": 10 + }, + "identifierName": "name" + }, + "name": "name" + }, + "value": { + "type": "NullLiteral", + "start": 4070, + "end": 4074, + "loc": { + "start": { + "line": 172, + "column": 12 + }, + "end": { + "line": 172, + "column": 16 + } + } + } + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "IfStatement", + "start": 4086, + "end": 4333, + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 184, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 4090, + "end": 4100, + "loc": { + "start": { + "line": 175, + "column": 8 + }, + "end": { + "line": 175, + "column": 18 + } + }, + "left": { + "type": "Identifier", + "start": 4090, + "end": 4095, + "loc": { + "start": { + "line": 175, + "column": 8 + }, + "end": { + "line": 175, + "column": 13 + }, + "identifierName": "index" + }, + "name": "index" + }, + "operator": ">=", + "right": { + "type": "NumericLiteral", + "start": 4099, + "end": 4100, + "loc": { + "start": { + "line": 175, + "column": 17 + }, + "end": { + "line": 175, + "column": 18 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 4102, + "end": 4333, + "loc": { + "start": { + "line": 175, + "column": 20 + }, + "end": { + "line": 184, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 4110, + "end": 4139, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 35 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4116, + "end": 4139, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 35 + } + }, + "id": { + "type": "Identifier", + "start": 4116, + "end": 4127, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 23 + }, + "identifierName": "beforeIndex" + }, + "name": "beforeIndex" + }, + "init": { + "type": "BinaryExpression", + "start": 4130, + "end": 4139, + "loc": { + "start": { + "line": 176, + "column": 26 + }, + "end": { + "line": 176, + "column": 35 + } + }, + "left": { + "type": "Identifier", + "start": 4130, + "end": 4135, + "loc": { + "start": { + "line": 176, + "column": 26 + }, + "end": { + "line": 176, + "column": 31 + }, + "identifierName": "index" + }, + "name": "index" + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 4138, + "end": 4139, + "loc": { + "start": { + "line": 176, + "column": 34 + }, + "end": { + "line": 176, + "column": 35 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 4146, + "end": 4254, + "loc": { + "start": { + "line": 177, + "column": 6 + }, + "end": { + "line": 181, + "column": 20 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4152, + "end": 4254, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 181, + "column": 20 + } + }, + "id": { + "type": "Identifier", + "start": 4152, + "end": 4161, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 21 + }, + "identifierName": "beforeKey" + }, + "name": "beforeKey" + }, + "init": { + "type": "MemberExpression", + "start": 4164, + "end": 4254, + "loc": { + "start": { + "line": 177, + "column": 24 + }, + "end": { + "line": 181, + "column": 20 + } + }, + "object": { + "type": "CallExpression", + "start": 4164, + "end": 4251, + "loc": { + "start": { + "line": 177, + "column": 24 + }, + "end": { + "line": 181, + "column": 17 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4164, + "end": 4249, + "loc": { + "start": { + "line": 177, + "column": 24 + }, + "end": { + "line": 181, + "column": 15 + } + }, + "object": { + "type": "ArrayExpression", + "start": 4164, + "end": 4241, + "loc": { + "start": { + "line": 177, + "column": 24 + }, + "end": { + "line": 181, + "column": 7 + } + }, + "elements": [ + { + "type": "SpreadElement", + "start": 4174, + "end": 4233, + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 180, + "column": 17 + } + }, + "argument": { + "type": "CallExpression", + "start": 4177, + "end": 4233, + "loc": { + "start": { + "line": 178, + "column": 11 + }, + "end": { + "line": 180, + "column": 17 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4177, + "end": 4231, + "loc": { + "start": { + "line": 178, + "column": 11 + }, + "end": { + "line": 180, + "column": 15 + } + }, + "object": { + "type": "CallExpression", + "start": 4177, + "end": 4215, + "loc": { + "start": { + "line": 178, + "column": 11 + }, + "end": { + "line": 179, + "column": 27 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4177, + "end": 4202, + "loc": { + "start": { + "line": 178, + "column": 11 + }, + "end": { + "line": 179, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 4177, + "end": 4187, + "loc": { + "start": { + "line": 178, + "column": 11 + }, + "end": { + "line": 178, + "column": 21 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "property": { + "type": "Identifier", + "start": 4199, + "end": 4202, + "loc": { + "start": { + "line": 179, + "column": 11 + }, + "end": { + "line": 179, + "column": 14 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4203, + "end": 4214, + "loc": { + "start": { + "line": 179, + "column": 15 + }, + "end": { + "line": 179, + "column": 26 + }, + "identifierName": "beforeIndex" + }, + "name": "beforeIndex" + } + ] + }, + "property": { + "type": "Identifier", + "start": 4227, + "end": 4231, + "loc": { + "start": { + "line": 180, + "column": 11 + }, + "end": { + "line": 180, + "column": 15 + }, + "identifierName": "keys" + }, + "name": "keys" + }, + "computed": false + }, + "arguments": [] + } + } + ] + }, + "property": { + "type": "Identifier", + "start": 4242, + "end": 4249, + "loc": { + "start": { + "line": 181, + "column": 8 + }, + "end": { + "line": 181, + "column": 15 + }, + "identifierName": "reverse" + }, + "name": "reverse" + }, + "computed": false + }, + "arguments": [] + }, + "property": { + "type": "NumericLiteral", + "start": 4252, + "end": 4253, + "loc": { + "start": { + "line": 181, + "column": 18 + }, + "end": { + "line": 181, + "column": 19 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 4261, + "end": 4292, + "loc": { + "start": { + "line": 182, + "column": 6 + }, + "end": { + "line": 182, + "column": 37 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4261, + "end": 4292, + "loc": { + "start": { + "line": 182, + "column": 6 + }, + "end": { + "line": 182, + "column": 37 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4261, + "end": 4278, + "loc": { + "start": { + "line": 182, + "column": 6 + }, + "end": { + "line": 182, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 4261, + "end": 4272, + "loc": { + "start": { + "line": 182, + "column": 6 + }, + "end": { + "line": 182, + "column": 17 + }, + "identifierName": "inheritFrom" + }, + "name": "inheritFrom" + }, + "property": { + "type": "Identifier", + "start": 4273, + "end": 4278, + "loc": { + "start": { + "line": 182, + "column": 18 + }, + "end": { + "line": 182, + "column": 23 + }, + "identifierName": "index" + }, + "name": "index" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4281, + "end": 4292, + "loc": { + "start": { + "line": 182, + "column": 26 + }, + "end": { + "line": 182, + "column": 37 + }, + "identifierName": "beforeIndex" + }, + "name": "beforeIndex" + } + } + }, + { + "type": "ExpressionStatement", + "start": 4299, + "end": 4327, + "loc": { + "start": { + "line": 183, + "column": 6 + }, + "end": { + "line": 183, + "column": 34 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4299, + "end": 4327, + "loc": { + "start": { + "line": 183, + "column": 6 + }, + "end": { + "line": 183, + "column": 34 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4299, + "end": 4315, + "loc": { + "start": { + "line": 183, + "column": 6 + }, + "end": { + "line": 183, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 4299, + "end": 4310, + "loc": { + "start": { + "line": 183, + "column": 6 + }, + "end": { + "line": 183, + "column": 17 + }, + "identifierName": "inheritFrom" + }, + "name": "inheritFrom" + }, + "property": { + "type": "Identifier", + "start": 4311, + "end": 4315, + "loc": { + "start": { + "line": 183, + "column": 18 + }, + "end": { + "line": 183, + "column": 22 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4318, + "end": 4327, + "loc": { + "start": { + "line": 183, + "column": 25 + }, + "end": { + "line": 183, + "column": 34 + }, + "identifierName": "beforeKey" + }, + "name": "beforeKey" + } + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 4339, + "end": 4413, + "loc": { + "start": { + "line": 186, + "column": 4 + }, + "end": { + "line": 188, + "column": 5 + } + }, + "test": { + "type": "UnaryExpression", + "start": 4343, + "end": 4365, + "loc": { + "start": { + "line": 186, + "column": 8 + }, + "end": { + "line": 186, + "column": 30 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 4344, + "end": 4365, + "loc": { + "start": { + "line": 186, + "column": 9 + }, + "end": { + "line": 186, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4344, + "end": 4358, + "loc": { + "start": { + "line": 186, + "column": 9 + }, + "end": { + "line": 186, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 4344, + "end": 4354, + "loc": { + "start": { + "line": 186, + "column": 9 + }, + "end": { + "line": 186, + "column": 19 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "property": { + "type": "Identifier", + "start": 4355, + "end": 4358, + "loc": { + "start": { + "line": 186, + "column": 20 + }, + "end": { + "line": 186, + "column": 23 + }, + "identifierName": "has" + }, + "name": "has" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4359, + "end": 4364, + "loc": { + "start": { + "line": 186, + "column": 24 + }, + "end": { + "line": 186, + "column": 29 + }, + "identifierName": "index" + }, + "name": "index" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 4367, + "end": 4413, + "loc": { + "start": { + "line": 186, + "column": 32 + }, + "end": { + "line": 188, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4375, + "end": 4407, + "loc": { + "start": { + "line": 187, + "column": 6 + }, + "end": { + "line": 187, + "column": 38 + } + }, + "expression": { + "type": "CallExpression", + "start": 4375, + "end": 4407, + "loc": { + "start": { + "line": 187, + "column": 6 + }, + "end": { + "line": 187, + "column": 38 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4375, + "end": 4389, + "loc": { + "start": { + "line": 187, + "column": 6 + }, + "end": { + "line": 187, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 4375, + "end": 4385, + "loc": { + "start": { + "line": 187, + "column": 6 + }, + "end": { + "line": 187, + "column": 16 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "property": { + "type": "Identifier", + "start": 4386, + "end": 4389, + "loc": { + "start": { + "line": 187, + "column": 17 + }, + "end": { + "line": 187, + "column": 20 + }, + "identifierName": "set" + }, + "name": "set" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4390, + "end": 4395, + "loc": { + "start": { + "line": 187, + "column": 21 + }, + "end": { + "line": 187, + "column": 26 + }, + "identifierName": "index" + }, + "name": "index" + }, + { + "type": "NewExpression", + "start": 4397, + "end": 4406, + "loc": { + "start": { + "line": 187, + "column": 28 + }, + "end": { + "line": 187, + "column": 37 + } + }, + "callee": { + "type": "Identifier", + "start": 4401, + "end": 4404, + "loc": { + "start": { + "line": 187, + "column": 32 + }, + "end": { + "line": 187, + "column": 35 + }, + "identifierName": "Map" + }, + "name": "Map" + }, + "arguments": [] + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 4419, + "end": 4506, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 192, + "column": 5 + } + }, + "test": { + "type": "UnaryExpression", + "start": 4423, + "end": 4455, + "loc": { + "start": { + "line": 190, + "column": 8 + }, + "end": { + "line": 190, + "column": 40 + } + }, + "operator": "!", + "prefix": true, + "argument": { + "type": "CallExpression", + "start": 4424, + "end": 4455, + "loc": { + "start": { + "line": 190, + "column": 9 + }, + "end": { + "line": 190, + "column": 40 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4424, + "end": 4449, + "loc": { + "start": { + "line": 190, + "column": 9 + }, + "end": { + "line": 190, + "column": 34 + } + }, + "object": { + "type": "CallExpression", + "start": 4424, + "end": 4445, + "loc": { + "start": { + "line": 190, + "column": 9 + }, + "end": { + "line": 190, + "column": 30 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4424, + "end": 4438, + "loc": { + "start": { + "line": 190, + "column": 9 + }, + "end": { + "line": 190, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 4424, + "end": 4434, + "loc": { + "start": { + "line": 190, + "column": 9 + }, + "end": { + "line": 190, + "column": 19 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "property": { + "type": "Identifier", + "start": 4435, + "end": 4438, + "loc": { + "start": { + "line": 190, + "column": 20 + }, + "end": { + "line": 190, + "column": 23 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4439, + "end": 4444, + "loc": { + "start": { + "line": 190, + "column": 24 + }, + "end": { + "line": 190, + "column": 29 + }, + "identifierName": "index" + }, + "name": "index" + } + ] + }, + "property": { + "type": "Identifier", + "start": 4446, + "end": 4449, + "loc": { + "start": { + "line": 190, + "column": 31 + }, + "end": { + "line": 190, + "column": 34 + }, + "identifierName": "has" + }, + "name": "has" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4450, + "end": 4454, + "loc": { + "start": { + "line": 190, + "column": 35 + }, + "end": { + "line": 190, + "column": 39 + }, + "identifierName": "name" + }, + "name": "name" + } + ] + }, + "extra": { + "parenthesizedArgument": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 4457, + "end": 4506, + "loc": { + "start": { + "line": 190, + "column": 42 + }, + "end": { + "line": 192, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4465, + "end": 4500, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 41 + } + }, + "expression": { + "type": "CallExpression", + "start": 4465, + "end": 4500, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4465, + "end": 4490, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 31 + } + }, + "object": { + "type": "CallExpression", + "start": 4465, + "end": 4486, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 27 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4465, + "end": 4479, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 4465, + "end": 4475, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 16 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "property": { + "type": "Identifier", + "start": 4476, + "end": 4479, + "loc": { + "start": { + "line": 191, + "column": 17 + }, + "end": { + "line": 191, + "column": 20 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4480, + "end": 4485, + "loc": { + "start": { + "line": 191, + "column": 21 + }, + "end": { + "line": 191, + "column": 26 + }, + "identifierName": "index" + }, + "name": "index" + } + ] + }, + "property": { + "type": "Identifier", + "start": 4487, + "end": 4490, + "loc": { + "start": { + "line": 191, + "column": 28 + }, + "end": { + "line": 191, + "column": 31 + }, + "identifierName": "set" + }, + "name": "set" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4491, + "end": 4495, + "loc": { + "start": { + "line": 191, + "column": 32 + }, + "end": { + "line": 191, + "column": 36 + }, + "identifierName": "name" + }, + "name": "name" + }, + { + "type": "ArrayExpression", + "start": 4497, + "end": 4499, + "loc": { + "start": { + "line": 191, + "column": 38 + }, + "end": { + "line": 191, + "column": 40 + } + }, + "elements": [] + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "VariableDeclaration", + "start": 4512, + "end": 4557, + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 194, + "column": 49 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 4518, + "end": 4557, + "loc": { + "start": { + "line": 194, + "column": 10 + }, + "end": { + "line": 194, + "column": 49 + } + }, + "id": { + "type": "Identifier", + "start": 4518, + "end": 4521, + "loc": { + "start": { + "line": 194, + "column": 10 + }, + "end": { + "line": 194, + "column": 13 + }, + "identifierName": "tag" + }, + "name": "tag" + }, + "init": { + "type": "NewExpression", + "start": 4524, + "end": 4557, + "loc": { + "start": { + "line": 194, + "column": 16 + }, + "end": { + "line": 194, + "column": 49 + } + }, + "callee": { + "type": "Identifier", + "start": 4528, + "end": 4534, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 26 + }, + "identifierName": "XmlTag" + }, + "name": "XmlTag" + }, + "arguments": [ + { + "type": "Identifier", + "start": 4535, + "end": 4539, + "loc": { + "start": { + "line": 194, + "column": 27 + }, + "end": { + "line": 194, + "column": 31 + }, + "identifierName": "name" + }, + "name": "name" + }, + { + "type": "NullLiteral", + "start": 4541, + "end": 4545, + "loc": { + "start": { + "line": 194, + "column": 33 + }, + "end": { + "line": 194, + "column": 37 + } + } + }, + { + "type": "Identifier", + "start": 4547, + "end": 4552, + "loc": { + "start": { + "line": 194, + "column": 39 + }, + "end": { + "line": 194, + "column": 44 + }, + "identifierName": "attrs" + }, + "name": "attrs" + }, + { + "type": "ArrayExpression", + "start": 4554, + "end": 4556, + "loc": { + "start": { + "line": 194, + "column": 46 + }, + "end": { + "line": 194, + "column": 48 + } + }, + "elements": [] + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 4562, + "end": 4591, + "loc": { + "start": { + "line": 195, + "column": 4 + }, + "end": { + "line": 195, + "column": 33 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4562, + "end": 4591, + "loc": { + "start": { + "line": 195, + "column": 4 + }, + "end": { + "line": 195, + "column": 33 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4562, + "end": 4577, + "loc": { + "start": { + "line": 195, + "column": 4 + }, + "end": { + "line": 195, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 4562, + "end": 4565, + "loc": { + "start": { + "line": 195, + "column": 4 + }, + "end": { + "line": 195, + "column": 7 + }, + "identifierName": "tag" + }, + "name": "tag" + }, + "property": { + "type": "Identifier", + "start": 4566, + "end": 4577, + "loc": { + "start": { + "line": 195, + "column": 8 + }, + "end": { + "line": 195, + "column": 19 + }, + "identifierName": "inheritFrom" + }, + "name": "inheritFrom" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4580, + "end": 4591, + "loc": { + "start": { + "line": 195, + "column": 22 + }, + "end": { + "line": 195, + "column": 33 + }, + "identifierName": "inheritFrom" + }, + "name": "inheritFrom" + } + } + }, + { + "type": "ExpressionStatement", + "start": 4597, + "end": 4618, + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 197, + "column": 25 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4597, + "end": 4618, + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 197, + "column": 25 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4597, + "end": 4610, + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 197, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 4597, + "end": 4604, + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 197, + "column": 11 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4605, + "end": 4610, + "loc": { + "start": { + "line": 197, + "column": 12 + }, + "end": { + "line": 197, + "column": 17 + }, + "identifierName": "index" + }, + "name": "index" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4613, + "end": 4618, + "loc": { + "start": { + "line": 197, + "column": 20 + }, + "end": { + "line": 197, + "column": 25 + }, + "identifierName": "index" + }, + "name": "index" + } + } + }, + { + "type": "ExpressionStatement", + "start": 4623, + "end": 4642, + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 198, + "column": 23 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4623, + "end": 4642, + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 198, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4623, + "end": 4635, + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 198, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 4623, + "end": 4630, + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 198, + "column": 11 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4631, + "end": 4635, + "loc": { + "start": { + "line": 198, + "column": 12 + }, + "end": { + "line": 198, + "column": 16 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4638, + "end": 4642, + "loc": { + "start": { + "line": 198, + "column": 19 + }, + "end": { + "line": 198, + "column": 23 + }, + "identifierName": "name" + }, + "name": "name" + } + } + }, + { + "type": "ExpressionStatement", + "start": 4647, + "end": 4711, + "loc": { + "start": { + "line": 199, + "column": 4 + }, + "end": { + "line": 199, + "column": 68 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4647, + "end": 4711, + "loc": { + "start": { + "line": 199, + "column": 4 + }, + "end": { + "line": 199, + "column": 68 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4647, + "end": 4663, + "loc": { + "start": { + "line": 199, + "column": 4 + }, + "end": { + "line": 199, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 4647, + "end": 4654, + "loc": { + "start": { + "line": 199, + "column": 4 + }, + "end": { + "line": 199, + "column": 11 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4655, + "end": 4663, + "loc": { + "start": { + "line": 199, + "column": 12 + }, + "end": { + "line": 199, + "column": 20 + }, + "identifierName": "tagIndex" + }, + "name": "tagIndex" + }, + "computed": false + }, + "right": { + "type": "BinaryExpression", + "start": 4666, + "end": 4711, + "loc": { + "start": { + "line": 199, + "column": 23 + }, + "end": { + "line": 199, + "column": 68 + } + }, + "left": { + "type": "CallExpression", + "start": 4666, + "end": 4707, + "loc": { + "start": { + "line": 199, + "column": 23 + }, + "end": { + "line": 199, + "column": 64 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4666, + "end": 4702, + "loc": { + "start": { + "line": 199, + "column": 23 + }, + "end": { + "line": 199, + "column": 59 + } + }, + "object": { + "type": "CallExpression", + "start": 4666, + "end": 4697, + "loc": { + "start": { + "line": 199, + "column": 23 + }, + "end": { + "line": 199, + "column": 54 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4666, + "end": 4691, + "loc": { + "start": { + "line": 199, + "column": 23 + }, + "end": { + "line": 199, + "column": 48 + } + }, + "object": { + "type": "CallExpression", + "start": 4666, + "end": 4687, + "loc": { + "start": { + "line": 199, + "column": 23 + }, + "end": { + "line": 199, + "column": 44 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4666, + "end": 4680, + "loc": { + "start": { + "line": 199, + "column": 23 + }, + "end": { + "line": 199, + "column": 37 + } + }, + "object": { + "type": "Identifier", + "start": 4666, + "end": 4676, + "loc": { + "start": { + "line": 199, + "column": 23 + }, + "end": { + "line": 199, + "column": 33 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "property": { + "type": "Identifier", + "start": 4677, + "end": 4680, + "loc": { + "start": { + "line": 199, + "column": 34 + }, + "end": { + "line": 199, + "column": 37 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4681, + "end": 4686, + "loc": { + "start": { + "line": 199, + "column": 38 + }, + "end": { + "line": 199, + "column": 43 + }, + "identifierName": "index" + }, + "name": "index" + } + ] + }, + "property": { + "type": "Identifier", + "start": 4688, + "end": 4691, + "loc": { + "start": { + "line": 199, + "column": 45 + }, + "end": { + "line": 199, + "column": 48 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4692, + "end": 4696, + "loc": { + "start": { + "line": 199, + "column": 49 + }, + "end": { + "line": 199, + "column": 53 + }, + "identifierName": "name" + }, + "name": "name" + } + ] + }, + "property": { + "type": "Identifier", + "start": 4698, + "end": 4702, + "loc": { + "start": { + "line": 199, + "column": 55 + }, + "end": { + "line": 199, + "column": 59 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 4703, + "end": 4706, + "loc": { + "start": { + "line": 199, + "column": 60 + }, + "end": { + "line": 199, + "column": 63 + }, + "identifierName": "tag" + }, + "name": "tag" + } + ] + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 4710, + "end": 4711, + "loc": { + "start": { + "line": 199, + "column": 67 + }, + "end": { + "line": 199, + "column": 68 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 4716, + "end": 4759, + "loc": { + "start": { + "line": 200, + "column": 4 + }, + "end": { + "line": 200, + "column": 47 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4716, + "end": 4759, + "loc": { + "start": { + "line": 200, + "column": 4 + }, + "end": { + "line": 200, + "column": 47 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4716, + "end": 4740, + "loc": { + "start": { + "line": 200, + "column": 4 + }, + "end": { + "line": 200, + "column": 28 + } + }, + "object": { + "type": "MemberExpression", + "start": 4716, + "end": 4731, + "loc": { + "start": { + "line": 200, + "column": 4 + }, + "end": { + "line": 200, + "column": 19 + } + }, + "object": { + "type": "Identifier", + "start": 4716, + "end": 4719, + "loc": { + "start": { + "line": 200, + "column": 4 + }, + "end": { + "line": 200, + "column": 7 + }, + "identifierName": "tag" + }, + "name": "tag" + }, + "property": { + "type": "Identifier", + "start": 4720, + "end": 4731, + "loc": { + "start": { + "line": 200, + "column": 8 + }, + "end": { + "line": 200, + "column": 19 + }, + "identifierName": "inheritFrom" + }, + "name": "inheritFrom" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 4732, + "end": 4740, + "loc": { + "start": { + "line": 200, + "column": 20 + }, + "end": { + "line": 200, + "column": 28 + }, + "identifierName": "tagIndex" + }, + "name": "tagIndex" + }, + "computed": false + }, + "right": { + "type": "MemberExpression", + "start": 4743, + "end": 4759, + "loc": { + "start": { + "line": 200, + "column": 31 + }, + "end": { + "line": 200, + "column": 47 + } + }, + "object": { + "type": "Identifier", + "start": 4743, + "end": 4750, + "loc": { + "start": { + "line": 200, + "column": 31 + }, + "end": { + "line": 200, + "column": 38 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4751, + "end": 4759, + "loc": { + "start": { + "line": 200, + "column": 39 + }, + "end": { + "line": 200, + "column": 47 + }, + "identifierName": "tagIndex" + }, + "name": "tagIndex" + }, + "computed": false + } + } + }, + { + "type": "ExpressionStatement", + "start": 4764, + "end": 4781, + "loc": { + "start": { + "line": 201, + "column": 4 + }, + "end": { + "line": 201, + "column": 21 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4764, + "end": 4781, + "loc": { + "start": { + "line": 201, + "column": 4 + }, + "end": { + "line": 201, + "column": 21 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 4764, + "end": 4769, + "loc": { + "start": { + "line": 201, + "column": 4 + }, + "end": { + "line": 201, + "column": 9 + }, + "identifierName": "index" + }, + "name": "index" + }, + "right": { + "type": "BinaryExpression", + "start": 4772, + "end": 4781, + "loc": { + "start": { + "line": 201, + "column": 12 + }, + "end": { + "line": 201, + "column": 21 + } + }, + "left": { + "type": "Identifier", + "start": 4772, + "end": 4777, + "loc": { + "start": { + "line": 201, + "column": 12 + }, + "end": { + "line": 201, + "column": 17 + }, + "identifierName": "index" + }, + "name": "index" + }, + "operator": "+", + "right": { + "type": "NumericLiteral", + "start": 4780, + "end": 4781, + "loc": { + "start": { + "line": 201, + "column": 20 + }, + "end": { + "line": 201, + "column": 21 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + } + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 4790, + "end": 5006, + "loc": { + "start": { + "line": 204, + "column": 2 + }, + "end": { + "line": 213, + "column": 4 + } + }, + "expression": { + "type": "CallExpression", + "start": 4790, + "end": 5006, + "loc": { + "start": { + "line": 204, + "column": 2 + }, + "end": { + "line": 213, + "column": 4 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4790, + "end": 4799, + "loc": { + "start": { + "line": 204, + "column": 2 + }, + "end": { + "line": 204, + "column": 11 + } + }, + "object": { + "type": "Identifier", + "start": 4790, + "end": 4796, + "loc": { + "start": { + "line": 204, + "column": 2 + }, + "end": { + "line": 204, + "column": 8 + }, + "identifierName": "parser" + }, + "name": "parser" + }, + "property": { + "type": "Identifier", + "start": 4797, + "end": 4799, + "loc": { + "start": { + "line": 204, + "column": 9 + }, + "end": { + "line": 204, + "column": 11 + }, + "identifierName": "on" + }, + "name": "on" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 4800, + "end": 4806, + "loc": { + "start": { + "line": 204, + "column": 12 + }, + "end": { + "line": 204, + "column": 18 + } + }, + "extra": { + "rawValue": "text", + "raw": "'text'" + }, + "value": "text" + }, + { + "type": "ArrowFunctionExpression", + "start": 4808, + "end": 5005, + "loc": { + "start": { + "line": 204, + "column": 20 + }, + "end": { + "line": 213, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 4809, + "end": 4813, + "loc": { + "start": { + "line": 204, + "column": 21 + }, + "end": { + "line": 204, + "column": 25 + }, + "identifierName": "text" + }, + "name": "text" + } + ], + "body": { + "type": "BlockStatement", + "start": 4818, + "end": 5005, + "loc": { + "start": { + "line": 204, + "column": 30 + }, + "end": { + "line": 213, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 4824, + "end": 4923, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 208, + "column": 19 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4824, + "end": 4923, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 208, + "column": 19 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4824, + "end": 4916, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 208, + "column": 12 + } + }, + "object": { + "type": "MemberExpression", + "start": 4824, + "end": 4903, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 207, + "column": 42 + } + }, + "object": { + "type": "CallExpression", + "start": 4824, + "end": 4885, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 207, + "column": 24 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4824, + "end": 4871, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 207, + "column": 10 + } + }, + "object": { + "type": "CallExpression", + "start": 4824, + "end": 4860, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 206, + "column": 25 + } + }, + "callee": { + "type": "MemberExpression", + "start": 4824, + "end": 4845, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 206, + "column": 10 + } + }, + "object": { + "type": "Identifier", + "start": 4824, + "end": 4834, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 205, + "column": 14 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "property": { + "type": "Identifier", + "start": 4842, + "end": 4845, + "loc": { + "start": { + "line": 206, + "column": 7 + }, + "end": { + "line": 206, + "column": 10 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 4846, + "end": 4859, + "loc": { + "start": { + "line": 206, + "column": 11 + }, + "end": { + "line": 206, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 4846, + "end": 4853, + "loc": { + "start": { + "line": 206, + "column": 11 + }, + "end": { + "line": 206, + "column": 18 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4854, + "end": 4859, + "loc": { + "start": { + "line": 206, + "column": 19 + }, + "end": { + "line": 206, + "column": 24 + }, + "identifierName": "index" + }, + "name": "index" + }, + "computed": false + } + ] + }, + "property": { + "type": "Identifier", + "start": 4868, + "end": 4871, + "loc": { + "start": { + "line": 207, + "column": 7 + }, + "end": { + "line": 207, + "column": 10 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 4872, + "end": 4884, + "loc": { + "start": { + "line": 207, + "column": 11 + }, + "end": { + "line": 207, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 4872, + "end": 4879, + "loc": { + "start": { + "line": 207, + "column": 11 + }, + "end": { + "line": 207, + "column": 18 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4880, + "end": 4884, + "loc": { + "start": { + "line": 207, + "column": 19 + }, + "end": { + "line": 207, + "column": 23 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + } + ] + }, + "property": { + "type": "MemberExpression", + "start": 4886, + "end": 4902, + "loc": { + "start": { + "line": 207, + "column": 25 + }, + "end": { + "line": 207, + "column": 41 + } + }, + "object": { + "type": "Identifier", + "start": 4886, + "end": 4893, + "loc": { + "start": { + "line": 207, + "column": 25 + }, + "end": { + "line": 207, + "column": 32 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4894, + "end": 4902, + "loc": { + "start": { + "line": 207, + "column": 33 + }, + "end": { + "line": 207, + "column": 41 + }, + "identifierName": "tagIndex" + }, + "name": "tagIndex" + }, + "computed": false + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 4911, + "end": 4916, + "loc": { + "start": { + "line": 208, + "column": 7 + }, + "end": { + "line": 208, + "column": 12 + }, + "identifierName": "value" + }, + "name": "value" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 4919, + "end": 4923, + "loc": { + "start": { + "line": 208, + "column": 15 + }, + "end": { + "line": 208, + "column": 19 + }, + "identifierName": "text" + }, + "name": "text" + } + } + }, + { + "type": "ExpressionStatement", + "start": 4929, + "end": 4949, + "loc": { + "start": { + "line": 210, + "column": 4 + }, + "end": { + "line": 210, + "column": 24 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4929, + "end": 4949, + "loc": { + "start": { + "line": 210, + "column": 4 + }, + "end": { + "line": 210, + "column": 24 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4929, + "end": 4942, + "loc": { + "start": { + "line": 210, + "column": 4 + }, + "end": { + "line": 210, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 4929, + "end": 4936, + "loc": { + "start": { + "line": 210, + "column": 4 + }, + "end": { + "line": 210, + "column": 11 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4937, + "end": 4942, + "loc": { + "start": { + "line": 210, + "column": 12 + }, + "end": { + "line": 210, + "column": 17 + }, + "identifierName": "index" + }, + "name": "index" + }, + "computed": false + }, + "right": { + "type": "NullLiteral", + "start": 4945, + "end": 4949, + "loc": { + "start": { + "line": 210, + "column": 20 + }, + "end": { + "line": 210, + "column": 24 + } + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 4954, + "end": 4973, + "loc": { + "start": { + "line": 211, + "column": 4 + }, + "end": { + "line": 211, + "column": 23 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4954, + "end": 4973, + "loc": { + "start": { + "line": 211, + "column": 4 + }, + "end": { + "line": 211, + "column": 23 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4954, + "end": 4966, + "loc": { + "start": { + "line": 211, + "column": 4 + }, + "end": { + "line": 211, + "column": 16 + } + }, + "object": { + "type": "Identifier", + "start": 4954, + "end": 4961, + "loc": { + "start": { + "line": 211, + "column": 4 + }, + "end": { + "line": 211, + "column": 11 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4962, + "end": 4966, + "loc": { + "start": { + "line": 211, + "column": 12 + }, + "end": { + "line": 211, + "column": 16 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + }, + "right": { + "type": "NullLiteral", + "start": 4969, + "end": 4973, + "loc": { + "start": { + "line": 211, + "column": 19 + }, + "end": { + "line": 211, + "column": 23 + } + } + } + } + }, + { + "type": "ExpressionStatement", + "start": 4978, + "end": 5001, + "loc": { + "start": { + "line": 212, + "column": 4 + }, + "end": { + "line": 212, + "column": 27 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 4978, + "end": 5001, + "loc": { + "start": { + "line": 212, + "column": 4 + }, + "end": { + "line": 212, + "column": 27 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 4978, + "end": 4994, + "loc": { + "start": { + "line": 212, + "column": 4 + }, + "end": { + "line": 212, + "column": 20 + } + }, + "object": { + "type": "Identifier", + "start": 4978, + "end": 4985, + "loc": { + "start": { + "line": 212, + "column": 4 + }, + "end": { + "line": 212, + "column": 11 + }, + "identifierName": "lastTag" + }, + "name": "lastTag" + }, + "property": { + "type": "Identifier", + "start": 4986, + "end": 4994, + "loc": { + "start": { + "line": 212, + "column": 12 + }, + "end": { + "line": 212, + "column": 20 + }, + "identifierName": "tagIndex" + }, + "name": "tagIndex" + }, + "computed": false + }, + "right": { + "type": "NullLiteral", + "start": 4997, + "end": 5001, + "loc": { + "start": { + "line": 212, + "column": 23 + }, + "end": { + "line": 212, + "column": 27 + } + } + } + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 5010, + "end": 6065, + "loc": { + "start": { + "line": 215, + "column": 2 + }, + "end": { + "line": 254, + "column": 4 + } + }, + "expression": { + "type": "CallExpression", + "start": 5010, + "end": 6065, + "loc": { + "start": { + "line": 215, + "column": 2 + }, + "end": { + "line": 254, + "column": 4 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5010, + "end": 5019, + "loc": { + "start": { + "line": 215, + "column": 2 + }, + "end": { + "line": 215, + "column": 11 + } + }, + "object": { + "type": "Identifier", + "start": 5010, + "end": 5016, + "loc": { + "start": { + "line": 215, + "column": 2 + }, + "end": { + "line": 215, + "column": 8 + }, + "identifierName": "parser" + }, + "name": "parser" + }, + "property": { + "type": "Identifier", + "start": 5017, + "end": 5019, + "loc": { + "start": { + "line": 215, + "column": 9 + }, + "end": { + "line": 215, + "column": 11 + }, + "identifierName": "on" + }, + "name": "on" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 5020, + "end": 5030, + "loc": { + "start": { + "line": 215, + "column": 12 + }, + "end": { + "line": 215, + "column": 22 + } + }, + "extra": { + "rawValue": "closetag", + "raw": "'closetag'" + }, + "value": "closetag" + }, + { + "type": "ArrowFunctionExpression", + "start": 5032, + "end": 6064, + "loc": { + "start": { + "line": 215, + "column": 24 + }, + "end": { + "line": 254, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5033, + "end": 5037, + "loc": { + "start": { + "line": 215, + "column": 25 + }, + "end": { + "line": 215, + "column": 29 + }, + "identifierName": "name" + }, + "name": "name" + } + ], + "body": { + "type": "BlockStatement", + "start": 5042, + "end": 6064, + "loc": { + "start": { + "line": 215, + "column": 34 + }, + "end": { + "line": 254, + "column": 3 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5048, + "end": 5065, + "loc": { + "start": { + "line": 216, + "column": 4 + }, + "end": { + "line": 216, + "column": 21 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5048, + "end": 5065, + "loc": { + "start": { + "line": 216, + "column": 4 + }, + "end": { + "line": 216, + "column": 21 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 5048, + "end": 5053, + "loc": { + "start": { + "line": 216, + "column": 4 + }, + "end": { + "line": 216, + "column": 9 + }, + "identifierName": "index" + }, + "name": "index" + }, + "right": { + "type": "BinaryExpression", + "start": 5056, + "end": 5065, + "loc": { + "start": { + "line": 216, + "column": 12 + }, + "end": { + "line": 216, + "column": 21 + } + }, + "left": { + "type": "Identifier", + "start": 5056, + "end": 5061, + "loc": { + "start": { + "line": 216, + "column": 12 + }, + "end": { + "line": 216, + "column": 17 + }, + "identifierName": "index" + }, + "name": "index" + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 5064, + "end": 5065, + "loc": { + "start": { + "line": 216, + "column": 20 + }, + "end": { + "line": 216, + "column": 21 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + } + } + }, + { + "type": "IfStatement", + "start": 5071, + "end": 5976, + "loc": { + "start": { + "line": 218, + "column": 4 + }, + "end": { + "line": 249, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 5075, + "end": 5098, + "loc": { + "start": { + "line": 218, + "column": 8 + }, + "end": { + "line": 218, + "column": 31 + } + }, + "left": { + "type": "Identifier", + "start": 5075, + "end": 5080, + "loc": { + "start": { + "line": 218, + "column": 8 + }, + "end": { + "line": 218, + "column": 13 + }, + "identifierName": "index" + }, + "name": "index" + }, + "operator": "===", + "right": { + "type": "MemberExpression", + "start": 5085, + "end": 5098, + "loc": { + "start": { + "line": 218, + "column": 18 + }, + "end": { + "line": 218, + "column": 31 + } + }, + "object": { + "type": "Identifier", + "start": 5085, + "end": 5092, + "loc": { + "start": { + "line": 218, + "column": 18 + }, + "end": { + "line": 218, + "column": 25 + }, + "identifierName": "options" + }, + "name": "options" + }, + "property": { + "type": "Identifier", + "start": 5093, + "end": 5098, + "loc": { + "start": { + "line": 218, + "column": 26 + }, + "end": { + "line": 218, + "column": 31 + }, + "identifierName": "depth" + }, + "name": "depth" + }, + "computed": false + } + }, + "consequent": { + "type": "BlockStatement", + "start": 5100, + "end": 5976, + "loc": { + "start": { + "line": 218, + "column": 33 + }, + "end": { + "line": 249, + "column": 5 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 5198, + "end": 5244, + "loc": { + "start": { + "line": 223, + "column": 6 + }, + "end": { + "line": 223, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5202, + "end": 5244, + "loc": { + "start": { + "line": 223, + "column": 10 + }, + "end": { + "line": 223, + "column": 52 + } + }, + "id": { + "type": "Identifier", + "start": 5202, + "end": 5209, + "loc": { + "start": { + "line": 223, + "column": 10 + }, + "end": { + "line": 223, + "column": 17 + }, + "identifierName": "entries" + }, + "name": "entries", + "leadingComments": null + }, + "init": { + "type": "CallExpression", + "start": 5212, + "end": 5244, + "loc": { + "start": { + "line": 223, + "column": 20 + }, + "end": { + "line": 223, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5212, + "end": 5242, + "loc": { + "start": { + "line": 223, + "column": 20 + }, + "end": { + "line": 223, + "column": 50 + } + }, + "object": { + "type": "CallExpression", + "start": 5212, + "end": 5234, + "loc": { + "start": { + "line": 223, + "column": 20 + }, + "end": { + "line": 223, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5212, + "end": 5222, + "loc": { + "start": { + "line": 223, + "column": 20 + }, + "end": { + "line": 223, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 5212, + "end": 5217, + "loc": { + "start": { + "line": 223, + "column": 20 + }, + "end": { + "line": 223, + "column": 25 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 5218, + "end": 5222, + "loc": { + "start": { + "line": 223, + "column": 26 + }, + "end": { + "line": 223, + "column": 30 + }, + "identifierName": "from" + }, + "name": "from" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 5223, + "end": 5233, + "loc": { + "start": { + "line": 223, + "column": 31 + }, + "end": { + "line": 223, + "column": 41 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + } + ] + }, + "property": { + "type": "Identifier", + "start": 5235, + "end": 5242, + "loc": { + "start": { + "line": 223, + "column": 43 + }, + "end": { + "line": 223, + "column": 50 + }, + "identifierName": "reverse" + }, + "name": "reverse" + }, + "computed": false + }, + "arguments": [] + }, + "leadingComments": null + } + ], + "kind": "let", + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * must reorganize data to a single object\n * them emit it\n ", + "start": 5108, + "end": 5191, + "loc": { + "start": { + "line": 219, + "column": 6 + }, + "end": { + "line": 222, + "column": 8 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 5251, + "end": 5387, + "loc": { + "start": { + "line": 224, + "column": 6 + }, + "end": { + "line": 228, + "column": 7 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 5251, + "end": 5387, + "loc": { + "start": { + "line": 224, + "column": 6 + }, + "end": { + "line": 228, + "column": 7 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 5251, + "end": 5258, + "loc": { + "start": { + "line": 224, + "column": 6 + }, + "end": { + "line": 224, + "column": 13 + }, + "identifierName": "entries" + }, + "name": "entries" + }, + "right": { + "type": "CallExpression", + "start": 5261, + "end": 5387, + "loc": { + "start": { + "line": 224, + "column": 16 + }, + "end": { + "line": 228, + "column": 7 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5261, + "end": 5272, + "loc": { + "start": { + "line": 224, + "column": 16 + }, + "end": { + "line": 224, + "column": 27 + } + }, + "object": { + "type": "Identifier", + "start": 5261, + "end": 5268, + "loc": { + "start": { + "line": 224, + "column": 16 + }, + "end": { + "line": 224, + "column": 23 + }, + "identifierName": "entries" + }, + "name": "entries" + }, + "property": { + "type": "Identifier", + "start": 5269, + "end": 5272, + "loc": { + "start": { + "line": 224, + "column": 24 + }, + "end": { + "line": 224, + "column": 27 + }, + "identifierName": "map" + }, + "name": "map" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5282, + "end": 5379, + "loc": { + "start": { + "line": 225, + "column": 8 + }, + "end": { + "line": 227, + "column": 10 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "ArrayPattern", + "start": 5283, + "end": 5302, + "loc": { + "start": { + "line": 225, + "column": 9 + }, + "end": { + "line": 225, + "column": 28 + } + }, + "elements": [ + { + "type": "Identifier", + "start": 5284, + "end": 5292, + "loc": { + "start": { + "line": 225, + "column": 10 + }, + "end": { + "line": 225, + "column": 18 + }, + "identifierName": "intIndex" + }, + "name": "intIndex" + }, + { + "type": "Identifier", + "start": 5294, + "end": 5301, + "loc": { + "start": { + "line": 225, + "column": 20 + }, + "end": { + "line": 225, + "column": 27 + }, + "identifierName": "tagsMap" + }, + "name": "tagsMap" + } + ] + } + ], + "body": { + "type": "ObjectExpression", + "start": 5308, + "end": 5378, + "loc": { + "start": { + "line": 225, + "column": 34 + }, + "end": { + "line": 227, + "column": 9 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 5320, + "end": 5328, + "loc": { + "start": { + "line": 226, + "column": 10 + }, + "end": { + "line": 226, + "column": 18 + } + }, + "method": false, + "shorthand": true, + "computed": false, + "key": { + "type": "Identifier", + "start": 5320, + "end": 5328, + "loc": { + "start": { + "line": 226, + "column": 10 + }, + "end": { + "line": 226, + "column": 18 + }, + "identifierName": "intIndex" + }, + "name": "intIndex" + }, + "value": { + "type": "Identifier", + "start": 5320, + "end": 5328, + "loc": { + "start": { + "line": 226, + "column": 10 + }, + "end": { + "line": 226, + "column": 18 + }, + "identifierName": "intIndex" + }, + "name": "intIndex" + }, + "extra": { + "shorthand": true + } + }, + { + "type": "ObjectProperty", + "start": 5330, + "end": 5368, + "loc": { + "start": { + "line": 226, + "column": 20 + }, + "end": { + "line": 226, + "column": 58 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 5330, + "end": 5337, + "loc": { + "start": { + "line": 226, + "column": 20 + }, + "end": { + "line": 226, + "column": 27 + }, + "identifierName": "tagsMap" + }, + "name": "tagsMap" + }, + "value": { + "type": "CallExpression", + "start": 5339, + "end": 5368, + "loc": { + "start": { + "line": 226, + "column": 29 + }, + "end": { + "line": 226, + "column": 58 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5339, + "end": 5366, + "loc": { + "start": { + "line": 226, + "column": 29 + }, + "end": { + "line": 226, + "column": 56 + } + }, + "object": { + "type": "CallExpression", + "start": 5339, + "end": 5358, + "loc": { + "start": { + "line": 226, + "column": 29 + }, + "end": { + "line": 226, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5339, + "end": 5349, + "loc": { + "start": { + "line": 226, + "column": 29 + }, + "end": { + "line": 226, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 5339, + "end": 5344, + "loc": { + "start": { + "line": 226, + "column": 29 + }, + "end": { + "line": 226, + "column": 34 + }, + "identifierName": "Array" + }, + "name": "Array" + }, + "property": { + "type": "Identifier", + "start": 5345, + "end": 5349, + "loc": { + "start": { + "line": 226, + "column": 35 + }, + "end": { + "line": 226, + "column": 39 + }, + "identifierName": "from" + }, + "name": "from" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 5350, + "end": 5357, + "loc": { + "start": { + "line": 226, + "column": 40 + }, + "end": { + "line": 226, + "column": 47 + }, + "identifierName": "tagsMap" + }, + "name": "tagsMap" + } + ] + }, + "property": { + "type": "Identifier", + "start": 5359, + "end": 5366, + "loc": { + "start": { + "line": 226, + "column": 49 + }, + "end": { + "line": 226, + "column": 56 + }, + "identifierName": "reverse" + }, + "name": "reverse" + }, + "computed": false + }, + "arguments": [] + } + } + ], + "extra": { + "parenthesized": true, + "parenStart": 5307 + } + } + } + ] + } + } + }, + { + "type": "ExpressionStatement", + "start": 5394, + "end": 5407, + "loc": { + "start": { + "line": 229, + "column": 6 + }, + "end": { + "line": 229, + "column": 19 + } + }, + "expression": { + "type": "CallExpression", + "start": 5394, + "end": 5407, + "loc": { + "start": { + "line": 229, + "column": 6 + }, + "end": { + "line": 229, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5394, + "end": 5405, + "loc": { + "start": { + "line": 229, + "column": 6 + }, + "end": { + "line": 229, + "column": 17 + } + }, + "object": { + "type": "Identifier", + "start": 5394, + "end": 5401, + "loc": { + "start": { + "line": 229, + "column": 6 + }, + "end": { + "line": 229, + "column": 13 + }, + "identifierName": "entries" + }, + "name": "entries" + }, + "property": { + "type": "Identifier", + "start": 5402, + "end": 5405, + "loc": { + "start": { + "line": 229, + "column": 14 + }, + "end": { + "line": 229, + "column": 17 + }, + "identifierName": "pop" + }, + "name": "pop" + }, + "computed": false + }, + "arguments": [] + } + }, + { + "type": "ExpressionStatement", + "start": 5414, + "end": 5863, + "loc": { + "start": { + "line": 230, + "column": 6 + }, + "end": { + "line": 243, + "column": 8 + } + }, + "expression": { + "type": "CallExpression", + "start": 5414, + "end": 5863, + "loc": { + "start": { + "line": 230, + "column": 6 + }, + "end": { + "line": 243, + "column": 8 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5414, + "end": 5429, + "loc": { + "start": { + "line": 230, + "column": 6 + }, + "end": { + "line": 230, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 5414, + "end": 5421, + "loc": { + "start": { + "line": 230, + "column": 6 + }, + "end": { + "line": 230, + "column": 13 + }, + "identifierName": "entries" + }, + "name": "entries" + }, + "property": { + "type": "Identifier", + "start": 5422, + "end": 5429, + "loc": { + "start": { + "line": 230, + "column": 14 + }, + "end": { + "line": 230, + "column": 21 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5430, + "end": 5862, + "loc": { + "start": { + "line": 230, + "column": 22 + }, + "end": { + "line": 243, + "column": 7 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5430, + "end": 5435, + "loc": { + "start": { + "line": 230, + "column": 22 + }, + "end": { + "line": 230, + "column": 27 + }, + "identifierName": "entry" + }, + "name": "entry" + } + ], + "body": { + "type": "BlockStatement", + "start": 5439, + "end": 5862, + "loc": { + "start": { + "line": 230, + "column": 31 + }, + "end": { + "line": 243, + "column": 7 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 5449, + "end": 5524, + "loc": { + "start": { + "line": 231, + "column": 8 + }, + "end": { + "line": 231, + "column": 83 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5455, + "end": 5524, + "loc": { + "start": { + "line": 231, + "column": 14 + }, + "end": { + "line": 231, + "column": 83 + } + }, + "id": { + "type": "Identifier", + "start": 5455, + "end": 5463, + "loc": { + "start": { + "line": 231, + "column": 14 + }, + "end": { + "line": 231, + "column": 22 + }, + "identifierName": "intIndex" + }, + "name": "intIndex" + }, + "init": { + "type": "ConditionalExpression", + "start": 5466, + "end": 5524, + "loc": { + "start": { + "line": 231, + "column": 25 + }, + "end": { + "line": 231, + "column": 83 + } + }, + "test": { + "type": "BinaryExpression", + "start": 5466, + "end": 5486, + "loc": { + "start": { + "line": 231, + "column": 25 + }, + "end": { + "line": 231, + "column": 45 + } + }, + "left": { + "type": "MemberExpression", + "start": 5466, + "end": 5480, + "loc": { + "start": { + "line": 231, + "column": 25 + }, + "end": { + "line": 231, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 5466, + "end": 5471, + "loc": { + "start": { + "line": 231, + "column": 25 + }, + "end": { + "line": 231, + "column": 30 + }, + "identifierName": "entry" + }, + "name": "entry" + }, + "property": { + "type": "Identifier", + "start": 5472, + "end": 5480, + "loc": { + "start": { + "line": 231, + "column": 31 + }, + "end": { + "line": 231, + "column": 39 + }, + "identifierName": "intIndex" + }, + "name": "intIndex" + }, + "computed": false + }, + "operator": "===", + "right": { + "type": "NumericLiteral", + "start": 5485, + "end": 5486, + "loc": { + "start": { + "line": 231, + "column": 44 + }, + "end": { + "line": 231, + "column": 45 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "MemberExpression", + "start": 5489, + "end": 5503, + "loc": { + "start": { + "line": 231, + "column": 48 + }, + "end": { + "line": 231, + "column": 62 + } + }, + "object": { + "type": "Identifier", + "start": 5489, + "end": 5494, + "loc": { + "start": { + "line": 231, + "column": 48 + }, + "end": { + "line": 231, + "column": 53 + }, + "identifierName": "entry" + }, + "name": "entry" + }, + "property": { + "type": "Identifier", + "start": 5495, + "end": 5503, + "loc": { + "start": { + "line": 231, + "column": 54 + }, + "end": { + "line": 231, + "column": 62 + }, + "identifierName": "intIndex" + }, + "name": "intIndex" + }, + "computed": false + }, + "alternate": { + "type": "BinaryExpression", + "start": 5506, + "end": 5524, + "loc": { + "start": { + "line": 231, + "column": 65 + }, + "end": { + "line": 231, + "column": 83 + } + }, + "left": { + "type": "MemberExpression", + "start": 5506, + "end": 5520, + "loc": { + "start": { + "line": 231, + "column": 65 + }, + "end": { + "line": 231, + "column": 79 + } + }, + "object": { + "type": "Identifier", + "start": 5506, + "end": 5511, + "loc": { + "start": { + "line": 231, + "column": 65 + }, + "end": { + "line": 231, + "column": 70 + }, + "identifierName": "entry" + }, + "name": "entry" + }, + "property": { + "type": "Identifier", + "start": 5512, + "end": 5520, + "loc": { + "start": { + "line": 231, + "column": 71 + }, + "end": { + "line": 231, + "column": 79 + }, + "identifierName": "intIndex" + }, + "name": "intIndex" + }, + "computed": false + }, + "operator": "-", + "right": { + "type": "NumericLiteral", + "start": 5523, + "end": 5524, + "loc": { + "start": { + "line": 231, + "column": 82 + }, + "end": { + "line": 231, + "column": 83 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + } + } + } + } + ], + "kind": "const" + }, + { + "type": "VariableDeclaration", + "start": 5533, + "end": 5577, + "loc": { + "start": { + "line": 232, + "column": 8 + }, + "end": { + "line": 232, + "column": 52 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5539, + "end": 5577, + "loc": { + "start": { + "line": 232, + "column": 14 + }, + "end": { + "line": 232, + "column": 52 + } + }, + "id": { + "type": "Identifier", + "start": 5539, + "end": 5550, + "loc": { + "start": { + "line": 232, + "column": 14 + }, + "end": { + "line": 232, + "column": 25 + }, + "identifierName": "indexedTags" + }, + "name": "indexedTags" + }, + "init": { + "type": "CallExpression", + "start": 5553, + "end": 5577, + "loc": { + "start": { + "line": 232, + "column": 28 + }, + "end": { + "line": 232, + "column": 52 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5553, + "end": 5567, + "loc": { + "start": { + "line": 232, + "column": 28 + }, + "end": { + "line": 232, + "column": 42 + } + }, + "object": { + "type": "Identifier", + "start": 5553, + "end": 5563, + "loc": { + "start": { + "line": 232, + "column": 28 + }, + "end": { + "line": 232, + "column": 38 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "property": { + "type": "Identifier", + "start": 5564, + "end": 5567, + "loc": { + "start": { + "line": 232, + "column": 39 + }, + "end": { + "line": 232, + "column": 42 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 5568, + "end": 5576, + "loc": { + "start": { + "line": 232, + "column": 43 + }, + "end": { + "line": 232, + "column": 51 + }, + "identifierName": "intIndex" + }, + "name": "intIndex" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 5587, + "end": 5854, + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 242, + "column": 10 + } + }, + "expression": { + "type": "CallExpression", + "start": 5587, + "end": 5854, + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 242, + "column": 10 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5587, + "end": 5608, + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 29 + } + }, + "object": { + "type": "MemberExpression", + "start": 5587, + "end": 5600, + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 21 + } + }, + "object": { + "type": "Identifier", + "start": 5587, + "end": 5592, + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 13 + }, + "identifierName": "entry" + }, + "name": "entry" + }, + "property": { + "type": "Identifier", + "start": 5593, + "end": 5600, + "loc": { + "start": { + "line": 234, + "column": 14 + }, + "end": { + "line": 234, + "column": 21 + }, + "identifierName": "tagsMap" + }, + "name": "tagsMap" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5601, + "end": 5608, + "loc": { + "start": { + "line": 234, + "column": 22 + }, + "end": { + "line": 234, + "column": 29 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5609, + "end": 5853, + "loc": { + "start": { + "line": 234, + "column": 30 + }, + "end": { + "line": 242, + "column": 9 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5609, + "end": 5612, + "loc": { + "start": { + "line": 234, + "column": 30 + }, + "end": { + "line": 234, + "column": 33 + }, + "identifierName": "tag" + }, + "name": "tag" + } + ], + "body": { + "type": "BlockStatement", + "start": 5616, + "end": 5853, + "loc": { + "start": { + "line": 234, + "column": 37 + }, + "end": { + "line": 242, + "column": 9 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 5628, + "end": 5647, + "loc": { + "start": { + "line": 235, + "column": 10 + }, + "end": { + "line": 235, + "column": 29 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 5634, + "end": 5647, + "loc": { + "start": { + "line": 235, + "column": 16 + }, + "end": { + "line": 235, + "column": 29 + } + }, + "id": { + "type": "Identifier", + "start": 5634, + "end": 5638, + "loc": { + "start": { + "line": 235, + "column": 16 + }, + "end": { + "line": 235, + "column": 20 + }, + "identifierName": "list" + }, + "name": "list" + }, + "init": { + "type": "MemberExpression", + "start": 5641, + "end": 5647, + "loc": { + "start": { + "line": 235, + "column": 23 + }, + "end": { + "line": 235, + "column": 29 + } + }, + "object": { + "type": "Identifier", + "start": 5641, + "end": 5644, + "loc": { + "start": { + "line": 235, + "column": 23 + }, + "end": { + "line": 235, + "column": 26 + }, + "identifierName": "tag" + }, + "name": "tag" + }, + "property": { + "type": "NumericLiteral", + "start": 5645, + "end": 5646, + "loc": { + "start": { + "line": 235, + "column": 27 + }, + "end": { + "line": 235, + "column": 28 + } + }, + "extra": { + "rawValue": 1, + "raw": "1" + }, + "value": 1 + }, + "computed": true + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 5658, + "end": 5843, + "loc": { + "start": { + "line": 236, + "column": 10 + }, + "end": { + "line": 241, + "column": 12 + } + }, + "expression": { + "type": "CallExpression", + "start": 5658, + "end": 5843, + "loc": { + "start": { + "line": 236, + "column": 10 + }, + "end": { + "line": 241, + "column": 12 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5658, + "end": 5670, + "loc": { + "start": { + "line": 236, + "column": 10 + }, + "end": { + "line": 236, + "column": 22 + } + }, + "object": { + "type": "Identifier", + "start": 5658, + "end": 5662, + "loc": { + "start": { + "line": 236, + "column": 10 + }, + "end": { + "line": 236, + "column": 14 + }, + "identifierName": "list" + }, + "name": "list" + }, + "property": { + "type": "Identifier", + "start": 5663, + "end": 5670, + "loc": { + "start": { + "line": 236, + "column": 15 + }, + "end": { + "line": 236, + "column": 22 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5671, + "end": 5842, + "loc": { + "start": { + "line": 236, + "column": 23 + }, + "end": { + "line": 241, + "column": 11 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5671, + "end": 5684, + "loc": { + "start": { + "line": 236, + "column": 23 + }, + "end": { + "line": 236, + "column": 36 + }, + "identifierName": "tagToBePushed" + }, + "name": "tagToBePushed" + } + ], + "body": { + "type": "BlockStatement", + "start": 5688, + "end": 5842, + "loc": { + "start": { + "line": 236, + "column": 40 + }, + "end": { + "line": 241, + "column": 11 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 5702, + "end": 5830, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 240, + "column": 42 + } + }, + "expression": { + "type": "CallExpression", + "start": 5702, + "end": 5830, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 240, + "column": 42 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5702, + "end": 5807, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 240, + "column": 19 + } + }, + "object": { + "type": "MemberExpression", + "start": 5702, + "end": 5787, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 239, + "column": 19 + } + }, + "object": { + "type": "MemberExpression", + "start": 5702, + "end": 5767, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 238, + "column": 53 + } + }, + "object": { + "type": "CallExpression", + "start": 5702, + "end": 5764, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 238, + "column": 50 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5702, + "end": 5732, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 238, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 5702, + "end": 5713, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 237, + "column": 23 + }, + "identifierName": "indexedTags" + }, + "name": "indexedTags" + }, + "property": { + "type": "Identifier", + "start": 5729, + "end": 5732, + "loc": { + "start": { + "line": 238, + "column": 15 + }, + "end": { + "line": 238, + "column": 18 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 5733, + "end": 5763, + "loc": { + "start": { + "line": 238, + "column": 19 + }, + "end": { + "line": 238, + "column": 49 + } + }, + "object": { + "type": "MemberExpression", + "start": 5733, + "end": 5758, + "loc": { + "start": { + "line": 238, + "column": 19 + }, + "end": { + "line": 238, + "column": 44 + } + }, + "object": { + "type": "Identifier", + "start": 5733, + "end": 5746, + "loc": { + "start": { + "line": 238, + "column": 19 + }, + "end": { + "line": 238, + "column": 32 + }, + "identifierName": "tagToBePushed" + }, + "name": "tagToBePushed" + }, + "property": { + "type": "Identifier", + "start": 5747, + "end": 5758, + "loc": { + "start": { + "line": 238, + "column": 33 + }, + "end": { + "line": 238, + "column": 44 + }, + "identifierName": "inheritFrom" + }, + "name": "inheritFrom" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5759, + "end": 5763, + "loc": { + "start": { + "line": 238, + "column": 45 + }, + "end": { + "line": 238, + "column": 49 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + } + ] + }, + "property": { + "type": "NumericLiteral", + "start": 5765, + "end": 5766, + "loc": { + "start": { + "line": 238, + "column": 51 + }, + "end": { + "line": 238, + "column": 52 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + }, + "computed": true + }, + "property": { + "type": "Identifier", + "start": 5783, + "end": 5787, + "loc": { + "start": { + "line": 239, + "column": 15 + }, + "end": { + "line": 239, + "column": 19 + }, + "identifierName": "tags" + }, + "name": "tags" + }, + "computed": false + }, + "property": { + "type": "Identifier", + "start": 5803, + "end": 5807, + "loc": { + "start": { + "line": 240, + "column": 15 + }, + "end": { + "line": 240, + "column": 19 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 5808, + "end": 5829, + "loc": { + "start": { + "line": 240, + "column": 20 + }, + "end": { + "line": 240, + "column": 41 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5808, + "end": 5827, + "loc": { + "start": { + "line": 240, + "column": 20 + }, + "end": { + "line": 240, + "column": 39 + } + }, + "object": { + "type": "Identifier", + "start": 5808, + "end": 5821, + "loc": { + "start": { + "line": 240, + "column": 20 + }, + "end": { + "line": 240, + "column": 33 + }, + "identifierName": "tagToBePushed" + }, + "name": "tagToBePushed" + }, + "property": { + "type": "Identifier", + "start": 5822, + "end": 5827, + "loc": { + "start": { + "line": 240, + "column": 34 + }, + "end": { + "line": 240, + "column": 39 + }, + "identifierName": "reset" + }, + "name": "reset" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + } + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 5871, + "end": 5970, + "loc": { + "start": { + "line": 245, + "column": 6 + }, + "end": { + "line": 248, + "column": 49 + } + }, + "expression": { + "type": "CallExpression", + "start": 5871, + "end": 5970, + "loc": { + "start": { + "line": 245, + "column": 6 + }, + "end": { + "line": 248, + "column": 49 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5871, + "end": 5937, + "loc": { + "start": { + "line": 245, + "column": 6 + }, + "end": { + "line": 248, + "column": 16 + } + }, + "object": { + "type": "CallExpression", + "start": 5871, + "end": 5920, + "loc": { + "start": { + "line": 245, + "column": 6 + }, + "end": { + "line": 247, + "column": 18 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5871, + "end": 5914, + "loc": { + "start": { + "line": 245, + "column": 6 + }, + "end": { + "line": 247, + "column": 12 + } + }, + "object": { + "type": "CallExpression", + "start": 5871, + "end": 5901, + "loc": { + "start": { + "line": 245, + "column": 6 + }, + "end": { + "line": 246, + "column": 19 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5871, + "end": 5894, + "loc": { + "start": { + "line": 245, + "column": 6 + }, + "end": { + "line": 246, + "column": 12 + } + }, + "object": { + "type": "Identifier", + "start": 5871, + "end": 5881, + "loc": { + "start": { + "line": 245, + "column": 6 + }, + "end": { + "line": 245, + "column": 16 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "property": { + "type": "Identifier", + "start": 5891, + "end": 5894, + "loc": { + "start": { + "line": 246, + "column": 9 + }, + "end": { + "line": 246, + "column": 12 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 5895, + "end": 5900, + "loc": { + "start": { + "line": 246, + "column": 13 + }, + "end": { + "line": 246, + "column": 18 + }, + "identifierName": "index" + }, + "name": "index" + } + ] + }, + "property": { + "type": "Identifier", + "start": 5911, + "end": 5914, + "loc": { + "start": { + "line": 247, + "column": 9 + }, + "end": { + "line": 247, + "column": 12 + }, + "identifierName": "get" + }, + "name": "get" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 5915, + "end": 5919, + "loc": { + "start": { + "line": 247, + "column": 13 + }, + "end": { + "line": 247, + "column": 17 + }, + "identifierName": "name" + }, + "name": "name" + } + ] + }, + "property": { + "type": "Identifier", + "start": 5930, + "end": 5937, + "loc": { + "start": { + "line": 248, + "column": 9 + }, + "end": { + "line": 248, + "column": 16 + }, + "identifierName": "forEach" + }, + "name": "forEach" + }, + "computed": false + }, + "arguments": [ + { + "type": "ArrowFunctionExpression", + "start": 5938, + "end": 5969, + "loc": { + "start": { + "line": 248, + "column": 17 + }, + "end": { + "line": 248, + "column": 48 + } + }, + "id": null, + "generator": false, + "expression": true, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 5938, + "end": 5941, + "loc": { + "start": { + "line": 248, + "column": 17 + }, + "end": { + "line": 248, + "column": 20 + }, + "identifierName": "tag" + }, + "name": "tag" + } + ], + "body": { + "type": "CallExpression", + "start": 5945, + "end": 5969, + "loc": { + "start": { + "line": 248, + "column": 24 + }, + "end": { + "line": 248, + "column": 48 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5945, + "end": 5956, + "loc": { + "start": { + "line": 248, + "column": 24 + }, + "end": { + "line": 248, + "column": 35 + } + }, + "object": { + "type": "Identifier", + "start": 5945, + "end": 5951, + "loc": { + "start": { + "line": 248, + "column": 24 + }, + "end": { + "line": 248, + "column": 30 + }, + "identifierName": "toEmit" + }, + "name": "toEmit" + }, + "property": { + "type": "Identifier", + "start": 5952, + "end": 5956, + "loc": { + "start": { + "line": 248, + "column": 31 + }, + "end": { + "line": 248, + "column": 35 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 5957, + "end": 5968, + "loc": { + "start": { + "line": 248, + "column": 36 + }, + "end": { + "line": 248, + "column": 47 + } + }, + "callee": { + "type": "MemberExpression", + "start": 5957, + "end": 5966, + "loc": { + "start": { + "line": 248, + "column": 36 + }, + "end": { + "line": 248, + "column": 45 + } + }, + "object": { + "type": "Identifier", + "start": 5957, + "end": 5960, + "loc": { + "start": { + "line": 248, + "column": 36 + }, + "end": { + "line": 248, + "column": 39 + }, + "identifierName": "tag" + }, + "name": "tag" + }, + "property": { + "type": "Identifier", + "start": 5961, + "end": 5966, + "loc": { + "start": { + "line": 248, + "column": 40 + }, + "end": { + "line": 248, + "column": 45 + }, + "identifierName": "reset" + }, + "name": "reset" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "IfStatement", + "start": 5982, + "end": 6060, + "loc": { + "start": { + "line": 251, + "column": 4 + }, + "end": { + "line": 253, + "column": 5 + } + }, + "test": { + "type": "BinaryExpression", + "start": 5986, + "end": 6022, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 44 + } + }, + "left": { + "type": "Identifier", + "start": 5986, + "end": 5990, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 12 + }, + "identifierName": "name" + }, + "name": "name" + }, + "operator": "===", + "right": { + "type": "CallExpression", + "start": 5995, + "end": 6022, + "loc": { + "start": { + "line": 251, + "column": 17 + }, + "end": { + "line": 251, + "column": 44 + } + }, + "callee": { + "type": "Identifier", + "start": 5995, + "end": 6010, + "loc": { + "start": { + "line": 251, + "column": 17 + }, + "end": { + "line": 251, + "column": 32 + }, + "identifierName": "getFirstTagName" + }, + "name": "getFirstTagName" + }, + "arguments": [ + { + "type": "Identifier", + "start": 6011, + "end": 6021, + "loc": { + "start": { + "line": 251, + "column": 33 + }, + "end": { + "line": 251, + "column": 43 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + } + ] + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6024, + "end": 6060, + "loc": { + "start": { + "line": 251, + "column": 46 + }, + "end": { + "line": 253, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6032, + "end": 6054, + "loc": { + "start": { + "line": 252, + "column": 6 + }, + "end": { + "line": 252, + "column": 28 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6032, + "end": 6054, + "loc": { + "start": { + "line": 252, + "column": 6 + }, + "end": { + "line": 252, + "column": 28 + } + }, + "operator": "=", + "left": { + "type": "Identifier", + "start": 6032, + "end": 6042, + "loc": { + "start": { + "line": 252, + "column": 6 + }, + "end": { + "line": 252, + "column": 16 + }, + "identifierName": "parsedTags" + }, + "name": "parsedTags" + }, + "right": { + "type": "NewExpression", + "start": 6045, + "end": 6054, + "loc": { + "start": { + "line": 252, + "column": 19 + }, + "end": { + "line": 252, + "column": 28 + } + }, + "callee": { + "type": "Identifier", + "start": 6049, + "end": 6052, + "loc": { + "start": { + "line": 252, + "column": 23 + }, + "end": { + "line": 252, + "column": 26 + }, + "identifierName": "Map" + }, + "name": "Map" + }, + "arguments": [] + } + } + } + ], + "directives": [] + }, + "alternate": null + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 6069, + "end": 6172, + "loc": { + "start": { + "line": 256, + "column": 2 + }, + "end": { + "line": 259, + "column": 4 + } + }, + "expression": { + "type": "CallExpression", + "start": 6069, + "end": 6172, + "loc": { + "start": { + "line": 256, + "column": 2 + }, + "end": { + "line": 259, + "column": 4 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6069, + "end": 6078, + "loc": { + "start": { + "line": 256, + "column": 2 + }, + "end": { + "line": 256, + "column": 11 + } + }, + "object": { + "type": "Identifier", + "start": 6069, + "end": 6075, + "loc": { + "start": { + "line": 256, + "column": 2 + }, + "end": { + "line": 256, + "column": 8 + }, + "identifierName": "parser" + }, + "name": "parser" + }, + "property": { + "type": "Identifier", + "start": 6076, + "end": 6078, + "loc": { + "start": { + "line": 256, + "column": 9 + }, + "end": { + "line": 256, + "column": 11 + }, + "identifierName": "on" + }, + "name": "on" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 6079, + "end": 6086, + "loc": { + "start": { + "line": 256, + "column": 12 + }, + "end": { + "line": 256, + "column": 19 + } + }, + "extra": { + "rawValue": "cdata", + "raw": "'cdata'" + }, + "value": "cdata" + }, + { + "type": "ArrowFunctionExpression", + "start": 6088, + "end": 6171, + "loc": { + "start": { + "line": 256, + "column": 21 + }, + "end": { + "line": 259, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6088, + "end": 6093, + "loc": { + "start": { + "line": 256, + "column": 21 + }, + "end": { + "line": 256, + "column": 26 + }, + "identifierName": "cdata" + }, + "name": "cdata" + } + ], + "body": { + "type": "BlockStatement", + "start": 6097, + "end": 6171, + "loc": { + "start": { + "line": 256, + "column": 30 + }, + "end": { + "line": 259, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 6103, + "end": 6144, + "loc": { + "start": { + "line": 257, + "column": 4 + }, + "end": { + "line": 257, + "column": 45 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6109, + "end": 6144, + "loc": { + "start": { + "line": 257, + "column": 10 + }, + "end": { + "line": 257, + "column": 45 + } + }, + "id": { + "type": "Identifier", + "start": 6109, + "end": 6114, + "loc": { + "start": { + "line": 257, + "column": 10 + }, + "end": { + "line": 257, + "column": 15 + }, + "identifierName": "CData" + }, + "name": "CData" + }, + "init": { + "type": "NewExpression", + "start": 6117, + "end": 6144, + "loc": { + "start": { + "line": 257, + "column": 18 + }, + "end": { + "line": 257, + "column": 45 + } + }, + "callee": { + "type": "Identifier", + "start": 6121, + "end": 6137, + "loc": { + "start": { + "line": 257, + "column": 22 + }, + "end": { + "line": 257, + "column": 38 + }, + "identifierName": "XmlCharacterData" + }, + "name": "XmlCharacterData" + }, + "arguments": [ + { + "type": "Identifier", + "start": 6138, + "end": 6143, + "loc": { + "start": { + "line": 257, + "column": 39 + }, + "end": { + "line": 257, + "column": 44 + }, + "identifierName": "cdata" + }, + "name": "cdata" + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 6149, + "end": 6167, + "loc": { + "start": { + "line": 258, + "column": 4 + }, + "end": { + "line": 258, + "column": 22 + } + }, + "expression": { + "type": "CallExpression", + "start": 6149, + "end": 6167, + "loc": { + "start": { + "line": 258, + "column": 4 + }, + "end": { + "line": 258, + "column": 22 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6149, + "end": 6160, + "loc": { + "start": { + "line": 258, + "column": 4 + }, + "end": { + "line": 258, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 6149, + "end": 6155, + "loc": { + "start": { + "line": 258, + "column": 4 + }, + "end": { + "line": 258, + "column": 10 + }, + "identifierName": "toEmit" + }, + "name": "toEmit" + }, + "property": { + "type": "Identifier", + "start": 6156, + "end": 6160, + "loc": { + "start": { + "line": 258, + "column": 11 + }, + "end": { + "line": 258, + "column": 15 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6161, + "end": 6166, + "loc": { + "start": { + "line": 258, + "column": 16 + }, + "end": { + "line": 258, + "column": 21 + }, + "identifierName": "CData" + }, + "name": "CData" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ExpressionStatement", + "start": 6176, + "end": 6327, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 264, + "column": 4 + } + }, + "expression": { + "type": "CallExpression", + "start": 6176, + "end": 6327, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 264, + "column": 4 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6176, + "end": 6185, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 261, + "column": 11 + } + }, + "object": { + "type": "Identifier", + "start": 6176, + "end": 6182, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 261, + "column": 8 + }, + "identifierName": "parser" + }, + "name": "parser" + }, + "property": { + "type": "Identifier", + "start": 6183, + "end": 6185, + "loc": { + "start": { + "line": 261, + "column": 9 + }, + "end": { + "line": 261, + "column": 11 + }, + "identifierName": "on" + }, + "name": "on" + }, + "computed": false + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 6186, + "end": 6199, + "loc": { + "start": { + "line": 261, + "column": 12 + }, + "end": { + "line": 261, + "column": 25 + } + }, + "extra": { + "rawValue": "instruction", + "raw": "'instruction'" + }, + "value": "instruction" + }, + { + "type": "ArrowFunctionExpression", + "start": 6201, + "end": 6326, + "loc": { + "start": { + "line": 261, + "column": 27 + }, + "end": { + "line": 264, + "column": 3 + } + }, + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6202, + "end": 6206, + "loc": { + "start": { + "line": 261, + "column": 28 + }, + "end": { + "line": 261, + "column": 32 + }, + "identifierName": "name" + }, + "name": "name" + }, + { + "type": "Identifier", + "start": 6208, + "end": 6213, + "loc": { + "start": { + "line": 261, + "column": 34 + }, + "end": { + "line": 261, + "column": 39 + }, + "identifierName": "attrs" + }, + "name": "attrs" + } + ], + "body": { + "type": "BlockStatement", + "start": 6218, + "end": 6326, + "loc": { + "start": { + "line": 261, + "column": 44 + }, + "end": { + "line": 264, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 6224, + "end": 6293, + "loc": { + "start": { + "line": 262, + "column": 4 + }, + "end": { + "line": 262, + "column": 73 + } + }, + "declarations": [ + { + "type": "VariableDeclarator", + "start": 6230, + "end": 6293, + "loc": { + "start": { + "line": 262, + "column": 10 + }, + "end": { + "line": 262, + "column": 73 + } + }, + "id": { + "type": "Identifier", + "start": 6230, + "end": 6241, + "loc": { + "start": { + "line": 262, + "column": 10 + }, + "end": { + "line": 262, + "column": 21 + }, + "identifierName": "declaration" + }, + "name": "declaration" + }, + "init": { + "type": "NewExpression", + "start": 6244, + "end": 6293, + "loc": { + "start": { + "line": 262, + "column": 24 + }, + "end": { + "line": 262, + "column": 73 + } + }, + "callee": { + "type": "Identifier", + "start": 6248, + "end": 6262, + "loc": { + "start": { + "line": 262, + "column": 28 + }, + "end": { + "line": 262, + "column": 42 + }, + "identifierName": "XmlDeclaration" + }, + "name": "XmlDeclaration" + }, + "arguments": [ + { + "type": "MemberExpression", + "start": 6263, + "end": 6276, + "loc": { + "start": { + "line": 262, + "column": 43 + }, + "end": { + "line": 262, + "column": 56 + } + }, + "object": { + "type": "Identifier", + "start": 6263, + "end": 6268, + "loc": { + "start": { + "line": 262, + "column": 43 + }, + "end": { + "line": 262, + "column": 48 + }, + "identifierName": "attrs" + }, + "name": "attrs" + }, + "property": { + "type": "Identifier", + "start": 6269, + "end": 6276, + "loc": { + "start": { + "line": 262, + "column": 49 + }, + "end": { + "line": 262, + "column": 56 + }, + "identifierName": "version" + }, + "name": "version" + }, + "computed": false + }, + { + "type": "MemberExpression", + "start": 6278, + "end": 6292, + "loc": { + "start": { + "line": 262, + "column": 58 + }, + "end": { + "line": 262, + "column": 72 + } + }, + "object": { + "type": "Identifier", + "start": 6278, + "end": 6283, + "loc": { + "start": { + "line": 262, + "column": 58 + }, + "end": { + "line": 262, + "column": 63 + }, + "identifierName": "attrs" + }, + "name": "attrs" + }, + "property": { + "type": "Identifier", + "start": 6284, + "end": 6292, + "loc": { + "start": { + "line": 262, + "column": 64 + }, + "end": { + "line": 262, + "column": 72 + }, + "identifierName": "encoding" + }, + "name": "encoding" + }, + "computed": false + } + ] + } + } + ], + "kind": "const" + }, + { + "type": "ExpressionStatement", + "start": 6298, + "end": 6322, + "loc": { + "start": { + "line": 263, + "column": 4 + }, + "end": { + "line": 263, + "column": 28 + } + }, + "expression": { + "type": "CallExpression", + "start": 6298, + "end": 6322, + "loc": { + "start": { + "line": 263, + "column": 4 + }, + "end": { + "line": 263, + "column": 28 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6298, + "end": 6309, + "loc": { + "start": { + "line": 263, + "column": 4 + }, + "end": { + "line": 263, + "column": 15 + } + }, + "object": { + "type": "Identifier", + "start": 6298, + "end": 6304, + "loc": { + "start": { + "line": 263, + "column": 4 + }, + "end": { + "line": 263, + "column": 10 + }, + "identifierName": "toEmit" + }, + "name": "toEmit" + }, + "property": { + "type": "Identifier", + "start": 6305, + "end": 6309, + "loc": { + "start": { + "line": 263, + "column": 11 + }, + "end": { + "line": 263, + "column": 15 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "Identifier", + "start": 6310, + "end": 6321, + "loc": { + "start": { + "line": 263, + "column": 16 + }, + "end": { + "line": 263, + "column": 27 + }, + "identifierName": "declaration" + }, + "name": "declaration" + } + ] + } + } + ], + "directives": [] + } + } + ] + } + }, + { + "type": "ReturnStatement", + "start": 6331, + "end": 6549, + "loc": { + "start": { + "line": 266, + "column": 2 + }, + "end": { + "line": 277, + "column": 4 + } + }, + "argument": { + "type": "NewExpression", + "start": 6338, + "end": 6549, + "loc": { + "start": { + "line": 266, + "column": 9 + }, + "end": { + "line": 277, + "column": 4 + } + }, + "callee": { + "type": "Identifier", + "start": 6342, + "end": 6351, + "loc": { + "start": { + "line": 266, + "column": 13 + }, + "end": { + "line": 266, + "column": 22 + }, + "identifierName": "Transform" + }, + "name": "Transform" + }, + "arguments": [ + { + "type": "ObjectExpression", + "start": 6352, + "end": 6548, + "loc": { + "start": { + "line": 266, + "column": 23 + }, + "end": { + "line": 277, + "column": 3 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 6358, + "end": 6374, + "loc": { + "start": { + "line": 267, + "column": 4 + }, + "end": { + "line": 267, + "column": 20 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6358, + "end": 6368, + "loc": { + "start": { + "line": 267, + "column": 4 + }, + "end": { + "line": 267, + "column": 14 + }, + "identifierName": "objectMode" + }, + "name": "objectMode" + }, + "value": { + "type": "BooleanLiteral", + "start": 6370, + "end": 6374, + "loc": { + "start": { + "line": 267, + "column": 16 + }, + "end": { + "line": 267, + "column": 20 + } + }, + "value": true + } + }, + { + "type": "ObjectMethod", + "start": 6380, + "end": 6544, + "loc": { + "start": { + "line": 268, + "column": 4 + }, + "end": { + "line": 276, + "column": 5 + } + }, + "method": true, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 6380, + "end": 6389, + "loc": { + "start": { + "line": 268, + "column": 4 + }, + "end": { + "line": 268, + "column": 13 + }, + "identifierName": "transform" + }, + "name": "transform" + }, + "kind": "method", + "id": null, + "generator": false, + "expression": false, + "async": false, + "params": [ + { + "type": "Identifier", + "start": 6391, + "end": 6396, + "loc": { + "start": { + "line": 268, + "column": 15 + }, + "end": { + "line": 268, + "column": 20 + }, + "identifierName": "chunk" + }, + "name": "chunk" + }, + { + "type": "Identifier", + "start": 6398, + "end": 6406, + "loc": { + "start": { + "line": 268, + "column": 22 + }, + "end": { + "line": 268, + "column": 30 + }, + "identifierName": "encoding" + }, + "name": "encoding" + }, + { + "type": "Identifier", + "start": 6408, + "end": 6411, + "loc": { + "start": { + "line": 268, + "column": 32 + }, + "end": { + "line": 268, + "column": 35 + }, + "identifierName": "ack" + }, + "name": "ack" + } + ], + "body": { + "type": "BlockStatement", + "start": 6413, + "end": 6544, + "loc": { + "start": { + "line": 268, + "column": 37 + }, + "end": { + "line": 276, + "column": 5 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6421, + "end": 6451, + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 36 + } + }, + "expression": { + "type": "CallExpression", + "start": 6421, + "end": 6451, + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 36 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6421, + "end": 6433, + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 6421, + "end": 6427, + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 12 + }, + "identifierName": "parser" + }, + "name": "parser" + }, + "property": { + "type": "Identifier", + "start": 6428, + "end": 6433, + "loc": { + "start": { + "line": 269, + "column": 13 + }, + "end": { + "line": 269, + "column": 18 + }, + "identifierName": "write" + }, + "name": "write" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 6434, + "end": 6450, + "loc": { + "start": { + "line": 269, + "column": 19 + }, + "end": { + "line": 269, + "column": 35 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6434, + "end": 6448, + "loc": { + "start": { + "line": 269, + "column": 19 + }, + "end": { + "line": 269, + "column": 33 + } + }, + "object": { + "type": "Identifier", + "start": 6434, + "end": 6439, + "loc": { + "start": { + "line": 269, + "column": 19 + }, + "end": { + "line": 269, + "column": 24 + }, + "identifierName": "chunk" + }, + "name": "chunk" + }, + "property": { + "type": "Identifier", + "start": 6440, + "end": 6448, + "loc": { + "start": { + "line": 269, + "column": 25 + }, + "end": { + "line": 269, + "column": 33 + }, + "identifierName": "toString" + }, + "name": "toString" + }, + "computed": false + }, + "arguments": [] + } + ] + } + }, + { + "type": "IfStatement", + "start": 6459, + "end": 6525, + "loc": { + "start": { + "line": 271, + "column": 6 + }, + "end": { + "line": 273, + "column": 7 + } + }, + "test": { + "type": "BinaryExpression", + "start": 6463, + "end": 6480, + "loc": { + "start": { + "line": 271, + "column": 10 + }, + "end": { + "line": 271, + "column": 27 + } + }, + "left": { + "type": "MemberExpression", + "start": 6463, + "end": 6476, + "loc": { + "start": { + "line": 271, + "column": 10 + }, + "end": { + "line": 271, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 6463, + "end": 6469, + "loc": { + "start": { + "line": 271, + "column": 10 + }, + "end": { + "line": 271, + "column": 16 + }, + "identifierName": "toEmit" + }, + "name": "toEmit" + }, + "property": { + "type": "Identifier", + "start": 6470, + "end": 6476, + "loc": { + "start": { + "line": 271, + "column": 17 + }, + "end": { + "line": 271, + "column": 23 + }, + "identifierName": "length" + }, + "name": "length" + }, + "computed": false + }, + "operator": ">", + "right": { + "type": "NumericLiteral", + "start": 6479, + "end": 6480, + "loc": { + "start": { + "line": 271, + "column": 26 + }, + "end": { + "line": 271, + "column": 27 + } + }, + "extra": { + "rawValue": 0, + "raw": "0" + }, + "value": 0 + } + }, + "consequent": { + "type": "BlockStatement", + "start": 6482, + "end": 6525, + "loc": { + "start": { + "line": 271, + "column": 29 + }, + "end": { + "line": 273, + "column": 7 + } + }, + "body": [ + { + "type": "ExpressionStatement", + "start": 6492, + "end": 6517, + "loc": { + "start": { + "line": 272, + "column": 8 + }, + "end": { + "line": 272, + "column": 33 + } + }, + "expression": { + "type": "CallExpression", + "start": 6492, + "end": 6517, + "loc": { + "start": { + "line": 272, + "column": 8 + }, + "end": { + "line": 272, + "column": 33 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6492, + "end": 6501, + "loc": { + "start": { + "line": 272, + "column": 8 + }, + "end": { + "line": 272, + "column": 17 + } + }, + "object": { + "type": "ThisExpression", + "start": 6492, + "end": 6496, + "loc": { + "start": { + "line": 272, + "column": 8 + }, + "end": { + "line": 272, + "column": 12 + } + } + }, + "property": { + "type": "Identifier", + "start": 6497, + "end": 6501, + "loc": { + "start": { + "line": 272, + "column": 13 + }, + "end": { + "line": 272, + "column": 17 + }, + "identifierName": "push" + }, + "name": "push" + }, + "computed": false + }, + "arguments": [ + { + "type": "CallExpression", + "start": 6502, + "end": 6516, + "loc": { + "start": { + "line": 272, + "column": 18 + }, + "end": { + "line": 272, + "column": 32 + } + }, + "callee": { + "type": "MemberExpression", + "start": 6502, + "end": 6514, + "loc": { + "start": { + "line": 272, + "column": 18 + }, + "end": { + "line": 272, + "column": 30 + } + }, + "object": { + "type": "Identifier", + "start": 6502, + "end": 6508, + "loc": { + "start": { + "line": 272, + "column": 18 + }, + "end": { + "line": 272, + "column": 24 + }, + "identifierName": "toEmit" + }, + "name": "toEmit" + }, + "property": { + "type": "Identifier", + "start": 6509, + "end": 6514, + "loc": { + "start": { + "line": 272, + "column": 25 + }, + "end": { + "line": 272, + "column": 30 + }, + "identifierName": "shift" + }, + "name": "shift" + }, + "computed": false + }, + "arguments": [] + } + ] + } + } + ], + "directives": [] + }, + "alternate": null + }, + { + "type": "ExpressionStatement", + "start": 6533, + "end": 6538, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 11 + } + }, + "expression": { + "type": "CallExpression", + "start": 6533, + "end": 6538, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 11 + } + }, + "callee": { + "type": "Identifier", + "start": 6533, + "end": 6536, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 9 + }, + "identifierName": "ack" + }, + "name": "ack" + }, + "arguments": [] + } + } + ], + "directives": [] + } + } + ] + } + ] + } + } + ], + "directives": [] + } + }, + "leadingComments": null + }, + "leadingComments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.pipeParse - stream\n *\n * @param {object} [options]\n * @param {Number} [options.depth=0]\n ", + "start": 3231, + "end": 3343, + "loc": { + "start": { + "line": 129, + "column": 0 + }, + "end": { + "line": 134, + "column": 3 + } + } + } + ] + }, + { + "type": "ExpressionStatement", + "start": 6553, + "end": 6573, + "loc": { + "start": { + "line": 280, + "column": 0 + }, + "end": { + "line": 280, + "column": 20 + } + }, + "expression": { + "type": "AssignmentExpression", + "start": 6553, + "end": 6573, + "loc": { + "start": { + "line": 280, + "column": 0 + }, + "end": { + "line": 280, + "column": 20 + } + }, + "operator": "=", + "left": { + "type": "MemberExpression", + "start": 6553, + "end": 6567, + "loc": { + "start": { + "line": 280, + "column": 0 + }, + "end": { + "line": 280, + "column": 14 + } + }, + "object": { + "type": "Identifier", + "start": 6553, + "end": 6559, + "loc": { + "start": { + "line": 280, + "column": 0 + }, + "end": { + "line": 280, + "column": 6 + }, + "identifierName": "module" + }, + "name": "module" + }, + "property": { + "type": "Identifier", + "start": 6560, + "end": 6567, + "loc": { + "start": { + "line": 280, + "column": 7 + }, + "end": { + "line": 280, + "column": 14 + }, + "identifierName": "exports" + }, + "name": "exports" + }, + "computed": false + }, + "right": { + "type": "Identifier", + "start": 6570, + "end": 6573, + "loc": { + "start": { + "line": 280, + "column": 17 + }, + "end": { + "line": 280, + "column": 20 + }, + "identifierName": "Xml" + }, + "name": "Xml" + } + } + } + ], + "directives": [] + }, + "comments": [ + { + "type": "CommentBlock", + "value": "*\n * Xml - Support for XML filetype\n *\n * @constructor\n ", + "start": 342, + "end": 402, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.setXmlDeclaration - sets XML declaration tag on first position of array or object\n *\n * @param {(object|array)} data - input data\n * @returns {(object|array)}\n ", + "start": 942, + "end": 1125, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.stringify - receives * valid JS data and returns it as XML\n *\n * @param {(object|array)} data\n * @param {Object} options - options for turning JS data into XML\n * @param {boolean} options.ignoreDeclaration - don't output XML version tag, default is true\n * @returns {string}\n ", + "start": 1349, + "end": 1648, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.parse - receives an XML string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @param {object} options.showDeclaration - force parsing XML declaration tag\n * @param {boolean} options.verbose - makes xml2js return non compact mode, defaults to false\n * @param {boolean} options.experimentalXmlTag - use experimental XmlTag prototype, default is false\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1941, + "end": 2421, + "loc": { + "start": { + "line": 80, + "column": 0 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.toXmlTag - turns xml2js non-compact result into XmlTag and XmlResult\n *\n * @param {object} xml2jsResult\n * @throws {NotImplemented}\n ", + "start": 2982, + "end": 3138, + "loc": { + "start": { + "line": 119, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.pipeParse - stream\n *\n * @param {object} [options]\n * @param {Number} [options.depth=0]\n ", + "start": 3231, + "end": 3343, + "loc": { + "start": { + "line": 129, + "column": 0 + }, + "end": { + "line": 134, + "column": 3 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * must reorganize data to a single object\n * them emit it\n ", + "start": 5108, + "end": 5191, + "loc": { + "start": { + "line": 219, + "column": 6 + }, + "end": { + "line": 222, + "column": 8 + } + } + } + ], + "tokens": [ + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 0, + "end": 5, + "loc": { + "start": { + "line": 1, + "column": 0 + }, + "end": { + "line": 1, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Base", + "start": 6, + "end": 10, + "loc": { + "start": { + "line": 1, + "column": 6 + }, + "end": { + "line": 1, + "column": 10 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 11, + "end": 12, + "loc": { + "start": { + "line": 1, + "column": 11 + }, + "end": { + "line": 1, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 13, + "end": 20, + "loc": { + "start": { + "line": 1, + "column": 13 + }, + "end": { + "line": 1, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 20, + "end": 21, + "loc": { + "start": { + "line": 1, + "column": 20 + }, + "end": { + "line": 1, + "column": 21 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../Base", + "start": 21, + "end": 30, + "loc": { + "start": { + "line": 1, + "column": 21 + }, + "end": { + "line": 1, + "column": 30 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 30, + "end": 31, + "loc": { + "start": { + "line": 1, + "column": 30 + }, + "end": { + "line": 1, + "column": 31 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 32, + "end": 37, + "loc": { + "start": { + "line": 2, + "column": 0 + }, + "end": { + "line": 2, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ParserError", + "start": 38, + "end": 49, + "loc": { + "start": { + "line": 2, + "column": 6 + }, + "end": { + "line": 2, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 50, + "end": 51, + "loc": { + "start": { + "line": 2, + "column": 18 + }, + "end": { + "line": 2, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 52, + "end": 59, + "loc": { + "start": { + "line": 2, + "column": 20 + }, + "end": { + "line": 2, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 59, + "end": 60, + "loc": { + "start": { + "line": 2, + "column": 27 + }, + "end": { + "line": 2, + "column": 28 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../errors/ParserError", + "start": 60, + "end": 86, + "loc": { + "start": { + "line": 2, + "column": 28 + }, + "end": { + "line": 2, + "column": 54 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 86, + "end": 87, + "loc": { + "start": { + "line": 2, + "column": 54 + }, + "end": { + "line": 2, + "column": 55 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 88, + "end": 93, + "loc": { + "start": { + "line": 3, + "column": 0 + }, + "end": { + "line": 3, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "xml", + "start": 94, + "end": 97, + "loc": { + "start": { + "line": 3, + "column": 6 + }, + "end": { + "line": 3, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 98, + "end": 99, + "loc": { + "start": { + "line": 3, + "column": 10 + }, + "end": { + "line": 3, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 100, + "end": 107, + "loc": { + "start": { + "line": 3, + "column": 12 + }, + "end": { + "line": 3, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 107, + "end": 108, + "loc": { + "start": { + "line": 3, + "column": 19 + }, + "end": { + "line": 3, + "column": 20 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "xml-js", + "start": 108, + "end": 116, + "loc": { + "start": { + "line": 3, + "column": 20 + }, + "end": { + "line": 3, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 116, + "end": 117, + "loc": { + "start": { + "line": 3, + "column": 28 + }, + "end": { + "line": 3, + "column": 29 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 118, + "end": 123, + "loc": { + "start": { + "line": 4, + "column": 0 + }, + "end": { + "line": 4, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NotImplemented", + "start": 124, + "end": 138, + "loc": { + "start": { + "line": 4, + "column": 6 + }, + "end": { + "line": 4, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 139, + "end": 140, + "loc": { + "start": { + "line": 4, + "column": 21 + }, + "end": { + "line": 4, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 141, + "end": 148, + "loc": { + "start": { + "line": 4, + "column": 23 + }, + "end": { + "line": 4, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 148, + "end": 149, + "loc": { + "start": { + "line": 4, + "column": 30 + }, + "end": { + "line": 4, + "column": 31 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "../../errors/NotImplemented", + "start": 149, + "end": 178, + "loc": { + "start": { + "line": 4, + "column": 31 + }, + "end": { + "line": 4, + "column": 60 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 178, + "end": 179, + "loc": { + "start": { + "line": 4, + "column": 60 + }, + "end": { + "line": 4, + "column": 61 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 180, + "end": 185, + "loc": { + "start": { + "line": 5, + "column": 0 + }, + "end": { + "line": 5, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 186, + "end": 187, + "loc": { + "start": { + "line": 5, + "column": 6 + }, + "end": { + "line": 5, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Transform", + "start": 188, + "end": 197, + "loc": { + "start": { + "line": 5, + "column": 8 + }, + "end": { + "line": 5, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 198, + "end": 199, + "loc": { + "start": { + "line": 5, + "column": 18 + }, + "end": { + "line": 5, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 200, + "end": 201, + "loc": { + "start": { + "line": 5, + "column": 20 + }, + "end": { + "line": 5, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 202, + "end": 209, + "loc": { + "start": { + "line": 5, + "column": 22 + }, + "end": { + "line": 5, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 209, + "end": 210, + "loc": { + "start": { + "line": 5, + "column": 29 + }, + "end": { + "line": 5, + "column": 30 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "stream", + "start": 210, + "end": 218, + "loc": { + "start": { + "line": 5, + "column": 30 + }, + "end": { + "line": 5, + "column": 38 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 218, + "end": 219, + "loc": { + "start": { + "line": 5, + "column": 38 + }, + "end": { + "line": 5, + "column": 39 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 220, + "end": 225, + "loc": { + "start": { + "line": 6, + "column": 0 + }, + "end": { + "line": 6, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "StreamParser", + "start": 226, + "end": 238, + "loc": { + "start": { + "line": 6, + "column": 6 + }, + "end": { + "line": 6, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 239, + "end": 240, + "loc": { + "start": { + "line": 6, + "column": 19 + }, + "end": { + "line": 6, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 241, + "end": 248, + "loc": { + "start": { + "line": 6, + "column": 21 + }, + "end": { + "line": 6, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 248, + "end": 249, + "loc": { + "start": { + "line": 6, + "column": 28 + }, + "end": { + "line": 6, + "column": 29 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "node-xml-stream", + "start": 249, + "end": 266, + "loc": { + "start": { + "line": 6, + "column": 29 + }, + "end": { + "line": 6, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 266, + "end": 267, + "loc": { + "start": { + "line": 6, + "column": 46 + }, + "end": { + "line": 6, + "column": 47 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 268, + "end": 273, + "loc": { + "start": { + "line": 7, + "column": 0 + }, + "end": { + "line": 7, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 274, + "end": 275, + "loc": { + "start": { + "line": 7, + "column": 6 + }, + "end": { + "line": 7, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlTag", + "start": 276, + "end": 282, + "loc": { + "start": { + "line": 7, + "column": 8 + }, + "end": { + "line": 7, + "column": 14 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 282, + "end": 283, + "loc": { + "start": { + "line": 7, + "column": 14 + }, + "end": { + "line": 7, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlCharacterData", + "start": 284, + "end": 300, + "loc": { + "start": { + "line": 7, + "column": 16 + }, + "end": { + "line": 7, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 300, + "end": 301, + "loc": { + "start": { + "line": 7, + "column": 32 + }, + "end": { + "line": 7, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlDeclaration", + "start": 302, + "end": 316, + "loc": { + "start": { + "line": 7, + "column": 34 + }, + "end": { + "line": 7, + "column": 48 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 317, + "end": 318, + "loc": { + "start": { + "line": 7, + "column": 49 + }, + "end": { + "line": 7, + "column": 50 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 319, + "end": 320, + "loc": { + "start": { + "line": 7, + "column": 51 + }, + "end": { + "line": 7, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "require", + "start": 321, + "end": 328, + "loc": { + "start": { + "line": 7, + "column": 53 + }, + "end": { + "line": 7, + "column": 60 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 328, + "end": 329, + "loc": { + "start": { + "line": 7, + "column": 60 + }, + "end": { + "line": 7, + "column": 61 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "./XmlTag", + "start": 329, + "end": 339, + "loc": { + "start": { + "line": 7, + "column": 61 + }, + "end": { + "line": 7, + "column": 71 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 339, + "end": 340, + "loc": { + "start": { + "line": 7, + "column": 71 + }, + "end": { + "line": 7, + "column": 72 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml - Support for XML filetype\n *\n * @constructor\n ", + "start": 342, + "end": 402, + "loc": { + "start": { + "line": 9, + "column": 0 + }, + "end": { + "line": 13, + "column": 3 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 403, + "end": 411, + "loc": { + "start": { + "line": 14, + "column": 0 + }, + "end": { + "line": 14, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Xml", + "start": 412, + "end": 415, + "loc": { + "start": { + "line": 14, + "column": 9 + }, + "end": { + "line": 14, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 416, + "end": 417, + "loc": { + "start": { + "line": 14, + "column": 13 + }, + "end": { + "line": 14, + "column": 14 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 417, + "end": 418, + "loc": { + "start": { + "line": 14, + "column": 14 + }, + "end": { + "line": 14, + "column": 15 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 419, + "end": 420, + "loc": { + "start": { + "line": 14, + "column": 16 + }, + "end": { + "line": 14, + "column": 17 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 423, + "end": 427, + "loc": { + "start": { + "line": 15, + "column": 2 + }, + "end": { + "line": 15, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 427, + "end": 428, + "loc": { + "start": { + "line": 15, + "column": 6 + }, + "end": { + "line": 15, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XML_VERSION_TAG", + "start": 428, + "end": 443, + "loc": { + "start": { + "line": 15, + "column": 7 + }, + "end": { + "line": 15, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 444, + "end": 445, + "loc": { + "start": { + "line": 15, + "column": 23 + }, + "end": { + "line": 15, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 446, + "end": 447, + "loc": { + "start": { + "line": 15, + "column": 25 + }, + "end": { + "line": 15, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "_declaration", + "start": 452, + "end": 464, + "loc": { + "start": { + "line": 16, + "column": 4 + }, + "end": { + "line": 16, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 464, + "end": 465, + "loc": { + "start": { + "line": 16, + "column": 16 + }, + "end": { + "line": 16, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 466, + "end": 467, + "loc": { + "start": { + "line": 16, + "column": 18 + }, + "end": { + "line": 16, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "_attributes", + "start": 474, + "end": 485, + "loc": { + "start": { + "line": 17, + "column": 6 + }, + "end": { + "line": 17, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 485, + "end": 486, + "loc": { + "start": { + "line": 17, + "column": 17 + }, + "end": { + "line": 17, + "column": 18 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 487, + "end": 488, + "loc": { + "start": { + "line": 17, + "column": 19 + }, + "end": { + "line": 17, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "version", + "start": 497, + "end": 504, + "loc": { + "start": { + "line": 18, + "column": 8 + }, + "end": { + "line": 18, + "column": 15 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 504, + "end": 505, + "loc": { + "start": { + "line": 18, + "column": 15 + }, + "end": { + "line": 18, + "column": 16 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "1.0", + "start": 506, + "end": 511, + "loc": { + "start": { + "line": 18, + "column": 17 + }, + "end": { + "line": 18, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 511, + "end": 512, + "loc": { + "start": { + "line": 18, + "column": 22 + }, + "end": { + "line": 18, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "encoding", + "start": 521, + "end": 529, + "loc": { + "start": { + "line": 19, + "column": 8 + }, + "end": { + "line": 19, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 529, + "end": 530, + "loc": { + "start": { + "line": 19, + "column": 16 + }, + "end": { + "line": 19, + "column": 17 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "utf-8", + "start": 531, + "end": 538, + "loc": { + "start": { + "line": 19, + "column": 18 + }, + "end": { + "line": 19, + "column": 25 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 545, + "end": 546, + "loc": { + "start": { + "line": 20, + "column": 6 + }, + "end": { + "line": 20, + "column": 7 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 551, + "end": 552, + "loc": { + "start": { + "line": 21, + "column": 4 + }, + "end": { + "line": 21, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 555, + "end": 556, + "loc": { + "start": { + "line": 22, + "column": 2 + }, + "end": { + "line": 22, + "column": 3 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 560, + "end": 564, + "loc": { + "start": { + "line": 24, + "column": 2 + }, + "end": { + "line": 24, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 564, + "end": 565, + "loc": { + "start": { + "line": 24, + "column": 6 + }, + "end": { + "line": 24, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XML_JS_KEYS", + "start": 565, + "end": 576, + "loc": { + "start": { + "line": 24, + "column": 7 + }, + "end": { + "line": 24, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 577, + "end": 578, + "loc": { + "start": { + "line": 24, + "column": 19 + }, + "end": { + "line": 24, + "column": 20 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 579, + "end": 580, + "loc": { + "start": { + "line": 24, + "column": 21 + }, + "end": { + "line": 24, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "declarationKey", + "start": 585, + "end": 599, + "loc": { + "start": { + "line": 25, + "column": 4 + }, + "end": { + "line": 25, + "column": 18 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 599, + "end": 600, + "loc": { + "start": { + "line": 25, + "column": 18 + }, + "end": { + "line": 25, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_declaration", + "start": 601, + "end": 615, + "loc": { + "start": { + "line": 25, + "column": 20 + }, + "end": { + "line": 25, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 615, + "end": 616, + "loc": { + "start": { + "line": 25, + "column": 34 + }, + "end": { + "line": 25, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "instructionKey", + "start": 621, + "end": 635, + "loc": { + "start": { + "line": 26, + "column": 4 + }, + "end": { + "line": 26, + "column": 18 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 635, + "end": 636, + "loc": { + "start": { + "line": 26, + "column": 18 + }, + "end": { + "line": 26, + "column": 19 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_instruction", + "start": 637, + "end": 651, + "loc": { + "start": { + "line": 26, + "column": 20 + }, + "end": { + "line": 26, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 651, + "end": 652, + "loc": { + "start": { + "line": 26, + "column": 34 + }, + "end": { + "line": 26, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attributesKey", + "start": 657, + "end": 670, + "loc": { + "start": { + "line": 27, + "column": 4 + }, + "end": { + "line": 27, + "column": 17 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 670, + "end": 671, + "loc": { + "start": { + "line": 27, + "column": 17 + }, + "end": { + "line": 27, + "column": 18 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_attributes", + "start": 672, + "end": 685, + "loc": { + "start": { + "line": 27, + "column": 19 + }, + "end": { + "line": 27, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 685, + "end": 686, + "loc": { + "start": { + "line": 27, + "column": 32 + }, + "end": { + "line": 27, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "textKey", + "start": 691, + "end": 698, + "loc": { + "start": { + "line": 28, + "column": 4 + }, + "end": { + "line": 28, + "column": 11 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 698, + "end": 699, + "loc": { + "start": { + "line": 28, + "column": 11 + }, + "end": { + "line": 28, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_text", + "start": 700, + "end": 707, + "loc": { + "start": { + "line": 28, + "column": 13 + }, + "end": { + "line": 28, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 707, + "end": 708, + "loc": { + "start": { + "line": 28, + "column": 20 + }, + "end": { + "line": 28, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cdataKey", + "start": 713, + "end": 721, + "loc": { + "start": { + "line": 29, + "column": 4 + }, + "end": { + "line": 29, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 721, + "end": 722, + "loc": { + "start": { + "line": 29, + "column": 12 + }, + "end": { + "line": 29, + "column": 13 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_cdata", + "start": 723, + "end": 731, + "loc": { + "start": { + "line": 29, + "column": 14 + }, + "end": { + "line": 29, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 731, + "end": 732, + "loc": { + "start": { + "line": 29, + "column": 22 + }, + "end": { + "line": 29, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "doctypeKey", + "start": 737, + "end": 747, + "loc": { + "start": { + "line": 30, + "column": 4 + }, + "end": { + "line": 30, + "column": 14 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 747, + "end": 748, + "loc": { + "start": { + "line": 30, + "column": 14 + }, + "end": { + "line": 30, + "column": 15 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_doctype", + "start": 749, + "end": 759, + "loc": { + "start": { + "line": 30, + "column": 16 + }, + "end": { + "line": 30, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 759, + "end": 760, + "loc": { + "start": { + "line": 30, + "column": 26 + }, + "end": { + "line": 30, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "commentKey", + "start": 765, + "end": 775, + "loc": { + "start": { + "line": 31, + "column": 4 + }, + "end": { + "line": 31, + "column": 14 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 775, + "end": 776, + "loc": { + "start": { + "line": 31, + "column": 14 + }, + "end": { + "line": 31, + "column": 15 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_comment", + "start": 777, + "end": 787, + "loc": { + "start": { + "line": 31, + "column": 16 + }, + "end": { + "line": 31, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 787, + "end": 788, + "loc": { + "start": { + "line": 31, + "column": 26 + }, + "end": { + "line": 31, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parentKey", + "start": 793, + "end": 802, + "loc": { + "start": { + "line": 32, + "column": 4 + }, + "end": { + "line": 32, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 802, + "end": 803, + "loc": { + "start": { + "line": 32, + "column": 13 + }, + "end": { + "line": 32, + "column": 14 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_parent", + "start": 804, + "end": 813, + "loc": { + "start": { + "line": 32, + "column": 15 + }, + "end": { + "line": 32, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 813, + "end": 814, + "loc": { + "start": { + "line": 32, + "column": 24 + }, + "end": { + "line": 32, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "typeKey", + "start": 819, + "end": 826, + "loc": { + "start": { + "line": 33, + "column": 4 + }, + "end": { + "line": 33, + "column": 11 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 826, + "end": 827, + "loc": { + "start": { + "line": 33, + "column": 11 + }, + "end": { + "line": 33, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_type", + "start": 828, + "end": 835, + "loc": { + "start": { + "line": 33, + "column": 13 + }, + "end": { + "line": 33, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 835, + "end": 836, + "loc": { + "start": { + "line": 33, + "column": 20 + }, + "end": { + "line": 33, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "nameKey", + "start": 841, + "end": 848, + "loc": { + "start": { + "line": 34, + "column": 4 + }, + "end": { + "line": 34, + "column": 11 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 848, + "end": 849, + "loc": { + "start": { + "line": 34, + "column": 11 + }, + "end": { + "line": 34, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_name", + "start": 850, + "end": 857, + "loc": { + "start": { + "line": 34, + "column": 13 + }, + "end": { + "line": 34, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 857, + "end": 858, + "loc": { + "start": { + "line": 34, + "column": 20 + }, + "end": { + "line": 34, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "elementsKey", + "start": 863, + "end": 874, + "loc": { + "start": { + "line": 35, + "column": 4 + }, + "end": { + "line": 35, + "column": 15 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 874, + "end": 875, + "loc": { + "start": { + "line": 35, + "column": 15 + }, + "end": { + "line": 35, + "column": 16 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "_elements", + "start": 876, + "end": 887, + "loc": { + "start": { + "line": 35, + "column": 17 + }, + "end": { + "line": 35, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 890, + "end": 891, + "loc": { + "start": { + "line": 36, + "column": 2 + }, + "end": { + "line": 36, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 892, + "end": 893, + "loc": { + "start": { + "line": 37, + "column": 0 + }, + "end": { + "line": 37, + "column": 1 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Xml", + "start": 895, + "end": 898, + "loc": { + "start": { + "line": 39, + "column": 0 + }, + "end": { + "line": 39, + "column": 3 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 898, + "end": 899, + "loc": { + "start": { + "line": 39, + "column": 3 + }, + "end": { + "line": 39, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 899, + "end": 908, + "loc": { + "start": { + "line": 39, + "column": 4 + }, + "end": { + "line": 39, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 909, + "end": 910, + "loc": { + "start": { + "line": 39, + "column": 14 + }, + "end": { + "line": 39, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Object", + "start": 911, + "end": 917, + "loc": { + "start": { + "line": 39, + "column": 16 + }, + "end": { + "line": 39, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 917, + "end": 918, + "loc": { + "start": { + "line": 39, + "column": 22 + }, + "end": { + "line": 39, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "create", + "start": 918, + "end": 924, + "loc": { + "start": { + "line": 39, + "column": 23 + }, + "end": { + "line": 39, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 924, + "end": 925, + "loc": { + "start": { + "line": 39, + "column": 29 + }, + "end": { + "line": 39, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Base", + "start": 925, + "end": 929, + "loc": { + "start": { + "line": 39, + "column": 30 + }, + "end": { + "line": 39, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 929, + "end": 930, + "loc": { + "start": { + "line": 39, + "column": 34 + }, + "end": { + "line": 39, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 930, + "end": 939, + "loc": { + "start": { + "line": 39, + "column": 35 + }, + "end": { + "line": 39, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 939, + "end": 940, + "loc": { + "start": { + "line": 39, + "column": 44 + }, + "end": { + "line": 39, + "column": 45 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.setXmlDeclaration - sets XML declaration tag on first position of array or object\n *\n * @param {(object|array)} data - input data\n * @returns {(object|array)}\n ", + "start": 942, + "end": 1125, + "loc": { + "start": { + "line": 41, + "column": 0 + }, + "end": { + "line": 46, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Xml", + "start": 1126, + "end": 1129, + "loc": { + "start": { + "line": 47, + "column": 0 + }, + "end": { + "line": 47, + "column": 3 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1129, + "end": 1130, + "loc": { + "start": { + "line": 47, + "column": 3 + }, + "end": { + "line": 47, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 1130, + "end": 1139, + "loc": { + "start": { + "line": 47, + "column": 4 + }, + "end": { + "line": 47, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1139, + "end": 1140, + "loc": { + "start": { + "line": 47, + "column": 13 + }, + "end": { + "line": 47, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setXmlDeclaration", + "start": 1140, + "end": 1157, + "loc": { + "start": { + "line": 47, + "column": 14 + }, + "end": { + "line": 47, + "column": 31 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1158, + "end": 1159, + "loc": { + "start": { + "line": 47, + "column": 32 + }, + "end": { + "line": 47, + "column": 33 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 1160, + "end": 1168, + "loc": { + "start": { + "line": 47, + "column": 34 + }, + "end": { + "line": 47, + "column": 42 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setXmlDeclaration", + "start": 1169, + "end": 1186, + "loc": { + "start": { + "line": 47, + "column": 43 + }, + "end": { + "line": 47, + "column": 60 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1187, + "end": 1188, + "loc": { + "start": { + "line": 47, + "column": 61 + }, + "end": { + "line": 47, + "column": 62 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1188, + "end": 1192, + "loc": { + "start": { + "line": 47, + "column": 62 + }, + "end": { + "line": 47, + "column": 66 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1192, + "end": 1193, + "loc": { + "start": { + "line": 47, + "column": 66 + }, + "end": { + "line": 47, + "column": 67 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1194, + "end": 1195, + "loc": { + "start": { + "line": 47, + "column": 68 + }, + "end": { + "line": 47, + "column": 69 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1198, + "end": 1200, + "loc": { + "start": { + "line": 48, + "column": 2 + }, + "end": { + "line": 48, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1201, + "end": 1202, + "loc": { + "start": { + "line": 48, + "column": 5 + }, + "end": { + "line": 48, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 1202, + "end": 1207, + "loc": { + "start": { + "line": 48, + "column": 6 + }, + "end": { + "line": 48, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1207, + "end": 1208, + "loc": { + "start": { + "line": 48, + "column": 11 + }, + "end": { + "line": 48, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "isArray", + "start": 1208, + "end": 1215, + "loc": { + "start": { + "line": 48, + "column": 12 + }, + "end": { + "line": 48, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1215, + "end": 1216, + "loc": { + "start": { + "line": 48, + "column": 19 + }, + "end": { + "line": 48, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1216, + "end": 1220, + "loc": { + "start": { + "line": 48, + "column": 20 + }, + "end": { + "line": 48, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1220, + "end": 1221, + "loc": { + "start": { + "line": 48, + "column": 24 + }, + "end": { + "line": 48, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1221, + "end": 1222, + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 48, + "column": 26 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1223, + "end": 1224, + "loc": { + "start": { + "line": 48, + "column": 27 + }, + "end": { + "line": 48, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1229, + "end": 1233, + "loc": { + "start": { + "line": 49, + "column": 4 + }, + "end": { + "line": 49, + "column": 8 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1234, + "end": 1235, + "loc": { + "start": { + "line": 49, + "column": 9 + }, + "end": { + "line": 49, + "column": 10 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1236, + "end": 1237, + "loc": { + "start": { + "line": 49, + "column": 11 + }, + "end": { + "line": 49, + "column": 12 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1237, + "end": 1241, + "loc": { + "start": { + "line": 49, + "column": 12 + }, + "end": { + "line": 49, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1241, + "end": 1242, + "loc": { + "start": { + "line": 49, + "column": 16 + }, + "end": { + "line": 49, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XML_VERSION_TAG", + "start": 1242, + "end": 1257, + "loc": { + "start": { + "line": 49, + "column": 17 + }, + "end": { + "line": 49, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1257, + "end": 1258, + "loc": { + "start": { + "line": 49, + "column": 32 + }, + "end": { + "line": 49, + "column": 33 + } + } + }, + { + "type": { + "label": "...", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1259, + "end": 1262, + "loc": { + "start": { + "line": 49, + "column": 34 + }, + "end": { + "line": 49, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1262, + "end": 1266, + "loc": { + "start": { + "line": 49, + "column": 37 + }, + "end": { + "line": 49, + "column": 41 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1266, + "end": 1267, + "loc": { + "start": { + "line": 49, + "column": 41 + }, + "end": { + "line": 49, + "column": 42 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1270, + "end": 1271, + "loc": { + "start": { + "line": 50, + "column": 2 + }, + "end": { + "line": 50, + "column": 3 + } + } + }, + { + "type": { + "label": "else", + "keyword": "else", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "else", + "start": 1272, + "end": 1276, + "loc": { + "start": { + "line": 50, + "column": 4 + }, + "end": { + "line": 50, + "column": 8 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1277, + "end": 1278, + "loc": { + "start": { + "line": 50, + "column": 9 + }, + "end": { + "line": 50, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1283, + "end": 1287, + "loc": { + "start": { + "line": 51, + "column": 4 + }, + "end": { + "line": 51, + "column": 8 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1288, + "end": 1289, + "loc": { + "start": { + "line": 51, + "column": 9 + }, + "end": { + "line": 51, + "column": 10 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1290, + "end": 1291, + "loc": { + "start": { + "line": 51, + "column": 11 + }, + "end": { + "line": 51, + "column": 12 + } + } + }, + { + "type": { + "label": "...", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1292, + "end": 1295, + "loc": { + "start": { + "line": 51, + "column": 13 + }, + "end": { + "line": 51, + "column": 16 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1295, + "end": 1299, + "loc": { + "start": { + "line": 51, + "column": 16 + }, + "end": { + "line": 51, + "column": 20 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1299, + "end": 1300, + "loc": { + "start": { + "line": 51, + "column": 20 + }, + "end": { + "line": 51, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XML_VERSION_TAG", + "start": 1300, + "end": 1315, + "loc": { + "start": { + "line": 51, + "column": 21 + }, + "end": { + "line": 51, + "column": 36 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1315, + "end": 1316, + "loc": { + "start": { + "line": 51, + "column": 36 + }, + "end": { + "line": 51, + "column": 37 + } + } + }, + { + "type": { + "label": "...", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1317, + "end": 1320, + "loc": { + "start": { + "line": 51, + "column": 38 + }, + "end": { + "line": 51, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1320, + "end": 1324, + "loc": { + "start": { + "line": 51, + "column": 41 + }, + "end": { + "line": 51, + "column": 45 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1325, + "end": 1326, + "loc": { + "start": { + "line": 51, + "column": 46 + }, + "end": { + "line": 51, + "column": 47 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1329, + "end": 1330, + "loc": { + "start": { + "line": 52, + "column": 2 + }, + "end": { + "line": 52, + "column": 3 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1334, + "end": 1340, + "loc": { + "start": { + "line": 54, + "column": 2 + }, + "end": { + "line": 54, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1341, + "end": 1345, + "loc": { + "start": { + "line": 54, + "column": 9 + }, + "end": { + "line": 54, + "column": 13 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1346, + "end": 1347, + "loc": { + "start": { + "line": 55, + "column": 0 + }, + "end": { + "line": 55, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.stringify - receives * valid JS data and returns it as XML\n *\n * @param {(object|array)} data\n * @param {Object} options - options for turning JS data into XML\n * @param {boolean} options.ignoreDeclaration - don't output XML version tag, default is true\n * @returns {string}\n ", + "start": 1349, + "end": 1648, + "loc": { + "start": { + "line": 57, + "column": 0 + }, + "end": { + "line": 64, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Xml", + "start": 1649, + "end": 1652, + "loc": { + "start": { + "line": 65, + "column": 0 + }, + "end": { + "line": 65, + "column": 3 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1652, + "end": 1653, + "loc": { + "start": { + "line": 65, + "column": 3 + }, + "end": { + "line": 65, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 1653, + "end": 1662, + "loc": { + "start": { + "line": 65, + "column": 4 + }, + "end": { + "line": 65, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1662, + "end": 1663, + "loc": { + "start": { + "line": 65, + "column": 13 + }, + "end": { + "line": 65, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 1663, + "end": 1672, + "loc": { + "start": { + "line": 65, + "column": 14 + }, + "end": { + "line": 65, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1673, + "end": 1674, + "loc": { + "start": { + "line": 65, + "column": 24 + }, + "end": { + "line": 65, + "column": 25 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 1675, + "end": 1683, + "loc": { + "start": { + "line": 65, + "column": 26 + }, + "end": { + "line": 65, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "stringify", + "start": 1684, + "end": 1693, + "loc": { + "start": { + "line": 65, + "column": 35 + }, + "end": { + "line": 65, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1694, + "end": 1695, + "loc": { + "start": { + "line": 65, + "column": 45 + }, + "end": { + "line": 65, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1695, + "end": 1699, + "loc": { + "start": { + "line": 65, + "column": 46 + }, + "end": { + "line": 65, + "column": 50 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1699, + "end": 1700, + "loc": { + "start": { + "line": 65, + "column": 50 + }, + "end": { + "line": 65, + "column": 51 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1701, + "end": 1708, + "loc": { + "start": { + "line": 65, + "column": 52 + }, + "end": { + "line": 65, + "column": 59 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1709, + "end": 1710, + "loc": { + "start": { + "line": 65, + "column": 60 + }, + "end": { + "line": 65, + "column": 61 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1711, + "end": 1712, + "loc": { + "start": { + "line": 65, + "column": 62 + }, + "end": { + "line": 65, + "column": 63 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1712, + "end": 1713, + "loc": { + "start": { + "line": 65, + "column": 63 + }, + "end": { + "line": 65, + "column": 64 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1713, + "end": 1714, + "loc": { + "start": { + "line": 65, + "column": 64 + }, + "end": { + "line": 65, + "column": 65 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1715, + "end": 1716, + "loc": { + "start": { + "line": 65, + "column": 66 + }, + "end": { + "line": 65, + "column": 67 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1719, + "end": 1724, + "loc": { + "start": { + "line": 66, + "column": 2 + }, + "end": { + "line": 66, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 1725, + "end": 1731, + "loc": { + "start": { + "line": 66, + "column": 8 + }, + "end": { + "line": 66, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1732, + "end": 1733, + "loc": { + "start": { + "line": 66, + "column": 15 + }, + "end": { + "line": 66, + "column": 16 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1734, + "end": 1735, + "loc": { + "start": { + "line": 66, + "column": 17 + }, + "end": { + "line": 66, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compact", + "start": 1740, + "end": 1747, + "loc": { + "start": { + "line": 67, + "column": 4 + }, + "end": { + "line": 67, + "column": 11 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1747, + "end": 1748, + "loc": { + "start": { + "line": 67, + "column": 11 + }, + "end": { + "line": 67, + "column": 12 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 1749, + "end": 1753, + "loc": { + "start": { + "line": 67, + "column": 13 + }, + "end": { + "line": 67, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1753, + "end": 1754, + "loc": { + "start": { + "line": 67, + "column": 17 + }, + "end": { + "line": 67, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ignoreDeclaration", + "start": 1759, + "end": 1776, + "loc": { + "start": { + "line": 68, + "column": 4 + }, + "end": { + "line": 68, + "column": 21 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1776, + "end": 1777, + "loc": { + "start": { + "line": 68, + "column": 21 + }, + "end": { + "line": 68, + "column": 22 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 1778, + "end": 1783, + "loc": { + "start": { + "line": 68, + "column": 23 + }, + "end": { + "line": 68, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1786, + "end": 1787, + "loc": { + "start": { + "line": 69, + "column": 2 + }, + "end": { + "line": 69, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1791, + "end": 1795, + "loc": { + "start": { + "line": 71, + "column": 2 + }, + "end": { + "line": 71, + "column": 6 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1796, + "end": 1797, + "loc": { + "start": { + "line": 71, + "column": 7 + }, + "end": { + "line": 71, + "column": 8 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 1798, + "end": 1802, + "loc": { + "start": { + "line": 71, + "column": 9 + }, + "end": { + "line": 71, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1802, + "end": 1803, + "loc": { + "start": { + "line": 71, + "column": 13 + }, + "end": { + "line": 71, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "setXmlDeclaration", + "start": 1803, + "end": 1820, + "loc": { + "start": { + "line": 71, + "column": 14 + }, + "end": { + "line": 71, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1820, + "end": 1821, + "loc": { + "start": { + "line": 71, + "column": 31 + }, + "end": { + "line": 71, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1821, + "end": 1825, + "loc": { + "start": { + "line": 71, + "column": 32 + }, + "end": { + "line": 71, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1825, + "end": 1826, + "loc": { + "start": { + "line": 71, + "column": 36 + }, + "end": { + "line": 71, + "column": 37 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 1830, + "end": 1832, + "loc": { + "start": { + "line": 73, + "column": 2 + }, + "end": { + "line": 73, + "column": 4 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1833, + "end": 1834, + "loc": { + "start": { + "line": 73, + "column": 5 + }, + "end": { + "line": 73, + "column": 6 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 1834, + "end": 1841, + "loc": { + "start": { + "line": 73, + "column": 6 + }, + "end": { + "line": 73, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1841, + "end": 1842, + "loc": { + "start": { + "line": 73, + "column": 13 + }, + "end": { + "line": 73, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ignoreDeclaration", + "start": 1842, + "end": 1859, + "loc": { + "start": { + "line": 73, + "column": 14 + }, + "end": { + "line": 73, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1859, + "end": 1860, + "loc": { + "start": { + "line": 73, + "column": 31 + }, + "end": { + "line": 73, + "column": 32 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1861, + "end": 1862, + "loc": { + "start": { + "line": 73, + "column": 33 + }, + "end": { + "line": 73, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 1867, + "end": 1873, + "loc": { + "start": { + "line": 74, + "column": 4 + }, + "end": { + "line": 74, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1873, + "end": 1874, + "loc": { + "start": { + "line": 74, + "column": 10 + }, + "end": { + "line": 74, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ignoreDeclaration", + "start": 1874, + "end": 1891, + "loc": { + "start": { + "line": 74, + "column": 11 + }, + "end": { + "line": 74, + "column": 28 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1892, + "end": 1893, + "loc": { + "start": { + "line": 74, + "column": 29 + }, + "end": { + "line": 74, + "column": 30 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 1894, + "end": 1898, + "loc": { + "start": { + "line": 74, + "column": 31 + }, + "end": { + "line": 74, + "column": 35 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1901, + "end": 1902, + "loc": { + "start": { + "line": 75, + "column": 2 + }, + "end": { + "line": 75, + "column": 3 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 1906, + "end": 1912, + "loc": { + "start": { + "line": 77, + "column": 2 + }, + "end": { + "line": 77, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "xml", + "start": 1913, + "end": 1916, + "loc": { + "start": { + "line": 77, + "column": 9 + }, + "end": { + "line": 77, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1916, + "end": 1917, + "loc": { + "start": { + "line": 77, + "column": 12 + }, + "end": { + "line": 77, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "js2xml", + "start": 1917, + "end": 1923, + "loc": { + "start": { + "line": 77, + "column": 13 + }, + "end": { + "line": 77, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1923, + "end": 1924, + "loc": { + "start": { + "line": 77, + "column": 19 + }, + "end": { + "line": 77, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 1924, + "end": 1928, + "loc": { + "start": { + "line": 77, + "column": 20 + }, + "end": { + "line": 77, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1928, + "end": 1929, + "loc": { + "start": { + "line": 77, + "column": 24 + }, + "end": { + "line": 77, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 1930, + "end": 1936, + "loc": { + "start": { + "line": 77, + "column": 26 + }, + "end": { + "line": 77, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1936, + "end": 1937, + "loc": { + "start": { + "line": 77, + "column": 32 + }, + "end": { + "line": 77, + "column": 33 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1938, + "end": 1939, + "loc": { + "start": { + "line": 78, + "column": 0 + }, + "end": { + "line": 78, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.parse - receives an XML string and translate it to valid JavaScript\n *\n * @param {string} data\n * @param {object} options\n * @param {object} options.showDeclaration - force parsing XML declaration tag\n * @param {boolean} options.verbose - makes xml2js return non compact mode, defaults to false\n * @param {boolean} options.experimentalXmlTag - use experimental XmlTag prototype, default is false\n * @throws {NotImplemented} This method must be implemented\n ", + "start": 1941, + "end": 2421, + "loc": { + "start": { + "line": 80, + "column": 0 + }, + "end": { + "line": 89, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Xml", + "start": 2422, + "end": 2425, + "loc": { + "start": { + "line": 90, + "column": 0 + }, + "end": { + "line": 90, + "column": 3 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2425, + "end": 2426, + "loc": { + "start": { + "line": 90, + "column": 3 + }, + "end": { + "line": 90, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 2426, + "end": 2435, + "loc": { + "start": { + "line": 90, + "column": 4 + }, + "end": { + "line": 90, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2435, + "end": 2436, + "loc": { + "start": { + "line": 90, + "column": 13 + }, + "end": { + "line": 90, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 2436, + "end": 2441, + "loc": { + "start": { + "line": 90, + "column": 14 + }, + "end": { + "line": 90, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2442, + "end": 2443, + "loc": { + "start": { + "line": 90, + "column": 20 + }, + "end": { + "line": 90, + "column": 21 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 2444, + "end": 2452, + "loc": { + "start": { + "line": 90, + "column": 22 + }, + "end": { + "line": 90, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parse", + "start": 2453, + "end": 2458, + "loc": { + "start": { + "line": 90, + "column": 31 + }, + "end": { + "line": 90, + "column": 36 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2459, + "end": 2460, + "loc": { + "start": { + "line": 90, + "column": 37 + }, + "end": { + "line": 90, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 2460, + "end": 2464, + "loc": { + "start": { + "line": 90, + "column": 38 + }, + "end": { + "line": 90, + "column": 42 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2464, + "end": 2465, + "loc": { + "start": { + "line": 90, + "column": 42 + }, + "end": { + "line": 90, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 2466, + "end": 2473, + "loc": { + "start": { + "line": 90, + "column": 44 + }, + "end": { + "line": 90, + "column": 51 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2474, + "end": 2475, + "loc": { + "start": { + "line": 90, + "column": 52 + }, + "end": { + "line": 90, + "column": 53 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2476, + "end": 2477, + "loc": { + "start": { + "line": 90, + "column": 54 + }, + "end": { + "line": 90, + "column": 55 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2477, + "end": 2478, + "loc": { + "start": { + "line": 90, + "column": 55 + }, + "end": { + "line": 90, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2478, + "end": 2479, + "loc": { + "start": { + "line": 90, + "column": 56 + }, + "end": { + "line": 90, + "column": 57 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2480, + "end": 2481, + "loc": { + "start": { + "line": 90, + "column": 58 + }, + "end": { + "line": 90, + "column": 59 + } + } + }, + { + "type": { + "label": "try", + "keyword": "try", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "try", + "start": 2484, + "end": 2487, + "loc": { + "start": { + "line": 91, + "column": 2 + }, + "end": { + "line": 91, + "column": 5 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2488, + "end": 2489, + "loc": { + "start": { + "line": 91, + "column": 6 + }, + "end": { + "line": 91, + "column": 7 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 2494, + "end": 2499, + "loc": { + "start": { + "line": 92, + "column": 4 + }, + "end": { + "line": 92, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 2500, + "end": 2506, + "loc": { + "start": { + "line": 92, + "column": 10 + }, + "end": { + "line": 92, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2507, + "end": 2508, + "loc": { + "start": { + "line": 92, + "column": 17 + }, + "end": { + "line": 92, + "column": 18 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2509, + "end": 2510, + "loc": { + "start": { + "line": 92, + "column": 19 + }, + "end": { + "line": 92, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compact", + "start": 2517, + "end": 2524, + "loc": { + "start": { + "line": 93, + "column": 6 + }, + "end": { + "line": 93, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2524, + "end": 2525, + "loc": { + "start": { + "line": 93, + "column": 13 + }, + "end": { + "line": 93, + "column": 14 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 2526, + "end": 2530, + "loc": { + "start": { + "line": 93, + "column": 15 + }, + "end": { + "line": 93, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2530, + "end": 2531, + "loc": { + "start": { + "line": 93, + "column": 19 + }, + "end": { + "line": 93, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ignoreDeclaration", + "start": 2538, + "end": 2555, + "loc": { + "start": { + "line": 94, + "column": 6 + }, + "end": { + "line": 94, + "column": 23 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2555, + "end": 2556, + "loc": { + "start": { + "line": 94, + "column": 23 + }, + "end": { + "line": 94, + "column": 24 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 2557, + "end": 2561, + "loc": { + "start": { + "line": 94, + "column": 25 + }, + "end": { + "line": 94, + "column": 29 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2561, + "end": 2562, + "loc": { + "start": { + "line": 94, + "column": 29 + }, + "end": { + "line": 94, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "nativeType", + "start": 2569, + "end": 2579, + "loc": { + "start": { + "line": 95, + "column": 6 + }, + "end": { + "line": 95, + "column": 16 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2579, + "end": 2580, + "loc": { + "start": { + "line": 95, + "column": 16 + }, + "end": { + "line": 95, + "column": 17 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 2581, + "end": 2585, + "loc": { + "start": { + "line": 95, + "column": 18 + }, + "end": { + "line": 95, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2585, + "end": 2586, + "loc": { + "start": { + "line": 95, + "column": 22 + }, + "end": { + "line": 95, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "nativeTypeAttributes", + "start": 2593, + "end": 2613, + "loc": { + "start": { + "line": 96, + "column": 6 + }, + "end": { + "line": 96, + "column": 26 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2613, + "end": 2614, + "loc": { + "start": { + "line": 96, + "column": 26 + }, + "end": { + "line": 96, + "column": 27 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 2615, + "end": 2619, + "loc": { + "start": { + "line": 96, + "column": 28 + }, + "end": { + "line": 96, + "column": 32 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2624, + "end": 2625, + "loc": { + "start": { + "line": 97, + "column": 4 + }, + "end": { + "line": 97, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2631, + "end": 2633, + "loc": { + "start": { + "line": 99, + "column": 4 + }, + "end": { + "line": 99, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2634, + "end": 2635, + "loc": { + "start": { + "line": 99, + "column": 7 + }, + "end": { + "line": 99, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 2635, + "end": 2642, + "loc": { + "start": { + "line": 99, + "column": 8 + }, + "end": { + "line": 99, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2642, + "end": 2643, + "loc": { + "start": { + "line": 99, + "column": 15 + }, + "end": { + "line": 99, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "showDeclaration", + "start": 2643, + "end": 2658, + "loc": { + "start": { + "line": 99, + "column": 16 + }, + "end": { + "line": 99, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2658, + "end": 2659, + "loc": { + "start": { + "line": 99, + "column": 31 + }, + "end": { + "line": 99, + "column": 32 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2660, + "end": 2661, + "loc": { + "start": { + "line": 99, + "column": 33 + }, + "end": { + "line": 99, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 2668, + "end": 2674, + "loc": { + "start": { + "line": 100, + "column": 6 + }, + "end": { + "line": 100, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2674, + "end": 2675, + "loc": { + "start": { + "line": 100, + "column": 12 + }, + "end": { + "line": 100, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ignoreDeclaration", + "start": 2675, + "end": 2692, + "loc": { + "start": { + "line": 100, + "column": 13 + }, + "end": { + "line": 100, + "column": 30 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2693, + "end": 2694, + "loc": { + "start": { + "line": 100, + "column": 31 + }, + "end": { + "line": 100, + "column": 32 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 2695, + "end": 2700, + "loc": { + "start": { + "line": 100, + "column": 33 + }, + "end": { + "line": 100, + "column": 38 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2705, + "end": 2706, + "loc": { + "start": { + "line": 101, + "column": 4 + }, + "end": { + "line": 101, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2712, + "end": 2714, + "loc": { + "start": { + "line": 103, + "column": 4 + }, + "end": { + "line": 103, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2715, + "end": 2716, + "loc": { + "start": { + "line": 103, + "column": 7 + }, + "end": { + "line": 103, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 2716, + "end": 2723, + "loc": { + "start": { + "line": 103, + "column": 8 + }, + "end": { + "line": 103, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2723, + "end": 2724, + "loc": { + "start": { + "line": 103, + "column": 15 + }, + "end": { + "line": 103, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "verbose", + "start": 2724, + "end": 2731, + "loc": { + "start": { + "line": 103, + "column": 16 + }, + "end": { + "line": 103, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2731, + "end": 2732, + "loc": { + "start": { + "line": 103, + "column": 23 + }, + "end": { + "line": 103, + "column": 24 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2733, + "end": 2734, + "loc": { + "start": { + "line": 103, + "column": 25 + }, + "end": { + "line": 103, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 2741, + "end": 2747, + "loc": { + "start": { + "line": 104, + "column": 6 + }, + "end": { + "line": 104, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2747, + "end": 2748, + "loc": { + "start": { + "line": 104, + "column": 12 + }, + "end": { + "line": 104, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "compact", + "start": 2748, + "end": 2755, + "loc": { + "start": { + "line": 104, + "column": 13 + }, + "end": { + "line": 104, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2756, + "end": 2757, + "loc": { + "start": { + "line": 104, + "column": 21 + }, + "end": { + "line": 104, + "column": 22 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 2758, + "end": 2763, + "loc": { + "start": { + "line": 104, + "column": 23 + }, + "end": { + "line": 104, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2768, + "end": 2769, + "loc": { + "start": { + "line": 105, + "column": 4 + }, + "end": { + "line": 105, + "column": 5 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 2775, + "end": 2780, + "loc": { + "start": { + "line": 107, + "column": 4 + }, + "end": { + "line": 107, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "result", + "start": 2781, + "end": 2787, + "loc": { + "start": { + "line": 107, + "column": 10 + }, + "end": { + "line": 107, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 2788, + "end": 2789, + "loc": { + "start": { + "line": 107, + "column": 17 + }, + "end": { + "line": 107, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "xml", + "start": 2790, + "end": 2793, + "loc": { + "start": { + "line": 107, + "column": 19 + }, + "end": { + "line": 107, + "column": 22 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2793, + "end": 2794, + "loc": { + "start": { + "line": 107, + "column": 22 + }, + "end": { + "line": 107, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "xml2js", + "start": 2794, + "end": 2800, + "loc": { + "start": { + "line": 107, + "column": 23 + }, + "end": { + "line": 107, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2800, + "end": 2801, + "loc": { + "start": { + "line": 107, + "column": 29 + }, + "end": { + "line": 107, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "data", + "start": 2801, + "end": 2805, + "loc": { + "start": { + "line": 107, + "column": 30 + }, + "end": { + "line": 107, + "column": 34 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2805, + "end": 2806, + "loc": { + "start": { + "line": 107, + "column": 34 + }, + "end": { + "line": 107, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "config", + "start": 2807, + "end": 2813, + "loc": { + "start": { + "line": 107, + "column": 36 + }, + "end": { + "line": 107, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2813, + "end": 2814, + "loc": { + "start": { + "line": 107, + "column": 42 + }, + "end": { + "line": 107, + "column": 43 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 2820, + "end": 2822, + "loc": { + "start": { + "line": 109, + "column": 4 + }, + "end": { + "line": 109, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2823, + "end": 2824, + "loc": { + "start": { + "line": 109, + "column": 7 + }, + "end": { + "line": 109, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 2824, + "end": 2831, + "loc": { + "start": { + "line": 109, + "column": 8 + }, + "end": { + "line": 109, + "column": 15 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2831, + "end": 2832, + "loc": { + "start": { + "line": 109, + "column": 15 + }, + "end": { + "line": 109, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "experimentalXmlTag", + "start": 2832, + "end": 2850, + "loc": { + "start": { + "line": 109, + "column": 16 + }, + "end": { + "line": 109, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2850, + "end": 2851, + "loc": { + "start": { + "line": 109, + "column": 34 + }, + "end": { + "line": 109, + "column": 35 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2852, + "end": 2853, + "loc": { + "start": { + "line": 109, + "column": 36 + }, + "end": { + "line": 109, + "column": 37 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2860, + "end": 2866, + "loc": { + "start": { + "line": 110, + "column": 6 + }, + "end": { + "line": 110, + "column": 12 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 2867, + "end": 2871, + "loc": { + "start": { + "line": 110, + "column": 13 + }, + "end": { + "line": 110, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2871, + "end": 2872, + "loc": { + "start": { + "line": 110, + "column": 17 + }, + "end": { + "line": 110, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toXmlTag", + "start": 2872, + "end": 2880, + "loc": { + "start": { + "line": 110, + "column": 18 + }, + "end": { + "line": 110, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2880, + "end": 2881, + "loc": { + "start": { + "line": 110, + "column": 26 + }, + "end": { + "line": 110, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "result", + "start": 2881, + "end": 2887, + "loc": { + "start": { + "line": 110, + "column": 27 + }, + "end": { + "line": 110, + "column": 33 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2887, + "end": 2888, + "loc": { + "start": { + "line": 110, + "column": 33 + }, + "end": { + "line": 110, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2893, + "end": 2894, + "loc": { + "start": { + "line": 111, + "column": 4 + }, + "end": { + "line": 111, + "column": 5 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 2900, + "end": 2906, + "loc": { + "start": { + "line": 113, + "column": 4 + }, + "end": { + "line": 113, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "result", + "start": 2907, + "end": 2913, + "loc": { + "start": { + "line": 113, + "column": 11 + }, + "end": { + "line": 113, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2916, + "end": 2917, + "loc": { + "start": { + "line": 114, + "column": 2 + }, + "end": { + "line": 114, + "column": 3 + } + } + }, + { + "type": { + "label": "catch", + "keyword": "catch", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "catch", + "start": 2918, + "end": 2923, + "loc": { + "start": { + "line": 114, + "column": 4 + }, + "end": { + "line": 114, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2924, + "end": 2925, + "loc": { + "start": { + "line": 114, + "column": 10 + }, + "end": { + "line": 114, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "error", + "start": 2925, + "end": 2930, + "loc": { + "start": { + "line": 114, + "column": 11 + }, + "end": { + "line": 114, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2930, + "end": 2931, + "loc": { + "start": { + "line": 114, + "column": 16 + }, + "end": { + "line": 114, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2932, + "end": 2933, + "loc": { + "start": { + "line": 114, + "column": 18 + }, + "end": { + "line": 114, + "column": 19 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 2938, + "end": 2943, + "loc": { + "start": { + "line": 115, + "column": 4 + }, + "end": { + "line": 115, + "column": 9 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 2944, + "end": 2947, + "loc": { + "start": { + "line": 115, + "column": 10 + }, + "end": { + "line": 115, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ParserError", + "start": 2948, + "end": 2959, + "loc": { + "start": { + "line": 115, + "column": 14 + }, + "end": { + "line": 115, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2959, + "end": 2960, + "loc": { + "start": { + "line": 115, + "column": 25 + }, + "end": { + "line": 115, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "error", + "start": 2960, + "end": 2965, + "loc": { + "start": { + "line": 115, + "column": 26 + }, + "end": { + "line": 115, + "column": 31 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 2965, + "end": 2966, + "loc": { + "start": { + "line": 115, + "column": 31 + }, + "end": { + "line": 115, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 2966, + "end": 2973, + "loc": { + "start": { + "line": 115, + "column": 32 + }, + "end": { + "line": 115, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2973, + "end": 2974, + "loc": { + "start": { + "line": 115, + "column": 39 + }, + "end": { + "line": 115, + "column": 40 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2977, + "end": 2978, + "loc": { + "start": { + "line": 116, + "column": 2 + }, + "end": { + "line": 116, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 2979, + "end": 2980, + "loc": { + "start": { + "line": 117, + "column": 0 + }, + "end": { + "line": 117, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.toXmlTag - turns xml2js non-compact result into XmlTag and XmlResult\n *\n * @param {object} xml2jsResult\n * @throws {NotImplemented}\n ", + "start": 2982, + "end": 3138, + "loc": { + "start": { + "line": 119, + "column": 0 + }, + "end": { + "line": 124, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Xml", + "start": 3139, + "end": 3142, + "loc": { + "start": { + "line": 125, + "column": 0 + }, + "end": { + "line": 125, + "column": 3 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3142, + "end": 3143, + "loc": { + "start": { + "line": 125, + "column": 3 + }, + "end": { + "line": 125, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 3143, + "end": 3152, + "loc": { + "start": { + "line": 125, + "column": 4 + }, + "end": { + "line": 125, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3152, + "end": 3153, + "loc": { + "start": { + "line": 125, + "column": 13 + }, + "end": { + "line": 125, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toXmlTag", + "start": 3153, + "end": 3161, + "loc": { + "start": { + "line": 125, + "column": 14 + }, + "end": { + "line": 125, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3162, + "end": 3163, + "loc": { + "start": { + "line": 125, + "column": 23 + }, + "end": { + "line": 125, + "column": 24 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 3164, + "end": 3172, + "loc": { + "start": { + "line": 125, + "column": 25 + }, + "end": { + "line": 125, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toXmlTag", + "start": 3173, + "end": 3181, + "loc": { + "start": { + "line": 125, + "column": 34 + }, + "end": { + "line": 125, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3182, + "end": 3183, + "loc": { + "start": { + "line": 125, + "column": 43 + }, + "end": { + "line": 125, + "column": 44 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "xml2jsResult", + "start": 3183, + "end": 3195, + "loc": { + "start": { + "line": 125, + "column": 44 + }, + "end": { + "line": 125, + "column": 56 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3195, + "end": 3196, + "loc": { + "start": { + "line": 125, + "column": 56 + }, + "end": { + "line": 125, + "column": 57 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3197, + "end": 3198, + "loc": { + "start": { + "line": 125, + "column": 58 + }, + "end": { + "line": 125, + "column": 59 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 3201, + "end": 3206, + "loc": { + "start": { + "line": 126, + "column": 2 + }, + "end": { + "line": 126, + "column": 7 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 3207, + "end": 3210, + "loc": { + "start": { + "line": 126, + "column": 8 + }, + "end": { + "line": 126, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "NotImplemented", + "start": 3211, + "end": 3225, + "loc": { + "start": { + "line": 126, + "column": 12 + }, + "end": { + "line": 126, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3225, + "end": 3226, + "loc": { + "start": { + "line": 126, + "column": 26 + }, + "end": { + "line": 126, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3226, + "end": 3227, + "loc": { + "start": { + "line": 126, + "column": 27 + }, + "end": { + "line": 126, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3228, + "end": 3229, + "loc": { + "start": { + "line": 127, + "column": 0 + }, + "end": { + "line": 127, + "column": 1 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * Xml.prototype.pipeParse - stream\n *\n * @param {object} [options]\n * @param {Number} [options.depth=0]\n ", + "start": 3231, + "end": 3343, + "loc": { + "start": { + "line": 129, + "column": 0 + }, + "end": { + "line": 134, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Xml", + "start": 3344, + "end": 3347, + "loc": { + "start": { + "line": 135, + "column": 0 + }, + "end": { + "line": 135, + "column": 3 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3347, + "end": 3348, + "loc": { + "start": { + "line": 135, + "column": 3 + }, + "end": { + "line": 135, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "prototype", + "start": 3348, + "end": 3357, + "loc": { + "start": { + "line": 135, + "column": 4 + }, + "end": { + "line": 135, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3357, + "end": 3358, + "loc": { + "start": { + "line": 135, + "column": 13 + }, + "end": { + "line": 135, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pipeParse", + "start": 3358, + "end": 3367, + "loc": { + "start": { + "line": 135, + "column": 14 + }, + "end": { + "line": 135, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3368, + "end": 3369, + "loc": { + "start": { + "line": 135, + "column": 24 + }, + "end": { + "line": 135, + "column": 25 + } + } + }, + { + "type": { + "label": "function", + "keyword": "function", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "function", + "start": 3370, + "end": 3378, + "loc": { + "start": { + "line": 135, + "column": 26 + }, + "end": { + "line": 135, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pipeParse", + "start": 3379, + "end": 3388, + "loc": { + "start": { + "line": 135, + "column": 35 + }, + "end": { + "line": 135, + "column": 44 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3389, + "end": 3390, + "loc": { + "start": { + "line": 135, + "column": 45 + }, + "end": { + "line": 135, + "column": 46 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 3390, + "end": 3397, + "loc": { + "start": { + "line": 135, + "column": 46 + }, + "end": { + "line": 135, + "column": 53 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3398, + "end": 3399, + "loc": { + "start": { + "line": 135, + "column": 54 + }, + "end": { + "line": 135, + "column": 55 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3400, + "end": 3401, + "loc": { + "start": { + "line": 135, + "column": 56 + }, + "end": { + "line": 135, + "column": 57 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3401, + "end": 3402, + "loc": { + "start": { + "line": 135, + "column": 57 + }, + "end": { + "line": 135, + "column": 58 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3402, + "end": 3403, + "loc": { + "start": { + "line": 135, + "column": 58 + }, + "end": { + "line": 135, + "column": 59 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3404, + "end": 3405, + "loc": { + "start": { + "line": 135, + "column": 60 + }, + "end": { + "line": 135, + "column": 61 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 3408, + "end": 3415, + "loc": { + "start": { + "line": 136, + "column": 2 + }, + "end": { + "line": 136, + "column": 9 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3415, + "end": 3416, + "loc": { + "start": { + "line": 136, + "column": 9 + }, + "end": { + "line": 136, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "depth", + "start": 3416, + "end": 3421, + "loc": { + "start": { + "line": 136, + "column": 10 + }, + "end": { + "line": 136, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3422, + "end": 3423, + "loc": { + "start": { + "line": 136, + "column": 16 + }, + "end": { + "line": 136, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 3424, + "end": 3431, + "loc": { + "start": { + "line": 136, + "column": 18 + }, + "end": { + "line": 136, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3431, + "end": 3432, + "loc": { + "start": { + "line": 136, + "column": 25 + }, + "end": { + "line": 136, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "depth", + "start": 3432, + "end": 3437, + "loc": { + "start": { + "line": 136, + "column": 26 + }, + "end": { + "line": 136, + "column": 31 + } + } + }, + { + "type": { + "label": "||", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 1, + "updateContext": null + }, + "value": "||", + "start": 3438, + "end": 3440, + "loc": { + "start": { + "line": 136, + "column": 32 + }, + "end": { + "line": 136, + "column": 34 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 3441, + "end": 3442, + "loc": { + "start": { + "line": 136, + "column": 35 + }, + "end": { + "line": 136, + "column": 36 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 3445, + "end": 3450, + "loc": { + "start": { + "line": 137, + "column": 2 + }, + "end": { + "line": 137, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parser", + "start": 3451, + "end": 3457, + "loc": { + "start": { + "line": 137, + "column": 8 + }, + "end": { + "line": 137, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3458, + "end": 3459, + "loc": { + "start": { + "line": 137, + "column": 15 + }, + "end": { + "line": 137, + "column": 16 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 3460, + "end": 3463, + "loc": { + "start": { + "line": 137, + "column": 17 + }, + "end": { + "line": 137, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "StreamParser", + "start": 3464, + "end": 3476, + "loc": { + "start": { + "line": 137, + "column": 21 + }, + "end": { + "line": 137, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3476, + "end": 3477, + "loc": { + "start": { + "line": 137, + "column": 33 + }, + "end": { + "line": 137, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3477, + "end": 3478, + "loc": { + "start": { + "line": 137, + "column": 34 + }, + "end": { + "line": 137, + "column": 35 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 3482, + "end": 3485, + "loc": { + "start": { + "line": 139, + "column": 2 + }, + "end": { + "line": 139, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 3486, + "end": 3491, + "loc": { + "start": { + "line": 139, + "column": 6 + }, + "end": { + "line": 139, + "column": 11 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3492, + "end": 3493, + "loc": { + "start": { + "line": 139, + "column": 12 + }, + "end": { + "line": 139, + "column": 13 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 3494, + "end": 3495, + "loc": { + "start": { + "line": 139, + "column": 14 + }, + "end": { + "line": 139, + "column": 15 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 3498, + "end": 3501, + "loc": { + "start": { + "line": 140, + "column": 2 + }, + "end": { + "line": 140, + "column": 5 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 3502, + "end": 3512, + "loc": { + "start": { + "line": 140, + "column": 6 + }, + "end": { + "line": 140, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3513, + "end": 3514, + "loc": { + "start": { + "line": 140, + "column": 17 + }, + "end": { + "line": 140, + "column": 18 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 3515, + "end": 3518, + "loc": { + "start": { + "line": 140, + "column": 19 + }, + "end": { + "line": 140, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Map", + "start": 3519, + "end": 3522, + "loc": { + "start": { + "line": 140, + "column": 23 + }, + "end": { + "line": 140, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3522, + "end": 3523, + "loc": { + "start": { + "line": 140, + "column": 26 + }, + "end": { + "line": 140, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3523, + "end": 3524, + "loc": { + "start": { + "line": 140, + "column": 27 + }, + "end": { + "line": 140, + "column": 28 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 3527, + "end": 3532, + "loc": { + "start": { + "line": 141, + "column": 2 + }, + "end": { + "line": 141, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toEmit", + "start": 3533, + "end": 3539, + "loc": { + "start": { + "line": 141, + "column": 8 + }, + "end": { + "line": 141, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3540, + "end": 3541, + "loc": { + "start": { + "line": 141, + "column": 15 + }, + "end": { + "line": 141, + "column": 16 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3542, + "end": 3543, + "loc": { + "start": { + "line": 141, + "column": 17 + }, + "end": { + "line": 141, + "column": 18 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3543, + "end": 3544, + "loc": { + "start": { + "line": 141, + "column": 18 + }, + "end": { + "line": 141, + "column": 19 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 3547, + "end": 3552, + "loc": { + "start": { + "line": 142, + "column": 2 + }, + "end": { + "line": 142, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 3553, + "end": 3560, + "loc": { + "start": { + "line": 142, + "column": 8 + }, + "end": { + "line": 142, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3561, + "end": 3562, + "loc": { + "start": { + "line": 142, + "column": 16 + }, + "end": { + "line": 142, + "column": 17 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3563, + "end": 3564, + "loc": { + "start": { + "line": 142, + "column": 18 + }, + "end": { + "line": 142, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 3569, + "end": 3574, + "loc": { + "start": { + "line": 143, + "column": 4 + }, + "end": { + "line": 143, + "column": 9 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3574, + "end": 3575, + "loc": { + "start": { + "line": 143, + "column": 9 + }, + "end": { + "line": 143, + "column": 10 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 3576, + "end": 3580, + "loc": { + "start": { + "line": 143, + "column": 11 + }, + "end": { + "line": 143, + "column": 15 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3580, + "end": 3581, + "loc": { + "start": { + "line": 143, + "column": 15 + }, + "end": { + "line": 143, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 3586, + "end": 3590, + "loc": { + "start": { + "line": 144, + "column": 4 + }, + "end": { + "line": 144, + "column": 8 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3590, + "end": 3591, + "loc": { + "start": { + "line": 144, + "column": 8 + }, + "end": { + "line": 144, + "column": 9 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 3592, + "end": 3596, + "loc": { + "start": { + "line": 144, + "column": 10 + }, + "end": { + "line": 144, + "column": 14 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3596, + "end": 3597, + "loc": { + "start": { + "line": 144, + "column": 14 + }, + "end": { + "line": 144, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagIndex", + "start": 3602, + "end": 3610, + "loc": { + "start": { + "line": 145, + "column": 4 + }, + "end": { + "line": 145, + "column": 12 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3610, + "end": 3611, + "loc": { + "start": { + "line": 145, + "column": 12 + }, + "end": { + "line": 145, + "column": 13 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 3612, + "end": 3616, + "loc": { + "start": { + "line": 145, + "column": 14 + }, + "end": { + "line": 145, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3619, + "end": 3620, + "loc": { + "start": { + "line": 146, + "column": 2 + }, + "end": { + "line": 146, + "column": 3 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 3624, + "end": 3629, + "loc": { + "start": { + "line": 148, + "column": 2 + }, + "end": { + "line": 148, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getFirstTagName", + "start": 3630, + "end": 3645, + "loc": { + "start": { + "line": 148, + "column": 8 + }, + "end": { + "line": 148, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3646, + "end": 3647, + "loc": { + "start": { + "line": 148, + "column": 24 + }, + "end": { + "line": 148, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "map", + "start": 3648, + "end": 3651, + "loc": { + "start": { + "line": 148, + "column": 26 + }, + "end": { + "line": 148, + "column": 29 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3652, + "end": 3654, + "loc": { + "start": { + "line": 148, + "column": 30 + }, + "end": { + "line": 148, + "column": 32 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3655, + "end": 3656, + "loc": { + "start": { + "line": 148, + "column": 33 + }, + "end": { + "line": 148, + "column": 34 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 3661, + "end": 3663, + "loc": { + "start": { + "line": 149, + "column": 4 + }, + "end": { + "line": 149, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3664, + "end": 3665, + "loc": { + "start": { + "line": 149, + "column": 7 + }, + "end": { + "line": 149, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "map", + "start": 3665, + "end": 3668, + "loc": { + "start": { + "line": 149, + "column": 8 + }, + "end": { + "line": 149, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3668, + "end": 3669, + "loc": { + "start": { + "line": 149, + "column": 11 + }, + "end": { + "line": 149, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "has", + "start": 3669, + "end": 3672, + "loc": { + "start": { + "line": 149, + "column": 12 + }, + "end": { + "line": 149, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3672, + "end": 3673, + "loc": { + "start": { + "line": 149, + "column": 15 + }, + "end": { + "line": 149, + "column": 16 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 3673, + "end": 3674, + "loc": { + "start": { + "line": 149, + "column": 16 + }, + "end": { + "line": 149, + "column": 17 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3674, + "end": 3675, + "loc": { + "start": { + "line": 149, + "column": 17 + }, + "end": { + "line": 149, + "column": 18 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3676, + "end": 3679, + "loc": { + "start": { + "line": 149, + "column": 19 + }, + "end": { + "line": 149, + "column": 22 + } + } + }, + { + "type": { + "label": "false", + "keyword": "false", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "false", + "start": 3680, + "end": 3685, + "loc": { + "start": { + "line": 149, + "column": 23 + }, + "end": { + "line": 149, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3685, + "end": 3686, + "loc": { + "start": { + "line": 149, + "column": 28 + }, + "end": { + "line": 149, + "column": 29 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3687, + "end": 3688, + "loc": { + "start": { + "line": 149, + "column": 30 + }, + "end": { + "line": 149, + "column": 31 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 3695, + "end": 3701, + "loc": { + "start": { + "line": 150, + "column": 6 + }, + "end": { + "line": 150, + "column": 12 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 3702, + "end": 3706, + "loc": { + "start": { + "line": 150, + "column": 13 + }, + "end": { + "line": 150, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3711, + "end": 3712, + "loc": { + "start": { + "line": 151, + "column": 4 + }, + "end": { + "line": 151, + "column": 5 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 3718, + "end": 3723, + "loc": { + "start": { + "line": 153, + "column": 4 + }, + "end": { + "line": 153, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mapPosZero", + "start": 3724, + "end": 3734, + "loc": { + "start": { + "line": 153, + "column": 10 + }, + "end": { + "line": 153, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3735, + "end": 3736, + "loc": { + "start": { + "line": 153, + "column": 21 + }, + "end": { + "line": 153, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "map", + "start": 3737, + "end": 3740, + "loc": { + "start": { + "line": 153, + "column": 23 + }, + "end": { + "line": 153, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3740, + "end": 3741, + "loc": { + "start": { + "line": 153, + "column": 26 + }, + "end": { + "line": 153, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 3741, + "end": 3744, + "loc": { + "start": { + "line": 153, + "column": 27 + }, + "end": { + "line": 153, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3744, + "end": 3745, + "loc": { + "start": { + "line": 153, + "column": 30 + }, + "end": { + "line": 153, + "column": 31 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 3745, + "end": 3746, + "loc": { + "start": { + "line": 153, + "column": 31 + }, + "end": { + "line": 153, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3746, + "end": 3747, + "loc": { + "start": { + "line": 153, + "column": 32 + }, + "end": { + "line": 153, + "column": 33 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 3752, + "end": 3757, + "loc": { + "start": { + "line": 154, + "column": 4 + }, + "end": { + "line": 154, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "arrayMap", + "start": 3758, + "end": 3766, + "loc": { + "start": { + "line": 154, + "column": 10 + }, + "end": { + "line": 154, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3767, + "end": 3768, + "loc": { + "start": { + "line": 154, + "column": 19 + }, + "end": { + "line": 154, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 3769, + "end": 3774, + "loc": { + "start": { + "line": 154, + "column": 21 + }, + "end": { + "line": 154, + "column": 26 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3774, + "end": 3775, + "loc": { + "start": { + "line": 154, + "column": 26 + }, + "end": { + "line": 154, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 3775, + "end": 3779, + "loc": { + "start": { + "line": 154, + "column": 27 + }, + "end": { + "line": 154, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3779, + "end": 3780, + "loc": { + "start": { + "line": 154, + "column": 31 + }, + "end": { + "line": 154, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mapPosZero", + "start": 3780, + "end": 3790, + "loc": { + "start": { + "line": 154, + "column": 32 + }, + "end": { + "line": 154, + "column": 42 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3790, + "end": 3791, + "loc": { + "start": { + "line": 154, + "column": 42 + }, + "end": { + "line": 154, + "column": 43 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 3797, + "end": 3799, + "loc": { + "start": { + "line": 156, + "column": 4 + }, + "end": { + "line": 156, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3800, + "end": 3801, + "loc": { + "start": { + "line": 156, + "column": 7 + }, + "end": { + "line": 156, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "arrayMap", + "start": 3801, + "end": 3809, + "loc": { + "start": { + "line": 156, + "column": 8 + }, + "end": { + "line": 156, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3809, + "end": 3810, + "loc": { + "start": { + "line": 156, + "column": 16 + }, + "end": { + "line": 156, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 3810, + "end": 3816, + "loc": { + "start": { + "line": 156, + "column": 17 + }, + "end": { + "line": 156, + "column": 23 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3817, + "end": 3820, + "loc": { + "start": { + "line": 156, + "column": 24 + }, + "end": { + "line": 156, + "column": 27 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 3821, + "end": 3822, + "loc": { + "start": { + "line": 156, + "column": 28 + }, + "end": { + "line": 156, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3822, + "end": 3823, + "loc": { + "start": { + "line": 156, + "column": 29 + }, + "end": { + "line": 156, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3824, + "end": 3825, + "loc": { + "start": { + "line": 156, + "column": 31 + }, + "end": { + "line": 156, + "column": 32 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 3832, + "end": 3838, + "loc": { + "start": { + "line": 157, + "column": 6 + }, + "end": { + "line": 157, + "column": 12 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 3839, + "end": 3843, + "loc": { + "start": { + "line": 157, + "column": 13 + }, + "end": { + "line": 157, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3848, + "end": 3849, + "loc": { + "start": { + "line": 158, + "column": 4 + }, + "end": { + "line": 158, + "column": 5 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 3855, + "end": 3860, + "loc": { + "start": { + "line": 160, + "column": 4 + }, + "end": { + "line": 160, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyValue", + "start": 3861, + "end": 3869, + "loc": { + "start": { + "line": 160, + "column": 10 + }, + "end": { + "line": 160, + "column": 18 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 3870, + "end": 3871, + "loc": { + "start": { + "line": 160, + "column": 19 + }, + "end": { + "line": 160, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "arrayMap", + "start": 3872, + "end": 3880, + "loc": { + "start": { + "line": 160, + "column": 21 + }, + "end": { + "line": 160, + "column": 29 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3880, + "end": 3881, + "loc": { + "start": { + "line": 160, + "column": 29 + }, + "end": { + "line": 160, + "column": 30 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 3881, + "end": 3882, + "loc": { + "start": { + "line": 160, + "column": 30 + }, + "end": { + "line": 160, + "column": 31 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3882, + "end": 3883, + "loc": { + "start": { + "line": 160, + "column": 31 + }, + "end": { + "line": 160, + "column": 32 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 3889, + "end": 3891, + "loc": { + "start": { + "line": 162, + "column": 4 + }, + "end": { + "line": 162, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3892, + "end": 3893, + "loc": { + "start": { + "line": 162, + "column": 7 + }, + "end": { + "line": 162, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyValue", + "start": 3893, + "end": 3901, + "loc": { + "start": { + "line": 162, + "column": 8 + }, + "end": { + "line": 162, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3901, + "end": 3902, + "loc": { + "start": { + "line": 162, + "column": 16 + }, + "end": { + "line": 162, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 3902, + "end": 3908, + "loc": { + "start": { + "line": 162, + "column": 17 + }, + "end": { + "line": 162, + "column": 23 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 3909, + "end": 3912, + "loc": { + "start": { + "line": 162, + "column": 24 + }, + "end": { + "line": 162, + "column": 27 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 3913, + "end": 3914, + "loc": { + "start": { + "line": 162, + "column": 28 + }, + "end": { + "line": 162, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3914, + "end": 3915, + "loc": { + "start": { + "line": 162, + "column": 29 + }, + "end": { + "line": 162, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3916, + "end": 3917, + "loc": { + "start": { + "line": 162, + "column": 31 + }, + "end": { + "line": 162, + "column": 32 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 3924, + "end": 3930, + "loc": { + "start": { + "line": 163, + "column": 6 + }, + "end": { + "line": 163, + "column": 12 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 3931, + "end": 3935, + "loc": { + "start": { + "line": 163, + "column": 13 + }, + "end": { + "line": 163, + "column": 17 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3940, + "end": 3941, + "loc": { + "start": { + "line": 164, + "column": 4 + }, + "end": { + "line": 164, + "column": 5 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 3947, + "end": 3953, + "loc": { + "start": { + "line": 166, + "column": 4 + }, + "end": { + "line": 166, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keyValue", + "start": 3954, + "end": 3962, + "loc": { + "start": { + "line": 166, + "column": 11 + }, + "end": { + "line": 166, + "column": 19 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3962, + "end": 3963, + "loc": { + "start": { + "line": 166, + "column": 19 + }, + "end": { + "line": 166, + "column": 20 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 3963, + "end": 3964, + "loc": { + "start": { + "line": 166, + "column": 20 + }, + "end": { + "line": 166, + "column": 21 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3964, + "end": 3965, + "loc": { + "start": { + "line": 166, + "column": 21 + }, + "end": { + "line": 166, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3968, + "end": 3969, + "loc": { + "start": { + "line": 167, + "column": 2 + }, + "end": { + "line": 167, + "column": 3 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parser", + "start": 3973, + "end": 3979, + "loc": { + "start": { + "line": 169, + "column": 2 + }, + "end": { + "line": 169, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3979, + "end": 3980, + "loc": { + "start": { + "line": 169, + "column": 8 + }, + "end": { + "line": 169, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "on", + "start": 3980, + "end": 3982, + "loc": { + "start": { + "line": 169, + "column": 9 + }, + "end": { + "line": 169, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3982, + "end": 3983, + "loc": { + "start": { + "line": 169, + "column": 11 + }, + "end": { + "line": 169, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "opentag", + "start": 3983, + "end": 3992, + "loc": { + "start": { + "line": 169, + "column": 12 + }, + "end": { + "line": 169, + "column": 21 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3992, + "end": 3993, + "loc": { + "start": { + "line": 169, + "column": 21 + }, + "end": { + "line": 169, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 3994, + "end": 3995, + "loc": { + "start": { + "line": 169, + "column": 23 + }, + "end": { + "line": 169, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 3995, + "end": 3999, + "loc": { + "start": { + "line": 169, + "column": 24 + }, + "end": { + "line": 169, + "column": 28 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 3999, + "end": 4000, + "loc": { + "start": { + "line": 169, + "column": 28 + }, + "end": { + "line": 169, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attrs", + "start": 4001, + "end": 4006, + "loc": { + "start": { + "line": 169, + "column": 30 + }, + "end": { + "line": 169, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4006, + "end": 4007, + "loc": { + "start": { + "line": 169, + "column": 35 + }, + "end": { + "line": 169, + "column": 36 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4008, + "end": 4010, + "loc": { + "start": { + "line": 169, + "column": 37 + }, + "end": { + "line": 169, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4011, + "end": 4012, + "loc": { + "start": { + "line": 169, + "column": 40 + }, + "end": { + "line": 169, + "column": 41 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 4017, + "end": 4022, + "loc": { + "start": { + "line": 170, + "column": 4 + }, + "end": { + "line": 170, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inheritFrom", + "start": 4023, + "end": 4034, + "loc": { + "start": { + "line": 170, + "column": 10 + }, + "end": { + "line": 170, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4035, + "end": 4036, + "loc": { + "start": { + "line": 170, + "column": 22 + }, + "end": { + "line": 170, + "column": 23 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4037, + "end": 4038, + "loc": { + "start": { + "line": 170, + "column": 24 + }, + "end": { + "line": 170, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4045, + "end": 4050, + "loc": { + "start": { + "line": 171, + "column": 6 + }, + "end": { + "line": 171, + "column": 11 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4050, + "end": 4051, + "loc": { + "start": { + "line": 171, + "column": 11 + }, + "end": { + "line": 171, + "column": 12 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 4052, + "end": 4056, + "loc": { + "start": { + "line": 171, + "column": 13 + }, + "end": { + "line": 171, + "column": 17 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4056, + "end": 4057, + "loc": { + "start": { + "line": 171, + "column": 17 + }, + "end": { + "line": 171, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4064, + "end": 4068, + "loc": { + "start": { + "line": 172, + "column": 6 + }, + "end": { + "line": 172, + "column": 10 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4068, + "end": 4069, + "loc": { + "start": { + "line": 172, + "column": 10 + }, + "end": { + "line": 172, + "column": 11 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 4070, + "end": 4074, + "loc": { + "start": { + "line": 172, + "column": 12 + }, + "end": { + "line": 172, + "column": 16 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4079, + "end": 4080, + "loc": { + "start": { + "line": 173, + "column": 4 + }, + "end": { + "line": 173, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4086, + "end": 4088, + "loc": { + "start": { + "line": 175, + "column": 4 + }, + "end": { + "line": 175, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4089, + "end": 4090, + "loc": { + "start": { + "line": 175, + "column": 7 + }, + "end": { + "line": 175, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4090, + "end": 4095, + "loc": { + "start": { + "line": 175, + "column": 8 + }, + "end": { + "line": 175, + "column": 13 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">=", + "start": 4096, + "end": 4098, + "loc": { + "start": { + "line": 175, + "column": 14 + }, + "end": { + "line": 175, + "column": 16 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 4099, + "end": 4100, + "loc": { + "start": { + "line": 175, + "column": 17 + }, + "end": { + "line": 175, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4100, + "end": 4101, + "loc": { + "start": { + "line": 175, + "column": 18 + }, + "end": { + "line": 175, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4102, + "end": 4103, + "loc": { + "start": { + "line": 175, + "column": 20 + }, + "end": { + "line": 175, + "column": 21 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 4110, + "end": 4115, + "loc": { + "start": { + "line": 176, + "column": 6 + }, + "end": { + "line": 176, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "beforeIndex", + "start": 4116, + "end": 4127, + "loc": { + "start": { + "line": 176, + "column": 12 + }, + "end": { + "line": 176, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4128, + "end": 4129, + "loc": { + "start": { + "line": 176, + "column": 24 + }, + "end": { + "line": 176, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4130, + "end": 4135, + "loc": { + "start": { + "line": 176, + "column": 26 + }, + "end": { + "line": 176, + "column": 31 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 4136, + "end": 4137, + "loc": { + "start": { + "line": 176, + "column": 32 + }, + "end": { + "line": 176, + "column": 33 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 4138, + "end": 4139, + "loc": { + "start": { + "line": 176, + "column": 34 + }, + "end": { + "line": 176, + "column": 35 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 4146, + "end": 4151, + "loc": { + "start": { + "line": 177, + "column": 6 + }, + "end": { + "line": 177, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "beforeKey", + "start": 4152, + "end": 4161, + "loc": { + "start": { + "line": 177, + "column": 12 + }, + "end": { + "line": 177, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4162, + "end": 4163, + "loc": { + "start": { + "line": 177, + "column": 22 + }, + "end": { + "line": 177, + "column": 23 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4164, + "end": 4165, + "loc": { + "start": { + "line": 177, + "column": 24 + }, + "end": { + "line": 177, + "column": 25 + } + } + }, + { + "type": { + "label": "...", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4174, + "end": 4177, + "loc": { + "start": { + "line": 178, + "column": 8 + }, + "end": { + "line": 178, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 4177, + "end": 4187, + "loc": { + "start": { + "line": 178, + "column": 11 + }, + "end": { + "line": 178, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4198, + "end": 4199, + "loc": { + "start": { + "line": 179, + "column": 10 + }, + "end": { + "line": 179, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 4199, + "end": 4202, + "loc": { + "start": { + "line": 179, + "column": 11 + }, + "end": { + "line": 179, + "column": 14 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4202, + "end": 4203, + "loc": { + "start": { + "line": 179, + "column": 14 + }, + "end": { + "line": 179, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "beforeIndex", + "start": 4203, + "end": 4214, + "loc": { + "start": { + "line": 179, + "column": 15 + }, + "end": { + "line": 179, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4214, + "end": 4215, + "loc": { + "start": { + "line": 179, + "column": 26 + }, + "end": { + "line": 179, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4226, + "end": 4227, + "loc": { + "start": { + "line": 180, + "column": 10 + }, + "end": { + "line": 180, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "keys", + "start": 4227, + "end": 4231, + "loc": { + "start": { + "line": 180, + "column": 11 + }, + "end": { + "line": 180, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4231, + "end": 4232, + "loc": { + "start": { + "line": 180, + "column": 15 + }, + "end": { + "line": 180, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4232, + "end": 4233, + "loc": { + "start": { + "line": 180, + "column": 16 + }, + "end": { + "line": 180, + "column": 17 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4240, + "end": 4241, + "loc": { + "start": { + "line": 181, + "column": 6 + }, + "end": { + "line": 181, + "column": 7 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4241, + "end": 4242, + "loc": { + "start": { + "line": 181, + "column": 7 + }, + "end": { + "line": 181, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reverse", + "start": 4242, + "end": 4249, + "loc": { + "start": { + "line": 181, + "column": 8 + }, + "end": { + "line": 181, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4249, + "end": 4250, + "loc": { + "start": { + "line": 181, + "column": 15 + }, + "end": { + "line": 181, + "column": 16 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4250, + "end": 4251, + "loc": { + "start": { + "line": 181, + "column": 16 + }, + "end": { + "line": 181, + "column": 17 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4251, + "end": 4252, + "loc": { + "start": { + "line": 181, + "column": 17 + }, + "end": { + "line": 181, + "column": 18 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 4252, + "end": 4253, + "loc": { + "start": { + "line": 181, + "column": 18 + }, + "end": { + "line": 181, + "column": 19 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4253, + "end": 4254, + "loc": { + "start": { + "line": 181, + "column": 19 + }, + "end": { + "line": 181, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inheritFrom", + "start": 4261, + "end": 4272, + "loc": { + "start": { + "line": 182, + "column": 6 + }, + "end": { + "line": 182, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4272, + "end": 4273, + "loc": { + "start": { + "line": 182, + "column": 17 + }, + "end": { + "line": 182, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4273, + "end": 4278, + "loc": { + "start": { + "line": 182, + "column": 18 + }, + "end": { + "line": 182, + "column": 23 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4279, + "end": 4280, + "loc": { + "start": { + "line": 182, + "column": 24 + }, + "end": { + "line": 182, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "beforeIndex", + "start": 4281, + "end": 4292, + "loc": { + "start": { + "line": 182, + "column": 26 + }, + "end": { + "line": 182, + "column": 37 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inheritFrom", + "start": 4299, + "end": 4310, + "loc": { + "start": { + "line": 183, + "column": 6 + }, + "end": { + "line": 183, + "column": 17 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4310, + "end": 4311, + "loc": { + "start": { + "line": 183, + "column": 17 + }, + "end": { + "line": 183, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4311, + "end": 4315, + "loc": { + "start": { + "line": 183, + "column": 18 + }, + "end": { + "line": 183, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4316, + "end": 4317, + "loc": { + "start": { + "line": 183, + "column": 23 + }, + "end": { + "line": 183, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "beforeKey", + "start": 4318, + "end": 4327, + "loc": { + "start": { + "line": 183, + "column": 25 + }, + "end": { + "line": 183, + "column": 34 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4332, + "end": 4333, + "loc": { + "start": { + "line": 184, + "column": 4 + }, + "end": { + "line": 184, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4339, + "end": 4341, + "loc": { + "start": { + "line": 186, + "column": 4 + }, + "end": { + "line": 186, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4342, + "end": 4343, + "loc": { + "start": { + "line": 186, + "column": 7 + }, + "end": { + "line": 186, + "column": 8 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 4343, + "end": 4344, + "loc": { + "start": { + "line": 186, + "column": 8 + }, + "end": { + "line": 186, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 4344, + "end": 4354, + "loc": { + "start": { + "line": 186, + "column": 9 + }, + "end": { + "line": 186, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4354, + "end": 4355, + "loc": { + "start": { + "line": 186, + "column": 19 + }, + "end": { + "line": 186, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "has", + "start": 4355, + "end": 4358, + "loc": { + "start": { + "line": 186, + "column": 20 + }, + "end": { + "line": 186, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4358, + "end": 4359, + "loc": { + "start": { + "line": 186, + "column": 23 + }, + "end": { + "line": 186, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4359, + "end": 4364, + "loc": { + "start": { + "line": 186, + "column": 24 + }, + "end": { + "line": 186, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4364, + "end": 4365, + "loc": { + "start": { + "line": 186, + "column": 29 + }, + "end": { + "line": 186, + "column": 30 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4365, + "end": 4366, + "loc": { + "start": { + "line": 186, + "column": 30 + }, + "end": { + "line": 186, + "column": 31 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4367, + "end": 4368, + "loc": { + "start": { + "line": 186, + "column": 32 + }, + "end": { + "line": 186, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 4375, + "end": 4385, + "loc": { + "start": { + "line": 187, + "column": 6 + }, + "end": { + "line": 187, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4385, + "end": 4386, + "loc": { + "start": { + "line": 187, + "column": 16 + }, + "end": { + "line": 187, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "set", + "start": 4386, + "end": 4389, + "loc": { + "start": { + "line": 187, + "column": 17 + }, + "end": { + "line": 187, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4389, + "end": 4390, + "loc": { + "start": { + "line": 187, + "column": 20 + }, + "end": { + "line": 187, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4390, + "end": 4395, + "loc": { + "start": { + "line": 187, + "column": 21 + }, + "end": { + "line": 187, + "column": 26 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4395, + "end": 4396, + "loc": { + "start": { + "line": 187, + "column": 26 + }, + "end": { + "line": 187, + "column": 27 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 4397, + "end": 4400, + "loc": { + "start": { + "line": 187, + "column": 28 + }, + "end": { + "line": 187, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Map", + "start": 4401, + "end": 4404, + "loc": { + "start": { + "line": 187, + "column": 32 + }, + "end": { + "line": 187, + "column": 35 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4404, + "end": 4405, + "loc": { + "start": { + "line": 187, + "column": 35 + }, + "end": { + "line": 187, + "column": 36 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4405, + "end": 4406, + "loc": { + "start": { + "line": 187, + "column": 36 + }, + "end": { + "line": 187, + "column": 37 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4406, + "end": 4407, + "loc": { + "start": { + "line": 187, + "column": 37 + }, + "end": { + "line": 187, + "column": 38 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4412, + "end": 4413, + "loc": { + "start": { + "line": 188, + "column": 4 + }, + "end": { + "line": 188, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 4419, + "end": 4421, + "loc": { + "start": { + "line": 190, + "column": 4 + }, + "end": { + "line": 190, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4422, + "end": 4423, + "loc": { + "start": { + "line": 190, + "column": 7 + }, + "end": { + "line": 190, + "column": 8 + } + } + }, + { + "type": { + "label": "prefix", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "!", + "start": 4423, + "end": 4424, + "loc": { + "start": { + "line": 190, + "column": 8 + }, + "end": { + "line": 190, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 4424, + "end": 4434, + "loc": { + "start": { + "line": 190, + "column": 9 + }, + "end": { + "line": 190, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4434, + "end": 4435, + "loc": { + "start": { + "line": 190, + "column": 19 + }, + "end": { + "line": 190, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 4435, + "end": 4438, + "loc": { + "start": { + "line": 190, + "column": 20 + }, + "end": { + "line": 190, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4438, + "end": 4439, + "loc": { + "start": { + "line": 190, + "column": 23 + }, + "end": { + "line": 190, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4439, + "end": 4444, + "loc": { + "start": { + "line": 190, + "column": 24 + }, + "end": { + "line": 190, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4444, + "end": 4445, + "loc": { + "start": { + "line": 190, + "column": 29 + }, + "end": { + "line": 190, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4445, + "end": 4446, + "loc": { + "start": { + "line": 190, + "column": 30 + }, + "end": { + "line": 190, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "has", + "start": 4446, + "end": 4449, + "loc": { + "start": { + "line": 190, + "column": 31 + }, + "end": { + "line": 190, + "column": 34 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4449, + "end": 4450, + "loc": { + "start": { + "line": 190, + "column": 34 + }, + "end": { + "line": 190, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4450, + "end": 4454, + "loc": { + "start": { + "line": 190, + "column": 35 + }, + "end": { + "line": 190, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4454, + "end": 4455, + "loc": { + "start": { + "line": 190, + "column": 39 + }, + "end": { + "line": 190, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4455, + "end": 4456, + "loc": { + "start": { + "line": 190, + "column": 40 + }, + "end": { + "line": 190, + "column": 41 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4457, + "end": 4458, + "loc": { + "start": { + "line": 190, + "column": 42 + }, + "end": { + "line": 190, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 4465, + "end": 4475, + "loc": { + "start": { + "line": 191, + "column": 6 + }, + "end": { + "line": 191, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4475, + "end": 4476, + "loc": { + "start": { + "line": 191, + "column": 16 + }, + "end": { + "line": 191, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 4476, + "end": 4479, + "loc": { + "start": { + "line": 191, + "column": 17 + }, + "end": { + "line": 191, + "column": 20 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4479, + "end": 4480, + "loc": { + "start": { + "line": 191, + "column": 20 + }, + "end": { + "line": 191, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4480, + "end": 4485, + "loc": { + "start": { + "line": 191, + "column": 21 + }, + "end": { + "line": 191, + "column": 26 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4485, + "end": 4486, + "loc": { + "start": { + "line": 191, + "column": 26 + }, + "end": { + "line": 191, + "column": 27 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4486, + "end": 4487, + "loc": { + "start": { + "line": 191, + "column": 27 + }, + "end": { + "line": 191, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "set", + "start": 4487, + "end": 4490, + "loc": { + "start": { + "line": 191, + "column": 28 + }, + "end": { + "line": 191, + "column": 31 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4490, + "end": 4491, + "loc": { + "start": { + "line": 191, + "column": 31 + }, + "end": { + "line": 191, + "column": 32 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4491, + "end": 4495, + "loc": { + "start": { + "line": 191, + "column": 32 + }, + "end": { + "line": 191, + "column": 36 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4495, + "end": 4496, + "loc": { + "start": { + "line": 191, + "column": 36 + }, + "end": { + "line": 191, + "column": 37 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4497, + "end": 4498, + "loc": { + "start": { + "line": 191, + "column": 38 + }, + "end": { + "line": 191, + "column": 39 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4498, + "end": 4499, + "loc": { + "start": { + "line": 191, + "column": 39 + }, + "end": { + "line": 191, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4499, + "end": 4500, + "loc": { + "start": { + "line": 191, + "column": 40 + }, + "end": { + "line": 191, + "column": 41 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4505, + "end": 4506, + "loc": { + "start": { + "line": 192, + "column": 4 + }, + "end": { + "line": 192, + "column": 5 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 4512, + "end": 4517, + "loc": { + "start": { + "line": 194, + "column": 4 + }, + "end": { + "line": 194, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tag", + "start": 4518, + "end": 4521, + "loc": { + "start": { + "line": 194, + "column": 10 + }, + "end": { + "line": 194, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4522, + "end": 4523, + "loc": { + "start": { + "line": 194, + "column": 14 + }, + "end": { + "line": 194, + "column": 15 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 4524, + "end": 4527, + "loc": { + "start": { + "line": 194, + "column": 16 + }, + "end": { + "line": 194, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlTag", + "start": 4528, + "end": 4534, + "loc": { + "start": { + "line": 194, + "column": 20 + }, + "end": { + "line": 194, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4534, + "end": 4535, + "loc": { + "start": { + "line": 194, + "column": 26 + }, + "end": { + "line": 194, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4535, + "end": 4539, + "loc": { + "start": { + "line": 194, + "column": 27 + }, + "end": { + "line": 194, + "column": 31 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4539, + "end": 4540, + "loc": { + "start": { + "line": 194, + "column": 31 + }, + "end": { + "line": 194, + "column": 32 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 4541, + "end": 4545, + "loc": { + "start": { + "line": 194, + "column": 33 + }, + "end": { + "line": 194, + "column": 37 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4545, + "end": 4546, + "loc": { + "start": { + "line": 194, + "column": 37 + }, + "end": { + "line": 194, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attrs", + "start": 4547, + "end": 4552, + "loc": { + "start": { + "line": 194, + "column": 39 + }, + "end": { + "line": 194, + "column": 44 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4552, + "end": 4553, + "loc": { + "start": { + "line": 194, + "column": 44 + }, + "end": { + "line": 194, + "column": 45 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4554, + "end": 4555, + "loc": { + "start": { + "line": 194, + "column": 46 + }, + "end": { + "line": 194, + "column": 47 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4555, + "end": 4556, + "loc": { + "start": { + "line": 194, + "column": 47 + }, + "end": { + "line": 194, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4556, + "end": 4557, + "loc": { + "start": { + "line": 194, + "column": 48 + }, + "end": { + "line": 194, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tag", + "start": 4562, + "end": 4565, + "loc": { + "start": { + "line": 195, + "column": 4 + }, + "end": { + "line": 195, + "column": 7 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4565, + "end": 4566, + "loc": { + "start": { + "line": 195, + "column": 7 + }, + "end": { + "line": 195, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inheritFrom", + "start": 4566, + "end": 4577, + "loc": { + "start": { + "line": 195, + "column": 8 + }, + "end": { + "line": 195, + "column": 19 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4578, + "end": 4579, + "loc": { + "start": { + "line": 195, + "column": 20 + }, + "end": { + "line": 195, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inheritFrom", + "start": 4580, + "end": 4591, + "loc": { + "start": { + "line": 195, + "column": 22 + }, + "end": { + "line": 195, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4597, + "end": 4604, + "loc": { + "start": { + "line": 197, + "column": 4 + }, + "end": { + "line": 197, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4604, + "end": 4605, + "loc": { + "start": { + "line": 197, + "column": 11 + }, + "end": { + "line": 197, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4605, + "end": 4610, + "loc": { + "start": { + "line": 197, + "column": 12 + }, + "end": { + "line": 197, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4611, + "end": 4612, + "loc": { + "start": { + "line": 197, + "column": 18 + }, + "end": { + "line": 197, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4613, + "end": 4618, + "loc": { + "start": { + "line": 197, + "column": 20 + }, + "end": { + "line": 197, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4623, + "end": 4630, + "loc": { + "start": { + "line": 198, + "column": 4 + }, + "end": { + "line": 198, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4630, + "end": 4631, + "loc": { + "start": { + "line": 198, + "column": 11 + }, + "end": { + "line": 198, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4631, + "end": 4635, + "loc": { + "start": { + "line": 198, + "column": 12 + }, + "end": { + "line": 198, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4636, + "end": 4637, + "loc": { + "start": { + "line": 198, + "column": 17 + }, + "end": { + "line": 198, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4638, + "end": 4642, + "loc": { + "start": { + "line": 198, + "column": 19 + }, + "end": { + "line": 198, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4647, + "end": 4654, + "loc": { + "start": { + "line": 199, + "column": 4 + }, + "end": { + "line": 199, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4654, + "end": 4655, + "loc": { + "start": { + "line": 199, + "column": 11 + }, + "end": { + "line": 199, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagIndex", + "start": 4655, + "end": 4663, + "loc": { + "start": { + "line": 199, + "column": 12 + }, + "end": { + "line": 199, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4664, + "end": 4665, + "loc": { + "start": { + "line": 199, + "column": 21 + }, + "end": { + "line": 199, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 4666, + "end": 4676, + "loc": { + "start": { + "line": 199, + "column": 23 + }, + "end": { + "line": 199, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4676, + "end": 4677, + "loc": { + "start": { + "line": 199, + "column": 33 + }, + "end": { + "line": 199, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 4677, + "end": 4680, + "loc": { + "start": { + "line": 199, + "column": 34 + }, + "end": { + "line": 199, + "column": 37 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4680, + "end": 4681, + "loc": { + "start": { + "line": 199, + "column": 37 + }, + "end": { + "line": 199, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4681, + "end": 4686, + "loc": { + "start": { + "line": 199, + "column": 38 + }, + "end": { + "line": 199, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4686, + "end": 4687, + "loc": { + "start": { + "line": 199, + "column": 43 + }, + "end": { + "line": 199, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4687, + "end": 4688, + "loc": { + "start": { + "line": 199, + "column": 44 + }, + "end": { + "line": 199, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 4688, + "end": 4691, + "loc": { + "start": { + "line": 199, + "column": 45 + }, + "end": { + "line": 199, + "column": 48 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4691, + "end": 4692, + "loc": { + "start": { + "line": 199, + "column": 48 + }, + "end": { + "line": 199, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4692, + "end": 4696, + "loc": { + "start": { + "line": 199, + "column": 49 + }, + "end": { + "line": 199, + "column": 53 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4696, + "end": 4697, + "loc": { + "start": { + "line": 199, + "column": 53 + }, + "end": { + "line": 199, + "column": 54 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4697, + "end": 4698, + "loc": { + "start": { + "line": 199, + "column": 54 + }, + "end": { + "line": 199, + "column": 55 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "push", + "start": 4698, + "end": 4702, + "loc": { + "start": { + "line": 199, + "column": 55 + }, + "end": { + "line": 199, + "column": 59 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4702, + "end": 4703, + "loc": { + "start": { + "line": 199, + "column": 59 + }, + "end": { + "line": 199, + "column": 60 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tag", + "start": 4703, + "end": 4706, + "loc": { + "start": { + "line": 199, + "column": 60 + }, + "end": { + "line": 199, + "column": 63 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4706, + "end": 4707, + "loc": { + "start": { + "line": 199, + "column": 63 + }, + "end": { + "line": 199, + "column": 64 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 4708, + "end": 4709, + "loc": { + "start": { + "line": 199, + "column": 65 + }, + "end": { + "line": 199, + "column": 66 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 4710, + "end": 4711, + "loc": { + "start": { + "line": 199, + "column": 67 + }, + "end": { + "line": 199, + "column": 68 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tag", + "start": 4716, + "end": 4719, + "loc": { + "start": { + "line": 200, + "column": 4 + }, + "end": { + "line": 200, + "column": 7 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4719, + "end": 4720, + "loc": { + "start": { + "line": 200, + "column": 7 + }, + "end": { + "line": 200, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inheritFrom", + "start": 4720, + "end": 4731, + "loc": { + "start": { + "line": 200, + "column": 8 + }, + "end": { + "line": 200, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4731, + "end": 4732, + "loc": { + "start": { + "line": 200, + "column": 19 + }, + "end": { + "line": 200, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagIndex", + "start": 4732, + "end": 4740, + "loc": { + "start": { + "line": 200, + "column": 20 + }, + "end": { + "line": 200, + "column": 28 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4741, + "end": 4742, + "loc": { + "start": { + "line": 200, + "column": 29 + }, + "end": { + "line": 200, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4743, + "end": 4750, + "loc": { + "start": { + "line": 200, + "column": 31 + }, + "end": { + "line": 200, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4750, + "end": 4751, + "loc": { + "start": { + "line": 200, + "column": 38 + }, + "end": { + "line": 200, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagIndex", + "start": 4751, + "end": 4759, + "loc": { + "start": { + "line": 200, + "column": 39 + }, + "end": { + "line": 200, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4764, + "end": 4769, + "loc": { + "start": { + "line": 201, + "column": 4 + }, + "end": { + "line": 201, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4770, + "end": 4771, + "loc": { + "start": { + "line": 201, + "column": 10 + }, + "end": { + "line": 201, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4772, + "end": 4777, + "loc": { + "start": { + "line": 201, + "column": 12 + }, + "end": { + "line": 201, + "column": 17 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "+", + "start": 4778, + "end": 4779, + "loc": { + "start": { + "line": 201, + "column": 18 + }, + "end": { + "line": 201, + "column": 19 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 4780, + "end": 4781, + "loc": { + "start": { + "line": 201, + "column": 20 + }, + "end": { + "line": 201, + "column": 21 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4784, + "end": 4785, + "loc": { + "start": { + "line": 202, + "column": 2 + }, + "end": { + "line": 202, + "column": 3 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4785, + "end": 4786, + "loc": { + "start": { + "line": 202, + "column": 3 + }, + "end": { + "line": 202, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parser", + "start": 4790, + "end": 4796, + "loc": { + "start": { + "line": 204, + "column": 2 + }, + "end": { + "line": 204, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4796, + "end": 4797, + "loc": { + "start": { + "line": 204, + "column": 8 + }, + "end": { + "line": 204, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "on", + "start": 4797, + "end": 4799, + "loc": { + "start": { + "line": 204, + "column": 9 + }, + "end": { + "line": 204, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4799, + "end": 4800, + "loc": { + "start": { + "line": 204, + "column": 11 + }, + "end": { + "line": 204, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "text", + "start": 4800, + "end": 4806, + "loc": { + "start": { + "line": 204, + "column": 12 + }, + "end": { + "line": 204, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4806, + "end": 4807, + "loc": { + "start": { + "line": 204, + "column": 18 + }, + "end": { + "line": 204, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4808, + "end": 4809, + "loc": { + "start": { + "line": 204, + "column": 20 + }, + "end": { + "line": 204, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "text", + "start": 4809, + "end": 4813, + "loc": { + "start": { + "line": 204, + "column": 21 + }, + "end": { + "line": 204, + "column": 25 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4813, + "end": 4814, + "loc": { + "start": { + "line": 204, + "column": 25 + }, + "end": { + "line": 204, + "column": 26 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4815, + "end": 4817, + "loc": { + "start": { + "line": 204, + "column": 27 + }, + "end": { + "line": 204, + "column": 29 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4818, + "end": 4819, + "loc": { + "start": { + "line": 204, + "column": 30 + }, + "end": { + "line": 204, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 4824, + "end": 4834, + "loc": { + "start": { + "line": 205, + "column": 4 + }, + "end": { + "line": 205, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4841, + "end": 4842, + "loc": { + "start": { + "line": 206, + "column": 6 + }, + "end": { + "line": 206, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 4842, + "end": 4845, + "loc": { + "start": { + "line": 206, + "column": 7 + }, + "end": { + "line": 206, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4845, + "end": 4846, + "loc": { + "start": { + "line": 206, + "column": 10 + }, + "end": { + "line": 206, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4846, + "end": 4853, + "loc": { + "start": { + "line": 206, + "column": 11 + }, + "end": { + "line": 206, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4853, + "end": 4854, + "loc": { + "start": { + "line": 206, + "column": 18 + }, + "end": { + "line": 206, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4854, + "end": 4859, + "loc": { + "start": { + "line": 206, + "column": 19 + }, + "end": { + "line": 206, + "column": 24 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4859, + "end": 4860, + "loc": { + "start": { + "line": 206, + "column": 24 + }, + "end": { + "line": 206, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4867, + "end": 4868, + "loc": { + "start": { + "line": 207, + "column": 6 + }, + "end": { + "line": 207, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 4868, + "end": 4871, + "loc": { + "start": { + "line": 207, + "column": 7 + }, + "end": { + "line": 207, + "column": 10 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4871, + "end": 4872, + "loc": { + "start": { + "line": 207, + "column": 10 + }, + "end": { + "line": 207, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4872, + "end": 4879, + "loc": { + "start": { + "line": 207, + "column": 11 + }, + "end": { + "line": 207, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4879, + "end": 4880, + "loc": { + "start": { + "line": 207, + "column": 18 + }, + "end": { + "line": 207, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4880, + "end": 4884, + "loc": { + "start": { + "line": 207, + "column": 19 + }, + "end": { + "line": 207, + "column": 23 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 4884, + "end": 4885, + "loc": { + "start": { + "line": 207, + "column": 23 + }, + "end": { + "line": 207, + "column": 24 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4885, + "end": 4886, + "loc": { + "start": { + "line": 207, + "column": 24 + }, + "end": { + "line": 207, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4886, + "end": 4893, + "loc": { + "start": { + "line": 207, + "column": 25 + }, + "end": { + "line": 207, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4893, + "end": 4894, + "loc": { + "start": { + "line": 207, + "column": 32 + }, + "end": { + "line": 207, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagIndex", + "start": 4894, + "end": 4902, + "loc": { + "start": { + "line": 207, + "column": 33 + }, + "end": { + "line": 207, + "column": 41 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4902, + "end": 4903, + "loc": { + "start": { + "line": 207, + "column": 41 + }, + "end": { + "line": 207, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4910, + "end": 4911, + "loc": { + "start": { + "line": 208, + "column": 6 + }, + "end": { + "line": 208, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "value", + "start": 4911, + "end": 4916, + "loc": { + "start": { + "line": 208, + "column": 7 + }, + "end": { + "line": 208, + "column": 12 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4917, + "end": 4918, + "loc": { + "start": { + "line": 208, + "column": 13 + }, + "end": { + "line": 208, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "text", + "start": 4919, + "end": 4923, + "loc": { + "start": { + "line": 208, + "column": 15 + }, + "end": { + "line": 208, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4929, + "end": 4936, + "loc": { + "start": { + "line": 210, + "column": 4 + }, + "end": { + "line": 210, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4936, + "end": 4937, + "loc": { + "start": { + "line": 210, + "column": 11 + }, + "end": { + "line": 210, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 4937, + "end": 4942, + "loc": { + "start": { + "line": 210, + "column": 12 + }, + "end": { + "line": 210, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4943, + "end": 4944, + "loc": { + "start": { + "line": 210, + "column": 18 + }, + "end": { + "line": 210, + "column": 19 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 4945, + "end": 4949, + "loc": { + "start": { + "line": 210, + "column": 20 + }, + "end": { + "line": 210, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4954, + "end": 4961, + "loc": { + "start": { + "line": 211, + "column": 4 + }, + "end": { + "line": 211, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4961, + "end": 4962, + "loc": { + "start": { + "line": 211, + "column": 11 + }, + "end": { + "line": 211, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 4962, + "end": 4966, + "loc": { + "start": { + "line": 211, + "column": 12 + }, + "end": { + "line": 211, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4967, + "end": 4968, + "loc": { + "start": { + "line": 211, + "column": 17 + }, + "end": { + "line": 211, + "column": 18 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 4969, + "end": 4973, + "loc": { + "start": { + "line": 211, + "column": 19 + }, + "end": { + "line": 211, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "lastTag", + "start": 4978, + "end": 4985, + "loc": { + "start": { + "line": 212, + "column": 4 + }, + "end": { + "line": 212, + "column": 11 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 4985, + "end": 4986, + "loc": { + "start": { + "line": 212, + "column": 11 + }, + "end": { + "line": 212, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagIndex", + "start": 4986, + "end": 4994, + "loc": { + "start": { + "line": 212, + "column": 12 + }, + "end": { + "line": 212, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 4995, + "end": 4996, + "loc": { + "start": { + "line": 212, + "column": 21 + }, + "end": { + "line": 212, + "column": 22 + } + } + }, + { + "type": { + "label": "null", + "keyword": "null", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "null", + "start": 4997, + "end": 5001, + "loc": { + "start": { + "line": 212, + "column": 23 + }, + "end": { + "line": 212, + "column": 27 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5004, + "end": 5005, + "loc": { + "start": { + "line": 213, + "column": 2 + }, + "end": { + "line": 213, + "column": 3 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5005, + "end": 5006, + "loc": { + "start": { + "line": 213, + "column": 3 + }, + "end": { + "line": 213, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parser", + "start": 5010, + "end": 5016, + "loc": { + "start": { + "line": 215, + "column": 2 + }, + "end": { + "line": 215, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5016, + "end": 5017, + "loc": { + "start": { + "line": 215, + "column": 8 + }, + "end": { + "line": 215, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "on", + "start": 5017, + "end": 5019, + "loc": { + "start": { + "line": 215, + "column": 9 + }, + "end": { + "line": 215, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5019, + "end": 5020, + "loc": { + "start": { + "line": 215, + "column": 11 + }, + "end": { + "line": 215, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "closetag", + "start": 5020, + "end": 5030, + "loc": { + "start": { + "line": 215, + "column": 12 + }, + "end": { + "line": 215, + "column": 22 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5030, + "end": 5031, + "loc": { + "start": { + "line": 215, + "column": 22 + }, + "end": { + "line": 215, + "column": 23 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5032, + "end": 5033, + "loc": { + "start": { + "line": 215, + "column": 24 + }, + "end": { + "line": 215, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 5033, + "end": 5037, + "loc": { + "start": { + "line": 215, + "column": 25 + }, + "end": { + "line": 215, + "column": 29 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5037, + "end": 5038, + "loc": { + "start": { + "line": 215, + "column": 29 + }, + "end": { + "line": 215, + "column": 30 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5039, + "end": 5041, + "loc": { + "start": { + "line": 215, + "column": 31 + }, + "end": { + "line": 215, + "column": 33 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5042, + "end": 5043, + "loc": { + "start": { + "line": 215, + "column": 34 + }, + "end": { + "line": 215, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 5048, + "end": 5053, + "loc": { + "start": { + "line": 216, + "column": 4 + }, + "end": { + "line": 216, + "column": 9 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5054, + "end": 5055, + "loc": { + "start": { + "line": 216, + "column": 10 + }, + "end": { + "line": 216, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 5056, + "end": 5061, + "loc": { + "start": { + "line": 216, + "column": 12 + }, + "end": { + "line": 216, + "column": 17 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 5062, + "end": 5063, + "loc": { + "start": { + "line": 216, + "column": 18 + }, + "end": { + "line": 216, + "column": 19 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 5064, + "end": 5065, + "loc": { + "start": { + "line": 216, + "column": 20 + }, + "end": { + "line": 216, + "column": 21 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 5071, + "end": 5073, + "loc": { + "start": { + "line": 218, + "column": 4 + }, + "end": { + "line": 218, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5074, + "end": 5075, + "loc": { + "start": { + "line": 218, + "column": 7 + }, + "end": { + "line": 218, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 5075, + "end": 5080, + "loc": { + "start": { + "line": 218, + "column": 8 + }, + "end": { + "line": 218, + "column": 13 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 5081, + "end": 5084, + "loc": { + "start": { + "line": 218, + "column": 14 + }, + "end": { + "line": 218, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "options", + "start": 5085, + "end": 5092, + "loc": { + "start": { + "line": 218, + "column": 18 + }, + "end": { + "line": 218, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5092, + "end": 5093, + "loc": { + "start": { + "line": 218, + "column": 25 + }, + "end": { + "line": 218, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "depth", + "start": 5093, + "end": 5098, + "loc": { + "start": { + "line": 218, + "column": 26 + }, + "end": { + "line": 218, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5098, + "end": 5099, + "loc": { + "start": { + "line": 218, + "column": 31 + }, + "end": { + "line": 218, + "column": 32 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5100, + "end": 5101, + "loc": { + "start": { + "line": 218, + "column": 33 + }, + "end": { + "line": 218, + "column": 34 + } + } + }, + { + "type": "CommentBlock", + "value": "*\n * must reorganize data to a single object\n * them emit it\n ", + "start": 5108, + "end": 5191, + "loc": { + "start": { + "line": 219, + "column": 6 + }, + "end": { + "line": 222, + "column": 8 + } + } + }, + { + "type": { + "label": "let", + "keyword": "let", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "let", + "start": 5198, + "end": 5201, + "loc": { + "start": { + "line": 223, + "column": 6 + }, + "end": { + "line": 223, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entries", + "start": 5202, + "end": 5209, + "loc": { + "start": { + "line": 223, + "column": 10 + }, + "end": { + "line": 223, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5210, + "end": 5211, + "loc": { + "start": { + "line": 223, + "column": 18 + }, + "end": { + "line": 223, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 5212, + "end": 5217, + "loc": { + "start": { + "line": 223, + "column": 20 + }, + "end": { + "line": 223, + "column": 25 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5217, + "end": 5218, + "loc": { + "start": { + "line": 223, + "column": 25 + }, + "end": { + "line": 223, + "column": 26 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 5218, + "end": 5222, + "loc": { + "start": { + "line": 223, + "column": 26 + }, + "end": { + "line": 223, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5222, + "end": 5223, + "loc": { + "start": { + "line": 223, + "column": 30 + }, + "end": { + "line": 223, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 5223, + "end": 5233, + "loc": { + "start": { + "line": 223, + "column": 31 + }, + "end": { + "line": 223, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5233, + "end": 5234, + "loc": { + "start": { + "line": 223, + "column": 41 + }, + "end": { + "line": 223, + "column": 42 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5234, + "end": 5235, + "loc": { + "start": { + "line": 223, + "column": 42 + }, + "end": { + "line": 223, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reverse", + "start": 5235, + "end": 5242, + "loc": { + "start": { + "line": 223, + "column": 43 + }, + "end": { + "line": 223, + "column": 50 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5242, + "end": 5243, + "loc": { + "start": { + "line": 223, + "column": 50 + }, + "end": { + "line": 223, + "column": 51 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5243, + "end": 5244, + "loc": { + "start": { + "line": 223, + "column": 51 + }, + "end": { + "line": 223, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entries", + "start": 5251, + "end": 5258, + "loc": { + "start": { + "line": 224, + "column": 6 + }, + "end": { + "line": 224, + "column": 13 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5259, + "end": 5260, + "loc": { + "start": { + "line": 224, + "column": 14 + }, + "end": { + "line": 224, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entries", + "start": 5261, + "end": 5268, + "loc": { + "start": { + "line": 224, + "column": 16 + }, + "end": { + "line": 224, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5268, + "end": 5269, + "loc": { + "start": { + "line": 224, + "column": 23 + }, + "end": { + "line": 224, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "map", + "start": 5269, + "end": 5272, + "loc": { + "start": { + "line": 224, + "column": 24 + }, + "end": { + "line": 224, + "column": 27 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5272, + "end": 5273, + "loc": { + "start": { + "line": 224, + "column": 27 + }, + "end": { + "line": 224, + "column": 28 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5282, + "end": 5283, + "loc": { + "start": { + "line": 225, + "column": 8 + }, + "end": { + "line": 225, + "column": 9 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5283, + "end": 5284, + "loc": { + "start": { + "line": 225, + "column": 9 + }, + "end": { + "line": 225, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "intIndex", + "start": 5284, + "end": 5292, + "loc": { + "start": { + "line": 225, + "column": 10 + }, + "end": { + "line": 225, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5292, + "end": 5293, + "loc": { + "start": { + "line": 225, + "column": 18 + }, + "end": { + "line": 225, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagsMap", + "start": 5294, + "end": 5301, + "loc": { + "start": { + "line": 225, + "column": 20 + }, + "end": { + "line": 225, + "column": 27 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5301, + "end": 5302, + "loc": { + "start": { + "line": 225, + "column": 27 + }, + "end": { + "line": 225, + "column": 28 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5302, + "end": 5303, + "loc": { + "start": { + "line": 225, + "column": 28 + }, + "end": { + "line": 225, + "column": 29 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5304, + "end": 5306, + "loc": { + "start": { + "line": 225, + "column": 30 + }, + "end": { + "line": 225, + "column": 32 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5307, + "end": 5308, + "loc": { + "start": { + "line": 225, + "column": 33 + }, + "end": { + "line": 225, + "column": 34 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5308, + "end": 5309, + "loc": { + "start": { + "line": 225, + "column": 34 + }, + "end": { + "line": 225, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "intIndex", + "start": 5320, + "end": 5328, + "loc": { + "start": { + "line": 226, + "column": 10 + }, + "end": { + "line": 226, + "column": 18 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5328, + "end": 5329, + "loc": { + "start": { + "line": 226, + "column": 18 + }, + "end": { + "line": 226, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagsMap", + "start": 5330, + "end": 5337, + "loc": { + "start": { + "line": 226, + "column": 20 + }, + "end": { + "line": 226, + "column": 27 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5337, + "end": 5338, + "loc": { + "start": { + "line": 226, + "column": 27 + }, + "end": { + "line": 226, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Array", + "start": 5339, + "end": 5344, + "loc": { + "start": { + "line": 226, + "column": 29 + }, + "end": { + "line": 226, + "column": 34 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5344, + "end": 5345, + "loc": { + "start": { + "line": 226, + "column": 34 + }, + "end": { + "line": 226, + "column": 35 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "from", + "start": 5345, + "end": 5349, + "loc": { + "start": { + "line": 226, + "column": 35 + }, + "end": { + "line": 226, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5349, + "end": 5350, + "loc": { + "start": { + "line": 226, + "column": 39 + }, + "end": { + "line": 226, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagsMap", + "start": 5350, + "end": 5357, + "loc": { + "start": { + "line": 226, + "column": 40 + }, + "end": { + "line": 226, + "column": 47 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5357, + "end": 5358, + "loc": { + "start": { + "line": 226, + "column": 47 + }, + "end": { + "line": 226, + "column": 48 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5358, + "end": 5359, + "loc": { + "start": { + "line": 226, + "column": 48 + }, + "end": { + "line": 226, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reverse", + "start": 5359, + "end": 5366, + "loc": { + "start": { + "line": 226, + "column": 49 + }, + "end": { + "line": 226, + "column": 56 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5366, + "end": 5367, + "loc": { + "start": { + "line": 226, + "column": 56 + }, + "end": { + "line": 226, + "column": 57 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5367, + "end": 5368, + "loc": { + "start": { + "line": 226, + "column": 57 + }, + "end": { + "line": 226, + "column": 58 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5377, + "end": 5378, + "loc": { + "start": { + "line": 227, + "column": 8 + }, + "end": { + "line": 227, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5378, + "end": 5379, + "loc": { + "start": { + "line": 227, + "column": 9 + }, + "end": { + "line": 227, + "column": 10 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5386, + "end": 5387, + "loc": { + "start": { + "line": 228, + "column": 6 + }, + "end": { + "line": 228, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entries", + "start": 5394, + "end": 5401, + "loc": { + "start": { + "line": 229, + "column": 6 + }, + "end": { + "line": 229, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5401, + "end": 5402, + "loc": { + "start": { + "line": 229, + "column": 13 + }, + "end": { + "line": 229, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "pop", + "start": 5402, + "end": 5405, + "loc": { + "start": { + "line": 229, + "column": 14 + }, + "end": { + "line": 229, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5405, + "end": 5406, + "loc": { + "start": { + "line": 229, + "column": 17 + }, + "end": { + "line": 229, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5406, + "end": 5407, + "loc": { + "start": { + "line": 229, + "column": 18 + }, + "end": { + "line": 229, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entries", + "start": 5414, + "end": 5421, + "loc": { + "start": { + "line": 230, + "column": 6 + }, + "end": { + "line": 230, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5421, + "end": 5422, + "loc": { + "start": { + "line": 230, + "column": 13 + }, + "end": { + "line": 230, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 5422, + "end": 5429, + "loc": { + "start": { + "line": 230, + "column": 14 + }, + "end": { + "line": 230, + "column": 21 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5429, + "end": 5430, + "loc": { + "start": { + "line": 230, + "column": 21 + }, + "end": { + "line": 230, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entry", + "start": 5430, + "end": 5435, + "loc": { + "start": { + "line": 230, + "column": 22 + }, + "end": { + "line": 230, + "column": 27 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5436, + "end": 5438, + "loc": { + "start": { + "line": 230, + "column": 28 + }, + "end": { + "line": 230, + "column": 30 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5439, + "end": 5440, + "loc": { + "start": { + "line": 230, + "column": 31 + }, + "end": { + "line": 230, + "column": 32 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 5449, + "end": 5454, + "loc": { + "start": { + "line": 231, + "column": 8 + }, + "end": { + "line": 231, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "intIndex", + "start": 5455, + "end": 5463, + "loc": { + "start": { + "line": 231, + "column": 14 + }, + "end": { + "line": 231, + "column": 22 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5464, + "end": 5465, + "loc": { + "start": { + "line": 231, + "column": 23 + }, + "end": { + "line": 231, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entry", + "start": 5466, + "end": 5471, + "loc": { + "start": { + "line": 231, + "column": 25 + }, + "end": { + "line": 231, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5471, + "end": 5472, + "loc": { + "start": { + "line": 231, + "column": 30 + }, + "end": { + "line": 231, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "intIndex", + "start": 5472, + "end": 5480, + "loc": { + "start": { + "line": 231, + "column": 31 + }, + "end": { + "line": 231, + "column": 39 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 5481, + "end": 5484, + "loc": { + "start": { + "line": 231, + "column": 40 + }, + "end": { + "line": 231, + "column": 43 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 5485, + "end": 5486, + "loc": { + "start": { + "line": 231, + "column": 44 + }, + "end": { + "line": 231, + "column": 45 + } + } + }, + { + "type": { + "label": "?", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5487, + "end": 5488, + "loc": { + "start": { + "line": 231, + "column": 46 + }, + "end": { + "line": 231, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entry", + "start": 5489, + "end": 5494, + "loc": { + "start": { + "line": 231, + "column": 48 + }, + "end": { + "line": 231, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5494, + "end": 5495, + "loc": { + "start": { + "line": 231, + "column": 53 + }, + "end": { + "line": 231, + "column": 54 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "intIndex", + "start": 5495, + "end": 5503, + "loc": { + "start": { + "line": 231, + "column": 54 + }, + "end": { + "line": 231, + "column": 62 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5504, + "end": 5505, + "loc": { + "start": { + "line": 231, + "column": 63 + }, + "end": { + "line": 231, + "column": 64 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entry", + "start": 5506, + "end": 5511, + "loc": { + "start": { + "line": 231, + "column": 65 + }, + "end": { + "line": 231, + "column": 70 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5511, + "end": 5512, + "loc": { + "start": { + "line": 231, + "column": 70 + }, + "end": { + "line": 231, + "column": 71 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "intIndex", + "start": 5512, + "end": 5520, + "loc": { + "start": { + "line": 231, + "column": 71 + }, + "end": { + "line": 231, + "column": 79 + } + } + }, + { + "type": { + "label": "+/-", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": true, + "postfix": false, + "binop": 9, + "updateContext": null + }, + "value": "-", + "start": 5521, + "end": 5522, + "loc": { + "start": { + "line": 231, + "column": 80 + }, + "end": { + "line": 231, + "column": 81 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 5523, + "end": 5524, + "loc": { + "start": { + "line": 231, + "column": 82 + }, + "end": { + "line": 231, + "column": 83 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 5533, + "end": 5538, + "loc": { + "start": { + "line": 232, + "column": 8 + }, + "end": { + "line": 232, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "indexedTags", + "start": 5539, + "end": 5550, + "loc": { + "start": { + "line": 232, + "column": 14 + }, + "end": { + "line": 232, + "column": 25 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5551, + "end": 5552, + "loc": { + "start": { + "line": 232, + "column": 26 + }, + "end": { + "line": 232, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 5553, + "end": 5563, + "loc": { + "start": { + "line": 232, + "column": 28 + }, + "end": { + "line": 232, + "column": 38 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5563, + "end": 5564, + "loc": { + "start": { + "line": 232, + "column": 38 + }, + "end": { + "line": 232, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 5564, + "end": 5567, + "loc": { + "start": { + "line": 232, + "column": 39 + }, + "end": { + "line": 232, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5567, + "end": 5568, + "loc": { + "start": { + "line": 232, + "column": 42 + }, + "end": { + "line": 232, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "intIndex", + "start": 5568, + "end": 5576, + "loc": { + "start": { + "line": 232, + "column": 43 + }, + "end": { + "line": 232, + "column": 51 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5576, + "end": 5577, + "loc": { + "start": { + "line": 232, + "column": 51 + }, + "end": { + "line": 232, + "column": 52 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "entry", + "start": 5587, + "end": 5592, + "loc": { + "start": { + "line": 234, + "column": 8 + }, + "end": { + "line": 234, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5592, + "end": 5593, + "loc": { + "start": { + "line": 234, + "column": 13 + }, + "end": { + "line": 234, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagsMap", + "start": 5593, + "end": 5600, + "loc": { + "start": { + "line": 234, + "column": 14 + }, + "end": { + "line": 234, + "column": 21 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5600, + "end": 5601, + "loc": { + "start": { + "line": 234, + "column": 21 + }, + "end": { + "line": 234, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 5601, + "end": 5608, + "loc": { + "start": { + "line": 234, + "column": 22 + }, + "end": { + "line": 234, + "column": 29 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5608, + "end": 5609, + "loc": { + "start": { + "line": 234, + "column": 29 + }, + "end": { + "line": 234, + "column": 30 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tag", + "start": 5609, + "end": 5612, + "loc": { + "start": { + "line": 234, + "column": 30 + }, + "end": { + "line": 234, + "column": 33 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5613, + "end": 5615, + "loc": { + "start": { + "line": 234, + "column": 34 + }, + "end": { + "line": 234, + "column": 36 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5616, + "end": 5617, + "loc": { + "start": { + "line": 234, + "column": 37 + }, + "end": { + "line": 234, + "column": 38 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 5628, + "end": 5633, + "loc": { + "start": { + "line": 235, + "column": 10 + }, + "end": { + "line": 235, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "list", + "start": 5634, + "end": 5638, + "loc": { + "start": { + "line": 235, + "column": 16 + }, + "end": { + "line": 235, + "column": 20 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 5639, + "end": 5640, + "loc": { + "start": { + "line": 235, + "column": 21 + }, + "end": { + "line": 235, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tag", + "start": 5641, + "end": 5644, + "loc": { + "start": { + "line": 235, + "column": 23 + }, + "end": { + "line": 235, + "column": 26 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5644, + "end": 5645, + "loc": { + "start": { + "line": 235, + "column": 26 + }, + "end": { + "line": 235, + "column": 27 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 1, + "start": 5645, + "end": 5646, + "loc": { + "start": { + "line": 235, + "column": 27 + }, + "end": { + "line": 235, + "column": 28 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5646, + "end": 5647, + "loc": { + "start": { + "line": 235, + "column": 28 + }, + "end": { + "line": 235, + "column": 29 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "list", + "start": 5658, + "end": 5662, + "loc": { + "start": { + "line": 236, + "column": 10 + }, + "end": { + "line": 236, + "column": 14 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5662, + "end": 5663, + "loc": { + "start": { + "line": 236, + "column": 14 + }, + "end": { + "line": 236, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 5663, + "end": 5670, + "loc": { + "start": { + "line": 236, + "column": 15 + }, + "end": { + "line": 236, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5670, + "end": 5671, + "loc": { + "start": { + "line": 236, + "column": 22 + }, + "end": { + "line": 236, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagToBePushed", + "start": 5671, + "end": 5684, + "loc": { + "start": { + "line": 236, + "column": 23 + }, + "end": { + "line": 236, + "column": 36 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5685, + "end": 5687, + "loc": { + "start": { + "line": 236, + "column": 37 + }, + "end": { + "line": 236, + "column": 39 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5688, + "end": 5689, + "loc": { + "start": { + "line": 236, + "column": 40 + }, + "end": { + "line": 236, + "column": 41 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "indexedTags", + "start": 5702, + "end": 5713, + "loc": { + "start": { + "line": 237, + "column": 12 + }, + "end": { + "line": 237, + "column": 23 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5728, + "end": 5729, + "loc": { + "start": { + "line": 238, + "column": 14 + }, + "end": { + "line": 238, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 5729, + "end": 5732, + "loc": { + "start": { + "line": 238, + "column": 15 + }, + "end": { + "line": 238, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5732, + "end": 5733, + "loc": { + "start": { + "line": 238, + "column": 18 + }, + "end": { + "line": 238, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagToBePushed", + "start": 5733, + "end": 5746, + "loc": { + "start": { + "line": 238, + "column": 19 + }, + "end": { + "line": 238, + "column": 32 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5746, + "end": 5747, + "loc": { + "start": { + "line": 238, + "column": 32 + }, + "end": { + "line": 238, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "inheritFrom", + "start": 5747, + "end": 5758, + "loc": { + "start": { + "line": 238, + "column": 33 + }, + "end": { + "line": 238, + "column": 44 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5758, + "end": 5759, + "loc": { + "start": { + "line": 238, + "column": 44 + }, + "end": { + "line": 238, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 5759, + "end": 5763, + "loc": { + "start": { + "line": 238, + "column": 45 + }, + "end": { + "line": 238, + "column": 49 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5763, + "end": 5764, + "loc": { + "start": { + "line": 238, + "column": 49 + }, + "end": { + "line": 238, + "column": 50 + } + } + }, + { + "type": { + "label": "[", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5764, + "end": 5765, + "loc": { + "start": { + "line": 238, + "column": 50 + }, + "end": { + "line": 238, + "column": 51 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 5765, + "end": 5766, + "loc": { + "start": { + "line": 238, + "column": 51 + }, + "end": { + "line": 238, + "column": 52 + } + } + }, + { + "type": { + "label": "]", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5766, + "end": 5767, + "loc": { + "start": { + "line": 238, + "column": 52 + }, + "end": { + "line": 238, + "column": 53 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5782, + "end": 5783, + "loc": { + "start": { + "line": 239, + "column": 14 + }, + "end": { + "line": 239, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tags", + "start": 5783, + "end": 5787, + "loc": { + "start": { + "line": 239, + "column": 15 + }, + "end": { + "line": 239, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5802, + "end": 5803, + "loc": { + "start": { + "line": 240, + "column": 14 + }, + "end": { + "line": 240, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "push", + "start": 5803, + "end": 5807, + "loc": { + "start": { + "line": 240, + "column": 15 + }, + "end": { + "line": 240, + "column": 19 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5807, + "end": 5808, + "loc": { + "start": { + "line": 240, + "column": 19 + }, + "end": { + "line": 240, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tagToBePushed", + "start": 5808, + "end": 5821, + "loc": { + "start": { + "line": 240, + "column": 20 + }, + "end": { + "line": 240, + "column": 33 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5821, + "end": 5822, + "loc": { + "start": { + "line": 240, + "column": 33 + }, + "end": { + "line": 240, + "column": 34 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reset", + "start": 5822, + "end": 5827, + "loc": { + "start": { + "line": 240, + "column": 34 + }, + "end": { + "line": 240, + "column": 39 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5827, + "end": 5828, + "loc": { + "start": { + "line": 240, + "column": 39 + }, + "end": { + "line": 240, + "column": 40 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5828, + "end": 5829, + "loc": { + "start": { + "line": 240, + "column": 40 + }, + "end": { + "line": 240, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5829, + "end": 5830, + "loc": { + "start": { + "line": 240, + "column": 41 + }, + "end": { + "line": 240, + "column": 42 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5841, + "end": 5842, + "loc": { + "start": { + "line": 241, + "column": 10 + }, + "end": { + "line": 241, + "column": 11 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5842, + "end": 5843, + "loc": { + "start": { + "line": 241, + "column": 11 + }, + "end": { + "line": 241, + "column": 12 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5852, + "end": 5853, + "loc": { + "start": { + "line": 242, + "column": 8 + }, + "end": { + "line": 242, + "column": 9 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5853, + "end": 5854, + "loc": { + "start": { + "line": 242, + "column": 9 + }, + "end": { + "line": 242, + "column": 10 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5861, + "end": 5862, + "loc": { + "start": { + "line": 243, + "column": 6 + }, + "end": { + "line": 243, + "column": 7 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5862, + "end": 5863, + "loc": { + "start": { + "line": 243, + "column": 7 + }, + "end": { + "line": 243, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 5871, + "end": 5881, + "loc": { + "start": { + "line": 245, + "column": 6 + }, + "end": { + "line": 245, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5890, + "end": 5891, + "loc": { + "start": { + "line": 246, + "column": 8 + }, + "end": { + "line": 246, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 5891, + "end": 5894, + "loc": { + "start": { + "line": 246, + "column": 9 + }, + "end": { + "line": 246, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5894, + "end": 5895, + "loc": { + "start": { + "line": 246, + "column": 12 + }, + "end": { + "line": 246, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "index", + "start": 5895, + "end": 5900, + "loc": { + "start": { + "line": 246, + "column": 13 + }, + "end": { + "line": 246, + "column": 18 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5900, + "end": 5901, + "loc": { + "start": { + "line": 246, + "column": 18 + }, + "end": { + "line": 246, + "column": 19 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5910, + "end": 5911, + "loc": { + "start": { + "line": 247, + "column": 8 + }, + "end": { + "line": 247, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "get", + "start": 5911, + "end": 5914, + "loc": { + "start": { + "line": 247, + "column": 9 + }, + "end": { + "line": 247, + "column": 12 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5914, + "end": 5915, + "loc": { + "start": { + "line": 247, + "column": 12 + }, + "end": { + "line": 247, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 5915, + "end": 5919, + "loc": { + "start": { + "line": 247, + "column": 13 + }, + "end": { + "line": 247, + "column": 17 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5919, + "end": 5920, + "loc": { + "start": { + "line": 247, + "column": 17 + }, + "end": { + "line": 247, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5929, + "end": 5930, + "loc": { + "start": { + "line": 248, + "column": 8 + }, + "end": { + "line": 248, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "forEach", + "start": 5930, + "end": 5937, + "loc": { + "start": { + "line": 248, + "column": 9 + }, + "end": { + "line": 248, + "column": 16 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5937, + "end": 5938, + "loc": { + "start": { + "line": 248, + "column": 16 + }, + "end": { + "line": 248, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tag", + "start": 5938, + "end": 5941, + "loc": { + "start": { + "line": 248, + "column": 17 + }, + "end": { + "line": 248, + "column": 20 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5942, + "end": 5944, + "loc": { + "start": { + "line": 248, + "column": 21 + }, + "end": { + "line": 248, + "column": 23 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toEmit", + "start": 5945, + "end": 5951, + "loc": { + "start": { + "line": 248, + "column": 24 + }, + "end": { + "line": 248, + "column": 30 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5951, + "end": 5952, + "loc": { + "start": { + "line": 248, + "column": 30 + }, + "end": { + "line": 248, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "push", + "start": 5952, + "end": 5956, + "loc": { + "start": { + "line": 248, + "column": 31 + }, + "end": { + "line": 248, + "column": 35 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5956, + "end": 5957, + "loc": { + "start": { + "line": 248, + "column": 35 + }, + "end": { + "line": 248, + "column": 36 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "tag", + "start": 5957, + "end": 5960, + "loc": { + "start": { + "line": 248, + "column": 36 + }, + "end": { + "line": 248, + "column": 39 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 5960, + "end": 5961, + "loc": { + "start": { + "line": 248, + "column": 39 + }, + "end": { + "line": 248, + "column": 40 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "reset", + "start": 5961, + "end": 5966, + "loc": { + "start": { + "line": 248, + "column": 40 + }, + "end": { + "line": 248, + "column": 45 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5966, + "end": 5967, + "loc": { + "start": { + "line": 248, + "column": 45 + }, + "end": { + "line": 248, + "column": 46 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5967, + "end": 5968, + "loc": { + "start": { + "line": 248, + "column": 46 + }, + "end": { + "line": 248, + "column": 47 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5968, + "end": 5969, + "loc": { + "start": { + "line": 248, + "column": 47 + }, + "end": { + "line": 248, + "column": 48 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5969, + "end": 5970, + "loc": { + "start": { + "line": 248, + "column": 48 + }, + "end": { + "line": 248, + "column": 49 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5975, + "end": 5976, + "loc": { + "start": { + "line": 249, + "column": 4 + }, + "end": { + "line": 249, + "column": 5 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 5982, + "end": 5984, + "loc": { + "start": { + "line": 251, + "column": 4 + }, + "end": { + "line": 251, + "column": 6 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 5985, + "end": 5986, + "loc": { + "start": { + "line": 251, + "column": 7 + }, + "end": { + "line": 251, + "column": 8 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 5986, + "end": 5990, + "loc": { + "start": { + "line": 251, + "column": 8 + }, + "end": { + "line": 251, + "column": 12 + } + } + }, + { + "type": { + "label": "==/!=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 6, + "updateContext": null + }, + "value": "===", + "start": 5991, + "end": 5994, + "loc": { + "start": { + "line": 251, + "column": 13 + }, + "end": { + "line": 251, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "getFirstTagName", + "start": 5995, + "end": 6010, + "loc": { + "start": { + "line": 251, + "column": 17 + }, + "end": { + "line": 251, + "column": 32 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6010, + "end": 6011, + "loc": { + "start": { + "line": 251, + "column": 32 + }, + "end": { + "line": 251, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 6011, + "end": 6021, + "loc": { + "start": { + "line": 251, + "column": 33 + }, + "end": { + "line": 251, + "column": 43 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6021, + "end": 6022, + "loc": { + "start": { + "line": 251, + "column": 43 + }, + "end": { + "line": 251, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6022, + "end": 6023, + "loc": { + "start": { + "line": 251, + "column": 44 + }, + "end": { + "line": 251, + "column": 45 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6024, + "end": 6025, + "loc": { + "start": { + "line": 251, + "column": 46 + }, + "end": { + "line": 251, + "column": 47 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parsedTags", + "start": 6032, + "end": 6042, + "loc": { + "start": { + "line": 252, + "column": 6 + }, + "end": { + "line": 252, + "column": 16 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6043, + "end": 6044, + "loc": { + "start": { + "line": 252, + "column": 17 + }, + "end": { + "line": 252, + "column": 18 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 6045, + "end": 6048, + "loc": { + "start": { + "line": 252, + "column": 19 + }, + "end": { + "line": 252, + "column": 22 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Map", + "start": 6049, + "end": 6052, + "loc": { + "start": { + "line": 252, + "column": 23 + }, + "end": { + "line": 252, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6052, + "end": 6053, + "loc": { + "start": { + "line": 252, + "column": 26 + }, + "end": { + "line": 252, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6053, + "end": 6054, + "loc": { + "start": { + "line": 252, + "column": 27 + }, + "end": { + "line": 252, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6059, + "end": 6060, + "loc": { + "start": { + "line": 253, + "column": 4 + }, + "end": { + "line": 253, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6063, + "end": 6064, + "loc": { + "start": { + "line": 254, + "column": 2 + }, + "end": { + "line": 254, + "column": 3 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6064, + "end": 6065, + "loc": { + "start": { + "line": 254, + "column": 3 + }, + "end": { + "line": 254, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parser", + "start": 6069, + "end": 6075, + "loc": { + "start": { + "line": 256, + "column": 2 + }, + "end": { + "line": 256, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6075, + "end": 6076, + "loc": { + "start": { + "line": 256, + "column": 8 + }, + "end": { + "line": 256, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "on", + "start": 6076, + "end": 6078, + "loc": { + "start": { + "line": 256, + "column": 9 + }, + "end": { + "line": 256, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6078, + "end": 6079, + "loc": { + "start": { + "line": 256, + "column": 11 + }, + "end": { + "line": 256, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "cdata", + "start": 6079, + "end": 6086, + "loc": { + "start": { + "line": 256, + "column": 12 + }, + "end": { + "line": 256, + "column": 19 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6086, + "end": 6087, + "loc": { + "start": { + "line": 256, + "column": 19 + }, + "end": { + "line": 256, + "column": 20 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cdata", + "start": 6088, + "end": 6093, + "loc": { + "start": { + "line": 256, + "column": 21 + }, + "end": { + "line": 256, + "column": 26 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6094, + "end": 6096, + "loc": { + "start": { + "line": 256, + "column": 27 + }, + "end": { + "line": 256, + "column": 29 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6097, + "end": 6098, + "loc": { + "start": { + "line": 256, + "column": 30 + }, + "end": { + "line": 256, + "column": 31 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 6103, + "end": 6108, + "loc": { + "start": { + "line": 257, + "column": 4 + }, + "end": { + "line": 257, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CData", + "start": 6109, + "end": 6114, + "loc": { + "start": { + "line": 257, + "column": 10 + }, + "end": { + "line": 257, + "column": 15 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6115, + "end": 6116, + "loc": { + "start": { + "line": 257, + "column": 16 + }, + "end": { + "line": 257, + "column": 17 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 6117, + "end": 6120, + "loc": { + "start": { + "line": 257, + "column": 18 + }, + "end": { + "line": 257, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlCharacterData", + "start": 6121, + "end": 6137, + "loc": { + "start": { + "line": 257, + "column": 22 + }, + "end": { + "line": 257, + "column": 38 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6137, + "end": 6138, + "loc": { + "start": { + "line": 257, + "column": 38 + }, + "end": { + "line": 257, + "column": 39 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "cdata", + "start": 6138, + "end": 6143, + "loc": { + "start": { + "line": 257, + "column": 39 + }, + "end": { + "line": 257, + "column": 44 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6143, + "end": 6144, + "loc": { + "start": { + "line": 257, + "column": 44 + }, + "end": { + "line": 257, + "column": 45 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toEmit", + "start": 6149, + "end": 6155, + "loc": { + "start": { + "line": 258, + "column": 4 + }, + "end": { + "line": 258, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6155, + "end": 6156, + "loc": { + "start": { + "line": 258, + "column": 10 + }, + "end": { + "line": 258, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "push", + "start": 6156, + "end": 6160, + "loc": { + "start": { + "line": 258, + "column": 11 + }, + "end": { + "line": 258, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6160, + "end": 6161, + "loc": { + "start": { + "line": 258, + "column": 15 + }, + "end": { + "line": 258, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "CData", + "start": 6161, + "end": 6166, + "loc": { + "start": { + "line": 258, + "column": 16 + }, + "end": { + "line": 258, + "column": 21 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6166, + "end": 6167, + "loc": { + "start": { + "line": 258, + "column": 21 + }, + "end": { + "line": 258, + "column": 22 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6170, + "end": 6171, + "loc": { + "start": { + "line": 259, + "column": 2 + }, + "end": { + "line": 259, + "column": 3 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6171, + "end": 6172, + "loc": { + "start": { + "line": 259, + "column": 3 + }, + "end": { + "line": 259, + "column": 4 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parser", + "start": 6176, + "end": 6182, + "loc": { + "start": { + "line": 261, + "column": 2 + }, + "end": { + "line": 261, + "column": 8 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6182, + "end": 6183, + "loc": { + "start": { + "line": 261, + "column": 8 + }, + "end": { + "line": 261, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "on", + "start": 6183, + "end": 6185, + "loc": { + "start": { + "line": 261, + "column": 9 + }, + "end": { + "line": 261, + "column": 11 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6185, + "end": 6186, + "loc": { + "start": { + "line": 261, + "column": 11 + }, + "end": { + "line": 261, + "column": 12 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "instruction", + "start": 6186, + "end": 6199, + "loc": { + "start": { + "line": 261, + "column": 12 + }, + "end": { + "line": 261, + "column": 25 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6199, + "end": 6200, + "loc": { + "start": { + "line": 261, + "column": 25 + }, + "end": { + "line": 261, + "column": 26 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6201, + "end": 6202, + "loc": { + "start": { + "line": 261, + "column": 27 + }, + "end": { + "line": 261, + "column": 28 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 6202, + "end": 6206, + "loc": { + "start": { + "line": 261, + "column": 28 + }, + "end": { + "line": 261, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6206, + "end": 6207, + "loc": { + "start": { + "line": 261, + "column": 32 + }, + "end": { + "line": 261, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attrs", + "start": 6208, + "end": 6213, + "loc": { + "start": { + "line": 261, + "column": 34 + }, + "end": { + "line": 261, + "column": 39 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6213, + "end": 6214, + "loc": { + "start": { + "line": 261, + "column": 39 + }, + "end": { + "line": 261, + "column": 40 + } + } + }, + { + "type": { + "label": "=>", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6215, + "end": 6217, + "loc": { + "start": { + "line": 261, + "column": 41 + }, + "end": { + "line": 261, + "column": 43 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6218, + "end": 6219, + "loc": { + "start": { + "line": 261, + "column": 44 + }, + "end": { + "line": 261, + "column": 45 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 6224, + "end": 6229, + "loc": { + "start": { + "line": 262, + "column": 4 + }, + "end": { + "line": 262, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "declaration", + "start": 6230, + "end": 6241, + "loc": { + "start": { + "line": 262, + "column": 10 + }, + "end": { + "line": 262, + "column": 21 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6242, + "end": 6243, + "loc": { + "start": { + "line": 262, + "column": 22 + }, + "end": { + "line": 262, + "column": 23 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 6244, + "end": 6247, + "loc": { + "start": { + "line": 262, + "column": 24 + }, + "end": { + "line": 262, + "column": 27 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "XmlDeclaration", + "start": 6248, + "end": 6262, + "loc": { + "start": { + "line": 262, + "column": 28 + }, + "end": { + "line": 262, + "column": 42 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6262, + "end": 6263, + "loc": { + "start": { + "line": 262, + "column": 42 + }, + "end": { + "line": 262, + "column": 43 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attrs", + "start": 6263, + "end": 6268, + "loc": { + "start": { + "line": 262, + "column": 43 + }, + "end": { + "line": 262, + "column": 48 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6268, + "end": 6269, + "loc": { + "start": { + "line": 262, + "column": 48 + }, + "end": { + "line": 262, + "column": 49 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "version", + "start": 6269, + "end": 6276, + "loc": { + "start": { + "line": 262, + "column": 49 + }, + "end": { + "line": 262, + "column": 56 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6276, + "end": 6277, + "loc": { + "start": { + "line": 262, + "column": 56 + }, + "end": { + "line": 262, + "column": 57 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "attrs", + "start": 6278, + "end": 6283, + "loc": { + "start": { + "line": 262, + "column": 58 + }, + "end": { + "line": 262, + "column": 63 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6283, + "end": 6284, + "loc": { + "start": { + "line": 262, + "column": 63 + }, + "end": { + "line": 262, + "column": 64 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "encoding", + "start": 6284, + "end": 6292, + "loc": { + "start": { + "line": 262, + "column": 64 + }, + "end": { + "line": 262, + "column": 72 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6292, + "end": 6293, + "loc": { + "start": { + "line": 262, + "column": 72 + }, + "end": { + "line": 262, + "column": 73 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toEmit", + "start": 6298, + "end": 6304, + "loc": { + "start": { + "line": 263, + "column": 4 + }, + "end": { + "line": 263, + "column": 10 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6304, + "end": 6305, + "loc": { + "start": { + "line": 263, + "column": 10 + }, + "end": { + "line": 263, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "push", + "start": 6305, + "end": 6309, + "loc": { + "start": { + "line": 263, + "column": 11 + }, + "end": { + "line": 263, + "column": 15 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6309, + "end": 6310, + "loc": { + "start": { + "line": 263, + "column": 15 + }, + "end": { + "line": 263, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "declaration", + "start": 6310, + "end": 6321, + "loc": { + "start": { + "line": 263, + "column": 16 + }, + "end": { + "line": 263, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6321, + "end": 6322, + "loc": { + "start": { + "line": 263, + "column": 27 + }, + "end": { + "line": 263, + "column": 28 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6325, + "end": 6326, + "loc": { + "start": { + "line": 264, + "column": 2 + }, + "end": { + "line": 264, + "column": 3 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6326, + "end": 6327, + "loc": { + "start": { + "line": 264, + "column": 3 + }, + "end": { + "line": 264, + "column": 4 + } + } + }, + { + "type": { + "label": "return", + "keyword": "return", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "return", + "start": 6331, + "end": 6337, + "loc": { + "start": { + "line": 266, + "column": 2 + }, + "end": { + "line": 266, + "column": 8 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 6338, + "end": 6341, + "loc": { + "start": { + "line": 266, + "column": 9 + }, + "end": { + "line": 266, + "column": 12 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Transform", + "start": 6342, + "end": 6351, + "loc": { + "start": { + "line": 266, + "column": 13 + }, + "end": { + "line": 266, + "column": 22 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6351, + "end": 6352, + "loc": { + "start": { + "line": 266, + "column": 22 + }, + "end": { + "line": 266, + "column": 23 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6352, + "end": 6353, + "loc": { + "start": { + "line": 266, + "column": 23 + }, + "end": { + "line": 266, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "objectMode", + "start": 6358, + "end": 6368, + "loc": { + "start": { + "line": 267, + "column": 4 + }, + "end": { + "line": 267, + "column": 14 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6368, + "end": 6369, + "loc": { + "start": { + "line": 267, + "column": 14 + }, + "end": { + "line": 267, + "column": 15 + } + } + }, + { + "type": { + "label": "true", + "keyword": "true", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "true", + "start": 6370, + "end": 6374, + "loc": { + "start": { + "line": 267, + "column": 16 + }, + "end": { + "line": 267, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6374, + "end": 6375, + "loc": { + "start": { + "line": 267, + "column": 20 + }, + "end": { + "line": 267, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "transform", + "start": 6380, + "end": 6389, + "loc": { + "start": { + "line": 268, + "column": 4 + }, + "end": { + "line": 268, + "column": 13 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6390, + "end": 6391, + "loc": { + "start": { + "line": 268, + "column": 14 + }, + "end": { + "line": 268, + "column": 15 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "chunk", + "start": 6391, + "end": 6396, + "loc": { + "start": { + "line": 268, + "column": 15 + }, + "end": { + "line": 268, + "column": 20 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6396, + "end": 6397, + "loc": { + "start": { + "line": 268, + "column": 20 + }, + "end": { + "line": 268, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "encoding", + "start": 6398, + "end": 6406, + "loc": { + "start": { + "line": 268, + "column": 22 + }, + "end": { + "line": 268, + "column": 30 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6406, + "end": 6407, + "loc": { + "start": { + "line": 268, + "column": 30 + }, + "end": { + "line": 268, + "column": 31 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ack", + "start": 6408, + "end": 6411, + "loc": { + "start": { + "line": 268, + "column": 32 + }, + "end": { + "line": 268, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6411, + "end": 6412, + "loc": { + "start": { + "line": 268, + "column": 35 + }, + "end": { + "line": 268, + "column": 36 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6413, + "end": 6414, + "loc": { + "start": { + "line": 268, + "column": 37 + }, + "end": { + "line": 268, + "column": 38 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "parser", + "start": 6421, + "end": 6427, + "loc": { + "start": { + "line": 269, + "column": 6 + }, + "end": { + "line": 269, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6427, + "end": 6428, + "loc": { + "start": { + "line": 269, + "column": 12 + }, + "end": { + "line": 269, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "write", + "start": 6428, + "end": 6433, + "loc": { + "start": { + "line": 269, + "column": 13 + }, + "end": { + "line": 269, + "column": 18 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6433, + "end": 6434, + "loc": { + "start": { + "line": 269, + "column": 18 + }, + "end": { + "line": 269, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "chunk", + "start": 6434, + "end": 6439, + "loc": { + "start": { + "line": 269, + "column": 19 + }, + "end": { + "line": 269, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6439, + "end": 6440, + "loc": { + "start": { + "line": 269, + "column": 24 + }, + "end": { + "line": 269, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toString", + "start": 6440, + "end": 6448, + "loc": { + "start": { + "line": 269, + "column": 25 + }, + "end": { + "line": 269, + "column": 33 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6448, + "end": 6449, + "loc": { + "start": { + "line": 269, + "column": 33 + }, + "end": { + "line": 269, + "column": 34 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6449, + "end": 6450, + "loc": { + "start": { + "line": 269, + "column": 34 + }, + "end": { + "line": 269, + "column": 35 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6450, + "end": 6451, + "loc": { + "start": { + "line": 269, + "column": 35 + }, + "end": { + "line": 269, + "column": 36 + } + } + }, + { + "type": { + "label": "if", + "keyword": "if", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "if", + "start": 6459, + "end": 6461, + "loc": { + "start": { + "line": 271, + "column": 6 + }, + "end": { + "line": 271, + "column": 8 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6462, + "end": 6463, + "loc": { + "start": { + "line": 271, + "column": 9 + }, + "end": { + "line": 271, + "column": 10 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toEmit", + "start": 6463, + "end": 6469, + "loc": { + "start": { + "line": 271, + "column": 10 + }, + "end": { + "line": 271, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6469, + "end": 6470, + "loc": { + "start": { + "line": 271, + "column": 16 + }, + "end": { + "line": 271, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "length", + "start": 6470, + "end": 6476, + "loc": { + "start": { + "line": 271, + "column": 17 + }, + "end": { + "line": 271, + "column": 23 + } + } + }, + { + "type": { + "label": "", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": 7, + "updateContext": null + }, + "value": ">", + "start": 6477, + "end": 6478, + "loc": { + "start": { + "line": 271, + "column": 24 + }, + "end": { + "line": 271, + "column": 25 + } + } + }, + { + "type": { + "label": "num", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": 0, + "start": 6479, + "end": 6480, + "loc": { + "start": { + "line": 271, + "column": 26 + }, + "end": { + "line": 271, + "column": 27 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6480, + "end": 6481, + "loc": { + "start": { + "line": 271, + "column": 27 + }, + "end": { + "line": 271, + "column": 28 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6482, + "end": 6483, + "loc": { + "start": { + "line": 271, + "column": 29 + }, + "end": { + "line": 271, + "column": 30 + } + } + }, + { + "type": { + "label": "this", + "keyword": "this", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "this", + "start": 6492, + "end": 6496, + "loc": { + "start": { + "line": 272, + "column": 8 + }, + "end": { + "line": 272, + "column": 12 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6496, + "end": 6497, + "loc": { + "start": { + "line": 272, + "column": 12 + }, + "end": { + "line": 272, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "push", + "start": 6497, + "end": 6501, + "loc": { + "start": { + "line": 272, + "column": 13 + }, + "end": { + "line": 272, + "column": 17 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6501, + "end": 6502, + "loc": { + "start": { + "line": 272, + "column": 17 + }, + "end": { + "line": 272, + "column": 18 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "toEmit", + "start": 6502, + "end": 6508, + "loc": { + "start": { + "line": 272, + "column": 18 + }, + "end": { + "line": 272, + "column": 24 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6508, + "end": 6509, + "loc": { + "start": { + "line": 272, + "column": 24 + }, + "end": { + "line": 272, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "shift", + "start": 6509, + "end": 6514, + "loc": { + "start": { + "line": 272, + "column": 25 + }, + "end": { + "line": 272, + "column": 30 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6514, + "end": 6515, + "loc": { + "start": { + "line": 272, + "column": 30 + }, + "end": { + "line": 272, + "column": 31 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6515, + "end": 6516, + "loc": { + "start": { + "line": 272, + "column": 31 + }, + "end": { + "line": 272, + "column": 32 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6516, + "end": 6517, + "loc": { + "start": { + "line": 272, + "column": 32 + }, + "end": { + "line": 272, + "column": 33 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6524, + "end": 6525, + "loc": { + "start": { + "line": 273, + "column": 6 + }, + "end": { + "line": 273, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ack", + "start": 6533, + "end": 6536, + "loc": { + "start": { + "line": 275, + "column": 6 + }, + "end": { + "line": 275, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6536, + "end": 6537, + "loc": { + "start": { + "line": 275, + "column": 9 + }, + "end": { + "line": 275, + "column": 10 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6537, + "end": 6538, + "loc": { + "start": { + "line": 275, + "column": 10 + }, + "end": { + "line": 275, + "column": 11 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6543, + "end": 6544, + "loc": { + "start": { + "line": 276, + "column": 4 + }, + "end": { + "line": 276, + "column": 5 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6547, + "end": 6548, + "loc": { + "start": { + "line": 277, + "column": 2 + }, + "end": { + "line": 277, + "column": 3 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6548, + "end": 6549, + "loc": { + "start": { + "line": 277, + "column": 3 + }, + "end": { + "line": 277, + "column": 4 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 6550, + "end": 6551, + "loc": { + "start": { + "line": 278, + "column": 0 + }, + "end": { + "line": 278, + "column": 1 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "module", + "start": 6553, + "end": 6559, + "loc": { + "start": { + "line": 280, + "column": 0 + }, + "end": { + "line": 280, + "column": 6 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6559, + "end": 6560, + "loc": { + "start": { + "line": 280, + "column": 6 + }, + "end": { + "line": 280, + "column": 7 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "exports", + "start": 6560, + "end": 6567, + "loc": { + "start": { + "line": 280, + "column": 7 + }, + "end": { + "line": 280, + "column": 14 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 6568, + "end": 6569, + "loc": { + "start": { + "line": 280, + "column": 15 + }, + "end": { + "line": 280, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "Xml", + "start": 6570, + "end": 6573, + "loc": { + "start": { + "line": 280, + "column": 17 + }, + "end": { + "line": 280, + "column": 20 + } + } + }, + { + "type": { + "label": "eof", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 6574, + "end": 6574, + "loc": { + "start": { + "line": 281, + "column": 0 + }, + "end": { + "line": 281, + "column": 0 + } + } + } + ] +} \ No newline at end of file diff --git a/docs/ast/source/strategies/Yaml.js.json b/docs/ast/source/strategies/Yaml.js.json index eab9a1f..f45aafb 100644 --- a/docs/ast/source/strategies/Yaml.js.json +++ b/docs/ast/source/strategies/Yaml.js.json @@ -1,28 +1,28 @@ { "type": "File", "start": 0, - "end": 1025, + "end": 1197, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 43, + "line": 53, "column": 0 } }, "program": { "type": "Program", "start": 0, - "end": 1025, + "end": 1197, "loc": { "start": { "line": 1, "column": 0 }, "end": { - "line": 43, + "line": 53, "column": 0 } }, @@ -1216,28 +1216,28 @@ { "type": "ExpressionStatement", "start": 910, - "end": 1001, + "end": 1173, "loc": { "start": { "line": 38, "column": 0 }, "end": { - "line": 40, + "line": 50, "column": 1 } }, "expression": { "type": "AssignmentExpression", "start": 910, - "end": 1001, + "end": 1173, "loc": { "start": { "line": 38, "column": 0 }, "end": { - "line": 40, + "line": 50, "column": 1 } }, @@ -1331,14 +1331,14 @@ "right": { "type": "FunctionExpression", "start": 933, - "end": 1001, + "end": 1173, "loc": { "start": { "line": 38, "column": 23 }, "end": { - "line": 40, + "line": 50, "column": 1 } }, @@ -1432,116 +1432,609 @@ "body": { "type": "BlockStatement", "start": 969, - "end": 1001, + "end": 1173, "loc": { "start": { "line": 38, "column": 59 }, "end": { - "line": 40, + "line": 50, "column": 1 } }, "body": [ { - "type": "ReturnStatement", + "type": "TryStatement", "start": 973, - "end": 999, + "end": 1171, "loc": { "start": { "line": 39, "column": 2 }, "end": { - "line": 39, - "column": 28 + "line": 49, + "column": 3 } }, - "argument": { - "type": "CallExpression", - "start": 980, - "end": 999, + "block": { + "type": "BlockStatement", + "start": 977, + "end": 1013, "loc": { "start": { "line": 39, - "column": 9 + "column": 6 }, "end": { - "line": 39, - "column": 28 + "line": 41, + "column": 3 } }, - "callee": { - "type": "MemberExpression", - "start": 980, - "end": 993, - "loc": { - "start": { - "line": 39, - "column": 9 - }, - "end": { - "line": 39, - "column": 22 - } - }, - "object": { - "type": "Identifier", - "start": 980, - "end": 984, + "body": [ + { + "type": "ReturnStatement", + "start": 983, + "end": 1009, "loc": { "start": { - "line": 39, - "column": 9 + "line": 40, + "column": 4 }, "end": { - "line": 39, - "column": 13 - }, - "identifierName": "yaml" + "line": 40, + "column": 30 + } }, - "name": "yaml" - }, - "property": { - "type": "Identifier", - "start": 985, - "end": 993, - "loc": { - "start": { - "line": 39, - "column": 14 + "argument": { + "type": "CallExpression", + "start": 990, + "end": 1009, + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 40, + "column": 30 + } }, - "end": { - "line": 39, - "column": 22 + "callee": { + "type": "MemberExpression", + "start": 990, + "end": 1003, + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 40, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 990, + "end": 994, + "loc": { + "start": { + "line": 40, + "column": 11 + }, + "end": { + "line": 40, + "column": 15 + }, + "identifierName": "yaml" + }, + "name": "yaml" + }, + "property": { + "type": "Identifier", + "start": 995, + "end": 1003, + "loc": { + "start": { + "line": 40, + "column": 16 + }, + "end": { + "line": 40, + "column": 24 + }, + "identifierName": "safeLoad" + }, + "name": "safeLoad" + }, + "computed": false }, - "identifierName": "safeLoad" + "arguments": [ + { + "type": "Identifier", + "start": 1004, + "end": 1008, + "loc": { + "start": { + "line": 40, + "column": 25 + }, + "end": { + "line": 40, + "column": 29 + }, + "identifierName": "data" + }, + "name": "data" + } + ] + } + } + ], + "directives": [] + }, + "handler": { + "type": "CatchClause", + "start": 1014, + "end": 1171, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "param": { + "type": "Identifier", + "start": 1021, + "end": 1022, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 12 }, - "name": "safeLoad" + "identifierName": "e" }, - "computed": false + "name": "e" }, - "arguments": [ - { - "type": "Identifier", - "start": 994, - "end": 998, - "loc": { - "start": { - "line": 39, - "column": 23 - }, - "end": { - "line": 39, - "column": 27 + "body": { + "type": "BlockStatement", + "start": 1024, + "end": 1171, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 49, + "column": 3 + } + }, + "body": [ + { + "type": "VariableDeclaration", + "start": 1030, + "end": 1123, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } }, - "identifierName": "data" + "declarations": [ + { + "type": "VariableDeclarator", + "start": 1036, + "end": 1123, + "loc": { + "start": { + "line": 42, + "column": 10 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "id": { + "type": "Identifier", + "start": 1036, + "end": 1043, + "loc": { + "start": { + "line": 42, + "column": 10 + }, + "end": { + "line": 42, + "column": 17 + }, + "identifierName": "context" + }, + "name": "context" + }, + "init": { + "type": "ObjectExpression", + "start": 1046, + "end": 1123, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 46, + "column": 5 + } + }, + "properties": [ + { + "type": "ObjectProperty", + "start": 1054, + "end": 1071, + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 23 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1054, + "end": 1063, + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 15 + }, + "identifierName": "errorName" + }, + "name": "errorName" + }, + "value": { + "type": "MemberExpression", + "start": 1065, + "end": 1071, + "loc": { + "start": { + "line": 43, + "column": 17 + }, + "end": { + "line": 43, + "column": 23 + } + }, + "object": { + "type": "Identifier", + "start": 1065, + "end": 1066, + "loc": { + "start": { + "line": 43, + "column": 17 + }, + "end": { + "line": 43, + "column": 18 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1067, + "end": 1071, + "loc": { + "start": { + "line": 43, + "column": 19 + }, + "end": { + "line": 43, + "column": 23 + }, + "identifierName": "name" + }, + "name": "name" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1079, + "end": 1097, + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 24 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1079, + "end": 1086, + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 13 + }, + "identifierName": "message" + }, + "name": "message" + }, + "value": { + "type": "MemberExpression", + "start": 1088, + "end": 1097, + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 24 + } + }, + "object": { + "type": "Identifier", + "start": 1088, + "end": 1089, + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 16 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1090, + "end": 1097, + "loc": { + "start": { + "line": 44, + "column": 17 + }, + "end": { + "line": 44, + "column": 24 + }, + "identifierName": "message" + }, + "name": "message" + }, + "computed": false + } + }, + { + "type": "ObjectProperty", + "start": 1105, + "end": 1117, + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 18 + } + }, + "method": false, + "shorthand": false, + "computed": false, + "key": { + "type": "Identifier", + "start": 1105, + "end": 1109, + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 10 + }, + "identifierName": "mark" + }, + "name": "mark" + }, + "value": { + "type": "MemberExpression", + "start": 1111, + "end": 1117, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 18 + } + }, + "object": { + "type": "Identifier", + "start": 1111, + "end": 1112, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 13 + }, + "identifierName": "e" + }, + "name": "e" + }, + "property": { + "type": "Identifier", + "start": 1113, + "end": 1117, + "loc": { + "start": { + "line": 45, + "column": 14 + }, + "end": { + "line": 45, + "column": 18 + }, + "identifierName": "mark" + }, + "name": "mark" + }, + "computed": false + } + } + ] + } + } + ], + "kind": "const" }, - "name": "data" - } - ] - } + { + "type": "ThrowStatement", + "start": 1129, + "end": 1167, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 42 + } + }, + "argument": { + "type": "NewExpression", + "start": 1135, + "end": 1167, + "loc": { + "start": { + "line": 48, + "column": 10 + }, + "end": { + "line": 48, + "column": 42 + } + }, + "callee": { + "type": "Identifier", + "start": 1139, + "end": 1150, + "loc": { + "start": { + "line": 48, + "column": 14 + }, + "end": { + "line": 48, + "column": 25 + }, + "identifierName": "ParserError" + }, + "name": "ParserError" + }, + "arguments": [ + { + "type": "StringLiteral", + "start": 1151, + "end": 1157, + "loc": { + "start": { + "line": 48, + "column": 26 + }, + "end": { + "line": 48, + "column": 32 + } + }, + "extra": { + "rawValue": "yaml", + "raw": "'yaml'" + }, + "value": "yaml" + }, + { + "type": "Identifier", + "start": 1159, + "end": 1166, + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 41 + }, + "identifierName": "context" + }, + "name": "context" + } + ] + } + } + ], + "directives": [] + } + }, + "guardedHandlers": [], + "finalizer": null } ], "directives": [] @@ -1570,58 +2063,58 @@ }, { "type": "ExpressionStatement", - "start": 1003, - "end": 1024, + "start": 1175, + "end": 1196, "loc": { "start": { - "line": 42, + "line": 52, "column": 0 }, "end": { - "line": 42, + "line": 52, "column": 21 } }, "expression": { "type": "AssignmentExpression", - "start": 1003, - "end": 1024, + "start": 1175, + "end": 1196, "loc": { "start": { - "line": 42, + "line": 52, "column": 0 }, "end": { - "line": 42, + "line": 52, "column": 21 } }, "operator": "=", "left": { "type": "MemberExpression", - "start": 1003, - "end": 1017, + "start": 1175, + "end": 1189, "loc": { "start": { - "line": 42, + "line": 52, "column": 0 }, "end": { - "line": 42, + "line": 52, "column": 14 } }, "object": { "type": "Identifier", - "start": 1003, - "end": 1009, + "start": 1175, + "end": 1181, "loc": { "start": { - "line": 42, + "line": 52, "column": 0 }, "end": { - "line": 42, + "line": 52, "column": 6 }, "identifierName": "module" @@ -1630,15 +2123,15 @@ }, "property": { "type": "Identifier", - "start": 1010, - "end": 1017, + "start": 1182, + "end": 1189, "loc": { "start": { - "line": 42, + "line": 52, "column": 7 }, "end": { - "line": 42, + "line": 52, "column": 14 }, "identifierName": "exports" @@ -1649,15 +2142,15 @@ }, "right": { "type": "Identifier", - "start": 1020, - "end": 1024, + "start": 1192, + "end": 1196, "loc": { "start": { - "line": 42, + "line": 52, "column": 17 }, "end": { - "line": 42, + "line": 52, "column": 21 }, "identifierName": "Yaml" @@ -4314,9 +4807,9 @@ }, { "type": { - "label": "return", - "keyword": "return", - "beforeExpr": true, + "label": "try", + "keyword": "try", + "beforeExpr": false, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -4326,9 +4819,9 @@ "binop": null, "updateContext": null }, - "value": "return", + "value": "try", "start": 973, - "end": 979, + "end": 976, "loc": { "start": { "line": 39, @@ -4336,14 +4829,14 @@ }, "end": { "line": 39, - "column": 8 + "column": 5 } } }, { "type": { - "label": "name", - "beforeExpr": false, + "label": "{", + "beforeExpr": true, "startsExpr": true, "rightAssociative": false, "isLoop": false, @@ -4352,24 +4845,24 @@ "postfix": false, "binop": null }, - "value": "yaml", - "start": 980, - "end": 984, + "start": 977, + "end": 978, "loc": { "start": { "line": 39, - "column": 9 + "column": 6 }, "end": { "line": 39, - "column": 13 + "column": 7 } } }, { "type": { - "label": ".", - "beforeExpr": false, + "label": "return", + "keyword": "return", + "beforeExpr": true, "startsExpr": false, "rightAssociative": false, "isLoop": false, @@ -4379,16 +4872,17 @@ "binop": null, "updateContext": null }, - "start": 984, - "end": 985, + "value": "return", + "start": 983, + "end": 989, "loc": { "start": { - "line": 39, - "column": 13 + "line": 40, + "column": 4 }, "end": { - "line": 39, - "column": 14 + "line": 40, + "column": 10 } } }, @@ -4404,42 +4898,43 @@ "postfix": false, "binop": null }, - "value": "safeLoad", - "start": 985, - "end": 993, + "value": "yaml", + "start": 990, + "end": 994, "loc": { "start": { - "line": 39, - "column": 14 + "line": 40, + "column": 11 }, "end": { - "line": 39, - "column": 22 + "line": 40, + "column": 15 } } }, { "type": { - "label": "(", - "beforeExpr": true, - "startsExpr": true, + "label": ".", + "beforeExpr": false, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, "prefix": false, "postfix": false, - "binop": null + "binop": null, + "updateContext": null }, - "start": 993, - "end": 994, + "start": 994, + "end": 995, "loc": { "start": { - "line": 39, - "column": 22 + "line": 40, + "column": 15 }, "end": { - "line": 39, - "column": 23 + "line": 40, + "column": 16 } } }, @@ -4455,25 +4950,25 @@ "postfix": false, "binop": null }, - "value": "data", - "start": 994, - "end": 998, + "value": "safeLoad", + "start": 995, + "end": 1003, "loc": { "start": { - "line": 39, - "column": 23 + "line": 40, + "column": 16 }, "end": { - "line": 39, - "column": 27 + "line": 40, + "column": 24 } } }, { "type": { - "label": ")", - "beforeExpr": false, - "startsExpr": false, + "label": "(", + "beforeExpr": true, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4481,24 +4976,24 @@ "postfix": false, "binop": null }, - "start": 998, - "end": 999, + "start": 1003, + "end": 1004, "loc": { "start": { - "line": 39, - "column": 27 + "line": 40, + "column": 24 }, "end": { - "line": 39, - "column": 28 + "line": 40, + "column": 25 } } }, { "type": { - "label": "}", + "label": "name", "beforeExpr": false, - "startsExpr": false, + "startsExpr": true, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4506,24 +5001,25 @@ "postfix": false, "binop": null }, - "start": 1000, - "end": 1001, + "value": "data", + "start": 1004, + "end": 1008, "loc": { "start": { "line": 40, - "column": 0 + "column": 25 }, "end": { "line": 40, - "column": 1 + "column": 29 } } }, { "type": { - "label": "name", + "label": ")", "beforeExpr": false, - "startsExpr": true, + "startsExpr": false, "rightAssociative": false, "isLoop": false, "isAssign": false, @@ -4531,16 +5027,1029 @@ "postfix": false, "binop": null }, - "value": "module", - "start": 1003, + "start": 1008, "end": 1009, "loc": { "start": { - "line": 42, + "line": 40, + "column": 29 + }, + "end": { + "line": 40, + "column": 30 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1012, + "end": 1013, + "loc": { + "start": { + "line": 41, + "column": 2 + }, + "end": { + "line": 41, + "column": 3 + } + } + }, + { + "type": { + "label": "catch", + "keyword": "catch", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "catch", + "start": 1014, + "end": 1019, + "loc": { + "start": { + "line": 41, + "column": 4 + }, + "end": { + "line": 41, + "column": 9 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1020, + "end": 1021, + "loc": { + "start": { + "line": 41, + "column": 10 + }, + "end": { + "line": 41, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1021, + "end": 1022, + "loc": { + "start": { + "line": 41, + "column": 11 + }, + "end": { + "line": 41, + "column": 12 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1022, + "end": 1023, + "loc": { + "start": { + "line": 41, + "column": 12 + }, + "end": { + "line": 41, + "column": 13 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1024, + "end": 1025, + "loc": { + "start": { + "line": 41, + "column": 14 + }, + "end": { + "line": 41, + "column": 15 + } + } + }, + { + "type": { + "label": "const", + "keyword": "const", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "const", + "start": 1030, + "end": 1035, + "loc": { + "start": { + "line": 42, + "column": 4 + }, + "end": { + "line": 42, + "column": 9 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "context", + "start": 1036, + "end": 1043, + "loc": { + "start": { + "line": 42, + "column": 10 + }, + "end": { + "line": 42, + "column": 17 + } + } + }, + { + "type": { + "label": "=", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": true, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "=", + "start": 1044, + "end": 1045, + "loc": { + "start": { + "line": 42, + "column": 18 + }, + "end": { + "line": 42, + "column": 19 + } + } + }, + { + "type": { + "label": "{", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1046, + "end": 1047, + "loc": { + "start": { + "line": 42, + "column": 20 + }, + "end": { + "line": 42, + "column": 21 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "errorName", + "start": 1054, + "end": 1063, + "loc": { + "start": { + "line": 43, + "column": 6 + }, + "end": { + "line": 43, + "column": 15 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1063, + "end": 1064, + "loc": { + "start": { + "line": 43, + "column": 15 + }, + "end": { + "line": 43, + "column": 16 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1065, + "end": 1066, + "loc": { + "start": { + "line": 43, + "column": 17 + }, + "end": { + "line": 43, + "column": 18 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1066, + "end": 1067, + "loc": { + "start": { + "line": 43, + "column": 18 + }, + "end": { + "line": 43, + "column": 19 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "name", + "start": 1067, + "end": 1071, + "loc": { + "start": { + "line": 43, + "column": 19 + }, + "end": { + "line": 43, + "column": 23 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1071, + "end": 1072, + "loc": { + "start": { + "line": 43, + "column": 23 + }, + "end": { + "line": 43, + "column": 24 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 1079, + "end": 1086, + "loc": { + "start": { + "line": 44, + "column": 6 + }, + "end": { + "line": 44, + "column": 13 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1086, + "end": 1087, + "loc": { + "start": { + "line": 44, + "column": 13 + }, + "end": { + "line": 44, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1088, + "end": 1089, + "loc": { + "start": { + "line": 44, + "column": 15 + }, + "end": { + "line": 44, + "column": 16 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1089, + "end": 1090, + "loc": { + "start": { + "line": 44, + "column": 16 + }, + "end": { + "line": 44, + "column": 17 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "message", + "start": 1090, + "end": 1097, + "loc": { + "start": { + "line": 44, + "column": 17 + }, + "end": { + "line": 44, + "column": 24 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1097, + "end": 1098, + "loc": { + "start": { + "line": 44, + "column": 24 + }, + "end": { + "line": 44, + "column": 25 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mark", + "start": 1105, + "end": 1109, + "loc": { + "start": { + "line": 45, + "column": 6 + }, + "end": { + "line": 45, + "column": 10 + } + } + }, + { + "type": { + "label": ":", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1109, + "end": 1110, + "loc": { + "start": { + "line": 45, + "column": 10 + }, + "end": { + "line": 45, + "column": 11 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "e", + "start": 1111, + "end": 1112, + "loc": { + "start": { + "line": 45, + "column": 12 + }, + "end": { + "line": 45, + "column": 13 + } + } + }, + { + "type": { + "label": ".", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1112, + "end": 1113, + "loc": { + "start": { + "line": 45, + "column": 13 + }, + "end": { + "line": 45, + "column": 14 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "mark", + "start": 1113, + "end": 1117, + "loc": { + "start": { + "line": 45, + "column": 14 + }, + "end": { + "line": 45, + "column": 18 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1122, + "end": 1123, + "loc": { + "start": { + "line": 46, + "column": 4 + }, + "end": { + "line": 46, + "column": 5 + } + } + }, + { + "type": { + "label": "throw", + "keyword": "throw", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "throw", + "start": 1129, + "end": 1134, + "loc": { + "start": { + "line": 48, + "column": 4 + }, + "end": { + "line": 48, + "column": 9 + } + } + }, + { + "type": { + "label": "new", + "keyword": "new", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "new", + "start": 1135, + "end": 1138, + "loc": { + "start": { + "line": 48, + "column": 10 + }, + "end": { + "line": 48, + "column": 13 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "ParserError", + "start": 1139, + "end": 1150, + "loc": { + "start": { + "line": 48, + "column": 14 + }, + "end": { + "line": 48, + "column": 25 + } + } + }, + { + "type": { + "label": "(", + "beforeExpr": true, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1150, + "end": 1151, + "loc": { + "start": { + "line": 48, + "column": 25 + }, + "end": { + "line": 48, + "column": 26 + } + } + }, + { + "type": { + "label": "string", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "value": "yaml", + "start": 1151, + "end": 1157, + "loc": { + "start": { + "line": 48, + "column": 26 + }, + "end": { + "line": 48, + "column": 32 + } + } + }, + { + "type": { + "label": ",", + "beforeExpr": true, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null, + "updateContext": null + }, + "start": 1157, + "end": 1158, + "loc": { + "start": { + "line": 48, + "column": 32 + }, + "end": { + "line": 48, + "column": 33 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "context", + "start": 1159, + "end": 1166, + "loc": { + "start": { + "line": 48, + "column": 34 + }, + "end": { + "line": 48, + "column": 41 + } + } + }, + { + "type": { + "label": ")", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1166, + "end": 1167, + "loc": { + "start": { + "line": 48, + "column": 41 + }, + "end": { + "line": 48, + "column": 42 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1170, + "end": 1171, + "loc": { + "start": { + "line": 49, + "column": 2 + }, + "end": { + "line": 49, + "column": 3 + } + } + }, + { + "type": { + "label": "}", + "beforeExpr": false, + "startsExpr": false, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "start": 1172, + "end": 1173, + "loc": { + "start": { + "line": 50, "column": 0 }, "end": { - "line": 42, + "line": 50, + "column": 1 + } + } + }, + { + "type": { + "label": "name", + "beforeExpr": false, + "startsExpr": true, + "rightAssociative": false, + "isLoop": false, + "isAssign": false, + "prefix": false, + "postfix": false, + "binop": null + }, + "value": "module", + "start": 1175, + "end": 1181, + "loc": { + "start": { + "line": 52, + "column": 0 + }, + "end": { + "line": 52, "column": 6 } } @@ -4558,15 +6067,15 @@ "binop": null, "updateContext": null }, - "start": 1009, - "end": 1010, + "start": 1181, + "end": 1182, "loc": { "start": { - "line": 42, + "line": 52, "column": 6 }, "end": { - "line": 42, + "line": 52, "column": 7 } } @@ -4584,15 +6093,15 @@ "binop": null }, "value": "exports", - "start": 1010, - "end": 1017, + "start": 1182, + "end": 1189, "loc": { "start": { - "line": 42, + "line": 52, "column": 7 }, "end": { - "line": 42, + "line": 52, "column": 14 } } @@ -4611,15 +6120,15 @@ "updateContext": null }, "value": "=", - "start": 1018, - "end": 1019, + "start": 1190, + "end": 1191, "loc": { "start": { - "line": 42, + "line": 52, "column": 15 }, "end": { - "line": 42, + "line": 52, "column": 16 } } @@ -4637,15 +6146,15 @@ "binop": null }, "value": "Yaml", - "start": 1020, - "end": 1024, + "start": 1192, + "end": 1196, "loc": { "start": { - "line": 42, + "line": 52, "column": 17 }, "end": { - "line": 42, + "line": 52, "column": 21 } } @@ -4663,15 +6172,15 @@ "binop": null, "updateContext": null }, - "start": 1025, - "end": 1025, + "start": 1197, + "end": 1197, "loc": { "start": { - "line": 43, + "line": 53, "column": 0 }, "end": { - "line": 43, + "line": 53, "column": 0 } } diff --git a/docs/badge.svg b/docs/badge.svg index 303f6c6..d3183f3 100644 --- a/docs/badge.svg +++ b/docs/badge.svg @@ -11,7 +11,7 @@ document document - 52% - 52% + 50% + 50% diff --git a/docs/coverage.json b/docs/coverage.json index dd24a17..15871c6 100644 --- a/docs/coverage.json +++ b/docs/coverage.json @@ -1,14 +1,14 @@ { - "coverage": "52.38%", - "expectCount": 42, - "actualCount": 22, + "coverage": "50.79%", + "expectCount": 63, + "actualCount": 32, "files": { "src/Parser.js": { - "expectCount": 5, - "actualCount": 3, + "expectCount": 8, + "actualCount": 6, "undocumentLines": [ - 31, - 33 + 55, + 57 ] }, "src/errors/NotImplemented.js": { @@ -30,36 +30,53 @@ ] }, "src/strategies/Base.js": { - "expectCount": 5, - "actualCount": 4, + "expectCount": 9, + "actualCount": 7, "undocumentLines": [ - 1 + 1, + 2 ] }, "src/strategies/Csv.js": { - "expectCount": 6, + "expectCount": 7, "actualCount": 3, "undocumentLines": [ 1, + 2, 3, 4 ] }, "src/strategies/Json.js": { - "expectCount": 5, - "actualCount": 3, + "expectCount": 8, + "actualCount": 5, "undocumentLines": [ 1, - 2 + 2, + 3 ] }, - "src/strategies/Xml.js": { - "expectCount": 7, - "actualCount": 4, + "src/strategies/Xml/XmlTag.js": { + "expectCount": 4, + "actualCount": 0, + "undocumentLines": [ + 1, + 7, + 14, + 18 + ] + }, + "src/strategies/Xml/index.js": { + "expectCount": 13, + "actualCount": 6, "undocumentLines": [ 1, 2, - 3 + 3, + 4, + 5, + 6, + 7 ] }, "src/strategies/Yaml.js": { diff --git a/docs/file/src/Parser.js.html b/docs/file/src/Parser.js.html index 17f33cf..6771aeb 100644 --- a/docs/file/src/Parser.js.html +++ b/docs/file/src/Parser.js.html @@ -24,7 +24,7 @@
    - +