Dart: external base classes (Flutter widgets) get no INHERITS edge; typedefs are not indexed
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 55/100
- Tipo de issue
- Funcionalidade
- Clareza
- Claramente especificada
- Status de atividade
- Ativa
- Stack de tecnologia
- dart, flutter
- Domínio
- developer-experience, tooling
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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.
- Linguagem predominante
- C
- Estrelas
- 45.8k
- Forks
- 3.8k
- Merge médio
- 2d 18h
- PRs com merge (30d)
- 108
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de DeusData/codebase-memory-mcp
-
bug ux/behavior
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
DeusData/codebase-memory-mcp#3191 ·
Mantenedores costumam responder em até 1 dia
-
documentation enhancement parsing/quality ux/behavior
Dificuldade 1/5 1-3 horas Facilidade para iniciantes 82/100
DeusData/codebase-memory-mcp#3131 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
hook-augment: the five-row cap keeps the first five search_graph rows, so variables and modules displace function definitions (v0.12.1)Talvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Abertabug editor/integration parsing/quality ux/behavior
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
DeusData/codebase-memory-mcp#3062 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
Generated client files (AGENTS.md block, SKILL.md) teach a call syntax no harness can executeAbertabug documentation editor/integration parsing/quality
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
DeusData/codebase-memory-mcp#3050 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
editor/integration parsing/quality
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
DeusData/codebase-memory-mcp#2286 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de DeusData/codebase-memory-mcp
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
Mantenedores costumam responder em até 2 dias
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 85/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
NVIDIA/open-gpu-kernel-modules#1635 ·
Mantenedores costumam responder em até 1 dia
-
iOS: the "Edit controls" button never hides, even with a controller connected, and covers the gameAbertagame: 010065A014024000 ios
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
seedds/nxnative#3714 · 1 comentário ·
Mantenedores costumam responder em até 2 dias