Skip to content

enhance: オブジェクトリテラルのキーに予約語を直接記述できるように#948

Merged
takejohn merged 6 commits into
aiscript-dev:masterfrom
takejohn:enhance/945_allow-reserved-word-keys
Aug 7, 2025
Merged

enhance: オブジェクトリテラルのキーに予約語を直接記述できるように#948
takejohn merged 6 commits into
aiscript-dev:masterfrom
takejohn:enhance/945_allow-reserved-word-keys

Conversation

@takejohn
Copy link
Copy Markdown
Member

@takejohn takejohn commented Aug 6, 2025

What

{ default: 0 }のように、オブジェクトリテラルのプロパティ名に予約語を直接記述できるようになります。

Why

#945

Additional info (optional)

obj.defaultのような、ドットによるプロパティアクセス演算子の右辺に予約語を記述することはできません。

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 6, 2025

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

Codecov Report

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

Files with missing lines Patch % Lines
src/parser/token.ts 94.54% 3 Missing ⚠️
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.
Files with missing lines Coverage Δ
src/parser/syntaxes/expressions.ts 95.46% <100.00%> (+6.27%) ⬆️
src/parser/token.ts 97.77% <94.54%> (-2.23%) ⬇️

... and 28 files with indirect coverage changes

🚀 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.

@FineArchs
Copy link
Copy Markdown
Member

obj.nullのような.経由のアクセスは今回は非対応ですか?

@takejohn
Copy link
Copy Markdown
Member Author

takejohn commented Aug 6, 2025

obj.nullのような.経由のアクセスは今回は非対応ですか?

はい、その通りです。

@takejohn takejohn changed the title オブジェクトリテラルのキーに予約語を直接記述できるように enhance: オブジェクトリテラルのキーに予約語を直接記述できるように Aug 7, 2025
@takejohn takejohn merged commit a4a0b33 into aiscript-dev:master Aug 7, 2025
4 checks passed
@takejohn takejohn deleted the enhance/945_allow-reserved-word-keys branch August 7, 2025 15:15
@takejohn takejohn mentioned this pull request Aug 17, 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.

オブジェクトリテラルのキーに予約語を書けるようにする

4 participants