Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

AST extraction: Svelte 5 script blocks and TypeScript export type * produce partial graphs

Đã đóng
#3,942 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python, typescript
Lĩnh vực
compilers, devtools

Hướng nghiên cứu

Start with graphify.extract.extract using index.ts and Example.svelte, then reproduce the structural and code-only extraction cases. Compare the reported AST nodes and source locations for export type *, Svelte script blocks, and template {#if} blocks; done means these constructs are parsed without spurious nodes and parser gaps remain visible in the graph or report.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Version

graphify 0.9.72 (uv tool upgrade graphifyy reports Nothing to upgrade), Python 3.10, macOS.

Minimal reproduction

index.ts:

export type * from "./types.js";

types.ts:

export type FetchFn = typeof globalThis.fetch;

Example.svelte:

<script lang="ts">
  let { value = 0 }: { value?: number } = $props();
  const doubled = $derived(value * 2);
  function increment() { value += 1; }
</script>
<button onclick={increment}>{doubled}</button>

Run structural extraction using graphify.extract.extract([Path("index.ts"), Path("Example.svelte")], parallel=False) or a code-only extraction.

Observed

The TypeScript barrel reports a syntax error on export type * and no symbols. Svelte files report syntax errors at <script> (line 1), and larger Svelte 5 templates can emit spurious if() function nodes from markup. On our application the health warning listed 175 partially extracted files, mostly Svelte, plus unresolved barrel symbols. Named type exports (or removal of unused type re-exports) avoid the barrel error, but not Svelte template errors.

Expected

Support TS 5 type-star exports. Parse Svelte script blocks as TS/JS and Svelte markup with a compatible grammar, preserving original source locations; template {#if} blocks must not become functions. Parser gaps should be clearly recorded in the graph/report, since they skew cohesion and hub rankings.

Ngôn ngữ chính
Python
Star
124k
Fork
11.9k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Graphify-Labs/graphify

Tất cả issue của Graphify-Labs/graphify

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.