Fix location for typescript type assertions in AST (#9284)
This commit is contained in:
@@ -59,12 +59,12 @@
|
||||
},
|
||||
"object": {
|
||||
"type": "TSTypeAssertion",
|
||||
"start": 2,
|
||||
"start": 1,
|
||||
"end": 6,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 2
|
||||
"column": 1
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
|
||||
@@ -80,12 +80,12 @@
|
||||
"operator": "+",
|
||||
"right": {
|
||||
"type": "TSTypeAssertion",
|
||||
"start": 5,
|
||||
"start": 4,
|
||||
"end": 14,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 5
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
|
||||
@@ -60,12 +60,12 @@
|
||||
"operator": "+=",
|
||||
"left": {
|
||||
"type": "TSTypeAssertion",
|
||||
"start": 2,
|
||||
"start": 1,
|
||||
"end": 11,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 2
|
||||
"column": 1
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
|
||||
@@ -59,12 +59,12 @@
|
||||
},
|
||||
"left": {
|
||||
"type": "TSTypeAssertion",
|
||||
"start": 1,
|
||||
"start": 0,
|
||||
"end": 10,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 1
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
|
||||
@@ -45,12 +45,12 @@
|
||||
},
|
||||
"expression": {
|
||||
"type": "TSTypeAssertion",
|
||||
"start": 1,
|
||||
"start": 0,
|
||||
"end": 10,
|
||||
"loc": {
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 1
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
|
||||
Reference in New Issue
Block a user