Sha256: 67e81703d00567fcb80ce9d0af5ff4e6716b166294a7dd7a83886f741b2400eb
Contents?: true
Size: 1.34 KB
Versions: 5
Compression:
Stored size: 1.34 KB
Contents
import { WritableEntity } from '../../Entity'; import CallOptions from '../../CallOptions'; import ExecutionPathOptions from '../../ExecutionPathOptions'; import { ObjectPath } from '../../values'; export declare type PredicateFunction = (node: ExpressionEntity) => boolean; export declare type SomeReturnExpressionCallback = (options: ExecutionPathOptions) => PredicateFunction; export declare type ForEachReturnExpressionCallback = (options: ExecutionPathOptions) => (node: ExpressionEntity) => void; export interface ExpressionEntity extends WritableEntity { /** * Executes the callback on each possible return expression when calling this node. */ forEachReturnExpressionWhenCalledAtPath(path: ObjectPath, callOptions: CallOptions, callback: ForEachReturnExpressionCallback, options: ExecutionPathOptions): void; getValue(): any; hasEffectsWhenAccessedAtPath(path: ObjectPath, options: ExecutionPathOptions): boolean; hasEffectsWhenCalledAtPath(path: ObjectPath, callOptions: CallOptions, options: ExecutionPathOptions): boolean; /** * Should return true if some possible return expression when called at the given * path returns true. */ someReturnExpressionWhenCalledAtPath(path: ObjectPath, callOptions: CallOptions, predicateFunction: SomeReturnExpressionCallback, options: ExecutionPathOptions): boolean; }
Version data entries
5 entries across 5 versions & 2 rubygems