import type { FunctionDefinition } from '../types'; export interface InnerMethodDefinition { name: string; nameLower: string; line: number; column: number; filePath: string; ownerFunction?: string; } /** * Parses all top-level function/sub definitions from a BrightScript text. * * Deliberately kept as a line-scan rather than a CST walk: this is called from * `projectIndexer.ts` once per project *and package* file, before anything * needing that file has otherwise been parsed — a full parse here is a real, * unconditional cost across the whole dependency graph. It was audited against * the CST-based version for the "a commented-out function still gets indexed" * failure mode reported elsewhere; that does not reproduce here (`^\s*` cannot * skip over a leading `'`), so there is no correctness case to justify the * cost. See `findings/lsp-architecture.md`. */ export declare function parseFunctionDefs(text: string, filePath: string, preLines?: string[]): FunctionDefinition[]; /** * Parses all associative-array method assignments — both `. = * function|sub(...)` and AA-literal `: function|sub(...)` — from a * BrightScript text. * * CST-based (via `analyzeContext()`), unlike its `parseFunctionDefs` sibling * above: this function has no hot-path caller in this package (nothing here * calls it — it exists purely as public API), so a full parse costs nothing * extra. This removes an independently-maintained duplicate of logic the * parser already owns as the single source of truth (`analyzeContext()` is * also what the extension's own inner-method detection runs on). Note this * carries over one limitation from the regex it replaces rather than fixing * it: `analyzeContext()`'s `dotAssignedFunctions` also requires the * assignment's receiver to be a single identifier (`obj instanceof * IdentifierExpression` in `contextAnalysis.ts`), so a nested receiver like * `m.handlers.onClick = function()` still goes undetected — same as before. */ export declare function parseInnerMethodDefs(text: string, filePath: string): InnerMethodDefinition[]; //# sourceMappingURL=functionIndex.d.ts.map