(context: {
readonly sourceCode: { readonly text?: string; getText(node?: unknown): string }
})
| 840 | * @since 4.0.0 |
| 841 | */ |
| 842 | export function getSourceText(context: { |
| 843 | readonly sourceCode: { readonly text?: string; getText(node?: unknown): string } |
| 844 | }): string { |
| 845 | return context.sourceCode.text ?? context.sourceCode.getText() |
| 846 | } |
| 847 | |
| 848 | /** |
| 849 | * Resolves the working directory from an Oxlint-compatible rule context. |
nothing calls this directly
no outgoing calls
no test coverage detected