Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for data object #71

Merged
merged 1 commit into from
Nov 18, 2023
Merged

Conversation

hrach
Copy link
Contributor

@hrach hrach commented Oct 26, 2023

No description provided.

@@ -44,7 +44,7 @@ repository:
match: \b(constructor|init)\b
name: entity.name.function.constructor
-
match: \b(companion|object)\b
match: \b(companion|object|data\s+object)\b
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. I'm assuming that this change is motivated by https://kotlinlang.org/docs/object-declarations.html#data-objects. I'd rather have data tagged independently as a storage modifier than make data object as a single keyword. I think the correct place to make the adjustment would be making the change here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll rework :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I did so, hopefully, it is correct now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nishtahir please :)

Copy link

codecov bot commented Nov 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (bad0234) 68.40% compared to head (4dee1c8) 68.40%.
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master      #71   +/-   ##
=======================================
  Coverage   68.40%   68.40%           
=======================================
  Files          13       13           
  Lines         500      500           
=======================================
  Hits          342      342           
  Misses        158      158           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nishtahir nishtahir changed the base branch from master to data-object November 18, 2023 16:18
Copy link
Owner

@nishtahir nishtahir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution 🎉. This looks good. It still needs a regression test and an update to the corpus before it can be merged into master, but I can add that

@nishtahir nishtahir merged commit 4e48e28 into nishtahir:data-object Nov 18, 2023
3 checks passed
nishtahir added a commit that referenced this pull request Nov 18, 2023
* add support for data object (#71)

* Add update to corpus and regression test

---------

Co-authored-by: Jan Škrášek <[email protected]>
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.

2 participants