Skip to content

Commit

Permalink
correct spec file for commit SHA-1: 2617445 :: fix jquery#1829, retur…
Browse files Browse the repository at this point in the history
…nstatement with multiline template literal string
  • Loading branch information
GerHobbelt committed Oct 13, 2017
1 parent 872746b commit fe3cd4a
Showing 1 changed file with 318 additions and 42 deletions.
360 changes: 318 additions & 42 deletions test/fixtures/statement/return/migrated_0004.tree.json
@@ -1,43 +1,319 @@
{
"type": "Program",
"body": [
{
"type": "FunctionDeclaration",
"id": {
"type": "Identifier",
"name": "a"
},
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": null
},
{
"type": "ExpressionStatement",
"expression": {
"type": "TemplateLiteral",
"quasis": [
{
"type": "TemplateElement",
"value": {
"raw": "s\n test\n ",
"cooked": "s\n test\n "
},
"tail": true
}
],
"expressions": []
}
}
]
},
"generator": false,
"expression": false,
"async": false
}
],
"sourceType": "script"
}
"range": [
0,
41
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"type": "Program",
"body": [
{
"range": [
0,
41
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"type": "FunctionDeclaration",
"id": {
"range": [
9,
10
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 10
}
},
"type": "Identifier",
"name": "a"
},
"params": [],
"body": {
"range": [
13,
41
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 5,
"column": 1
}
},
"type": "BlockStatement",
"body": [
{
"range": [
17,
23
],
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 2,
"column": 8
}
},
"type": "ReturnStatement",
"argument": null
},
{
"range": [
24,
39
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 4,
"column": 4
}
},
"type": "ExpressionStatement",
"expression": {
"range": [
24,
38
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 4,
"column": 3
}
},
"type": "TemplateLiteral",
"quasis": [
{
"range": [
24,
38
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 4,
"column": 3
}
},
"type": "TemplateElement",
"value": {
"raw": "\n test\n ",
"cooked": "\n test\n "
},
"tail": true
}
],
"expressions": []
}
}
]
},
"generator": false,
"expression": false,
"async": false
}
],
"sourceType": "script",
"tokens": [
{
"range": [
0,
8
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 8
}
},
"type": "Keyword",
"value": "function"
},
{
"range": [
9,
10
],
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 10
}
},
"type": "Identifier",
"value": "a"
},
{
"range": [
10,
11
],
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 11
}
},
"type": "Punctuator",
"value": "("
},
{
"range": [
11,
12
],
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 12
}
},
"type": "Punctuator",
"value": ")"
},
{
"range": [
13,
14
],
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 14
}
},
"type": "Punctuator",
"value": "{"
},
{
"range": [
17,
23
],
"loc": {
"start": {
"line": 2,
"column": 2
},
"end": {
"line": 2,
"column": 8
}
},
"type": "Keyword",
"value": "return"
},
{
"range": [
24,
38
],
"loc": {
"start": {
"line": 2,
"column": 9
},
"end": {
"line": 4,
"column": 3
}
},
"type": "Template",
"value": "`\n test\n `"
},
{
"range": [
38,
39
],
"loc": {
"start": {
"line": 4,
"column": 3
},
"end": {
"line": 4,
"column": 4
}
},
"type": "Punctuator",
"value": ";"
},
{
"range": [
40,
41
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 1
}
},
"type": "Punctuator",
"value": "}"
}
]
}

0 comments on commit fe3cd4a

Please sign in to comment.