Update sourceRanges

This commit is contained in:
Adam Chalmers
2025-01-14 14:48:44 -06:00
committed by Nick Cameron
parent ad8336ef57
commit fc7e6993ca

View File

@ -73,12 +73,12 @@ const newVar = myVar + 1`
to: [0, 2], to: [0, 2],
from: [0, 0], from: [0, 0],
__geoMeta: { __geoMeta: {
sourceRange: [72, 97, 0], sourceRange: [expect.any(Number), expect.any(Number), 0],
id: expect.any(String), id: expect.any(String),
}, },
tag: { tag: {
end: 96, end: 111,
start: 89, start: 104,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'myPath', value: 'myPath',
}, },
@ -89,7 +89,7 @@ const newVar = myVar + 1`
from: [0, 2], from: [0, 2],
tag: null, tag: null,
__geoMeta: { __geoMeta: {
sourceRange: [103, 119, 0], sourceRange: [expect.any(Number), expect.any(Number), 0],
id: expect.any(String), id: expect.any(String),
}, },
}, },
@ -98,12 +98,12 @@ const newVar = myVar + 1`
to: [5, -1], to: [5, -1],
from: [2, 3], from: [2, 3],
__geoMeta: { __geoMeta: {
sourceRange: [125, 154, 0], sourceRange: [expect.any(Number), expect.any(Number), 0],
id: expect.any(String), id: expect.any(String),
}, },
tag: { tag: {
end: 153, end: 192,
start: 143, start: 182,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'rightPath', value: 'rightPath',
}, },
@ -168,14 +168,14 @@ const newVar = myVar + 1`
tag: null, tag: null,
__geoMeta: { __geoMeta: {
id: expect.any(String), id: expect.any(String),
sourceRange: [39, 63, 0], sourceRange: [expect.any(Number), expect.any(Number), 0],
}, },
}, },
tags: { tags: {
myPath: { myPath: {
__meta: [ __meta: [
{ {
sourceRange: [109, 116, 0], sourceRange: [expect.any(Number), expect.any(Number), 0],
}, },
], ],
type: 'TagIdentifier', type: 'TagIdentifier',
@ -190,7 +190,7 @@ const newVar = myVar + 1`
from: [0, 0], from: [0, 0],
tag: null, tag: null,
__geoMeta: { __geoMeta: {
sourceRange: [69, 85, 0], sourceRange: [expect.any(Number), expect.any(Number), 0],
id: expect.any(String), id: expect.any(String),
}, },
}, },
@ -199,12 +199,12 @@ const newVar = myVar + 1`
to: [0, 1], to: [0, 1],
from: [1, 1], from: [1, 1],
__geoMeta: { __geoMeta: {
sourceRange: [91, 117, 0], sourceRange: [expect.any(Number), expect.any(Number), 0],
id: expect.any(String), id: expect.any(String),
}, },
tag: { tag: {
end: 116, end: 140,
start: 109, start: 133,
type: 'TagDeclarator', type: 'TagDeclarator',
value: 'myPath', value: 'myPath',
}, },
@ -215,7 +215,7 @@ const newVar = myVar + 1`
from: [0, 1], from: [0, 1],
tag: null, tag: null,
__geoMeta: { __geoMeta: {
sourceRange: [123, 139, 0], sourceRange: [expect.any(Number), expect.any(Number), 0],
id: expect.any(String), id: expect.any(String),
}, },
}, },
@ -224,7 +224,7 @@ const newVar = myVar + 1`
units: { units: {
type: 'Mm', type: 'Mm',
}, },
__meta: [{ sourceRange: [39, 63, 0] }], __meta: [{ sourceRange: [expect.any(Number), expect.any(Number), 0] }],
}, },
}) })
}) })