feat: a TypeScript or JavaScript class field with a quoted name declares no field
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, typescript
- 領域
- devtools
調査の方向性
Start in internal/indexer/tsextract, where class field extraction for TypeScript, TSX and JavaScript lives, and find the branch that skips string-literal field names. Read the comment at line 14 of datadecl_test.go and the assertion that no Box."quoted" node exists, then check docs/LANGUAGE-CAPABILITY-MATRIX.md lines 153, 160 and 167. Done when class Box { "quoted" = 4; } yields a Box."quoted" field node with the contains edge, the test assertion is updated, and go test ./internal/indexer/tsextract/... passes.
索引モデルが issue の本文から書いたものです。
説明
What exists today?
Class field extraction for TypeScript, TSX and JavaScript in internal/indexer/tsextract, as documented at docs/LANGUAGE-CAPABILITY-MATRIX.md lines 153, 160 and 167.
How does it behave now?
class Box { "quoted" = 4; } has a static name, but the extractor emits no field for it. internal/indexer/tsextract/datadecl_test.go asserts that no Box."quoted" node exists. The comment at line 14 of that file states that a quoted field name declares no field.
How should it behave?
Emit a field named by the string literal's value, with the same contains edge and references as an identifier-named field. The graph then holds a Box."quoted" field node for class Box { "quoted" = 4; }. Computed names such as [key] = 3 stay out of scope.
What kind of improvement?
Correctness in an edge case.
Would this change existing behavior?
Yes, but only for classes with quoted field names. Box gains a field node, references to Box."quoted" resolve to it, and the assertion in datadecl_test.go changes with the fix.
Before submitting
- I searched existing issues and this is not a duplicate
- I checked that the current behavior is not a deliberate decision in
openspec/specs/
- 主要言語
- Go
- スター
- 0
- フォーク
- 0
- 平均マージ
- 7時間 42分
- マージ済み PR(30日)
- 111
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
seanb4t/codegraph-go のほかの issue
-
chore needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
seanb4t/codegraph-go#380 ·
メンテナーはふだん 1 日以内に返信
-
chore needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
seanb4t/codegraph-go#379 ·
メンテナーはふだん 1 日以内に返信
-
area:query chore needs-triage spec-needed
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
seanb4t/codegraph-go#377 ·
メンテナーはふだん 1 日以内に返信
-
chore needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
seanb4t/codegraph-go#362 ·
メンテナーはふだん 1 日以内に返信
-
area:query bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
seanb4t/codegraph-go#355 ·
メンテナーはふだん 1 日以内に返信
seanb4t/codegraph-go の issue をすべて見る
似ている issue
-
Add iterate GmbH domains to a dedicated list and include it in company and developer categoriesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
v2fly/domain-list-community#4307 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without boundオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mattabate/life-distributable#232 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信