import { SourceTextModuleRecord } from '#self';
export function getParsedEvent(source, id, executionContextId) {
    const lines = source.ECMAScriptCode.sourceText().split('\n');
    return {
        isModule: source instanceof SourceTextModuleRecord,
        scriptId: id,
        url: source.HostDefined.specifier || `vm:///${id}`,
        startLine: 0,
        startColumn: 0,
        endLine: lines.length,
        endColumn: lines.pop().length,
        executionContextId,
        hash: '',
        buildId: '',
    };
}
//# sourceMappingURL=internal-utils.mjs.map