# extractSourceCode

**Kind:** Function

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/services/entity-mapper.service.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/services/entity-mapper.service.ts#L356)

Extract source code lines from a file (1-indexed, inclusive).

## Signature

```ts
function extractSourceCode(fileCache: FileCache, absolutePath: string, startLine: number, endLine: number): string | undefined
```

## Parameters

| Name | Type |
|---|---|
| `fileCache` | `FileCache` |
| `absolutePath` | `string` |
| `startLine` | `number` |
| `endLine` | `number` |

**Returns:** `string | undefined`
