swc/crates/swc_ecma_parser/tests/tsc/ts-ignore.json
2022-02-04 17:08:38 +09:00

384 lines
8.8 KiB
JSON

{
"type": "Script",
"span": {
"start": 42,
"end": 368,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 42,
"end": 85,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 46,
"end": 84,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 46,
"end": 67,
"ctxt": 0
},
"value": "invalidCommentedFancy",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 67,
"end": 75,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 69,
"end": 75,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 78,
"end": 84,
"ctxt": 0
},
"value": "nope",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 131,
"end": 172,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 135,
"end": 171,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 135,
"end": 154,
"ctxt": 0
},
"value": "validCommentedFancy",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 154,
"end": 162,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 156,
"end": 162,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 165,
"end": 171,
"ctxt": 0
},
"value": "nope",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 191,
"end": 234,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 195,
"end": 233,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 195,
"end": 216,
"ctxt": 0
},
"value": "invalidCommentedPlain",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 216,
"end": 224,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 218,
"end": 224,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 227,
"end": 233,
"ctxt": 0
},
"value": "nope",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 253,
"end": 294,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 257,
"end": 293,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 257,
"end": 276,
"ctxt": 0
},
"value": "validCommentedPlain",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 276,
"end": 284,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 278,
"end": 284,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 287,
"end": 293,
"ctxt": 0
},
"value": "nope",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 298,
"end": 332,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 302,
"end": 331,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 302,
"end": 314,
"ctxt": 0
},
"value": "invalidPlain",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 314,
"end": 322,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 316,
"end": 322,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 325,
"end": 331,
"ctxt": 0
},
"value": "nope",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 336,
"end": 368,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 340,
"end": 367,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 340,
"end": 350,
"ctxt": 0
},
"value": "validPlain",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 350,
"end": 358,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 352,
"end": 358,
"ctxt": 0
},
"kind": "string"
}
}
},
"init": {
"type": "StringLiteral",
"span": {
"start": 361,
"end": 367,
"ctxt": 0
},
"value": "nope",
"hasEscape": false,
"kind": {
"type": "normal",
"containsQuote": true
}
},
"definite": false
}
]
}
],
"interpreter": null
}