aiscript icon indicating copy to clipboard operation
aiscript copied to clipboard

fix: 一部の構文について組み込みプラグインによる検証が働かない問題を修正

Open takejohn opened this issue 3 weeks ago • 1 comments

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を使用するように変更しています。

takejohn avatar Dec 05 '25 14:12 takejohn

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

Codecov Report

:x: 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 :warning:
:exclamation: 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%> (ø)
:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov-commenter avatar Dec 05 '25 14:12 codecov-commenter