Skip to content

feat: add method chaining support#46

Merged
nedanwr merged 5 commits into
developfrom
feat/method-chaining
Jul 10, 2026
Merged

feat: add method chaining support#46
nedanwr merged 5 commits into
developfrom
feat/method-chaining

Conversation

@nedanwr

@nedanwr nedanwr commented Jul 10, 2026

Copy link
Copy Markdown
Owner

Summary

Add method chaining across the Kronos frontend, runtime, LSP, tests, and documentation for the v0.6.0 release.

Changes

  • Add postfix method-call syntax such as text.uppercase().trim().split(" ")
  • Pass the receiver as the called function’s first argument
  • Support chained calls on variables, literals, parenthesized expressions, and list literals
  • Support indented multiline chains
  • Preserve qualified calls such as math.sqrt and regex.match
  • Add LSP diagnostics, completion, hover, and signature help for method calls
  • Retain built-in argument-count and receiver-type validation
  • Refresh the self-hosting analysis
  • Bump the reported version to 0.6.0

Testing

  • Add tokenizer, parser, VM, and LSP tests

  • Add passing end-to-end coverage for string and collection chains

  • Add failure coverage for invalid receiver types

  • All existing tests pass

  • New tests added (if applicable)

  • Examples updated (if applicable)

  • Memory leak checks pass (if applicable)

Documentation

  • Mark method chaining complete in the v0.6.0 roadmap

  • Document method syntax, multiline chains, arguments, and validation

  • Update the website quick reference

  • Refresh the bootstrap/self-hosting analysis

  • Examples updated (if applicable)

  • README/docs updated (if applicable)

Breaking Changes

None

@nedanwr nedanwr self-assigned this Jul 10, 2026
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 46776b38-c051-49d2-a7c3-7869f1e17046

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/method-chaining

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.

@github-actions github-actions Bot added documentation Improvements or additions to documentation test lsp code frontend labels Jul 10, 2026
@nedanwr nedanwr merged commit 4c090c1 into develop Jul 10, 2026
11 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code documentation Improvements or additions to documentation frontend lsp test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant