MCPcopy
hub / github.com/rollup/rollup / markReassigned

Method markReassigned

src/ast/variables/ParameterVariable.ts:93–102  ·  view source on GitHub ↗

This says we should not make assumptions about the value of the parameter. * This is different from deoptimization that will also cause argument values * to be deoptimized.

()

Source from the content-addressed store, hash-verified

91 * This is different from deoptimization that will also cause argument values
92 * to be deoptimized. */
93 markReassigned(): void {
94 if (this.isReassigned) {
95 return;
96 }
97 super.markReassigned();
98 for (const expression of this.expressionsDependingOnKnownValue) {
99 expression.deoptimizeCache();
100 }
101 this.expressionsDependingOnKnownValue = EMPTY_ARRAY as unknown as DeoptimizableEntity[];
102 }
103
104 deoptimizeCache(): void {
105 this.markReassigned();

Callers 3

deoptimizeCacheMethod · 0.95
updateKnownValueMethod · 0.95
deoptimizePathMethod · 0.95

Calls 1

deoptimizeCacheMethod · 0.65

Tested by

no test coverage detected