MCPcopy
hub / github.com/rollup/rollup / deoptimizePath

Function deoptimizePath

src/ast/nodes/shared/FunctionBase.ts:88–96  ·  view source on GitHub ↗
(path: ObjectPath)

Source from the content-addressed store, hash-verified

86 }
87
88 deoptimizePath(path: ObjectPath): void {
89 this.getObjectEntity().deoptimizePath(path);
90 if (path.length === 1 && path[0] === UnknownKey) {
91 // A reassignment of UNKNOWN_PATH is considered equivalent to having lost track
92 // which means the return expression and parameters need to be reassigned
93 this.scope.getReturnExpression().deoptimizePath(UNKNOWN_PATH);
94 this.scope.deoptimizeAllParameters();
95 }
96 }
97
98 getLiteralValueAtPath(
99 path: ObjectPath,

Callers

nothing calls this directly

Calls 4

deoptimizePathMethod · 0.65
getObjectEntityMethod · 0.45
getReturnExpressionMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…