/**
 * Program query functions
 */
import * as path from "node:path";
/**
 * Get a source file from the program by file path
 */
export const getSourceFile = (program, filePath) => {
    const absolutePath = path.resolve(filePath);
    return program.program.getSourceFile(absolutePath) ?? null;
};
//# sourceMappingURL=queries.js.map