svelte-parse
Version:
An increidbly relaxed svelte-parser
1,640 lines (1,639 loc) • 31 kB
JSON
{
"type": "root",
"children": [
{
"type": "svelteScript",
"tagName": "script",
"properties": [],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\timport Map from './Map.svelte';\n\timport MapMarker from './MapMarker.svelte';\n",
"position": {
"start": {
"line": 1,
"column": 9,
"offset": 8
},
"end": {
"line": 4,
"column": 1,
"offset": 87
}
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 4,
"column": 10,
"offset": 96
}
}
},
{
"type": "text",
"value": "\n\n",
"position": {
"start": {
"line": 4,
"column": 10,
"offset": 96
},
"end": {
"line": 6,
"column": 1,
"offset": 98
}
}
},
{
"type": "svelteComponent",
"tagName": "Map",
"properties": [
{
"type": "svelteProperty",
"name": "lat",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 6,
"column": 10,
"offset": 107
},
"end": {
"line": 6,
"column": 14,
"offset": 111
}
},
"expression": {
"type": "svelteExpression",
"value": "35",
"position": {
"start": {
"line": 6,
"column": 11,
"offset": 108
},
"end": {
"line": 6,
"column": 13,
"offset": 110
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 6,
"column": 6,
"offset": 103
},
"end": {
"line": 6,
"column": 14,
"offset": 111
}
}
},
{
"type": "svelteProperty",
"name": "lon",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 6,
"column": 19,
"offset": 116
},
"end": {
"line": 6,
"column": 24,
"offset": 121
}
},
"expression": {
"type": "svelteExpression",
"value": "-84",
"position": {
"start": {
"line": 6,
"column": 20,
"offset": 117
},
"end": {
"line": 6,
"column": 23,
"offset": 120
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 6,
"column": 15,
"offset": 112
},
"end": {
"line": 6,
"column": 24,
"offset": 121
}
}
},
{
"type": "svelteProperty",
"name": "zoom",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 6,
"column": 30,
"offset": 127
},
"end": {
"line": 6,
"column": 35,
"offset": 132
}
},
"expression": {
"type": "svelteExpression",
"value": "3.5",
"position": {
"start": {
"line": 6,
"column": 31,
"offset": 128
},
"end": {
"line": 6,
"column": 34,
"offset": 131
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 6,
"column": 25,
"offset": 122
},
"end": {
"line": 6,
"column": 35,
"offset": 132
}
}
}
],
"selfClosing": false,
"children": [
{
"type": "text",
"value": "\n\t",
"position": {
"start": {
"line": 6,
"column": 36,
"offset": 133
},
"end": {
"line": 7,
"column": 2,
"offset": 135
}
}
},
{
"type": "svelteComponent",
"tagName": "MapMarker",
"properties": [
{
"type": "svelteProperty",
"name": "lat",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 7,
"column": 17,
"offset": 150
},
"end": {
"line": 7,
"column": 26,
"offset": 159
}
},
"expression": {
"type": "svelteExpression",
"value": "37.8225",
"position": {
"start": {
"line": 7,
"column": 18,
"offset": 151
},
"end": {
"line": 7,
"column": 25,
"offset": 158
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 7,
"column": 13,
"offset": 146
},
"end": {
"line": 7,
"column": 26,
"offset": 159
}
}
},
{
"type": "svelteProperty",
"name": "lon",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 7,
"column": 31,
"offset": 164
},
"end": {
"line": 7,
"column": 42,
"offset": 175
}
},
"expression": {
"type": "svelteExpression",
"value": "-122.0024",
"position": {
"start": {
"line": 7,
"column": 32,
"offset": 165
},
"end": {
"line": 7,
"column": 41,
"offset": 174
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 7,
"column": 27,
"offset": 160
},
"end": {
"line": 7,
"column": 42,
"offset": 175
}
}
},
{
"type": "svelteProperty",
"name": "label",
"value": [
{
"type": "text",
"value": "Svelte",
"position": {
"start": {
"line": 7,
"column": 50,
"offset": 183
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 7,
"column": 56,
"offset": 189
},
"end": {}
}
},
{
"type": "text",
"value": "Body",
"position": {
"start": {
"line": 7,
"column": 57,
"offset": 190
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 7,
"column": 61,
"offset": 194
},
"end": {}
}
},
{
"type": "text",
"value": "Shaping",
"position": {
"start": {
"line": 7,
"column": 62,
"offset": 195
},
"end": {
"line": 7,
"column": 70,
"offset": 203
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 7,
"column": 43,
"offset": 176
},
"end": {
"line": 7,
"column": 70,
"offset": 203
}
}
}
],
"selfClosing": true,
"children": [],
"position": {
"start": {
"line": 7,
"column": 2,
"offset": 135
},
"end": {
"line": 7,
"column": 72,
"offset": 205
}
}
},
{
"type": "text",
"value": "\n\t",
"position": {
"start": {
"line": 7,
"column": 72,
"offset": 205
},
"end": {
"line": 8,
"column": 2,
"offset": 207
}
}
},
{
"type": "svelteComponent",
"tagName": "MapMarker",
"properties": [
{
"type": "svelteProperty",
"name": "lat",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 8,
"column": 17,
"offset": 222
},
"end": {
"line": 8,
"column": 26,
"offset": 231
}
},
"expression": {
"type": "svelteExpression",
"value": "33.8981",
"position": {
"start": {
"line": 8,
"column": 18,
"offset": 223
},
"end": {
"line": 8,
"column": 25,
"offset": 230
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 8,
"column": 13,
"offset": 218
},
"end": {
"line": 8,
"column": 26,
"offset": 231
}
}
},
{
"type": "svelteProperty",
"name": "lon",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 8,
"column": 31,
"offset": 236
},
"end": {
"line": 8,
"column": 42,
"offset": 247
}
},
"expression": {
"type": "svelteExpression",
"value": "-118.4169",
"position": {
"start": {
"line": 8,
"column": 32,
"offset": 237
},
"end": {
"line": 8,
"column": 41,
"offset": 246
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 8,
"column": 27,
"offset": 232
},
"end": {
"line": 8,
"column": 42,
"offset": 247
}
}
},
{
"type": "svelteProperty",
"name": "label",
"value": [
{
"type": "text",
"value": "Svelte",
"position": {
"start": {
"line": 8,
"column": 50,
"offset": 255
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 8,
"column": 56,
"offset": 261
},
"end": {}
}
},
{
"type": "text",
"value": "Barbershop",
"position": {
"start": {
"line": 8,
"column": 57,
"offset": 262
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 8,
"column": 67,
"offset": 272
},
"end": {}
}
},
{
"type": "text",
"value": "&",
"position": {
"start": {
"line": 8,
"column": 68,
"offset": 273
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 8,
"column": 69,
"offset": 274
},
"end": {}
}
},
{
"type": "text",
"value": "Essentials",
"position": {
"start": {
"line": 8,
"column": 70,
"offset": 275
},
"end": {
"line": 8,
"column": 81,
"offset": 286
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 8,
"column": 43,
"offset": 248
},
"end": {
"line": 8,
"column": 81,
"offset": 286
}
}
}
],
"selfClosing": true,
"children": [],
"position": {
"start": {
"line": 8,
"column": 2,
"offset": 207
},
"end": {
"line": 8,
"column": 83,
"offset": 288
}
}
},
{
"type": "text",
"value": "\n\t",
"position": {
"start": {
"line": 8,
"column": 83,
"offset": 288
},
"end": {
"line": 9,
"column": 2,
"offset": 290
}
}
},
{
"type": "svelteComponent",
"tagName": "MapMarker",
"properties": [
{
"type": "svelteProperty",
"name": "lat",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 9,
"column": 17,
"offset": 305
},
"end": {
"line": 9,
"column": 26,
"offset": 314
}
},
"expression": {
"type": "svelteExpression",
"value": "29.7230",
"position": {
"start": {
"line": 9,
"column": 18,
"offset": 306
},
"end": {
"line": 9,
"column": 25,
"offset": 313
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 9,
"column": 13,
"offset": 301
},
"end": {
"line": 9,
"column": 26,
"offset": 314
}
}
},
{
"type": "svelteProperty",
"name": "lon",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 9,
"column": 31,
"offset": 319
},
"end": {
"line": 9,
"column": 41,
"offset": 329
}
},
"expression": {
"type": "svelteExpression",
"value": "-95.4189",
"position": {
"start": {
"line": 9,
"column": 32,
"offset": 320
},
"end": {
"line": 9,
"column": 40,
"offset": 328
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 9,
"column": 27,
"offset": 315
},
"end": {
"line": 9,
"column": 41,
"offset": 329
}
}
},
{
"type": "svelteProperty",
"name": "label",
"value": [
{
"type": "text",
"value": "Svelte",
"position": {
"start": {
"line": 9,
"column": 49,
"offset": 337
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 9,
"column": 55,
"offset": 343
},
"end": {}
}
},
{
"type": "text",
"value": "Waxing",
"position": {
"start": {
"line": 9,
"column": 56,
"offset": 344
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 9,
"column": 62,
"offset": 350
},
"end": {}
}
},
{
"type": "text",
"value": "Studio",
"position": {
"start": {
"line": 9,
"column": 63,
"offset": 351
},
"end": {
"line": 9,
"column": 70,
"offset": 358
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 9,
"column": 42,
"offset": 330
},
"end": {
"line": 9,
"column": 70,
"offset": 358
}
}
}
],
"selfClosing": true,
"children": [],
"position": {
"start": {
"line": 9,
"column": 2,
"offset": 290
},
"end": {
"line": 9,
"column": 72,
"offset": 360
}
}
},
{
"type": "text",
"value": "\n\t",
"position": {
"start": {
"line": 9,
"column": 72,
"offset": 360
},
"end": {
"line": 10,
"column": 2,
"offset": 362
}
}
},
{
"type": "svelteComponent",
"tagName": "MapMarker",
"properties": [
{
"type": "svelteProperty",
"name": "lat",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 10,
"column": 17,
"offset": 377
},
"end": {
"line": 10,
"column": 26,
"offset": 386
}
},
"expression": {
"type": "svelteExpression",
"value": "28.3378",
"position": {
"start": {
"line": 10,
"column": 18,
"offset": 378
},
"end": {
"line": 10,
"column": 25,
"offset": 385
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 10,
"column": 13,
"offset": 373
},
"end": {
"line": 10,
"column": 26,
"offset": 386
}
}
},
{
"type": "svelteProperty",
"name": "lon",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 10,
"column": 31,
"offset": 391
},
"end": {
"line": 10,
"column": 41,
"offset": 401
}
},
"expression": {
"type": "svelteExpression",
"value": "-81.3966",
"position": {
"start": {
"line": 10,
"column": 32,
"offset": 392
},
"end": {
"line": 10,
"column": 40,
"offset": 400
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 10,
"column": 27,
"offset": 387
},
"end": {
"line": 10,
"column": 41,
"offset": 401
}
}
},
{
"type": "svelteProperty",
"name": "label",
"value": [
{
"type": "text",
"value": "Svelte",
"position": {
"start": {
"line": 10,
"column": 49,
"offset": 409
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 10,
"column": 55,
"offset": 415
},
"end": {}
}
},
{
"type": "text",
"value": "30",
"position": {
"start": {
"line": 10,
"column": 56,
"offset": 416
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 10,
"column": 58,
"offset": 418
},
"end": {}
}
},
{
"type": "text",
"value": "Nutritional",
"position": {
"start": {
"line": 10,
"column": 59,
"offset": 419
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 10,
"column": 70,
"offset": 430
},
"end": {}
}
},
{
"type": "text",
"value": "Consultants",
"position": {
"start": {
"line": 10,
"column": 71,
"offset": 431
},
"end": {
"line": 10,
"column": 83,
"offset": 443
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 10,
"column": 42,
"offset": 402
},
"end": {
"line": 10,
"column": 83,
"offset": 443
}
}
}
],
"selfClosing": true,
"children": [],
"position": {
"start": {
"line": 10,
"column": 2,
"offset": 362
},
"end": {
"line": 10,
"column": 85,
"offset": 445
}
}
},
{
"type": "text",
"value": "\n\t",
"position": {
"start": {
"line": 10,
"column": 85,
"offset": 445
},
"end": {
"line": 11,
"column": 2,
"offset": 447
}
}
},
{
"type": "svelteComponent",
"tagName": "MapMarker",
"properties": [
{
"type": "svelteProperty",
"name": "lat",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 11,
"column": 17,
"offset": 462
},
"end": {
"line": 11,
"column": 26,
"offset": 471
}
},
"expression": {
"type": "svelteExpression",
"value": "40.6483",
"position": {
"start": {
"line": 11,
"column": 18,
"offset": 463
},
"end": {
"line": 11,
"column": 25,
"offset": 470
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 11,
"column": 13,
"offset": 458
},
"end": {
"line": 11,
"column": 26,
"offset": 471
}
}
},
{
"type": "svelteProperty",
"name": "lon",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 11,
"column": 31,
"offset": 476
},
"end": {
"line": 11,
"column": 41,
"offset": 486
}
},
"expression": {
"type": "svelteExpression",
"value": "-74.0237",
"position": {
"start": {
"line": 11,
"column": 32,
"offset": 477
},
"end": {
"line": 11,
"column": 40,
"offset": 485
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 11,
"column": 27,
"offset": 472
},
"end": {
"line": 11,
"column": 41,
"offset": 486
}
}
},
{
"type": "svelteProperty",
"name": "label",
"value": [
{
"type": "text",
"value": "Svelte",
"position": {
"start": {
"line": 11,
"column": 49,
"offset": 494
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 11,
"column": 55,
"offset": 500
},
"end": {}
}
},
{
"type": "text",
"value": "Brands",
"position": {
"start": {
"line": 11,
"column": 56,
"offset": 501
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 11,
"column": 62,
"offset": 507
},
"end": {}
}
},
{
"type": "text",
"value": "LLC",
"position": {
"start": {
"line": 11,
"column": 63,
"offset": 508
},
"end": {
"line": 11,
"column": 67,
"offset": 512
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 11,
"column": 42,
"offset": 487
},
"end": {
"line": 11,
"column": 67,
"offset": 512
}
}
}
],
"selfClosing": true,
"children": [],
"position": {
"start": {
"line": 11,
"column": 2,
"offset": 447
},
"end": {
"line": 11,
"column": 69,
"offset": 514
}
}
},
{
"type": "text",
"value": "\n\t",
"position": {
"start": {
"line": 11,
"column": 69,
"offset": 514
},
"end": {
"line": 12,
"column": 2,
"offset": 516
}
}
},
{
"type": "svelteComponent",
"tagName": "MapMarker",
"properties": [
{
"type": "svelteProperty",
"name": "lat",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 12,
"column": 17,
"offset": 531
},
"end": {
"line": 12,
"column": 26,
"offset": 540
}
},
"expression": {
"type": "svelteExpression",
"value": "40.6986",
"position": {
"start": {
"line": 12,
"column": 18,
"offset": 532
},
"end": {
"line": 12,
"column": 25,
"offset": 539
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 12,
"column": 13,
"offset": 527
},
"end": {
"line": 12,
"column": 26,
"offset": 540
}
}
},
{
"type": "svelteProperty",
"name": "lon",
"value": [
{
"type": "svelteDynamicContent",
"position": {
"start": {
"line": 12,
"column": 31,
"offset": 545
},
"end": {
"line": 12,
"column": 41,
"offset": 555
}
},
"expression": {
"type": "svelteExpression",
"value": "-74.4100",
"position": {
"start": {
"line": 12,
"column": 32,
"offset": 546
},
"end": {
"line": 12,
"column": 40,
"offset": 554
}
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 12,
"column": 27,
"offset": 541
},
"end": {
"line": 12,
"column": 41,
"offset": 555
}
}
},
{
"type": "svelteProperty",
"name": "label",
"value": [
{
"type": "text",
"value": "Svelte",
"position": {
"start": {
"line": 12,
"column": 49,
"offset": 563
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 12,
"column": 55,
"offset": 569
},
"end": {}
}
},
{
"type": "text",
"value": "Medical",
"position": {
"start": {
"line": 12,
"column": 56,
"offset": 570
},
"end": {}
}
},
{
"type": "text",
"value": " ",
"position": {
"start": {
"line": 12,
"column": 63,
"offset": 577
},
"end": {}
}
},
{
"type": "text",
"value": "Systems",
"position": {
"start": {
"line": 12,
"column": 64,
"offset": 578
},
"end": {
"line": 12,
"column": 72,
"offset": 586
}
}
}
],
"modifiers": [],
"shorthand": "none",
"position": {
"start": {
"line": 12,
"column": 42,
"offset": 556
},
"end": {
"line": 12,
"column": 72,
"offset": 586
}
}
}
],
"selfClosing": true,
"children": [],
"position": {
"start": {
"line": 12,
"column": 2,
"offset": 516
},
"end": {
"line": 12,
"column": 74,
"offset": 588
}
}
},
{
"type": "text",
"value": "\n",
"position": {
"start": {
"line": 12,
"column": 74,
"offset": 588
},
"end": {
"line": 13,
"column": 1,
"offset": 589
}
}
}
],
"position": {
"start": {
"line": 6,
"column": 1,
"offset": 98
},
"end": {
"line": 13,
"column": 7,
"offset": 595
}
}
}
],
"position": {
"start": {
"column": 1,
"line": 1,
"offset": 0
},
"end": {
"line": 13,
"column": 7,
"offset": 595
}
}
}