mirror of
https://github.com/abhigyanpatwari/GitNexus.git
synced 2026-09-19 00:03:33 +00:00
Complete removal of extractFunctionName from ast-helpers.ts. Function name extraction is now exclusively owned by provider.methodExtractor: - Add extractFunctionName to MethodExtractor interface and config - Move from LanguageProvider to MethodExtractor for all 6 providers (C++, Swift, Rust, TS/JS, Ruby; generic fallback for others) - Thread extractFunctionName through buildTypeEnv options so type-env.ts can access provider-specific extraction without importing from ast-helpers - Inline FUNCTION_DECLARATION_TYPES into C++ provider (sole consumer) - Delete extractFunctionName function and FUNCTION_DECLARATION_TYPES from ast-helpers.ts ast-helpers.ts: 518 → 420 lines. Now contains only shared constants (FUNCTION_NODE_TYPES, CALL_ARGUMENT_LIST_TYPES, CLASS_CONTAINER_TYPES) and generic traversal helpers — zero language-specific extraction logic. |
||
|---|---|---|
| .. | ||
| fixtures | ||
| helpers | ||
| integration | ||
| unit | ||
| utils | ||
| global-setup.ts | ||
| vitest.d.ts | ||