@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
13 lines (12 loc) • 704 B
TypeScript
import type { IEnvironment, REnvironmentInformation } from './environment';
import type { Identifier } from './identifier';
import type { NodeId } from '../../r-bridge/lang-4.x/ast/model/processing/node-id';
/**
* Removes all definitions of a given name from the environment.
*/
export declare function remove(name: Identifier, environment: REnvironmentInformation, defaultEnvironment: IEnvironment): REnvironmentInformation;
/** Creates a copy of the original environment but without the definitions of the given ids */
export declare function removeAll(definitions: readonly {
nodeId: NodeId;
name: Identifier | undefined;
}[], environment: REnvironmentInformation): REnvironmentInformation;