Daniel Tschinder 07eaa3c63f
Ignore empty fixture directories and fix fixtures in the parser (#9113)
* Ignore fixture directories that do not contain input or exec

* Fix parser test fixtures structures for some imported esprima tests.

* Warn on test folders that are not empty and do not contain testfiles
2018-12-02 22:55:06 -08:00

267 lines
6.6 KiB
JSON

{
"type": "File",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 44
}
},
"program": {
"type": "Program",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 44
}
},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start": 14,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 1,
"column": 44
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 18,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 44
}
},
"id": {
"type": "Identifier",
"start": 18,
"end": 19,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 19
},
"identifierName": "x"
},
"name": "x"
},
"init": {
"type": "ObjectExpression",
"start": 22,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 44
}
},
"properties": [
{
"type": "ObjectMethod",
"start": 24,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 35
}
},
"method": false,
"key": {
"type": "Identifier",
"start": 28,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 1,
"column": 29
},
"identifierName": "i"
},
"name": "i"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 30,
"end": 31,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 31
},
"identifierName": "x"
},
"name": "x"
}
],
"body": {
"type": "BlockStatement",
"start": 33,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 33
},
"end": {
"line": 1,
"column": 35
}
},
"body": [],
"directives": []
}
},
{
"type": "ObjectProperty",
"start": 37,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 42
}
},
"method": false,
"key": {
"type": "Identifier",
"start": 37,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 38
},
"identifierName": "i"
},
"name": "i"
},
"computed": false,
"shorthand": false,
"value": {
"type": "NumericLiteral",
"start": 40,
"end": 42,
"loc": {
"start": {
"line": 1,
"column": 40
},
"end": {
"line": 1,
"column": 42
}
},
"extra": {
"rawValue": 42,
"raw": "42"
},
"value": 42
}
}
]
}
}
],
"kind": "var"
}
],
"directives": [
{
"type": "Directive",
"start": 0,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 13
}
},
"value": {
"type": "DirectiveLiteral",
"start": 0,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 12
}
},
"value": "use strict",
"extra": {
"raw": "\"use strict\"",
"rawValue": "use strict"
}
}
}
]
}
}