File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
packages/svelte/src/compiler/phases Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -360,13 +360,16 @@ class Evaluation {
360360 this . values . add ( undefined ) ;
361361 }
362362 break ;
363+
363364 case '$props.id' :
364365 this . values . add ( STRING ) ;
365366 break ;
367+
366368 case '$effect.tracking' :
367369 this . values . add ( false ) ;
368370 this . values . add ( true ) ;
369371 break ;
372+
370373 case '$derived' : {
371374 const evaluated = scope . evaluate (
372375 /** @type {Expression } */ ( expression . arguments [ 0 ] )
@@ -376,6 +379,7 @@ class Evaluation {
376379 }
377380 break ;
378381 }
382+
379383 case '$derived.by' :
380384 if ( expression . arguments [ 0 ] ?. type === 'ArrowFunctionExpression' ) {
381385 if ( expression . arguments [ 0 ] . body ?. type !== 'BlockStatement' ) {
@@ -388,6 +392,10 @@ class Evaluation {
388392 break ;
389393 }
390394 }
395+
396+ this . values . add ( UNKNOWN ) ;
397+ break ;
398+
391399 default : {
392400 this . values . add ( UNKNOWN ) ;
393401 }
You can’t perform that action at this time.
0 commit comments