Skip to content

Fix Kotlin enum entries (#320) - #1025

Merged
Widthdom merged 1 commit into
mainfrom
fix-issue320
Apr 29, 2026
Merged

Fix Kotlin enum entries (#320)#1025
Widthdom merged 1 commit into
mainfrom
fix-issue320

Conversation

@Widthdom

Copy link
Copy Markdown
Owner

Fixes #320

Summary

  • Capture Kotlin enum entries as property symbols, including plain, parameterized, bodied, and final entries without a trailing comma.
  • Allow Kotlin override fun and abstract fun members so enum-entry override bodies and trailing abstract members are indexed.
  • Update the Kotlin coverage note in DEVELOPER_GUIDE.md and add regression tests.

Validation

  • dotnet build
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~SymbolExtractorTests.Extract_Kotlin_DetectsEnumEntries
  • dotnet test tests/CodeIndex.Tests/CodeIndex.Tests.csproj --filter FullyQualifiedName~SymbolExtractorTests

@Widthdom
Widthdom merged commit c03d739 into main Apr 29, 2026
6 checks passed
@Widthdom
Widthdom deleted the fix-issue320 branch April 29, 2026 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kotlin: enum class entries (NORTH, OK(200), RED(0xFF0000) { override fun display() = ... }) are never captured as symbols

1 participant