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

987 lines
23 KiB
JSON

{
"type": "Module",
"span": {
"start": 104,
"end": 906,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 104,
"end": 226,
"ctxt": 0
},
"declare": true,
"global": true,
"id": {
"type": "Identifier",
"span": {
"start": 112,
"end": 118,
"ctxt": 0
},
"value": "global",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 119,
"end": 226,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 125,
"end": 224,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 135,
"end": 138,
"ctxt": 0
},
"value": "JSX",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 139,
"end": 224,
"ctxt": 0
},
"body": [
{
"type": "TsInterfaceDeclaration",
"span": {
"start": 149,
"end": 218,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 159,
"end": 176,
"ctxt": 0
},
"value": "IntrinsicElements",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 177,
"end": 218,
"ctxt": 0
},
"body": [
{
"type": "TsIndexSignature",
"params": [
{
"type": "Identifier",
"span": {
"start": 192,
"end": 201,
"ctxt": 0
},
"value": "e",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 193,
"end": 201,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 195,
"end": 201,
"ctxt": 0
},
"kind": "string"
}
}
}
],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 202,
"end": 207,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 204,
"end": 207,
"ctxt": 0
},
"kind": "any"
}
},
"readonly": false,
"static": false,
"span": {
"start": 191,
"end": 208,
"ctxt": 0
}
}
]
}
}
]
}
}
]
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 227,
"end": 265,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 243,
"end": 256,
"ctxt": 0
},
"value": "createElement",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 234,
"end": 265,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 258,
"end": 264,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 260,
"end": 264,
"ctxt": 0
},
"kind": "void"
}
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 266,
"end": 299,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 282,
"end": 290,
"ctxt": 0
},
"value": "Fragment",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 273,
"end": 299,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 292,
"end": 298,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 294,
"end": 298,
"ctxt": 0
},
"kind": "void"
}
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 327,
"end": 353,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 343,
"end": 344,
"ctxt": 0
},
"value": "h",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 334,
"end": 353,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 346,
"end": 352,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 348,
"end": 352,
"ctxt": 0
},
"kind": "void"
}
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 354,
"end": 383,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 370,
"end": 374,
"ctxt": 0
},
"value": "Frag",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 361,
"end": 383,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 376,
"end": 382,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 378,
"end": 382,
"ctxt": 0
},
"kind": "void"
}
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 413,
"end": 439,
"ctxt": 0
},
"declaration": {
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 429,
"end": 430,
"ctxt": 0
},
"value": "h",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 420,
"end": 439,
"ctxt": 0
},
"body": null,
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 432,
"end": 438,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 434,
"end": 438,
"ctxt": 0
},
"kind": "void"
}
}
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 466,
"end": 514,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 474,
"end": 487,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 474,
"end": 487,
"ctxt": 0
},
"value": "createElement",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 489,
"end": 497,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 489,
"end": 497,
"ctxt": 0
},
"value": "Fragment",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 504,
"end": 513,
"ctxt": 0
},
"value": "./react",
"raw": "\"./react\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 515,
"end": 533,
"ctxt": 0
},
"expression": {
"type": "JSXFragment",
"span": {
"start": 515,
"end": 533,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningFragment",
"span": {
"start": 515,
"end": 517,
"ctxt": 0
}
},
"children": [
{
"type": "JSXElement",
"span": {
"start": 517,
"end": 530,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 518,
"end": 522,
"ctxt": 0
},
"value": "span",
"optional": false
},
"span": {
"start": 517,
"end": 523,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 523,
"end": 530,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 525,
"end": 529,
"ctxt": 0
},
"value": "span",
"optional": false
}
}
}
],
"closing": {
"type": "JSXClosingFragment",
"span": {
"start": 530,
"end": 533,
"ctxt": 0
}
}
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 596,
"end": 629,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 604,
"end": 605,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 604,
"end": 605,
"ctxt": 0
},
"value": "h",
"optional": false
},
"imported": null,
"isTypeOnly": false
},
{
"type": "ImportSpecifier",
"span": {
"start": 607,
"end": 611,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 607,
"end": 611,
"ctxt": 0
},
"value": "Frag",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 618,
"end": 628,
"ctxt": 0
},
"value": "./preact",
"raw": "\"./preact\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 630,
"end": 646,
"ctxt": 0
},
"expression": {
"type": "JSXFragment",
"span": {
"start": 630,
"end": 646,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningFragment",
"span": {
"start": 630,
"end": 632,
"ctxt": 0
}
},
"children": [
{
"type": "JSXElement",
"span": {
"start": 632,
"end": 643,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 633,
"end": 636,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 632,
"end": 637,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 637,
"end": 643,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 639,
"end": 642,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
],
"closing": {
"type": "JSXClosingFragment",
"span": {
"start": 643,
"end": 646,
"ctxt": 0
}
}
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 711,
"end": 740,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 719,
"end": 720,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 719,
"end": 720,
"ctxt": 0
},
"value": "h",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 727,
"end": 739,
"ctxt": 0
},
"value": "./snabbdom",
"raw": "\"./snabbdom\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 741,
"end": 757,
"ctxt": 0
},
"expression": {
"type": "JSXFragment",
"span": {
"start": 741,
"end": 757,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningFragment",
"span": {
"start": 741,
"end": 743,
"ctxt": 0
}
},
"children": [
{
"type": "JSXElement",
"span": {
"start": 743,
"end": 754,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 744,
"end": 747,
"ctxt": 0
},
"value": "div",
"optional": false
},
"span": {
"start": 743,
"end": 748,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 748,
"end": 754,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 750,
"end": 753,
"ctxt": 0
},
"value": "div",
"optional": false
}
}
}
],
"closing": {
"type": "JSXClosingFragment",
"span": {
"start": 754,
"end": 757,
"ctxt": 0
}
}
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 826,
"end": 853,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 834,
"end": 835,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 834,
"end": 835,
"ctxt": 0
},
"value": "h",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 842,
"end": 852,
"ctxt": 0
},
"value": "./preact",
"raw": "\"./preact\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ImportDeclaration",
"span": {
"start": 854,
"end": 887,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportSpecifier",
"span": {
"start": 862,
"end": 870,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 862,
"end": 870,
"ctxt": 0
},
"value": "Fragment",
"optional": false
},
"imported": null,
"isTypeOnly": false
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 877,
"end": 886,
"ctxt": 0
},
"value": "./react",
"raw": "\"./react\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 888,
"end": 906,
"ctxt": 0
},
"expression": {
"type": "JSXFragment",
"span": {
"start": 888,
"end": 906,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningFragment",
"span": {
"start": 888,
"end": 890,
"ctxt": 0
}
},
"children": [
{
"type": "JSXElement",
"span": {
"start": 890,
"end": 903,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 891,
"end": 895,
"ctxt": 0
},
"value": "span",
"optional": false
},
"span": {
"start": 890,
"end": 896,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 896,
"end": 903,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 898,
"end": 902,
"ctxt": 0
},
"value": "span",
"optional": false
}
}
}
],
"closing": {
"type": "JSXClosingFragment",
"span": {
"start": 903,
"end": 906,
"ctxt": 0
}
}
}
}
],
"interpreter": null
}