@@ -7,7 +7,7 @@ import { logIllegalImportReassignment, logMissingExport } from '../../utils/logs
7
7
import type { NodeRenderOptions , RenderOptions } from '../../utils/renderHelpers' ;
8
8
import type { DeoptimizableEntity } from '../DeoptimizableEntity' ;
9
9
import type { HasEffectsContext , InclusionContext } from '../ExecutionContext' ;
10
- import { createHasEffectsContext , createInclusionContext } from '../ExecutionContext' ;
10
+ import { createInclusionContext } from '../ExecutionContext' ;
11
11
import type {
12
12
NodeInteraction ,
13
13
NodeInteractionAccessed ,
@@ -440,28 +440,14 @@ export default class MemberExpression
440
440
}
441
441
}
442
442
443
- includeDestructuredIfNecessary (
444
- context : InclusionContext ,
445
- destructuredInitPath : ObjectPath ,
446
- init : ExpressionEntity
447
- ) : boolean {
448
- let included = this . included ;
449
- if (
450
- ( included ||=
451
- destructuredInitPath . length > 0 &&
452
- ! context . brokenFlow &&
453
- init . hasEffectsOnInteractionAtPath (
454
- destructuredInitPath ,
455
- NODE_INTERACTION_UNKNOWN_ACCESS ,
456
- createHasEffectsContext ( )
457
- ) )
458
- ) {
459
- init . include ( context , false ) ;
460
- }
461
- if ( ! this . included && included ) {
462
- this . includeNode ( context ) ;
463
- }
464
- return this . included ;
443
+ includeDestructuredIfNecessary ( ) : boolean {
444
+ /* istanbul ignore next */
445
+ this . scope . context . error (
446
+ {
447
+ message : 'includeDestructuredIfNecessary is currently not supported for MemberExpressions'
448
+ } ,
449
+ this . start
450
+ ) ;
465
451
}
466
452
467
453
initialise ( ) : void {
0 commit comments