Skip to content

feat: distinguish current object from spread syntax - #101

Merged
Seddryck merged 2 commits into
mainfrom
codex/issue-100-current-object-spread
Aug 25, 2026
Merged

feat: distinguish current object from spread syntax#101
Seddryck merged 2 commits into
mainfrom
codex/issue-100-current-object-spread

Conversation

@Seddryck

Copy link
Copy Markdown
Owner

Summary

  • introduce @_ as the explicit current-object expression
  • treat bare ... in arrays and named record fields as an implicit spread of the current object
  • distinguish implicit spreads from explicit ...@_, ...@Args, and ...args operands in the lossless typed syntax tree
  • document current-object, variable, function-result, and spread semantics

Validation

pm run generate

px tree-sitter test (all feature cases pass; Windows-only recovery and CRLF snapshots differ locally and pass in Ubuntu CI)

  • dotnet test bindings/csharp/Expressif.Syntax.Tests/Expressif.Syntax.Tests.csproj --framework net8.0 --no-restore --nologo --disable-build-servers --maxcpucount:1
  • dotnet test bindings/csharp/Expressif.Syntax.Tests/Expressif.Syntax.Tests.csproj --framework net9.0 --no-restore --nologo --disable-build-servers --maxcpucount:1
  • dotnet test bindings/csharp/Expressif.Syntax.Tests/Expressif.Syntax.Tests.csproj --framework net10.0 --no-restore --nologo --disable-build-servers --maxcpucount:1

Close #100

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: b9c7fafe-c01e-465f-80f3-c22942ea4bb7


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

Distinguish the current object from spread expressions

1 participant