diff --git a/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap b/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap index 942eed4c4..e2263c31a 100644 --- a/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap +++ b/packages/compiler-core/__tests__/__snapshots__/parse.spec.ts.snap @@ -26,10 +26,36 @@ exports[`compiler: parse > Edge Cases > invalid html 1`] = ` "ns": 0, "props": [], "tag": "span", + "tagLoc": { + "end": { + "column": 6, + "line": 2, + "offset": 11, + }, + "source": "span", + "start": { + "column": 2, + "line": 2, + "offset": 7, + }, + }, "tagType": 0, "type": 1, }, ], + "closeTagLoc": { + "end": { + "column": 6, + "line": 3, + "offset": 18, + }, + "source": "div", + "start": { + "column": 3, + "line": 3, + "offset": 15, + }, + }, "codegenNode": undefined, "loc": { "end": { @@ -49,6 +75,19 @@ exports[`compiler: parse > Edge Cases > invalid html 1`] = ` "ns": 0, "props": [], "tag": "div", + "tagLoc": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "source": "div", + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, "tagType": 0, "type": 1, }, @@ -166,6 +205,19 @@ exports[`compiler: parse > Edge Cases > self closing multiple tag 1`] = ` }, ], "tag": "div", + "tagLoc": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "source": "div", + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, "tagType": 0, "type": 1, }, @@ -247,6 +299,19 @@ exports[`compiler: parse > Edge Cases > self closing multiple tag 1`] = ` }, ], "tag": "p", + "tagLoc": { + "end": { + "column": 3, + "line": 2, + "offset": 39, + }, + "source": "p", + "start": { + "column": 2, + "line": 2, + "offset": 38, + }, + }, "tagType": 0, "type": 1, }, @@ -362,6 +427,19 @@ exports[`compiler: parse > Edge Cases > valid html 1`] = ` }, ], "tag": "p", + "tagLoc": { + "end": { + "column": 5, + "line": 2, + "offset": 39, + }, + "source": "p", + "start": { + "column": 4, + "line": 2, + "offset": 38, + }, + }, "tagType": 0, "type": 1, }, @@ -383,6 +461,19 @@ exports[`compiler: parse > Edge Cases > valid html 1`] = ` "type": 3, }, ], + "closeTagLoc": { + "end": { + "column": 6, + "line": 4, + "offset": 122, + }, + "source": "div", + "start": { + "column": 3, + "line": 4, + "offset": 119, + }, + }, "codegenNode": undefined, "loc": { "end": { @@ -461,6 +552,19 @@ exports[`compiler: parse > Edge Cases > valid html 1`] = ` }, ], "tag": "div", + "tagLoc": { + "end": { + "column": 5, + "line": 1, + "offset": 4, + }, + "source": "div", + "start": { + "column": 2, + "line": 1, + "offset": 1, + }, + }, "tagType": 0, "type": 1, }, @@ -502,6 +606,19 @@ exports[`compiler: parse > Errors > CDATA_IN_HTML_CONTENT >