update tests. one still failing

pull/3539/head
Richard Harris 6 years ago
parent 37bac60313
commit 12d5126e32

@ -20,10 +20,30 @@
"type": "CallExpression", "type": "CallExpression",
"start": 21, "start": 21,
"end": 37, "end": 37,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 37
}
},
"callee": { "callee": {
"type": "Identifier", "type": "Identifier",
"start": 21, "start": 21,
"end": 22, "end": 22,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 22
}
},
"name": "t" "name": "t"
}, },
"arguments": [ "arguments": [
@ -31,6 +51,16 @@
"type": "Literal", "type": "Literal",
"start": 23, "start": 23,
"end": 36, "end": 36,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 36
}
},
"value": "tooltip msg", "value": "tooltip msg",
"raw": "'tooltip msg'" "raw": "'tooltip msg'"
} }

@ -20,6 +20,16 @@
"type": "Literal", "type": "Literal",
"start": 21, "start": 21,
"end": 34, "end": 34,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 34
}
},
"value": "tooltip msg", "value": "tooltip msg",
"raw": "'tooltip msg'" "raw": "'tooltip msg'"
} }

@ -12,6 +12,16 @@
"type": "Identifier", "type": "Identifier",
"start": 7, "start": 7,
"end": 13, "end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"name": "things" "name": "things"
}, },
"children": [ "children": [
@ -51,6 +61,16 @@
"type": "Identifier", "type": "Identifier",
"start": 24, "start": 24,
"end": 29, "end": 29,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 29
}
},
"name": "thing" "name": "thing"
} }
} }

@ -12,6 +12,16 @@
"type": "Identifier", "type": "Identifier",
"start": 8, "start": 8,
"end": 18, "end": 18,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 18
}
},
"name": "thePromise" "name": "thePromise"
}, },
"value": "theValue", "value": "theValue",
@ -88,6 +98,16 @@
"type": "Identifier", "type": "Identifier",
"start": 74, "start": 74,
"end": 82, "end": 82,
"loc": {
"start": {
"line": 4,
"column": 18
},
"end": {
"line": 4,
"column": 26
}
},
"name": "theValue" "name": "theValue"
} }
} }
@ -137,16 +157,46 @@
"type": "MemberExpression", "type": "MemberExpression",
"start": 118, "start": 118,
"end": 134, "end": 134,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 28
}
},
"object": { "object": {
"type": "Identifier", "type": "Identifier",
"start": 118, "start": 118,
"end": 126, "end": 126,
"loc": {
"start": {
"line": 6,
"column": 12
},
"end": {
"line": 6,
"column": 20
}
},
"name": "theError" "name": "theError"
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"start": 127, "start": 127,
"end": 134, "end": 134,
"loc": {
"start": {
"line": 6,
"column": 21
},
"end": {
"line": 6,
"column": 28
}
},
"name": "message" "name": "message"
}, },
"computed": false "computed": false

@ -44,20 +44,60 @@
"type": "Program", "type": "Program",
"start": 8, "start": 8,
"end": 19, "end": 19,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 0
}
},
"body": [ "body": [
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
"start": 10, "start": 10,
"end": 18, "end": 18,
"loc": {
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 9
}
},
"declarations": [ "declarations": [
{ {
"type": "VariableDeclarator", "type": "VariableDeclarator",
"start": 14, "start": 14,
"end": 17, "end": 17,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 8
}
},
"id": { "id": {
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 17, "end": 17,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 8
}
},
"name": "foo" "name": "foo"
}, },
"init": null "init": null

@ -44,20 +44,60 @@
"type": "Program", "type": "Program",
"start": 8, "start": 8,
"end": 20, "end": 20,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 0
}
},
"body": [ "body": [
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
"start": 10, "start": 10,
"end": 19, "end": 19,
"loc": {
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 10
}
},
"declarations": [ "declarations": [
{ {
"type": "VariableDeclarator", "type": "VariableDeclarator",
"start": 14, "start": 14,
"end": 18, "end": 18,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 9
}
},
"id": { "id": {
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 18, "end": 18,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 9
}
},
"name": "name" "name": "name"
}, },
"init": null "init": null

@ -15,22 +15,62 @@
"type": "ConditionalExpression", "type": "ConditionalExpression",
"start": 25, "start": 25,
"end": 40, "end": 40,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 40
}
},
"test": { "test": {
"type": "Identifier", "type": "Identifier",
"start": 25, "start": 25,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 28
}
},
"name": "foo" "name": "foo"
}, },
"consequent": { "consequent": {
"type": "Identifier", "type": "Identifier",
"start": 31, "start": 31,
"end": 34, "end": 34,
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 34
}
},
"name": "Foo" "name": "Foo"
}, },
"alternate": { "alternate": {
"type": "Identifier", "type": "Identifier",
"start": 37, "start": 37,
"end": 40, "end": 40,
"loc": {
"start": {
"line": 1,
"column": 37
},
"end": {
"line": 1,
"column": 40
}
},
"name": "Bar" "name": "Bar"
} }
} }

@ -14,26 +14,76 @@
"type": "Program", "type": "Program",
"start": 8, "start": 8,
"end": 137, "end": 137,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 9,
"column": 0
}
},
"body": [ "body": [
{ {
"type": "ImportDeclaration", "type": "ImportDeclaration",
"start": 10, "start": 10,
"end": 43, "end": 43,
"loc": {
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 34
}
},
"specifiers": [ "specifiers": [
{ {
"type": "ImportSpecifier", "type": "ImportSpecifier",
"start": 19, "start": 19,
"end": 26, "end": 26,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 17
}
},
"imported": { "imported": {
"type": "Identifier", "type": "Identifier",
"start": 19, "start": 19,
"end": 26, "end": 26,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 17
}
},
"name": "onMount" "name": "onMount"
}, },
"local": { "local": {
"type": "Identifier", "type": "Identifier",
"start": 19, "start": 19,
"end": 26, "end": 26,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 17
}
},
"name": "onMount" "name": "onMount"
} }
} }
@ -42,6 +92,16 @@
"type": "Literal", "type": "Literal",
"start": 34, "start": 34,
"end": 42, "end": 42,
"loc": {
"start": {
"line": 2,
"column": 25
},
"end": {
"line": 2,
"column": 33
}
},
"value": "svelte", "value": "svelte",
"raw": "'svelte'" "raw": "'svelte'"
} }
@ -50,14 +110,44 @@
"type": "ExpressionStatement", "type": "ExpressionStatement",
"start": 46, "start": 46,
"end": 136, "end": 136,
"loc": {
"start": {
"line": 4,
"column": 1
},
"end": {
"line": 8,
"column": 4
}
},
"expression": { "expression": {
"type": "CallExpression", "type": "CallExpression",
"start": 46, "start": 46,
"end": 135, "end": 135,
"loc": {
"start": {
"line": 4,
"column": 1
},
"end": {
"line": 8,
"column": 3
}
},
"callee": { "callee": {
"type": "Identifier", "type": "Identifier",
"start": 46, "start": 46,
"end": 53, "end": 53,
"loc": {
"start": {
"line": 4,
"column": 1
},
"end": {
"line": 4,
"column": 8
}
},
"name": "onMount" "name": "onMount"
}, },
"arguments": [ "arguments": [
@ -65,6 +155,16 @@
"type": "ArrowFunctionExpression", "type": "ArrowFunctionExpression",
"start": 54, "start": 54,
"end": 134, "end": 134,
"loc": {
"start": {
"line": 4,
"column": 9
},
"end": {
"line": 8,
"column": 2
}
},
"id": null, "id": null,
"expression": false, "expression": false,
"generator": false, "generator": false,
@ -74,27 +174,87 @@
"type": "BlockStatement", "type": "BlockStatement",
"start": 60, "start": 60,
"end": 134, "end": 134,
"loc": {
"start": {
"line": 4,
"column": 15
},
"end": {
"line": 8,
"column": 2
}
},
"body": [ "body": [
{ {
"type": "ExpressionStatement", "type": "ExpressionStatement",
"start": 64, "start": 64,
"end": 131, "end": 131,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 7,
"column": 5
}
},
"expression": { "expression": {
"type": "CallExpression", "type": "CallExpression",
"start": 64, "start": 64,
"end": 130, "end": 130,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 7,
"column": 4
}
},
"callee": { "callee": {
"type": "MemberExpression", "type": "MemberExpression",
"start": 64, "start": 64,
"end": 87, "end": 87,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 25
}
},
"object": { "object": {
"type": "ImportExpression", "type": "ImportExpression",
"start": 64, "start": 64,
"end": 82, "end": 82,
"loc": {
"start": {
"line": 5,
"column": 2
},
"end": {
"line": 5,
"column": 20
}
},
"source": { "source": {
"type": "Literal", "type": "Literal",
"start": 71, "start": 71,
"end": 81, "end": 81,
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 19
}
},
"value": "./foo.js", "value": "./foo.js",
"raw": "'./foo.js'" "raw": "'./foo.js'"
} }
@ -103,6 +263,16 @@
"type": "Identifier", "type": "Identifier",
"start": 83, "start": 83,
"end": 87, "end": 87,
"loc": {
"start": {
"line": 5,
"column": 21
},
"end": {
"line": 5,
"column": 25
}
},
"name": "then" "name": "then"
}, },
"computed": false "computed": false
@ -112,6 +282,16 @@
"type": "ArrowFunctionExpression", "type": "ArrowFunctionExpression",
"start": 88, "start": 88,
"end": 129, "end": 129,
"loc": {
"start": {
"line": 5,
"column": 26
},
"end": {
"line": 7,
"column": 3
}
},
"id": null, "id": null,
"expression": false, "expression": false,
"generator": false, "generator": false,
@ -121,6 +301,16 @@
"type": "Identifier", "type": "Identifier",
"start": 88, "start": 88,
"end": 91, "end": 91,
"loc": {
"start": {
"line": 5,
"column": 26
},
"end": {
"line": 5,
"column": 29
}
},
"name": "foo" "name": "foo"
} }
], ],
@ -128,29 +318,89 @@
"type": "BlockStatement", "type": "BlockStatement",
"start": 95, "start": 95,
"end": 129, "end": 129,
"loc": {
"start": {
"line": 5,
"column": 33
},
"end": {
"line": 7,
"column": 3
}
},
"body": [ "body": [
{ {
"type": "ExpressionStatement", "type": "ExpressionStatement",
"start": 100, "start": 100,
"end": 125, "end": 125,
"loc": {
"start": {
"line": 6,
"column": 3
},
"end": {
"line": 6,
"column": 28
}
},
"expression": { "expression": {
"type": "CallExpression", "type": "CallExpression",
"start": 100, "start": 100,
"end": 124, "end": 124,
"loc": {
"start": {
"line": 6,
"column": 3
},
"end": {
"line": 6,
"column": 27
}
},
"callee": { "callee": {
"type": "MemberExpression", "type": "MemberExpression",
"start": 100, "start": 100,
"end": 111, "end": 111,
"loc": {
"start": {
"line": 6,
"column": 3
},
"end": {
"line": 6,
"column": 14
}
},
"object": { "object": {
"type": "Identifier", "type": "Identifier",
"start": 100, "start": 100,
"end": 107, "end": 107,
"loc": {
"start": {
"line": 6,
"column": 3
},
"end": {
"line": 6,
"column": 10
}
},
"name": "console" "name": "console"
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"start": 108, "start": 108,
"end": 111, "end": 111,
"loc": {
"start": {
"line": 6,
"column": 11
},
"end": {
"line": 6,
"column": 14
}
},
"name": "log" "name": "log"
}, },
"computed": false "computed": false
@ -160,16 +410,46 @@
"type": "MemberExpression", "type": "MemberExpression",
"start": 112, "start": 112,
"end": 123, "end": 123,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 26
}
},
"object": { "object": {
"type": "Identifier", "type": "Identifier",
"start": 112, "start": 112,
"end": 115, "end": 115,
"loc": {
"start": {
"line": 6,
"column": 15
},
"end": {
"line": 6,
"column": 18
}
},
"name": "foo" "name": "foo"
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"start": 116, "start": 116,
"end": 123, "end": 123,
"loc": {
"start": {
"line": 6,
"column": 19
},
"end": {
"line": 6,
"column": 26
}
},
"name": "default" "name": "default"
}, },
"computed": false "computed": false

@ -12,6 +12,16 @@
"type": "Identifier", "type": "Identifier",
"start": 7, "start": 7,
"end": 14, "end": 14,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 14
}
},
"name": "animals" "name": "animals"
}, },
"children": [ "children": [

@ -12,6 +12,16 @@
"type": "Identifier", "type": "Identifier",
"start": 7, "start": 7,
"end": 14, "end": 14,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 14
}
},
"name": "animals" "name": "animals"
}, },
"children": [ "children": [

@ -12,6 +12,16 @@
"type": "Identifier", "type": "Identifier",
"start": 7, "start": 7,
"end": 14, "end": 14,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 14
}
},
"name": "animals" "name": "animals"
}, },
"children": [ "children": [

@ -12,6 +12,16 @@
"type": "Identifier", "type": "Identifier",
"start": 7, "start": 7,
"end": 12, "end": 12,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 12
}
},
"name": "todos" "name": "todos"
}, },
"children": [ "children": [
@ -46,16 +56,46 @@
"type": "MemberExpression", "type": "MemberExpression",
"start": 22, "start": 22,
"end": 29, "end": 29,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 29
}
},
"object": { "object": {
"type": "Identifier", "type": "Identifier",
"start": 22, "start": 22,
"end": 26, "end": 26,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 26
}
},
"name": "todo" "name": "todo"
}, },
"property": { "property": {
"type": "Identifier", "type": "Identifier",
"start": 27, "start": 27,
"end": 29, "end": 29,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 29
}
},
"name": "id" "name": "id"
}, },
"computed": false "computed": false

@ -12,6 +12,16 @@
"type": "Identifier", "type": "Identifier",
"start": 7, "start": 7,
"end": 14, "end": 14,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 14
}
},
"name": "animals" "name": "animals"
}, },
"children": [ "children": [

@ -20,6 +20,16 @@
"type": "ArrowFunctionExpression", "type": "ArrowFunctionExpression",
"start": 19, "start": 19,
"end": 43, "end": 43,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 43
}
},
"id": null, "id": null,
"expression": true, "expression": true,
"generator": false, "generator": false,
@ -29,23 +39,63 @@
"type": "AssignmentExpression", "type": "AssignmentExpression",
"start": 25, "start": 25,
"end": 43, "end": 43,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 43
}
},
"operator": "=", "operator": "=",
"left": { "left": {
"type": "Identifier", "type": "Identifier",
"start": 25, "start": 25,
"end": 32, "end": 32,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 32
}
},
"name": "visible" "name": "visible"
}, },
"right": { "right": {
"type": "UnaryExpression", "type": "UnaryExpression",
"start": 35, "start": 35,
"end": 43, "end": 43,
"loc": {
"start": {
"line": 1,
"column": 35
},
"end": {
"line": 1,
"column": 43
}
},
"operator": "!", "operator": "!",
"prefix": true, "prefix": true,
"argument": { "argument": {
"type": "Identifier", "type": "Identifier",
"start": 36, "start": 36,
"end": 43, "end": 43,
"loc": {
"start": {
"line": 1,
"column": 36
},
"end": {
"line": 1,
"column": 43
}
},
"name": "visible" "name": "visible"
} }
} }

@ -12,10 +12,30 @@
"type": "BinaryExpression", "type": "BinaryExpression",
"start": 5, "start": 5,
"end": 11, "end": 11,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 11
}
},
"left": { "left": {
"type": "Identifier", "type": "Identifier",
"start": 5, "start": 5,
"end": 6, "end": 6,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 6
}
},
"name": "x" "name": "x"
}, },
"operator": ">", "operator": ">",
@ -23,6 +43,16 @@
"type": "Literal", "type": "Literal",
"start": 9, "start": 9,
"end": 11, "end": 11,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 11
}
},
"value": 10, "value": 10,
"raw": "10" "raw": "10"
} }
@ -59,10 +89,30 @@
"type": "BinaryExpression", "type": "BinaryExpression",
"start": 52, "start": 52,
"end": 57, "end": 57,
"loc": {
"start": {
"line": 3,
"column": 10
},
"end": {
"line": 3,
"column": 15
}
},
"left": { "left": {
"type": "Identifier", "type": "Identifier",
"start": 52, "start": 52,
"end": 53, "end": 53,
"loc": {
"start": {
"line": 3,
"column": 10
},
"end": {
"line": 3,
"column": 11
}
},
"name": "x" "name": "x"
}, },
"operator": "<", "operator": "<",
@ -70,6 +120,16 @@
"type": "Literal", "type": "Literal",
"start": 56, "start": 56,
"end": 57, "end": 57,
"loc": {
"start": {
"line": 3,
"column": 14
},
"end": {
"line": 3,
"column": 15
}
},
"value": 5, "value": 5,
"raw": "5" "raw": "5"
} }

@ -26,6 +26,16 @@
"type": "Identifier", "type": "Identifier",
"start": 11, "start": 11,
"end": 15, "end": 15,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 15
}
},
"name": "raw1" "name": "raw1"
} }
}, },
@ -44,6 +54,16 @@
"type": "Identifier", "type": "Identifier",
"start": 24, "start": 24,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 1,
"column": 28
}
},
"name": "raw2" "name": "raw2"
} }
}, },

@ -44,20 +44,60 @@
"type": "Program", "type": "Program",
"start": 8, "start": 8,
"end": 19, "end": 19,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 0
}
},
"body": [ "body": [
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
"start": 10, "start": 10,
"end": 18, "end": 18,
"loc": {
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 9
}
},
"declarations": [ "declarations": [
{ {
"type": "VariableDeclarator", "type": "VariableDeclarator",
"start": 14, "start": 14,
"end": 17, "end": 17,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 8
}
},
"id": { "id": {
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 17, "end": 17,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 8
}
},
"name": "foo" "name": "foo"
}, },
"init": null "init": null

@ -30,6 +30,16 @@
"type": "Program", "type": "Program",
"start": 8, "start": 8,
"end": 34, "end": 34,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 0
}
},
"body": [], "body": [],
"sourceType": "module" "sourceType": "module"
} }

@ -56,26 +56,76 @@
"type": "Program", "type": "Program",
"start": 8, "start": 8,
"end": 68, "end": 68,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 7,
"column": 0
}
},
"body": [ "body": [
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
"start": 10, "start": 10,
"end": 29, "end": 29,
"loc": {
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 20
}
},
"declarations": [ "declarations": [
{ {
"type": "VariableDeclarator", "type": "VariableDeclarator",
"start": 14, "start": 14,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 19
}
},
"id": { "id": {
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 18, "end": 18,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 9
}
},
"name": "name" "name": "name"
}, },
"init": { "init": {
"type": "Literal", "type": "Literal",
"start": 21, "start": 21,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 2,
"column": 12
},
"end": {
"line": 2,
"column": 19
}
},
"value": "world", "value": "world",
"raw": "'world'" "raw": "'world'"
} }

@ -56,26 +56,76 @@
"type": "Program", "type": "Program",
"start": 8, "start": 8,
"end": 57, "end": 57,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 5,
"column": 0
}
},
"body": [ "body": [
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
"start": 10, "start": 10,
"end": 29, "end": 29,
"loc": {
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 20
}
},
"declarations": [ "declarations": [
{ {
"type": "VariableDeclarator", "type": "VariableDeclarator",
"start": 14, "start": 14,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 19
}
},
"id": { "id": {
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 18, "end": 18,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 9
}
},
"name": "name" "name": "name"
}, },
"init": { "init": {
"type": "Literal", "type": "Literal",
"start": 21, "start": 21,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 2,
"column": 12
},
"end": {
"line": 2,
"column": 19
}
},
"value": "world", "value": "world",
"raw": "'world'" "raw": "'world'"
} }

@ -56,26 +56,76 @@
"type": "Program", "type": "Program",
"start": 8, "start": 8,
"end": 30, "end": 30,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 0
}
},
"body": [ "body": [
{ {
"type": "VariableDeclaration", "type": "VariableDeclaration",
"start": 10, "start": 10,
"end": 29, "end": 29,
"loc": {
"start": {
"line": 2,
"column": 1
},
"end": {
"line": 2,
"column": 20
}
},
"declarations": [ "declarations": [
{ {
"type": "VariableDeclarator", "type": "VariableDeclarator",
"start": 14, "start": 14,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 19
}
},
"id": { "id": {
"type": "Identifier", "type": "Identifier",
"start": 14, "start": 14,
"end": 18, "end": 18,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 9
}
},
"name": "name" "name": "name"
}, },
"init": { "init": {
"type": "Literal", "type": "Literal",
"start": 21, "start": 21,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 2,
"column": 12
},
"end": {
"line": 2,
"column": 19
}
},
"value": "world", "value": "world",
"raw": "'world'" "raw": "'world'"
} }

@ -12,10 +12,30 @@
"type": "BinaryExpression", "type": "BinaryExpression",
"start": 5, "start": 5,
"end": 14, "end": 14,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 14
}
},
"left": { "left": {
"type": "Identifier", "type": "Identifier",
"start": 5, "start": 5,
"end": 10, "end": 10,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 10
}
},
"name": "depth" "name": "depth"
}, },
"operator": ">", "operator": ">",
@ -23,6 +43,16 @@
"type": "Literal", "type": "Literal",
"start": 13, "start": 13,
"end": 14, "end": 14,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 14
}
},
"value": 1, "value": 1,
"raw": "1" "raw": "1"
} }
@ -48,10 +78,30 @@
"type": "BinaryExpression", "type": "BinaryExpression",
"start": 38, "start": 38,
"end": 47, "end": 47,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 31
}
},
"left": { "left": {
"type": "Identifier", "type": "Identifier",
"start": 38, "start": 38,
"end": 43, "end": 43,
"loc": {
"start": {
"line": 2,
"column": 22
},
"end": {
"line": 2,
"column": 27
}
},
"name": "depth" "name": "depth"
}, },
"operator": "-", "operator": "-",
@ -59,6 +109,16 @@
"type": "Literal", "type": "Literal",
"start": 46, "start": 46,
"end": 47, "end": 47,
"loc": {
"start": {
"line": 2,
"column": 30
},
"end": {
"line": 2,
"column": 31
}
},
"value": 1, "value": 1,
"raw": "1" "raw": "1"
} }

@ -20,11 +20,31 @@
"type": "ObjectExpression", "type": "ObjectExpression",
"start": 16, "start": 16,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 28
}
},
"properties": [ "properties": [
{ {
"type": "Property", "type": "Property",
"start": 17, "start": 17,
"end": 27, "end": 27,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 27
}
},
"method": false, "method": false,
"shorthand": false, "shorthand": false,
"computed": false, "computed": false,
@ -32,12 +52,32 @@
"type": "Identifier", "type": "Identifier",
"start": 17, "start": 17,
"end": 24, "end": 24,
"loc": {
"start": {
"line": 1,
"column": 17
},
"end": {
"line": 1,
"column": 24
}
},
"name": "opacity" "name": "opacity"
}, },
"value": { "value": {
"type": "Literal", "type": "Literal",
"start": 26, "start": 26,
"end": 27, "end": 27,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 27
}
},
"value": 0, "value": 0,
"raw": "0" "raw": "0"
}, },

@ -12,6 +12,16 @@
"type": "Identifier", "type": "Identifier",
"start": 7, "start": 7,
"end": 13, "end": 13,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 13
}
},
"name": "things" "name": "things"
}, },
"children": [ "children": [
@ -30,6 +40,16 @@
"type": "Identifier", "type": "Identifier",
"start": 26, "start": 26,
"end": 28, "end": 28,
"loc": {
"start": {
"line": 2,
"column": 5
},
"end": {
"line": 2,
"column": 7
}
},
"name": "𐊧" "name": "𐊧"
} }
} }

@ -5,7 +5,7 @@ import { svelte } from "../helpers.js";
import { SourceMapConsumer } from "source-map"; import { SourceMapConsumer } from "source-map";
import { getLocator } from "locate-character"; import { getLocator } from "locate-character";
describe.only("sourcemaps", () => { describe("sourcemaps", () => {
fs.readdirSync("test/sourcemaps/samples").forEach(dir => { fs.readdirSync("test/sourcemaps/samples").forEach(dir => {
if (dir[0] === ".") return; if (dir[0] === ".") return;

Loading…
Cancel
Save