mirror of
https://github.com/giancarloerra/socraticode.git
synced 2026-07-03 14:05:21 +02:00
7bd9eb5308
Dart previously fell through to the regex symbol fallback, which cannot match type-first signatures (void foo(), Future<int> baz() async), so classes, methods, and calls were invisible to codebase_symbol, codebase_flow, and codebase_impact, and files were chunked by line count instead of declaration boundaries. - Register @ast-grep/lang-dart as a dynamic grammar (per-grammar failure isolation keeps missing prebuilds on the regex fallback). - Add extractFromDart: classes, mixins (trait), enums, extensions, typedefs, type-first top-level functions, getters/setters, and constructors including named and factory forms. Scope ranges are stitched from Dart's sibling function_signature/function_body pairs. Calls are recovered from argument_part nodes: method calls, bare calls, constructor invocations, prefixed calls, and cascades. - Add dart to TOP_LEVEL_KINDS so chunking follows declaration boundaries; signature and body kinds are both listed so the overlap-merge fuses each pair into one region. - Add dart main() to ENTRY_POINT_NAMES for entry-point detection. - Move Dart to Full Support in the README language matrix.