feat: add Dart symbol indexing#374
Merged
Merged
Conversation
- Add regex-based Dart extraction: classes, mixins, enums, extensions, functions, getters, setters, typedefs - Add Dart to context extraction (imports, calls, types) - Add Dart to scope tracking and function entry detection - Add Dart-specific builtins to filter list - Add 2 tests: comprehensive + issue #373 reproduction - Update CHANGELOG.md
This was referenced Jul 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds regex-based Dart symbol extraction to
cora index, enablingcora explore,cora brain,cora callers,cora trace, andcora impactfor Dart/Flutter projects.Closes #373
Changes
src/index/extract.rsRE_DART_CLASS,RE_DART_ENUM,RE_DART_EXTENDS,RE_DART_EXTENDS_UNNAMED,RE_DART_FN,RE_DART_TYPEDEF,RE_DART_GETTERextract_dart()function handling: classes, mixins, enums, extensions (named + unnamed), functions, getters, typedefs"dart"toextract_symbolsmatch arm,detect_function_entry, scope tracking, andis_builtinsrc/engine/context/extraction.rs"dart"to Java/Kotlin context extraction arm (shared import/call/type patterns)"dart"to definition extraction for PR review context chainTests
test_extract_dart— comprehensive: classes, abstract classes, mixins, enums, extensions, getters, typedefs, async functionstest_extract_dart_issue_373_repro— exact reproduction from issue bug(index):cora indexextracts 0 symbols from Dart/Flutter — code intelligence is a no-op for Flutter projects #373Approach
Regex fallback (same as 13 other languages). Tree-sitter Dart can be added later via the existing feature-gated AST path for deeper call edge extraction. This unblocks all index/brain/trace/impact commands for Dart projects today with zero new dependencies.
Verification