UNPKG

@adrianepi/constant-folding

Version:
155 lines 3.25 kB
{ "type": "Program", "start": 0, "end": 80, "body": [ { "type": "VariableDeclaration", "start": 0, "end": 15, "declarations": [ { "type": "VariableDeclarator", "start": 4, "end": 14, "id": { "type": "Identifier", "start": 4, "end": 5, "name": "f" }, "init": { "type": "Literal", "start": 8, "end": 14, "operator": "+", "value": 3, "raw": "3" } } ], "kind": "var" }, { "type": "VariableDeclaration", "start": 17, "end": 31, "declarations": [ { "type": "VariableDeclarator", "start": 21, "end": 30, "id": { "type": "Identifier", "start": 21, "end": 22, "name": "e" }, "init": { "type": "Literal", "start": 25, "end": 30, "operator": "|", "value": 7, "raw": "7" } } ], "kind": "var" }, { "type": "VariableDeclaration", "start": 33, "end": 47, "declarations": [ { "type": "VariableDeclarator", "start": 37, "end": 46, "id": { "type": "Identifier", "start": 37, "end": 38, "name": "d" }, "init": { "type": "Literal", "start": 41, "end": 46, "operator": "+", "value": "3c", "raw": "3c" } } ], "kind": "var" }, { "type": "VariableDeclaration", "start": 49, "end": 62, "declarations": [ { "type": "VariableDeclarator", "start": 53, "end": 61, "id": { "type": "Identifier", "start": 53, "end": 54, "name": "b" }, "init": { "type": "Literal", "start": 57, "end": 61, "operator": "+", "value": 10, "raw": "10" } } ], "kind": "var" }, { "type": "VariableDeclaration", "start": 64, "end": 80, "declarations": [ { "type": "VariableDeclarator", "start": 68, "end": 79, "id": { "type": "Identifier", "start": 68, "end": 69, "name": "a" }, "init": { "type": "BinaryExpression", "start": 72, "end": 79, "left": { "type": "Literal", "start": 72, "end": 77, "operator": "+", "value": 17, "raw": "17" }, "operator": "+", "right": { "type": "Identifier", "start": 78, "end": 79, "name": "b" } } } ], "kind": "var" } ], "sourceType": "script" }