@@ -107,38 +107,38 @@ function handle_compile_error(error, filename, source) {
107
107
/**
108
108
* The parse function parses a component, returning only its abstract syntax tree.
109
109
*
110
- * The `modern ` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
111
- * `modern ` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
110
+ * The `modernAst ` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
111
+ * `modernAst ` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
112
112
*
113
113
* https://svelte.dev/docs/svelte-compiler#svelte-parse
114
114
* @overload
115
115
* @param {string } source
116
- * @param {{ filename?: string; modern : true } } options
116
+ * @param {{ filename?: string; modernAst : true } } options
117
117
* @returns {import('#compiler').Root }
118
118
*/
119
119
120
120
/**
121
121
* The parse function parses a component, returning only its abstract syntax tree.
122
122
*
123
- * The `modern ` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
124
- * `modern ` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
123
+ * The `modernAst ` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
124
+ * `modernAst ` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
125
125
*
126
126
* https://svelte.dev/docs/svelte-compiler#svelte-parse
127
127
* @overload
128
128
* @param {string } source
129
- * @param {{ filename?: string; modern ?: false } } [options]
129
+ * @param {{ filename?: string; modernAst ?: false } } [options]
130
130
* @returns {import('./types/legacy-nodes.js').LegacyRoot }
131
131
*/
132
132
133
133
/**
134
134
* The parse function parses a component, returning only its abstract syntax tree.
135
135
*
136
- * The `modern ` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
137
- * `modern ` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
136
+ * The `modernAst ` option (`false` by default in Svelte 5) makes the parser return a modern AST instead of the legacy AST.
137
+ * `modernAst ` will become `true` by default in Svelte 6, and the option will be removed in Svelte 7.
138
138
*
139
139
* https://svelte.dev/docs/svelte-compiler#svelte-parse
140
140
* @param {string } source
141
- * @param {{ filename?: string; modern ?: boolean } } [options]
141
+ * @param {{ filename?: string; modernAst ?: boolean } } [options]
142
142
* @returns {import('#compiler').Root | import('./types/legacy-nodes.js').LegacyRoot }
143
143
*/
144
144
export function parse ( source , options = { } ) {
@@ -154,7 +154,7 @@ export function parse(source, options = {}) {
154
154
throw e ;
155
155
}
156
156
157
- return to_public_ast ( source , ast , options . modern ) ;
157
+ return to_public_ast ( source , ast , options . modernAst ) ;
158
158
}
159
159
160
160
/**
0 commit comments