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

360 lines
8.2 KiB
JSON

{
"type": "Script",
"span": {
"start": 41,
"end": 354,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 41,
"end": 84,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 45,
"end": 83,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 45,
"end": 66,
"ctxt": 0
},
"value": "invalidCommentedFancy",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 66,
"end": 74,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 68,
"end": 74,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 77,
"end": 83,
"ctxt": 0
},
"value": "nope",
"raw": "'nope'"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 127,
"end": 168,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 131,
"end": 167,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 131,
"end": 150,
"ctxt": 0
},
"value": "validCommentedFancy",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 150,
"end": 158,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 152,
"end": 158,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 161,
"end": 167,
"ctxt": 0
},
"value": "nope",
"raw": "'nope'"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 184,
"end": 227,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 188,
"end": 226,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 188,
"end": 209,
"ctxt": 0
},
"value": "invalidCommentedPlain",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 209,
"end": 217,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 211,
"end": 217,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 220,
"end": 226,
"ctxt": 0
},
"value": "nope",
"raw": "'nope'"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 243,
"end": 284,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 247,
"end": 283,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 247,
"end": 266,
"ctxt": 0
},
"value": "validCommentedPlain",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 266,
"end": 274,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 268,
"end": 274,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 277,
"end": 283,
"ctxt": 0
},
"value": "nope",
"raw": "'nope'"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 286,
"end": 320,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 290,
"end": 319,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 290,
"end": 302,
"ctxt": 0
},
"value": "invalidPlain",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 302,
"end": 310,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 304,
"end": 310,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 313,
"end": 319,
"ctxt": 0
},
"value": "nope",
"raw": "'nope'"
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 322,
"end": 354,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 326,
"end": 353,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 326,
"end": 336,
"ctxt": 0
},
"value": "validPlain",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 336,
"end": 344,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 338,
"end": 344,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 347,
"end": 353,
"ctxt": 0
},
"value": "nope",
"raw": "'nope'"
},
"definite": false
}
]
}
],
"interpreter": null
}