Dart: external base classes (Flutter widgets) get no INHERITS edge; typedefs are not indexed
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- dart, flutter
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Start by reading the Dart extraction code that builds INHERITS and indexes declarations, then compare how Python handles unresolved base types (#2472) and how C indexes typedefs (#2543). Use the issue’s lib/widget.dart and lib/repro.dart examples to check external base classes and typedefs in the graph. Done means those bases have graph nodes and inheritance edges, and each typedef is indexed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Version: 0.12.1 (Windows x64)
Two related gaps in Dart extraction:
INHERITSis emitted only for base classes defined inside the project. A class extending a framework type (StatelessWidget,StatefulWidget,State<T>,ChangeNotifier) gets noINHERITSedge at all, and there is no node for the base type.typedefdeclarations are not indexed — neither as nodes nor as aliases. (For C this was addressed in #2543.)
OVERRIDE edges are built, so overrides are visible while what they override is not.
Repro
lib/widget.dart:
import 'package:flutter/material.dart';
class HomeScreen extends StatelessWidget {
const HomeScreen({super.key});
@override
Widget build(BuildContext context) => const Text('home');
}
class Counter extends ChangeNotifier {
int value = 0;
void bump() {
value += 1;
notifyListeners();
}
}
lib/repro.dart (same project) declares a project-local base and a typedef:
typedef Handler = void Function(String message);
abstract class Base {
void ping();
}
class BlockBody extends Base { /* ... */ }
class ArrowBody extends Base { /* ... */ }
Actual
MATCH (c:Class)-[:INHERITS]->(p) RETURN c.name, p.name
BlockBody -> Base
ArrowBody -> Base
HomeScreen -> StatelessWidget and Counter -> ChangeNotifier are absent. search_graph("StatefulWidget") returns 0 results. search_graph("Handler") finds no node for the typedef.
Expected
An INHERITS edge to an external/unresolved base type node (as Python already distinguishes — see #2472), so that "which classes in this project are widgets / screens / notifiers" is answerable from the graph. And a node for each typedef.
Why it matters
In Dart the base class is the role of the node: screen, widget, notifier, DAO. On a real Flutter project lib holds 28 extends StatefulWidget, 25 extends StatelessWidget and 13 extends State<...>, and none of them are reachable through the graph — the most common question about a Flutter codebase has to fall back to grep.
- Ngôn ngữ chính
- C
- Star
- 45.8k
- Fork
- 3.8k
- Merge trung bình
- 2 ngày 18 giờ
- Pull request đã merge (30 ngày)
- 108
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của DeusData/codebase-memory-mcp
-
bug ux/behavior
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
DeusData/codebase-memory-mcp#3191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation enhancement parsing/quality ux/behavior
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
DeusData/codebase-memory-mcp#3131 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)Có thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởbug editor/integration parsing/quality ux/behavior
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DeusData/codebase-memory-mcp#3062 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Generated client files (AGENTS.md block, SKILL.md) teach a call syntax no harness can executeĐang mởbug documentation editor/integration parsing/quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
DeusData/codebase-memory-mcp#3050 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
editor/integration parsing/quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
DeusData/codebase-memory-mcp#2286 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của DeusData/codebase-memory-mcp
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameĐang mởgame: 010065A014024000 ios
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
seedds/nxnative#3714 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày