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

1225 lines
29 KiB
JSON

{
"type": "Module",
"span": {
"start": 72,
"end": 982,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 72,
"end": 95,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 79,
"end": 95,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 83,
"end": 95,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 83,
"end": 91,
"ctxt": 0
},
"value": "inModule",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"value": 1.0
},
"definite": false
}
]
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 96,
"end": 114,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 96,
"end": 114,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 96,
"end": 112,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 96,
"end": 104,
"ctxt": 0
},
"value": "inmodule",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 105,
"end": 112,
"ctxt": 0
},
"value": "toFixed",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 125,
"end": 126,
"ctxt": 0
},
"value": "f",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 116,
"end": 273,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 129,
"end": 273,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 135,
"end": 156,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 139,
"end": 156,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 139,
"end": 145,
"ctxt": 0
},
"value": "locals",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "BinaryExpression",
"span": {
"start": 148,
"end": 156,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "NumericLiteral",
"span": {
"start": 148,
"end": 149,
"ctxt": 0
},
"value": 2.0
},
"right": {
"type": "BooleanLiteral",
"span": {
"start": 152,
"end": 156,
"ctxt": 0
},
"value": true
}
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 161,
"end": 177,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 161,
"end": 177,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 161,
"end": 175,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 161,
"end": 167,
"ctxt": 0
},
"value": "locale",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 168,
"end": 175,
"ctxt": 0
},
"value": "toFixed",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 206,
"end": 228,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 206,
"end": 228,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 206,
"end": 226,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 206,
"end": 212,
"ctxt": 0
},
"value": "localf",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 213,
"end": 226,
"ctxt": 0
},
"value": "toExponential",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 257,
"end": 271,
"ctxt": 0
},
"expression": {
"type": "StringLiteral",
"span": {
"start": 257,
"end": 271,
"ctxt": 0
},
"value": "this is fine",
"raw": "\"this is fine\""
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 280,
"end": 286,
"ctxt": 0
},
"value": "Classe",
"optional": false
},
"declare": false,
"span": {
"start": 274,
"end": 394,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 293,
"end": 304,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 293,
"end": 296,
"ctxt": 0
},
"value": "non",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 299,
"end": 304,
"ctxt": 0
},
"value": "oui",
"raw": "'oui'"
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 309,
"end": 392,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 309,
"end": 316,
"ctxt": 0
},
"value": "methode",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 309,
"end": 392,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 319,
"end": 392,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 370,
"end": 386,
"ctxt": 0
},
"argument": {
"type": "MemberExpression",
"span": {
"start": 377,
"end": 386,
"ctxt": 0
},
"object": {
"type": "ThisExpression",
"span": {
"start": 377,
"end": 381,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 382,
"end": 386,
"ctxt": 0
},
"value": "none",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 401,
"end": 408,
"ctxt": 0
},
"value": "Derivee",
"optional": false
},
"declare": false,
"span": {
"start": 395,
"end": 517,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassMethod",
"span": {
"start": 430,
"end": 515,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 430,
"end": 437,
"ctxt": 0
},
"value": "methode",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 430,
"end": 515,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 440,
"end": 515,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 492,
"end": 509,
"ctxt": 0
},
"argument": {
"type": "SuperPropExpression",
"span": {
"start": 499,
"end": 509,
"ctxt": 0
},
"obj": {
"type": "Super",
"span": {
"start": 499,
"end": 504,
"ctxt": 0
}
},
"property": {
"type": "Identifier",
"span": {
"start": 505,
"end": 509,
"ctxt": 0
},
"value": "none",
"optional": false
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"kind": "method",
"isStatic": false,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": {
"type": "Identifier",
"span": {
"start": 417,
"end": 423,
"ctxt": 0
},
"value": "Classe",
"optional": false
},
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "VariableDeclaration",
"span": {
"start": 520,
"end": 551,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 524,
"end": 551,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 524,
"end": 530,
"ctxt": 0
},
"value": "object",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 533,
"end": 551,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 539,
"end": 546,
"ctxt": 0
},
"value": "spaaace",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 548,
"end": 549,
"ctxt": 0
},
"value": 3.0
}
}
]
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 552,
"end": 567,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 552,
"end": 567,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 552,
"end": 558,
"ctxt": 0
},
"value": "object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 559,
"end": 567,
"ctxt": 0
},
"value": "spaaaace",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 585,
"end": 603,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 585,
"end": 603,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 585,
"end": 598,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 585,
"end": 591,
"ctxt": 0
},
"value": "object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 592,
"end": 598,
"ctxt": 0
},
"value": "spaace",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 601,
"end": 603,
"ctxt": 0
},
"value": 12.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 622,
"end": 639,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 622,
"end": 639,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 622,
"end": 634,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 622,
"end": 628,
"ctxt": 0
},
"value": "object",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 629,
"end": 634,
"ctxt": 0
},
"value": "fresh",
"optional": false
}
},
"right": {
"type": "NumericLiteral",
"span": {
"start": 637,
"end": 639,
"ctxt": 0
},
"value": 12.0
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 646,
"end": 658,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 646,
"end": 658,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 646,
"end": 651,
"ctxt": 0
},
"value": "other",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 652,
"end": 658,
"ctxt": 0
},
"value": "puuuce",
"optional": false
}
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 684,
"end": 707,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 684,
"end": 707,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 684,
"end": 705,
"ctxt": 0
},
"object": {
"type": "NewExpression",
"span": {
"start": 684,
"end": 694,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 688,
"end": 692,
"ctxt": 0
},
"value": "Date",
"optional": false
},
"arguments": [],
"typeArguments": null
},
"property": {
"type": "Identifier",
"span": {
"start": 695,
"end": 705,
"ctxt": 0
},
"value": "getGMTDate",
"optional": false
}
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 781,
"end": 835,
"ctxt": 0
},
"kind": "const",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 787,
"end": 835,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 787,
"end": 791,
"ctxt": 0
},
"value": "atoc",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 794,
"end": 835,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 794,
"end": 805,
"ctxt": 0
},
"value": "setIntegral",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "ArrowFunctionExpression",
"span": {
"start": 806,
"end": 829,
"ctxt": 0
},
"params": [],
"body": {
"type": "CallExpression",
"span": {
"start": 812,
"end": 829,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 812,
"end": 823,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 812,
"end": 819,
"ctxt": 0
},
"value": "console",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 820,
"end": 823,
"ctxt": 0
},
"value": "log",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 824,
"end": 828,
"ctxt": 0
},
"value": "ok",
"raw": "'ok'"
}
}
],
"typeArguments": null
},
"async": false,
"generator": false,
"typeParameters": null,
"returnType": null
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 831,
"end": 834,
"ctxt": 0
},
"value": 500.0
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 836,
"end": 847,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 836,
"end": 847,
"ctxt": 0
},
"value": "AudioBuffin",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 855,
"end": 860,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 855,
"end": 860,
"ctxt": 0
},
"value": "Jimmy",
"optional": false
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 861,
"end": 864,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 861,
"end": 864,
"ctxt": 0
},
"value": "Jon",
"optional": false
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 889,
"end": 902,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 893,
"end": 902,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 893,
"end": 898,
"ctxt": 0
},
"value": "Jimmy",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 901,
"end": 902,
"ctxt": 0
},
"value": 1.0
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 903,
"end": 915,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 907,
"end": 915,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 907,
"end": 911,
"ctxt": 0
},
"value": "John",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 914,
"end": 915,
"ctxt": 0
},
"value": 2.0
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 916,
"end": 919,
"ctxt": 0
},
"expression": {
"type": "Identifier",
"span": {
"start": 916,
"end": 919,
"ctxt": 0
},
"value": "Jon",
"optional": false
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 954,
"end": 982,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 958,
"end": 982,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 958,
"end": 963,
"ctxt": 0
},
"value": "other",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "ObjectExpression",
"span": {
"start": 966,
"end": 982,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 972,
"end": 977,
"ctxt": 0
},
"value": "puuce",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 979,
"end": 980,
"ctxt": 0
},
"value": 4.0
}
}
]
},
"definite": false
}
]
}
],
"interpreter": null
}