You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat: add Dart language support
Add tree-sitter-based parsing for Dart source files (.dart), covering:
- Classes, mixins, extensions, enums, typedefs
- Top-level functions and class methods (including getters)
- /// doc comment extraction (skips past @annotations)
- @annotation decorator extraction
- Sibling-body byte range extension for full source retrieval
Dart's AST differs from other languages: function/method signatures and
bodies are sibling nodes rather than parent-child. The extractor handles
this transparently by extending byte ranges to include sibling
function_body nodes.
Includes tests, fixture file, and documentation updates.
* fix: address code review findings for Dart support
- Fix end_line not updating when extending byte range to sibling
function_body (Dart's signature/body sibling pattern)
- Add missing "php" to search_symbols language enum (pre-existing)
- Enrich Dart fixture with mixin, extension, and getter examples
- Update LANGUAGE_SUPPORT.md notes: constructors and top-level
constants are not indexed
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: LANGUAGE_SUPPORT.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
| Rust |`.rs`| tree-sitter-rust | function, type (struct/enum/trait), impl, constant |`#[attr]`|`///` and `//!` comments | Macro-generated symbols are not visible to the parser |
12
12
| Java |`.java`| tree-sitter-java | method, class, type (interface/enum), constant |`@Annotation`|`/** */` Javadoc | Deep inner-class nesting may be flattened |
| Dart |`.dart`| tree-sitter-dart | function, class (class/mixin/extension), method, type (enum/typedef) |`@annotation`|`///` doc comments | Constructors and top-level constants are not indexed |
0 commit comments