File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
packages/svelte/src/compiler/phases/2-analyze/visitors Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 77 */
88export function Fragment ( node , context ) {
99 const parent = /** @type {AST.TemplateNode } */ ( context . path . at ( - 1 ) ) ;
10- if (
11- ! parent ||
12- parent . type === 'Component' ||
13- parent . type === 'Root' ||
14- parent . type === 'IfBlock' ||
15- parent . type === 'KeyBlock' ||
16- parent . type === 'EachBlock' ||
17- parent . type === 'SnippetBlock' ||
18- parent . type === 'AwaitBlock'
19- ) {
10+ // if (
11+ // !parent ||
12+ // parent.type === 'Component' ||
13+ // parent.type === 'Root' ||
14+ // parent.type === 'IfBlock' ||
15+ // parent.type === 'KeyBlock' ||
16+ // parent.type === 'EachBlock' ||
17+ // parent.type === 'SnippetBlock' ||
18+ // parent.type === 'AwaitBlock'
19+ // ) {
2020 const fragment_metadata = {
2121 has_await : false ,
2222 node
2323 } ;
2424 context . next ( { ...context . state , fragment : fragment_metadata } ) ;
2525 node . metadata . has_await = fragment_metadata . has_await ;
26- } else {
27- context . next ( ) ;
28- }
26+ // } else {
27+ // context.next();
28+ // }
2929}
You can’t perform that action at this time.
0 commit comments