{
"type": "Program",
"statements": [
{
"type": "TSInterfaceDeclaration",
"body": {
"type": "TSInterfaceBody",
"body": [
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "foo",
"loc": {
"start": {
"line": 17,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 8,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"kind": "method",
"accessibility": "public",
"static": false,
"optional": false,
"computed": false,
"value": {
"type": "FunctionExpression",
"function": {
"type": "ScriptFunction",
"id": {
"type": "Identifier",
"name": "foo",
"loc": {
"start": {
"line": 17,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 8,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"generator": false,
"async": false,
"expression": false,
"params": [
{
"type": "ETSParameterExpression",
"name": {
"type": "Identifier",
"name": "i",
"typeAnnotation": {
"type": "ETSTypeReference",
"part": {
"type": "ETSTypeReferencePart",
"name": {
"type": "Identifier",
"name": "I",
"loc": {
"start": {
"line": 17,
"column": 13,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 17,
"column": 13,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 17,
"column": 13,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 17,
"column": 9,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 17,
"column": 9,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"returnType": {
"type": "ETSPrimitiveType",
"loc": {
"start": {
"line": 17,
"column": 18,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 22,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 17,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 22,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 17,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 22,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"overloads": [],
"loc": {
"start": {
"line": 17,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 17,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"loc": {
"start": {
"line": 16,
"column": 13,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 18,
"column": 2,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"id": {
"type": "Identifier",
"name": "I",
"loc": {
"start": {
"line": 16,
"column": 11,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 16,
"column": 12,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"extends": [],
"loc": {
"start": {
"line": 16,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 18,
"column": 2,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
{
"type": "ClassDeclaration",
"definition": {
"id": {
"type": "Identifier",
"name": "A",
"loc": {
"start": {
"line": 20,
"column": 7,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 8,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"superClass": null,
"implements": [
{
"type": "TSClassImplements",
"expression": {
"type": "ETSTypeReference",
"part": {
"type": "ETSTypeReferencePart",
"name": {
"type": "Identifier",
"name": "I",
"loc": {
"start": {
"line": 20,
"column": 20,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 21,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 20,
"column": 20,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 21,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 20,
"column": 20,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 21,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 20,
"column": 20,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"body": [
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "foo",
"loc": {
"start": {
"line": 21,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 8,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"kind": "method",
"accessibility": "public",
"static": false,
"optional": false,
"computed": false,
"value": {
"type": "FunctionExpression",
"function": {
"type": "ScriptFunction",
"id": {
"type": "Identifier",
"name": "foo",
"loc": {
"start": {
"line": 21,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 8,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"generator": false,
"async": false,
"expression": false,
"params": [
{
"type": "ETSParameterExpression",
"name": {
"type": "Identifier",
"name": "i",
"typeAnnotation": {
"type": "ETSTypeReference",
"part": {
"type": "ETSTypeReferencePart",
"name": {
"type": "Identifier",
"name": "I",
"loc": {
"start": {
"line": 21,
"column": 13,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 21,
"column": 13,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 21,
"column": 13,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 21,
"column": 9,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 21,
"column": 9,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"returnType": {
"type": "ETSPrimitiveType",
"loc": {
"start": {
"line": 21,
"column": 18,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 22,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"body": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 21,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 25,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 21,
"column": 8,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 25,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 21,
"column": 8,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 25,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"overloads": [],
"loc": {
"start": {
"line": 21,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 21,
"column": 25,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "constructor",
"loc": {
"start": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"kind": "constructor",
"static": false,
"optional": false,
"computed": false,
"value": {
"type": "FunctionExpression",
"function": {
"type": "ScriptFunction",
"id": {
"type": "Identifier",
"name": "constructor",
"loc": {
"start": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"generator": false,
"async": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 20,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"overloads": [],
"loc": {
"start": {
"line": 1,
"column": 1,
"program": null
},
"end": {
"line": 1,
"column": 1,
"program": null
}
}
}
],
"loc": {
"start": {
"line": 20,
"column": 22,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 22,
"column": 2,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 20,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 22,
"column": 2,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
{
"type": "ClassDeclaration",
"definition": {
"id": {
"type": "Identifier",
"name": "ETSGLOBAL",
"loc": {
"start": {
"line": 1,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 1,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"superClass": null,
"implements": [],
"body": [
{
"type": "MethodDefinition",
"key": {
"type": "Identifier",
"name": "main",
"loc": {
"start": {
"line": 24,
"column": 10,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 24,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.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": 24,
"column": 10,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 24,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"generator": false,
"async": false,
"expression": false,
"params": [],
"returnType": {
"type": "ETSPrimitiveType",
"loc": {
"start": {
"line": 24,
"column": 18,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 24,
"column": 22,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"body": {
"type": "BlockStatement",
"statements": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "an",
"typeAnnotation": {
"type": "ETSUnionType",
"types": [
{
"type": "ETSTypeReference",
"part": {
"type": "ETSTypeReferencePart",
"name": {
"type": "Identifier",
"name": "I",
"loc": {
"start": {
"line": 25,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 15,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 25,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 15,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 25,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 15,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
{
"type": "ETSNullType",
"loc": {
"start": {
"line": 25,
"column": 18,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 22,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"loc": {
"start": {
"line": 25,
"column": 14,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 22,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 25,
"column": 9,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 11,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"init": {
"type": "ETSNewClassInstanceExpression",
"typeReference": {
"type": "ETSTypeReference",
"part": {
"type": "ETSTypeReferencePart",
"name": {
"type": "Identifier",
"name": "A",
"loc": {
"start": {
"line": 25,
"column": 29,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 30,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 25,
"column": 29,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 30,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 25,
"column": 29,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 30,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"arguments": [],
"loc": {
"start": {
"line": 25,
"column": 25,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 33,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 25,
"column": 9,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 33,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"kind": "let",
"loc": {
"start": {
"line": 25,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 25,
"column": 33,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"object": {
"type": "ETSNewClassInstanceExpression",
"typeReference": {
"type": "ETSTypeReference",
"part": {
"type": "ETSTypeReferencePart",
"name": {
"type": "Identifier",
"name": "A",
"loc": {
"start": {
"line": 27,
"column": 9,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 27,
"column": 10,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 27,
"column": 9,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 27,
"column": 10,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 27,
"column": 9,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 27,
"column": 10,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"arguments": [],
"loc": {
"start": {
"line": 27,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 27,
"column": 13,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"property": {
"type": "Identifier",
"name": "foo",
"loc": {
"start": {
"line": 27,
"column": 13,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 27,
"column": 16,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"computed": false,
"optional": false,
"loc": {
"start": {
"line": 27,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 27,
"column": 16,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "an",
"loc": {
"start": {
"line": 27,
"column": 17,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 27,
"column": 19,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"optional": false,
"loc": {
"start": {
"line": 27,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 27,
"column": 20,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 27,
"column": 5,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 27,
"column": 21,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"loc": {
"start": {
"line": 24,
"column": 23,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 28,
"column": 2,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 24,
"column": 10,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 28,
"column": 2,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 24,
"column": 10,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 28,
"column": 2,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"overloads": [],
"loc": {
"start": {
"line": 24,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 28,
"column": 2,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 1,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
},
"loc": {
"start": {
"line": 1,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 1,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
},
"end": {
"line": 29,
"column": 1,
"program": "callInterfaceMethodWithNullableParam.ets"
}
}
}