{
"type": "Program",
"statements": [
{
"type": "ImportDeclaration",
"source": {
"type": "StringLiteral",
"value": "std/concurrency",
"loc": {
"start": {
"line": 16,
"column": 22,
"program": "launch_ret.ets"
},
"end": {
"line": 16,
"column": 39,
"program": "launch_ret.ets"
}
}
},
"specifiers": [
{
"type": "ImportSpecifier",
"local": {
"type": "Identifier",
"name": "launch",
"loc": {
"start": {
"line": 16,
"column": 9,
"program": "launch_ret.ets"
},
"end": {
"line": 16,
"column": 15,
"program": "launch_ret.ets"
}
}
},
"imported": {
"type": "Identifier",
"name": "launch",
"loc": {
"start": {
"line": 16,
"column": 9,
"program": "launch_ret.ets"
},
"end": {
"line": 16,
"column": 15,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 16,
"column": 9,
"program": "launch_ret.ets"
},
"end": {
"line": 16,
"column": 15,
"program": "launch_ret.ets"
}
}
}
],
"loc": {
"start": {
"line": 16,
"column": 1,
"program": "launch_ret.ets"
},
"end": {
"line": 16,
"column": 39,
"program": "launch_ret.ets"
}
}
},
{
"type": "ClassDeclaration",
"definition": {
"id": {
"type": "Identifier",
"name": "ETSGLOBAL",
"loc": {
"start": {
"line": 1,
"column": 1,
"program": "launch_ret.ets"
},
"end": {
"line": 1,
"column": 1,
"program": "launch_ret.ets"
}
}
},
"superClass": null,
"implements": [],
"body": [
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "fooInt",
"loc": {
"start": {
"line": 18,
"column": 10,
"program": "launch_ret.ets"
},
"end": {
"line": 18,
"column": 16,
"program": "launch_ret.ets"
}
}
},
"kind": "method",
"accessibility": "public",
"static": true,
"optional": false,
"computed": false,
"value": {
"type": "FunctionExpression",
"function": {
"type": "ScriptFunction",
"id": {
"type": "Identifier",
"name": "fooInt",
"loc": {
"start": {
"line": 18,
"column": 10,
"program": "launch_ret.ets"
},
"end": {
"line": 18,
"column": 16,
"program": "launch_ret.ets"
}
}
},
"generator": false,
"async": false,
"expression": false,
"params": [],
"returnType": {
"type": "ETSPrimitiveType",
"loc": {
"start": {
"line": 18,
"column": 20,
"program": "launch_ret.ets"
},
"end": {
"line": 18,
"column": 23,
"program": "launch_ret.ets"
}
}
},
"body": {
"type": "BlockStatement",
"statements": [
{
"type": "ReturnStatement",
"argument": {
"type": "NumberLiteral",
"value": 5,
"loc": {
"start": {
"line": 19,
"column": 12,
"program": "launch_ret.ets"
},
"end": {
"line": 19,
"column": 13,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 19,
"column": 5,
"program": "launch_ret.ets"
},
"end": {
"line": 19,
"column": 14,
"program": "launch_ret.ets"
}
}
}
],
"loc": {
"start": {
"line": 18,
"column": 24,
"program": "launch_ret.ets"
},
"end": {
"line": 20,
"column": 2,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 18,
"column": 10,
"program": "launch_ret.ets"
},
"end": {
"line": 20,
"column": 2,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 18,
"column": 10,
"program": "launch_ret.ets"
},
"end": {
"line": 20,
"column": 2,
"program": "launch_ret.ets"
}
}
},
"overloads": [],
"loc": {
"start": {
"line": 18,
"column": 1,
"program": "launch_ret.ets"
},
"end": {
"line": 20,
"column": 2,
"program": "launch_ret.ets"
}
}
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "main",
"loc": {
"start": {
"line": 22,
"column": 10,
"program": "launch_ret.ets"
},
"end": {
"line": 22,
"column": 14,
"program": "launch_ret.ets"
}
}
},
"kind": "method",
"accessibility": "public",
"static": true,
"optional": false,
"computed": false,
"value": {
"type": "FunctionExpression",
"function": {
"type": "ScriptFunction",
"id": {
"type": "Identifier",
"name": "main",
"loc": {
"start": {
"line": 22,
"column": 10,
"program": "launch_ret.ets"
},
"end": {
"line": 22,
"column": 14,
"program": "launch_ret.ets"
}
}
},
"generator": false,
"async": false,
"expression": false,
"params": [],
"returnType": {
"type": "ETSPrimitiveType",
"loc": {
"start": {
"line": 22,
"column": 18,
"program": "launch_ret.ets"
},
"end": {
"line": 22,
"column": 22,
"program": "launch_ret.ets"
}
}
},
"body": {
"type": "BlockStatement",
"statements": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "p",
"typeAnnotation": {
"type": "ETSTypeReference",
"part": {
"type": "ETSTypeReferencePart",
"name": {
"type": "Identifier",
"name": "Promise",
"loc": {
"start": {
"line": 23,
"column": 12,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 19,
"program": "launch_ret.ets"
}
}
},
"typeParams": {
"type": "TSTypeParameterInstantiation",
"params": [
{
"type": "ETSPrimitiveType",
"loc": {
"start": {
"line": 23,
"column": 20,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 23,
"program": "launch_ret.ets"
}
}
}
],
"loc": {
"start": {
"line": 23,
"column": 19,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 24,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 23,
"column": 12,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 24,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 23,
"column": 12,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 24,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 23,
"column": 9,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 10,
"program": "launch_ret.ets"
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "launch",
"loc": {
"start": {
"line": 23,
"column": 27,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 33,
"program": "launch_ret.ets"
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "fooInt",
"loc": {
"start": {
"line": 23,
"column": 34,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 40,
"program": "launch_ret.ets"
}
}
}
],
"optional": false,
"loc": {
"start": {
"line": 23,
"column": 27,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 41,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 23,
"column": 9,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 41,
"program": "launch_ret.ets"
}
}
}
],
"kind": "let",
"loc": {
"start": {
"line": 23,
"column": 5,
"program": "launch_ret.ets"
},
"end": {
"line": 23,
"column": 42,
"program": "launch_ret.ets"
}
}
}
],
"loc": {
"start": {
"line": 22,
"column": 23,
"program": "launch_ret.ets"
},
"end": {
"line": 24,
"column": 2,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 22,
"column": 10,
"program": "launch_ret.ets"
},
"end": {
"line": 24,
"column": 2,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 22,
"column": 10,
"program": "launch_ret.ets"
},
"end": {
"line": 24,
"column": 2,
"program": "launch_ret.ets"
}
}
},
"overloads": [],
"loc": {
"start": {
"line": 22,
"column": 1,
"program": "launch_ret.ets"
},
"end": {
"line": 24,
"column": 2,
"program": "launch_ret.ets"
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 1,
"program": "launch_ret.ets"
},
"end": {
"line": 1,
"column": 1,
"program": "launch_ret.ets"
}
}
},
"loc": {
"start": {
"line": 1,
"column": 1,
"program": "launch_ret.ets"
},
"end": {
"line": 1,
"column": 1,
"program": "launch_ret.ets"
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 1,
"program": "launch_ret.ets"
},
"end": {
"line": 25,
"column": 1,
"program": "launch_ret.ets"
}
}
}