605 lines
18 KiB
JSON
605 lines
18 KiB
JSON
{
|
|
"type": "File",
|
|
"start": 0,
|
|
"end": 118,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 60
|
|
}
|
|
},
|
|
"program": {
|
|
"type": "Program",
|
|
"start": 0,
|
|
"end": 118,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 60
|
|
}
|
|
},
|
|
"sourceType": "module",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 0,
|
|
"end": 57,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 57
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 6,
|
|
"end": 56,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 56
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 6,
|
|
"end": 37,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 37
|
|
},
|
|
"identifierName": "fn"
|
|
},
|
|
"name": "fn",
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start": 8,
|
|
"end": 37,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 8
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 37
|
|
}
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start": 10,
|
|
"end": 37,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 10
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 37
|
|
}
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "FunctionTypeParam",
|
|
"start": 12,
|
|
"end": 19,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 19
|
|
}
|
|
},
|
|
"name": null,
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start": 12,
|
|
"end": 18,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 18
|
|
}
|
|
},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 12,
|
|
"end": 18,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 12
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 18
|
|
},
|
|
"identifierName": "Object"
|
|
},
|
|
"name": "Object"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionTypeParam",
|
|
"start": 20,
|
|
"end": 27,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
}
|
|
},
|
|
"name": null,
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "NullableTypeAnnotation",
|
|
"start": 20,
|
|
"end": 27,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 20
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
}
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start": 21,
|
|
"end": 27,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
}
|
|
},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 21,
|
|
"end": 27,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 27
|
|
},
|
|
"identifierName": "Object"
|
|
},
|
|
"name": "Object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"rest": null,
|
|
"returnType": {
|
|
"type": "VoidTypeAnnotation",
|
|
"start": 33,
|
|
"end": 37,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 33
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 37
|
|
}
|
|
}
|
|
},
|
|
"typeParameters": null
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 40,
|
|
"end": 56,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 40
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 56
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 42,
|
|
"end": 44,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 44
|
|
},
|
|
"identifierName": "o1"
|
|
},
|
|
"name": "o1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 46,
|
|
"end": 48,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 46
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 48
|
|
},
|
|
"identifierName": "o2"
|
|
},
|
|
"name": "o2"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "Identifier",
|
|
"start": 54,
|
|
"end": 56,
|
|
"loc": {
|
|
"start": {
|
|
"line": 1,
|
|
"column": 54
|
|
},
|
|
"end": {
|
|
"line": 1,
|
|
"column": 56
|
|
},
|
|
"identifierName": "o1"
|
|
},
|
|
"name": "o1"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"start": 58,
|
|
"end": 118,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 0
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 60
|
|
}
|
|
},
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"start": 64,
|
|
"end": 117,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 59
|
|
}
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 64,
|
|
"end": 97,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 6
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 39
|
|
},
|
|
"identifierName": "fn2"
|
|
},
|
|
"name": "fn2",
|
|
"typeAnnotation": {
|
|
"type": "TypeAnnotation",
|
|
"start": 67,
|
|
"end": 97,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 9
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 39
|
|
}
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "FunctionTypeAnnotation",
|
|
"start": 69,
|
|
"end": 97,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 11
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 39
|
|
}
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "FunctionTypeParam",
|
|
"start": 71,
|
|
"end": 78,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 20
|
|
}
|
|
},
|
|
"name": null,
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start": 71,
|
|
"end": 77,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 19
|
|
}
|
|
},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 71,
|
|
"end": 77,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 13
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 19
|
|
},
|
|
"identifierName": "Object"
|
|
},
|
|
"name": "Object"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionTypeParam",
|
|
"start": 79,
|
|
"end": 86,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 28
|
|
}
|
|
},
|
|
"name": null,
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "NullableTypeAnnotation",
|
|
"start": 79,
|
|
"end": 86,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 21
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 28
|
|
}
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "GenericTypeAnnotation",
|
|
"start": 80,
|
|
"end": 86,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 28
|
|
}
|
|
},
|
|
"typeParameters": null,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"start": 80,
|
|
"end": 86,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 22
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 28
|
|
},
|
|
"identifierName": "Object"
|
|
},
|
|
"name": "Object"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"rest": null,
|
|
"returnType": {
|
|
"type": "VoidTypeAnnotation",
|
|
"start": 93,
|
|
"end": 97,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 35
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 39
|
|
}
|
|
}
|
|
},
|
|
"typeParameters": null
|
|
}
|
|
}
|
|
},
|
|
"init": {
|
|
"type": "ArrowFunctionExpression",
|
|
"start": 100,
|
|
"end": 117,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 42
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 59
|
|
}
|
|
},
|
|
"id": null,
|
|
"generator": false,
|
|
"async": false,
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"start": 102,
|
|
"end": 104,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 44
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 46
|
|
},
|
|
"identifierName": "o1"
|
|
},
|
|
"name": "o1"
|
|
},
|
|
{
|
|
"type": "Identifier",
|
|
"start": 106,
|
|
"end": 108,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 48
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 50
|
|
},
|
|
"identifierName": "o2"
|
|
},
|
|
"name": "o2"
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "Identifier",
|
|
"start": 115,
|
|
"end": 117,
|
|
"loc": {
|
|
"start": {
|
|
"line": 2,
|
|
"column": 57
|
|
},
|
|
"end": {
|
|
"line": 2,
|
|
"column": 59
|
|
},
|
|
"identifierName": "o1"
|
|
},
|
|
"name": "o1"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"kind": "const"
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
} |