Temporal: for/if/loop/return nodes stamped with the next statement's line (what is i at N answers for a line that never assigns i)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start in the parser and temporal tracing code, then run the existing temporal tests around line-based lookup and trace tape generation. Add coverage for for/if/loop/return nodes, indexed/field/destructuring stores, and the end-of-file stamp; use the Done when checklist and docs/TRACE.md to verify the resulting behavior.
由索引模型根据 Issue 内容生成。
描述
Found by the builder on #1377. This predates it and exists on base too.
The parser stamps if/loop/for/return nodes with the line of the token that FOLLOWS them, not their own line. For a for loop variable this is silent-wrong: what is i at 4 returns 2 when line 4 never assigns i.
Related, from the same survey:
- Every trace tape starts with a spurious
Lstamp for the line after the end of the file. - Stores other than a plain assignment (
d[k] is v,d.k is v, destructuring) are stamped differently from plain assignment. - A call assignment is recorded under the callee's last line.
The filing rule for multi-line statements is #1381's decision. This issue is about nodes stamped with a line that is not theirs at all.
Done when
-
for/if/loop/returnnodes carry their own keyword's line. A temporal test showswhat is i at Nreturns null (or the prior value) for a line that does not assigni. - The spurious end-of-file
Lstamp is gone, or explained in docs/TRACE.md. - Indexed, field and destructuring stores are stamped by the same rule as plain assignment. Covered by a test.
- 主要语言
- C
- 星标
- 3
- 派生
- 7
- 平均合并
- 4 小时 1 分钟
- 30 天内合并 PR
- 121
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
InauguralSystems/EigenScript 的其他 Issue
-
area:ci kind:gate-defect
难度 2/5 1-3 小时 新手友好度 84/100
InauguralSystems/EigenScript#1448 ·
维护者通常 1 天内回复
-
area:ci kind:gate-defect
难度 2/5 1-3 小时 新手友好度 84/100
InauguralSystems/EigenScript#1431 ·
维护者通常 1 天内回复
-
area:gates kind:gate-defect
难度 2/5 1-3 小时 新手友好度 84/100
InauguralSystems/EigenScript#1429 ·
维护者通常 1 天内回复
-
area:docs kind:docs-drift
难度 1/5 1 小时以内 新手友好度 92/100
InauguralSystems/EigenScript#1428 ·
维护者通常 1 天内回复
-
area:docs good first issue kind:docs-drift
难度 1/5 1 小时以内 新手友好度 92/100
InauguralSystems/EigenScript#1400 ·
维护者通常 1 天内回复
查看 InauguralSystems/EigenScript 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
darktable-org/darktable#22455 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
BasedHardware/omi#20084 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
raspberrypi/pico-sdk#3225 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复