Skip to content

Conversation

@takejohn
Copy link
Member

@takejohn takejohn commented Dec 5, 2025

What

visitNodeによってASTのBreak['expr'], NamedTypeSource['inner'], FnTypeSource['result']の内容が走査されるようになります。
これらの場所における不正な変数名、return文、break文、continue文、型注釈がある場合に文法エラーが発生するようになります。

Why

Fixes #999
Fixes #1000

Additional info (optional)

テストにおいてexpect.hasAssertion()が上手く機能しなかったので、test/testutils.tseq関数の実装を変えて、assertでなくVitestのexpectを使用するように変更しています。

@codecov-commenter
Copy link

codecov-commenter commented Dec 5, 2025

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 88.88889% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/parser/visit.ts 88.88% 3 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Files with missing lines Coverage Δ
src/parser/visit.ts 98.61% <88.88%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@takejohn takejohn changed the title 一部の構文について組み込みプラグインによる検証が働かない問題を修正 fix: 一部の構文について組み込みプラグインによる検証が働かない問題を修正 Dec 5, 2025
@takejohn takejohn requested review from FineArchs and syuilo December 6, 2025 12:12
@takejohn takejohn merged commit f6c79ef into aiscript-dev:bugfix/1.2.1 Dec 11, 2025
4 checks passed
@takejohn takejohn mentioned this pull request Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants