add espree comment attachment tests and remove ranges test property from babylon tests

This commit is contained in:
Sebastian McKenzie
2015-07-25 06:07:51 +01:00
parent 350e901794
commit 55f3fb3015
233 changed files with 3512 additions and 586 deletions

View File

@@ -0,0 +1,5 @@
function a() {
/* before */
debugger;
/* after */
}

View File

@@ -0,0 +1,175 @@
{
"type": "File",
"program": {
"type": "Program",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "a",
"range": [
9,
10
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 10
}
}
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "DebuggerStatement",
"range": [
36,
45
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 13
}
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 16
}
}
}
],
"trailingComments": [
{
"type": "CommentBlock",
"value": " after ",
"range": [
50,
61
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 15
}
}
}
]
}
],
"range": [
13,
63
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
}
},
"generator": false,
"expression": false,
"range": [
0,
63
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
}
}
],
"sourceType": "script",
"range": [
0,
63
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
}
},
"comments": [
{
"type": "CommentBlock",
"value": " before ",
"range": [
19,
31
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 16
}
}
},
{
"type": "CommentBlock",
"value": " after ",
"range": [
50,
61
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 15
}
}
}
]
}