Skip to content

Commit 5cc7e52

Browse files
committed
node.range doesn't exist anymore
1 parent d5b2f5a commit 5cc7e52

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/parse/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ function convertAst(ast: File, templates: Template[]): void {
3838
case 'BlockStatement':
3939
case 'ObjectExpression':
4040
case 'StaticBlock': {
41-
assert('expected range', node.range);
42-
const [start, end] = node.range;
41+
assert('expected range', node.start && node.end);
42+
const [start, end] = [node.start, node.end];
4343

4444
const templateIndex = templates.findIndex((template) => {
4545
const { utf16Range } = template;

0 commit comments

Comments
 (0)