swc/crates/swc_ecma_parser/tests/tsc/tsxStatelessFunctionComponentOverload1.json
2022-03-22 07:54:08 +00:00

3880 lines
105 KiB
JSON

{
"type": "Module",
"span": {
"start": 131,
"end": 1815,
"ctxt": 0
},
"body": [
{
"type": "TsImportEqualsDeclaration",
"span": {
"start": 131,
"end": 162,
"ctxt": 0
},
"declare": false,
"isExport": false,
"isTypeOnly": false,
"id": {
"type": "Identifier",
"span": {
"start": 138,
"end": 143,
"ctxt": 0
},
"value": "React",
"optional": false
},
"moduleRef": {
"type": "TsExternalModuleReference",
"span": {
"start": 146,
"end": 162,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 154,
"end": 161,
"ctxt": 0
},
"value": "react",
"raw": "'react'"
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 181,
"end": 189,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 190,
"end": 206,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 190,
"end": 206,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 191,
"end": 206,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 193,
"end": 206,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 194,
"end": 205,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 194,
"end": 197,
"ctxt": 0
},
"value": "yxx",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 197,
"end": 205,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 199,
"end": 205,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 164,
"end": 221,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 207,
"end": 220,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 209,
"end": 220,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 209,
"end": 212,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 213,
"end": 220,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 239,
"end": 247,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 248,
"end": 283,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 248,
"end": 283,
"ctxt": 0
},
"value": "k",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 249,
"end": 283,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 251,
"end": 283,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 252,
"end": 265,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 252,
"end": 256,
"ctxt": 0
},
"value": "yxx1",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 256,
"end": 264,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 258,
"end": 264,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 266,
"end": 282,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 266,
"end": 274,
"ctxt": 0
},
"value": "children",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 274,
"end": 282,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 276,
"end": 282,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 222,
"end": 298,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 284,
"end": 297,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 286,
"end": 297,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 286,
"end": 289,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 290,
"end": 297,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 316,
"end": 324,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 325,
"end": 353,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 325,
"end": 353,
"ctxt": 0
},
"value": "l",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 326,
"end": 353,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 328,
"end": 353,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 329,
"end": 340,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 329,
"end": 331,
"ctxt": 0
},
"value": "yy",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 331,
"end": 339,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 333,
"end": 339,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 341,
"end": 352,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 341,
"end": 344,
"ctxt": 0
},
"value": "yy1",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 344,
"end": 352,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 346,
"end": 352,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 299,
"end": 368,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 354,
"end": 367,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 356,
"end": 367,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 356,
"end": 359,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 360,
"end": 367,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 386,
"end": 394,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 395,
"end": 437,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 395,
"end": 437,
"ctxt": 0
},
"value": "l",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 396,
"end": 437,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 398,
"end": 437,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 399,
"end": 410,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 399,
"end": 401,
"ctxt": 0
},
"value": "yy",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 401,
"end": 409,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 403,
"end": 409,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 411,
"end": 423,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 411,
"end": 414,
"ctxt": 0
},
"value": "yy1",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 414,
"end": 422,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 416,
"end": 422,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 424,
"end": 436,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 424,
"end": 427,
"ctxt": 0
},
"value": "yy2",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 427,
"end": 436,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 429,
"end": 436,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 369,
"end": 452,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 438,
"end": 451,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 440,
"end": 451,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 440,
"end": 443,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 444,
"end": 451,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 470,
"end": 478,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 479,
"end": 519,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 479,
"end": 519,
"ctxt": 0
},
"value": "l1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 481,
"end": 519,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 483,
"end": 519,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 484,
"end": 497,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 484,
"end": 488,
"ctxt": 0
},
"value": "data",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 488,
"end": 496,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 490,
"end": 496,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 498,
"end": 518,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "StringLiteral",
"span": {
"start": 498,
"end": 509,
"ctxt": 0
},
"value": "data-prop",
"raw": "\"data-prop\""
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 509,
"end": 518,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 511,
"end": 518,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 453,
"end": 534,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 520,
"end": 533,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 522,
"end": 533,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 522,
"end": 525,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 526,
"end": 533,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 542,
"end": 574,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 548,
"end": 574,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 548,
"end": 550,
"ctxt": 0
},
"value": "c1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 553,
"end": 574,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 554,
"end": 562,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"span": {
"start": 553,
"end": 574,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 563,
"end": 571,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 563,
"end": 566,
"ctxt": 0
},
"value": "yxx",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 567,
"end": 571,
"ctxt": 0
},
"value": "ok",
"raw": "'ok'"
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 575,
"end": 619,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 581,
"end": 619,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 581,
"end": 583,
"ctxt": 0
},
"value": "c2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 586,
"end": 619,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 587,
"end": 595,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"span": {
"start": 586,
"end": 619,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 596,
"end": 604,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 596,
"end": 598,
"ctxt": 0
},
"value": "yy",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 599,
"end": 604,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 600,
"end": 603,
"ctxt": 0
},
"value": 100.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 606,
"end": 617,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 606,
"end": 609,
"ctxt": 0
},
"value": "yy1",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 610,
"end": 617,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 620,
"end": 667,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 626,
"end": 667,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 626,
"end": 628,
"ctxt": 0
},
"value": "c3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 631,
"end": 667,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 632,
"end": 640,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"span": {
"start": 631,
"end": 667,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 641,
"end": 652,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 641,
"end": 644,
"ctxt": 0
},
"value": "yxx",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 645,
"end": 652,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
},
{
"type": "JSXAttribute",
"span": {
"start": 653,
"end": 664,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 653,
"end": 664,
"ctxt": 0
},
"value": "ignore-prop",
"optional": false
},
"value": null
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 668,
"end": 714,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 674,
"end": 714,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 674,
"end": 676,
"ctxt": 0
},
"value": "c4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 679,
"end": 714,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 680,
"end": 688,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"span": {
"start": 679,
"end": 714,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 689,
"end": 701,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 689,
"end": 693,
"ctxt": 0
},
"value": "data",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 694,
"end": 701,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
},
{
"type": "JSXAttribute",
"span": {
"start": 702,
"end": 711,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 702,
"end": 711,
"ctxt": 0
},
"value": "data-prop",
"optional": false
},
"value": null
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 715,
"end": 762,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 721,
"end": 762,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 721,
"end": 723,
"ctxt": 0
},
"value": "c5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 726,
"end": 762,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 727,
"end": 735,
"ctxt": 0
},
"value": "OneThing",
"optional": false
},
"span": {
"start": 726,
"end": 746,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 736,
"end": 745,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 736,
"end": 740,
"ctxt": 0
},
"value": "yxx1",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 741,
"end": 745,
"ctxt": 0
},
"value": "ok",
"raw": "'ok'"
}
}
],
"selfClosing": false,
"typeArguments": null
},
"children": [
{
"type": "JSXText",
"span": {
"start": 746,
"end": 751,
"ctxt": 0
},
"value": "Hello",
"raw": "Hello"
}
],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 751,
"end": 762,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 753,
"end": 761,
"ctxt": 0
},
"value": "OneThing",
"optional": false
}
}
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 782,
"end": 797,
"ctxt": 0
},
"value": "TestingOneThing",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 798,
"end": 810,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "ObjectPattern",
"span": {
"start": 798,
"end": 810,
"ctxt": 0
},
"properties": [
{
"type": "KeyValuePatternProperty",
"key": {
"type": "Identifier",
"span": {
"start": 799,
"end": 801,
"ctxt": 0
},
"value": "y1",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 803,
"end": 809,
"ctxt": 0
},
"value": "string",
"optional": false,
"typeAnnotation": null
}
}
],
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 765,
"end": 825,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 811,
"end": 824,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 813,
"end": 824,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 813,
"end": 816,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 817,
"end": 824,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 843,
"end": 858,
"ctxt": 0
},
"value": "TestingOneThing",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 859,
"end": 897,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 859,
"end": 897,
"ctxt": 0
},
"value": "j",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 860,
"end": 897,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 862,
"end": 897,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 863,
"end": 884,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "StringLiteral",
"span": {
"start": 863,
"end": 875,
"ctxt": 0
},
"value": "extra-data",
"raw": "\"extra-data\""
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 875,
"end": 883,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 877,
"end": 883,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 885,
"end": 896,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 885,
"end": 887,
"ctxt": 0
},
"value": "yy",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 888,
"end": 896,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 890,
"end": 896,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 826,
"end": 912,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 898,
"end": 911,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 900,
"end": 911,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 900,
"end": 903,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 904,
"end": 911,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 930,
"end": 945,
"ctxt": 0
},
"value": "TestingOneThing",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 946,
"end": 981,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 946,
"end": 981,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 947,
"end": 981,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 949,
"end": 981,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 950,
"end": 961,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 950,
"end": 952,
"ctxt": 0
},
"value": "yy",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 952,
"end": 960,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 954,
"end": 960,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 962,
"end": 980,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 962,
"end": 971,
"ctxt": 0
},
"value": "direction",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 972,
"end": 980,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 974,
"end": 980,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 913,
"end": 996,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 982,
"end": 995,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 984,
"end": 995,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 984,
"end": 987,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 988,
"end": 995,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1014,
"end": 1029,
"ctxt": 0
},
"value": "TestingOneThing",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 1030,
"end": 1059,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1030,
"end": 1059,
"ctxt": 0
},
"value": "n",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1031,
"end": 1059,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1033,
"end": 1059,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1034,
"end": 1045,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1034,
"end": 1036,
"ctxt": 0
},
"value": "yy",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1036,
"end": 1044,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1038,
"end": 1044,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1046,
"end": 1058,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1046,
"end": 1050,
"ctxt": 0
},
"value": "name",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1050,
"end": 1058,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1052,
"end": 1058,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 997,
"end": 1074,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1060,
"end": 1073,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1062,
"end": 1073,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 1062,
"end": 1065,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1066,
"end": 1073,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1082,
"end": 1127,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1088,
"end": 1126,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1088,
"end": 1090,
"ctxt": 0
},
"value": "d1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1093,
"end": 1126,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1094,
"end": 1109,
"ctxt": 0
},
"value": "TestingOneThing",
"optional": false
},
"span": {
"start": 1093,
"end": 1126,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1110,
"end": 1112,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1110,
"end": 1112,
"ctxt": 0
},
"value": "y1",
"optional": false
},
"value": null
},
{
"type": "JSXAttribute",
"span": {
"start": 1113,
"end": 1123,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1113,
"end": 1123,
"ctxt": 0
},
"value": "extra-data",
"optional": false
},
"value": null
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1128,
"end": 1178,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1134,
"end": 1177,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1134,
"end": 1136,
"ctxt": 0
},
"value": "d2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1139,
"end": 1177,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1140,
"end": 1155,
"ctxt": 0
},
"value": "TestingOneThing",
"optional": false
},
"span": {
"start": 1139,
"end": 1177,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1156,
"end": 1174,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1156,
"end": 1166,
"ctxt": 0
},
"value": "extra-data",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1167,
"end": 1174,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1179,
"end": 1239,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1185,
"end": 1238,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1185,
"end": 1187,
"ctxt": 0
},
"value": "d3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1190,
"end": 1238,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1191,
"end": 1206,
"ctxt": 0
},
"value": "TestingOneThing",
"optional": false
},
"span": {
"start": 1190,
"end": 1238,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1207,
"end": 1225,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1207,
"end": 1217,
"ctxt": 0
},
"value": "extra-data",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1218,
"end": 1225,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1226,
"end": 1235,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1226,
"end": 1228,
"ctxt": 0
},
"value": "yy",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1229,
"end": 1235,
"ctxt": 0
},
"value": "hihi",
"raw": "\"hihi\""
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1240,
"end": 1312,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1246,
"end": 1311,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1246,
"end": 1248,
"ctxt": 0
},
"value": "d4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1251,
"end": 1311,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1252,
"end": 1267,
"ctxt": 0
},
"value": "TestingOneThing",
"optional": false
},
"span": {
"start": 1251,
"end": 1311,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1268,
"end": 1286,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1268,
"end": 1278,
"ctxt": 0
},
"value": "extra-data",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1279,
"end": 1286,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1287,
"end": 1293,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1287,
"end": 1289,
"ctxt": 0
},
"value": "yy",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1290,
"end": 1293,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1291,
"end": 1292,
"ctxt": 0
},
"value": 9.0
}
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1294,
"end": 1308,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1294,
"end": 1303,
"ctxt": 0
},
"value": "direction",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1304,
"end": 1308,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1305,
"end": 1307,
"ctxt": 0
},
"value": 10.0
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1313,
"end": 1385,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1319,
"end": 1384,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1319,
"end": 1321,
"ctxt": 0
},
"value": "d5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1324,
"end": 1384,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1325,
"end": 1340,
"ctxt": 0
},
"value": "TestingOneThing",
"optional": false
},
"span": {
"start": 1324,
"end": 1384,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1341,
"end": 1359,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1341,
"end": 1351,
"ctxt": 0
},
"value": "extra-data",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1352,
"end": 1359,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1360,
"end": 1370,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1360,
"end": 1362,
"ctxt": 0
},
"value": "yy",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1363,
"end": 1370,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1371,
"end": 1381,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1371,
"end": 1375,
"ctxt": 0
},
"value": "name",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1376,
"end": 1381,
"ctxt": 0
},
"value": "Bob",
"raw": "\"Bob\""
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1405,
"end": 1420,
"ctxt": 0
},
"value": "TestingOptional",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 1421,
"end": 1450,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1421,
"end": 1450,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1422,
"end": 1450,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1424,
"end": 1450,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1425,
"end": 1437,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1425,
"end": 1427,
"ctxt": 0
},
"value": "y1",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1428,
"end": 1436,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1430,
"end": 1436,
"ctxt": 0
},
"kind": "string"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1438,
"end": 1449,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1438,
"end": 1440,
"ctxt": 0
},
"value": "y2",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1441,
"end": 1449,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1443,
"end": 1449,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 1388,
"end": 1465,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1451,
"end": 1464,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1453,
"end": 1464,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 1453,
"end": 1456,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1457,
"end": 1464,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1483,
"end": 1498,
"ctxt": 0
},
"value": "TestingOptional",
"optional": false
},
"declare": true,
"params": [
{
"type": "Parameter",
"span": {
"start": 1499,
"end": 1541,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1499,
"end": 1541,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1500,
"end": 1541,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 1502,
"end": 1541,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 1503,
"end": 1515,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1503,
"end": 1505,
"ctxt": 0
},
"value": "y1",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1505,
"end": 1514,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1507,
"end": 1514,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1516,
"end": 1528,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1516,
"end": 1518,
"ctxt": 0
},
"value": "y2",
"optional": false
},
"computed": false,
"optional": true,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1519,
"end": 1527,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1521,
"end": 1527,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 1529,
"end": 1540,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 1529,
"end": 1531,
"ctxt": 0
},
"value": "y3",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1531,
"end": 1540,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 1533,
"end": 1540,
"ctxt": 0
},
"kind": "boolean"
}
},
"typeParams": null
}
]
}
}
}
}
],
"decorators": [],
"span": {
"start": 1466,
"end": 1556,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 1542,
"end": 1555,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 1544,
"end": 1555,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 1544,
"end": 1547,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1548,
"end": 1555,
"ctxt": 0
},
"value": "Element",
"optional": false
}
},
"typeParams": null
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 1564,
"end": 1594,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1570,
"end": 1594,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1570,
"end": 1572,
"ctxt": 0
},
"value": "e1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1575,
"end": 1594,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1576,
"end": 1591,
"ctxt": 0
},
"value": "TestingOptional",
"optional": false
},
"span": {
"start": 1575,
"end": 1594,
"ctxt": 0
},
"attributes": [],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1595,
"end": 1635,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1601,
"end": 1635,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1601,
"end": 1603,
"ctxt": 0
},
"value": "e3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1606,
"end": 1635,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1607,
"end": 1622,
"ctxt": 0
},
"value": "TestingOptional",
"optional": false
},
"span": {
"start": 1606,
"end": 1635,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1623,
"end": 1633,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1623,
"end": 1625,
"ctxt": 0
},
"value": "y1",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1626,
"end": 1633,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1636,
"end": 1687,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1642,
"end": 1687,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1642,
"end": 1644,
"ctxt": 0
},
"value": "e4",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1647,
"end": 1687,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1648,
"end": 1663,
"ctxt": 0
},
"value": "TestingOptional",
"optional": false
},
"span": {
"start": 1647,
"end": 1687,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1664,
"end": 1674,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1664,
"end": 1666,
"ctxt": 0
},
"value": "y1",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 1667,
"end": 1674,
"ctxt": 0
},
"value": "hello",
"raw": "\"hello\""
}
},
{
"type": "JSXAttribute",
"span": {
"start": 1675,
"end": 1684,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1675,
"end": 1677,
"ctxt": 0
},
"value": "y2",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1678,
"end": 1684,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1679,
"end": 1683,
"ctxt": 0
},
"value": 1000.0
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1688,
"end": 1723,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1694,
"end": 1723,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1694,
"end": 1696,
"ctxt": 0
},
"value": "e5",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1699,
"end": 1723,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1700,
"end": 1715,
"ctxt": 0
},
"value": "TestingOptional",
"optional": false
},
"span": {
"start": 1699,
"end": 1723,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1716,
"end": 1718,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1716,
"end": 1718,
"ctxt": 0
},
"value": "y1",
"optional": false
},
"value": null
},
{
"type": "JSXAttribute",
"span": {
"start": 1719,
"end": 1721,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1719,
"end": 1721,
"ctxt": 0
},
"value": "y3",
"optional": false
},
"value": null
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1724,
"end": 1768,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1730,
"end": 1768,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1730,
"end": 1732,
"ctxt": 0
},
"value": "e6",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1735,
"end": 1768,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1736,
"end": 1751,
"ctxt": 0
},
"value": "TestingOptional",
"optional": false
},
"span": {
"start": 1735,
"end": 1768,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1752,
"end": 1754,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1752,
"end": 1754,
"ctxt": 0
},
"value": "y1",
"optional": false
},
"value": null
},
{
"type": "JSXAttribute",
"span": {
"start": 1755,
"end": 1757,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1755,
"end": 1757,
"ctxt": 0
},
"value": "y3",
"optional": false
},
"value": null
},
{
"type": "JSXAttribute",
"span": {
"start": 1758,
"end": 1765,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1758,
"end": 1760,
"ctxt": 0
},
"value": "y2",
"optional": false
},
"value": {
"type": "JSXExpressionContainer",
"span": {
"start": 1761,
"end": 1765,
"ctxt": 0
},
"expression": {
"type": "NumericLiteral",
"span": {
"start": 1762,
"end": 1764,
"ctxt": 0
},
"value": 10.0
}
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1769,
"end": 1815,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1775,
"end": 1815,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1775,
"end": 1777,
"ctxt": 0
},
"value": "e2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "JSXElement",
"span": {
"start": 1780,
"end": 1815,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1781,
"end": 1796,
"ctxt": 0
},
"value": "TestingOptional",
"optional": false
},
"span": {
"start": 1780,
"end": 1815,
"ctxt": 0
},
"attributes": [
{
"type": "JSXAttribute",
"span": {
"start": 1797,
"end": 1799,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1797,
"end": 1799,
"ctxt": 0
},
"value": "y1",
"optional": false
},
"value": null
},
{
"type": "JSXAttribute",
"span": {
"start": 1800,
"end": 1802,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1800,
"end": 1802,
"ctxt": 0
},
"value": "y3",
"optional": false
},
"value": null
},
{
"type": "JSXAttribute",
"span": {
"start": 1803,
"end": 1813,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 1803,
"end": 1813,
"ctxt": 0
},
"value": "extra-prop",
"optional": false
},
"value": null
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
},
"definite": false
}
]
}
],
"interpreter": null
}