Conversation
Add full Dart language support via tree-sitter grammar from go-sitter-forest/dart. Includes chunker registration with 11 query patterns covering classes, mixins, enums, extensions, functions, methods, typedefs, and constructors. Closes #60 - Register .dart extension with tree-sitter query patterns - Add findEnclosingSymbol support for Dart class_body/extension_body (scoped to Dart-specific parent types to avoid Python/Java/TS impact) - Unit test with comprehensive Dart sample code - Adversarial test covering async, generators, sealed/abstract classes, factory/named constructors, enhanced enums, comment exclusions - E2E snapshot test with 18 fixture files from dart-lang/shelf - bench-swe task using shelf_router HEAD content-length RFC bug - Benchmark results: 76% cheaper, 79% faster, 84% fewer tokens with lumen Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Dart showed the strongest benchmark results across all 9 languages: 76% cost reduction, 79% time reduction, 82% fewer output tokens. Update all summary tables, per-language rankings, and the supported languages table in README. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Member
Author
|
@jkoenig134 the numbers looks pretty good :D |
|
@aeneasr wow, awesome!! |
Snapshots were missing from the initial Dart implementation commit, causing CI to fail on first run (cupaloy creates snapshots and fails). Captured from CI run #23661290108. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
go-sitter-forest/darttree-sitter grammarfindEnclosingSymbolsupport for qualified Dart method names (scoped to Dart-specificclass_body/extension_bodyto avoid Python/Java/TS regression)dart-lang/shelf(BSD-3-Clause) with snapshot testCloses #60
Benchmark Results
Test plan
go test ./...— all 10 packages pass, zero failuresgolangci-lint run— zero issuesTestTreeSitterChunker_Dart_Comprehensive— verifies chunking of classes, methods, mixins, enums, extensions, typedefsTestAdversarial_Dart— verifies edge cases and false positive exclusionTestAdversarial_ChunkInvariants— includes.dartin cross-language invariant checksTestDefaultLanguages_AllExtensionsPresent— verifies.dartregisteredTestLang_DartE2E snapshot test (requires Ollama with embedding model)🤖 Generated with Claude Code