Files
30-seconds-of-code/node_modules/rollup/dist/typings/ast/Entity.d.ts
2019-08-20 15:52:05 +02:00

17 lines
691 B
TypeScript

import ExecutionPathOptions from './ExecutionPathOptions';
import { ObjectPath } from './values';
export interface Entity {
toString: () => string;
}
export interface WritableEntity extends Entity {
hasEffectsWhenAssignedAtPath(path: ObjectPath, options: ExecutionPathOptions): boolean;
/**
* Reassign a given path of an object.
* E.g., node.reassignPath(['x', 'y']) is called when something
* is assigned to node.x.y.
* The default noop implementation is ok as long as hasEffectsWhenAssignedAtPath
* always returns true for this node. Otherwise it should be overridden.
*/
reassignPath(path: ObjectPath, options: ExecutionPathOptions): void;
}