1/* 2 * engine-info.ts 3 * 4 * Copyright (C) 2022 Posit Software, PBC 5 */ 6 7import { 8 ExecutionEngineInstance, 9 ExecutionTarget, 10} from "./types.ts"; 11 12export function executionEngineCanKeepSource( 13 engine: ExecutionEngineInstance, 14 target: ExecutionTarget, 15) { 16 return !engine.canKeepSource || engine.canKeepSource(target); 17} 18 19