Skip to content

Commit

Permalink
Update: Add tokens to tests (refs #200)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Oct 7, 2015
1 parent e4b561c commit 79b88c4
Show file tree
Hide file tree
Showing 302 changed files with 62,604 additions and 664 deletions.
110 changes: 110 additions & 0 deletions tests/fixtures/attach-comments/block-trailing-comment.result.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,5 +128,115 @@ module.exports = {
}
}
}
],
"tokens": [
{
"type": "Punctuator",
"value": "{",
"range": [
0,
1
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 1
}
}
},
{
"type": "Identifier",
"value": "a",
"range": [
6,
7
],
"loc": {
"start": {
"line": 2,
"column": 4
},
"end": {
"line": 2,
"column": 5
}
}
},
{
"type": "Punctuator",
"value": "(",
"range": [
7,
8
],
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 6
}
}
},
{
"type": "Punctuator",
"value": ")",
"range": [
8,
9
],
"loc": {
"start": {
"line": 2,
"column": 6
},
"end": {
"line": 2,
"column": 7
}
}
},
{
"type": "Punctuator",
"value": ";",
"range": [
9,
10
],
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
}
},
{
"type": "Punctuator",
"value": "}",
"range": [
25,
26
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 1
}
}
}
]
};
112 changes: 111 additions & 1 deletion tests/fixtures/attach-comments/comment-within-condition.result.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,115 @@ module.exports = {
}
}
}
],
"tokens": [
{
"type": "Keyword",
"value": "if",
"range": [
10,
12
],
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 2
}
}
},
{
"type": "Punctuator",
"value": "(",
"range": [
13,
14
],
"loc": {
"start": {
"line": 2,
"column": 3
},
"end": {
"line": 2,
"column": 4
}
}
},
{
"type": "Identifier",
"value": "a",
"range": [
25,
26
],
"loc": {
"start": {
"line": 2,
"column": 15
},
"end": {
"line": 2,
"column": 16
}
}
},
{
"type": "Punctuator",
"value": ")",
"range": [
26,
27
],
"loc": {
"start": {
"line": 2,
"column": 16
},
"end": {
"line": 2,
"column": 17
}
}
},
{
"type": "Punctuator",
"value": "{",
"range": [
28,
29
],
"loc": {
"start": {
"line": 2,
"column": 18
},
"end": {
"line": 2,
"column": 19
}
}
},
{
"type": "Punctuator",
"value": "}",
"range": [
29,
30
],
"loc": {
"start": {
"line": 2,
"column": 19
},
"end": {
"line": 2,
"column": 20
}
}
}
]
};
};
Loading

0 comments on commit 79b88c4

Please sign in to comment.