File tree Expand file tree Collapse file tree 6 files changed +137
-145
lines changed
packages/svelte/src/compiler Expand file tree Collapse file tree 6 files changed +137
-145
lines changed Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ import { error } from '../../../errors.js';
13
13
14
14
/**
15
15
* @param {import('../index.js').Parser } parser
16
- * @returns {any }
16
+ * @returns {import('estree').Pattern }
17
17
*/
18
- export default function read_context ( parser ) {
18
+ export default function read_pattern ( parser ) {
19
19
const start = parser . index ;
20
20
let i = parser . index ;
21
21
Original file line number Diff line number Diff line change @@ -65,6 +65,7 @@ export default function tag(parser) {
65
65
const data = parser . read_until ( regex_closing_comment ) ;
66
66
parser . eat ( '-->' , true ) ;
67
67
68
+ /** @type {ReturnType<typeof parser.append<import('#compiler').Comment>> } */
68
69
parser . append ( {
69
70
type : 'Comment' ,
70
71
start,
You can’t perform that action at this time.
0 commit comments