348 lines
9.7 KiB
JSON
348 lines
9.7 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 68,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 15
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 68,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 15
|
|
}
|
|
},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 0,
|
|
"end": 68,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 15
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 4,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 14
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 4,
|
|
"end": 10,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 4
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 10
|
|
},
|
|
"identifierName": "result"
|
|
},
|
|
"name": "result"
|
|
},
|
|
"init": {
|
|
"type": "BinaryExpression",
|
|
"start": 13,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 14
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 13,
|
|
"end": 52,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "BinaryExpression",
|
|
"start": 13,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 12
|
|
}
|
|
},
|
|
"left": {
|
|
"type": "StringLiteral",
|
|
"start": 13,
|
|
"end": 20,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 20
|
|
}
|
|
},
|
|
"extra": {
|
|
"rawValue": "hello",
|
|
"raw": "\"hello\""
|
|
},
|
|
"value": "hello"
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "PipelineBareFunction",
|
|
"start": 24,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 12
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start": 24,
|
|
"end": 33,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 12
|
|
},
|
|
"identifierName": "doubleSay"
|
|
},
|
|
"name": "doubleSay"
|
|
}
|
|
}
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "PipelineBareFunction",
|
|
"start": 37,
|
|
"end": 52,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 37,
|
|
"end": 52,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 37,
|
|
"end": 41,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 7
|
|
},
|
|
"identifierName": "text"
|
|
},
|
|
"name": "text"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 42,
|
|
"end": 52,
|
|
"loc": {
|
|
"start": {
|
|
"line": 3,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 18
|
|
},
|
|
"identifierName": "capitalize"
|
|
},
|
|
"name": "capitalize"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
},
|
|
"operator": "|>",
|
|
"right": {
|
|
"type": "PipelineBareFunction",
|
|
"start": 56,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 14
|
|
}
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"start": 56,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 14
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "MemberExpression",
|
|
"start": 56,
|
|
"end": 59,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 6
|
|
}
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"start": 56,
|
|
"end": 57,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 3
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 4
|
|
},
|
|
"identifierName": "a"
|
|
},
|
|
"name": "a"
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 58,
|
|
"end": 59,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 5
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 6
|
|
},
|
|
"identifierName": "b"
|
|
},
|
|
"name": "b"
|
|
},
|
|
"computed": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"start": 60,
|
|
"end": 67,
|
|
"loc": {
|
|
"start": {
|
|
"line": 4,
|
|
"column": 7
|
|
},
|
|
"end": {
|
|
"line": 4,
|
|
"column": 14
|
|
},
|
|
"identifierName": "exclaim"
|
|
},
|
|
"name": "exclaim"
|
|
},
|
|
"computed": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "let"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |