rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
690 lines • 21.3 kB
JSON
{
"type": "Program",
"start": 0,
"end": 233,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 15,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 26
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 7,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
},
"local": {
"type": "Identifier",
"start": 7,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
},
"name": "React"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 18,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 25
}
},
"value": "react",
"rawValue": "react",
"raw": "\"react\""
}
},
{
"type": "ImportDeclaration",
"start": 27,
"end": 57,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 30
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 34,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 11
}
},
"local": {
"type": "Identifier",
"start": 34,
"end": 38,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 11
}
},
"name": "Item"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 44,
"end": 56,
"loc": {
"start": {
"line": 2,
"column": 17
},
"end": {
"line": 2,
"column": 29
}
},
"value": "./item.jsx",
"rawValue": "./item.jsx",
"raw": "\"./item.jsx\""
}
},
{
"type": "ExportDefaultDeclaration",
"start": 59,
"end": 232,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 14,
"column": 1
}
},
"declaration": {
"type": "ClassDeclaration",
"start": 74,
"end": 232,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 14,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 80,
"end": 87,
"loc": {
"start": {
"line": 4,
"column": 21
},
"end": {
"line": 4,
"column": 28
}
},
"name": "PinView"
},
"superClass": {
"type": "MemberExpression",
"start": 96,
"end": 111,
"loc": {
"start": {
"line": 4,
"column": 37
},
"end": {
"line": 4,
"column": 52
}
},
"object": {
"type": "Identifier",
"start": 96,
"end": 101,
"loc": {
"start": {
"line": 4,
"column": 37
},
"end": {
"line": 4,
"column": 42
}
},
"name": "React"
},
"property": {
"type": "Identifier",
"start": 102,
"end": 111,
"loc": {
"start": {
"line": 4,
"column": 43
},
"end": {
"line": 4,
"column": 52
}
},
"name": "Component"
},
"computed": false
},
"body": {
"type": "ClassBody",
"start": 112,
"end": 232,
"loc": {
"start": {
"line": 4,
"column": 53
},
"end": {
"line": 14,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 117,
"end": 229,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 12,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 117,
"end": 123,
"loc": {
"start": {
"line": 6,
"column": 2
},
"end": {
"line": 6,
"column": 8
}
},
"name": "render"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 123,
"end": 229,
"loc": {
"start": {
"line": 6,
"column": 8
},
"end": {
"line": 12,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 126,
"end": 229,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 12,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 132,
"end": 157,
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 29
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 136,
"end": 156,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 28
}
},
"id": {
"type": "Identifier",
"start": 136,
"end": 139,
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 11
}
},
"name": "pin"
},
"init": {
"type": "MemberExpression",
"start": 142,
"end": 156,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 28
}
},
"object": {
"type": "MemberExpression",
"start": 142,
"end": 152,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 24
}
},
"object": {
"type": "ThisExpression",
"start": 142,
"end": 146,
"loc": {
"start": {
"line": 7,
"column": 14
},
"end": {
"line": 7,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"start": 147,
"end": 152,
"loc": {
"start": {
"line": 7,
"column": 19
},
"end": {
"line": 7,
"column": 24
}
},
"name": "props"
},
"computed": false
},
"property": {
"type": "Identifier",
"start": 153,
"end": 156,
"loc": {
"start": {
"line": 7,
"column": 25
},
"end": {
"line": 7,
"column": 28
}
},
"name": "pin"
},
"computed": false
}
}
],
"kind": "let"
},
{
"type": "ExpressionStatement",
"start": 162,
"end": 179,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 21
}
},
"expression": {
"type": "AssignmentExpression",
"start": 162,
"end": 178,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 20
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 162,
"end": 171,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 13
}
},
"object": {
"type": "Identifier",
"start": 162,
"end": 165,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 7
}
},
"name": "pin"
},
"property": {
"type": "Identifier",
"start": 166,
"end": 171,
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 13
}
},
"name": "onMap"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 174,
"end": 178,
"loc": {
"start": {
"line": 8,
"column": 16
},
"end": {
"line": 8,
"column": 20
}
},
"value": true,
"rawValue": true,
"raw": "true"
}
}
},
{
"type": "ReturnStatement",
"start": 184,
"end": 225,
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 11,
"column": 6
}
},
"argument": {
"type": "JSXElement",
"start": 199,
"end": 218,
"loc": {
"start": {
"line": 10,
"column": 6
},
"end": {
"line": 10,
"column": 25
}
},
"openingElement": {
"type": "JSXOpeningElement",
"start": 199,
"end": 218,
"loc": {
"start": {
"line": 10,
"column": 6
},
"end": {
"line": 10,
"column": 25
}
},
"attributes": [
{
"type": "JSXAttribute",
"start": 205,
"end": 215,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 22
}
},
"name": {
"type": "JSXIdentifier",
"start": 205,
"end": 209,
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 16
}
},
"name": "item"
},
"value": {
"type": "JSXExpressionContainer",
"start": 210,
"end": 215,
"loc": {
"start": {
"line": 10,
"column": 17
},
"end": {
"line": 10,
"column": 22
}
},
"expression": {
"type": "Identifier",
"start": 211,
"end": 214,
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 21
}
},
"name": "pin"
}
}
}
],
"name": {
"type": "JSXIdentifier",
"start": 200,
"end": 204,
"loc": {
"start": {
"line": 10,
"column": 7
},
"end": {
"line": 10,
"column": 11
}
},
"name": "Item"
},
"selfClosing": true
},
"closingElement": null,
"children": [],
"parenthesizedExpression": true
}
}
]
}
}
}
]
},
"leadingComments": [],
"trailingComments": []
}
}
]
}