rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,494 lines (1,493 loc) • 90.9 kB
JSON
{
"type": "Program",
"start": 0,
"end": 406,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 18,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "Identifier",
"start": 0,
"end": 119,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4,
"end": 118,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 5,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 4,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 8
}
},
"name": "mark"
},
"init": {
"type": "ArrowFunctionExpression",
"start": 11,
"end": 118,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 5,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 12,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 16
}
},
"name": "name"
}
],
"body": {
"type": "BlockStatement",
"start": 21,
"end": 118,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 5,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 25,
"end": 116,
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 4,
"column": 3
}
},
"test": {
"type": "LogicalExpression",
"start": 29,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 51
}
},
"left": {
"type": "MemberExpression",
"start": 29,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 29,
"end": 35,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 12
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 36,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 13
},
"end": {
"line": 2,
"column": 24
}
},
"name": "performance"
},
"computed": false
},
"operator": "&&",
"right": {
"type": "MemberExpression",
"start": 51,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 28
},
"end": {
"line": 2,
"column": 51
}
},
"object": {
"type": "MemberExpression",
"start": 51,
"end": 69,
"loc": {
"start": {
"line": 2,
"column": 28
},
"end": {
"line": 2,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 51,
"end": 57,
"loc": {
"start": {
"line": 2,
"column": 28
},
"end": {
"line": 2,
"column": 34
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 58,
"end": 69,
"loc": {
"start": {
"line": 2,
"column": 35
},
"end": {
"line": 2,
"column": 46
}
},
"name": "performance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 70,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 47
},
"end": {
"line": 2,
"column": 51
}
},
"name": "mark"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 76,
"end": 116,
"loc": {
"start": {
"line": 2,
"column": 53
},
"end": {
"line": 4,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 82,
"end": 112,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 34
}
},
"expression": {
"type": "CallExpression",
"start": 82,
"end": 111,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 33
}
},
"callee": {
"type": "MemberExpression",
"start": 82,
"end": 105,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 27
}
},
"object": {
"type": "MemberExpression",
"start": 82,
"end": 100,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 82,
"end": 88,
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 10
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 89,
"end": 100,
"loc": {
"start": {
"line": 3,
"column": 11
},
"end": {
"line": 3,
"column": 22
}
},
"name": "performance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 101,
"end": 105,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 27
}
},
"name": "mark"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 106,
"end": 110,
"loc": {
"start": {
"line": 3,
"column": 28
},
"end": {
"line": 3,
"column": 32
}
},
"name": "name"
}
]
}
}
]
},
"alternate": null
}
]
}
}
}
],
"kind": "let",
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "Identifier",
"start": 121,
"end": 376,
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 13,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 125,
"end": 375,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 13,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 125,
"end": 132,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 11
}
},
"name": "measure"
},
"init": {
"type": "ArrowFunctionExpression",
"start": 135,
"end": 375,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 13,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 136,
"end": 140,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 7,
"column": 19
}
},
"name": "name"
},
{
"type": "Identifier",
"start": 142,
"end": 147,
"loc": {
"start": {
"line": 7,
"column": 21
},
"end": {
"line": 7,
"column": 26
}
},
"name": "start"
},
{
"type": "Identifier",
"start": 149,
"end": 152,
"loc": {
"start": {
"line": 7,
"column": 28
},
"end": {
"line": 7,
"column": 31
}
},
"name": "end"
}
],
"body": {
"type": "BlockStatement",
"start": 157,
"end": 375,
"loc": {
"start": {
"line": 7,
"column": 36
},
"end": {
"line": 13,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 161,
"end": 373,
"loc": {
"start": {
"line": 8,
"column": 2
},
"end": {
"line": 12,
"column": 3
}
},
"test": {
"type": "LogicalExpression",
"start": 165,
"end": 213,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 8,
"column": 54
}
},
"left": {
"type": "MemberExpression",
"start": 165,
"end": 183,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 8,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 165,
"end": 171,
"loc": {
"start": {
"line": 8,
"column": 6
},
"end": {
"line": 8,
"column": 12
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 172,
"end": 183,
"loc": {
"start": {
"line": 8,
"column": 13
},
"end": {
"line": 8,
"column": 24
}
},
"name": "performance"
},
"computed": false
},
"operator": "&&",
"right": {
"type": "MemberExpression",
"start": 187,
"end": 213,
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 54
}
},
"object": {
"type": "MemberExpression",
"start": 187,
"end": 205,
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 46
}
},
"object": {
"type": "Identifier",
"start": 187,
"end": 193,
"loc": {
"start": {
"line": 8,
"column": 28
},
"end": {
"line": 8,
"column": 34
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 194,
"end": 205,
"loc": {
"start": {
"line": 8,
"column": 35
},
"end": {
"line": 8,
"column": 46
}
},
"name": "performance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 206,
"end": 213,
"loc": {
"start": {
"line": 8,
"column": 47
},
"end": {
"line": 8,
"column": 54
}
},
"name": "measure"
},
"computed": false
}
},
"consequent": {
"type": "BlockStatement",
"start": 215,
"end": 373,
"loc": {
"start": {
"line": 8,
"column": 56
},
"end": {
"line": 12,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 221,
"end": 266,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 49
}
},
"expression": {
"type": "CallExpression",
"start": 221,
"end": 265,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 48
}
},
"callee": {
"type": "MemberExpression",
"start": 221,
"end": 247,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 30
}
},
"object": {
"type": "MemberExpression",
"start": 221,
"end": 239,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 22
}
},
"object": {
"type": "Identifier",
"start": 221,
"end": 227,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 10
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 228,
"end": 239,
"loc": {
"start": {
"line": 9,
"column": 11
},
"end": {
"line": 9,
"column": 22
}
},
"name": "performance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 240,
"end": 247,
"loc": {
"start": {
"line": 9,
"column": 23
},
"end": {
"line": 9,
"column": 30
}
},
"name": "measure"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 248,
"end": 252,
"loc": {
"start": {
"line": 9,
"column": 31
},
"end": {
"line": 9,
"column": 35
}
},
"name": "name"
},
{
"type": "Identifier",
"start": 254,
"end": 259,
"loc": {
"start": {
"line": 9,
"column": 37
},
"end": {
"line": 9,
"column": 42
}
},
"name": "start"
},
{
"type": "Identifier",
"start": 261,
"end": 264,
"loc": {
"start": {
"line": 9,
"column": 44
},
"end": {
"line": 9,
"column": 47
}
},
"name": "end"
}
]
}
},
{
"type": "VariableDeclaration",
"start": 271,
"end": 283,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 16
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 275,
"end": 282,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 15
}
},
"id": {
"type": "Identifier",
"start": 275,
"end": 282,
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 15
}
},
"name": "entries"
},
"init": null
}
],
"kind": "let"
},
{
"type": "ReturnStatement",
"start": 288,
"end": 369,
"loc": {
"start": {
"line": 11,
"column": 4
},
"end": {
"line": 11,
"column": 85
}
},
"argument": {
"type": "MemberExpression",
"start": 295,
"end": 368,
"loc": {
"start": {
"line": 11,
"column": 11
},
"end": {
"line": 11,
"column": 84
}
},
"object": {
"type": "AssignmentExpression",
"start": 296,
"end": 347,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 63
}
},
"operator": "=",
"left": {
"type": "Identifier",
"start": 296,
"end": 303,
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 19
}
},
"name": "entries"
},
"right": {
"type": "CallExpression",
"start": 306,
"end": 347,
"loc": {
"start": {
"line": 11,
"column": 22
},
"end": {
"line": 11,
"column": 63
}
},
"callee": {
"type": "MemberExpression",
"start": 306,
"end": 341,
"loc": {
"start": {
"line": 11,
"column": 22
},
"end": {
"line": 11,
"column": 57
}
},
"object": {
"type": "MemberExpression",
"start": 306,
"end": 324,
"loc": {
"start": {
"line": 11,
"column": 22
},
"end": {
"line": 11,
"column": 40
}
},
"object": {
"type": "Identifier",
"start": 306,
"end": 312,
"loc": {
"start": {
"line": 11,
"column": 22
},
"end": {
"line": 11,
"column": 28
}
},
"name": "window"
},
"property": {
"type": "Identifier",
"start": 313,
"end": 324,
"loc": {
"start": {
"line": 11,
"column": 29
},
"end": {
"line": 11,
"column": 40
}
},
"name": "performance"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 325,
"end": 341,
"loc": {
"start": {
"line": 11,
"column": 41
},
"end": {
"line": 11,
"column": 57
}
},
"name": "getEntriesByName"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 342,
"end": 346,
"loc": {
"start": {
"line": 11,
"column": 58
},
"end": {
"line": 11,
"column": 62
}
},
"name": "name"
}
]
},
"parenthesizedExpression": true
},
"property": {
"type": "BinaryExpression",
"start": 349,
"end": 367,
"loc": {
"start": {
"line": 11,
"column": 65
},
"end": {
"line": 11,
"column": 83
}
},
"left": {
"type": "MemberExpression",
"start": 349,
"end": 363,
"loc": {
"start": {
"line": 11,
"column": 65
},
"end": {
"line": 11,
"column": 79
}
},
"object": {
"type": "Identifier",
"start": 349,
"end": 356,
"loc": {
"start": {
"line": 11,
"column": 65
},
"end": {
"line": 11,
"column": 72
}
},
"name": "entries"
},
"property": {
"type": "Identifier",
"start": 357,
"end": 363,
"loc": {
"start": {
"line": 11,
"column": 73
},
"end": {
"line": 11,
"column": 79
}
},
"name": "length"
},
"computed": false
},
"operator": "-",
"right": {
"type": "Literal",
"start": 366,
"end": 367,
"loc": {
"start": {
"line": 11,
"column": 82
},
"end": {
"line": 11,
"column": 83
}
},
"value": 1,
"rawValue": 1,
"raw": "1"
}
},
"computed": true
}
}
]
},
"alternate": null
}
]
}
}
}
],
"kind": "let",
"name": "_",
"leadingComments": [],
"trailingComments": []
},
{
"type": "ExportNamedDeclaration",
"start": 378,
"end": 405,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 17,
"column": 2
}
},
"declaration": null,
"specifiers": [
{
"type": "ExportSpecifier",
"start": 389,
"end": 393,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 6
}
},
"local": {
"type": "Identifier",
"start": 389,
"end": 393,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 6
}
},
"name": "mark"
},
"exported": {
"type": "Identifier",
"start": 389,
"end": 393,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 6
}
},
"name": "mark"
}
},
{
"type": "ExportSpecifier",
"start": 395,
"end": 402,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 15
}
},
"local": {
"type": "Identifier",
"start": 395,
"end": 402,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 15
}
},
"name": "measure"
},
"exported": {
"type": "Identifier",
"start": 395,
"end": 402,
"loc": {
"start": {
"line": 16,
"column": 8
},
"end": {
"line": 16,
"column": 15
}
},
"name": "measure"
}
}
],
"source": null,
"exportKind": "value"
},
{
"type": "ExportNamedDeclaration",
"start": 378,
"end": 405,
"loc": {
"start": {
"line": 15,
"column": 0
},
"end": {
"line": 17,
"column": 2
}
},
"declaration": {
"type": "VariableDeclaration",
"start": 0,
"end": 119,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 2
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4,
"end": 118,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 5,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 4,
"end": 8,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 8
}
},
"name": "mark"
},
"init": {
"type": "ArrowFunctionExpression",
"start": 11,
"end": 118,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 5,
"column": 1
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 12,
"end": 16,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 16
}
},
"name": "name"
}
],
"body": {
"type": "BlockStatement",
"start": 21,
"end": 118,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 5,
"column": 1
}
},
"body": [
{
"type": "IfStatement",
"start": 25,
"end": 116,
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 4,
"column": 3
}
},
"test": {
"type": "LogicalExpression",
"start": 29,
"end": 74,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 51
}
},
"left": {
"type": "MemberExpression",
"start": 29,
"end": 47,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 24
}
},
"object": {
"type": "Identifier",
"start": 29,
"end": 35,
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 12
}
},
"name": "window"
},