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

Infer class name #210

Merged
merged 5 commits into from
Mar 29, 2020
Merged

Conversation

jeparlefrancais
Copy link
Contributor

Closes #179

This will remove the necessity to write the $className field for services.

Copy link
Member

@Kampfkarren Kampfkarren left a comment

Choose a reason for hiding this comment

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

I think these'd make the code look better.

Could you include a test as well?

server/src/rbx_snapshot.rs Outdated Show resolved Hide resolved
server/src/rbx_snapshot.rs Outdated Show resolved Hide resolved
@jeparlefrancais
Copy link
Contributor Author

I added a snapshot test, but I'm not sure I got everything that is going on in the expected-snapshot file so I really need someone to double check this carefully. The test passes but I just want to make sure it actually test something!

@Kampfkarren
Copy link
Member

Yeah that test looks fine to me, if there's no expected-snapshot.json then Rojo makes one, and if there is it uses that. So long as you can run cargo test twice without it failing, then you're good.

@LPGhatguy LPGhatguy merged commit 6a1fffd into rojo-rbx:master Mar 29, 2020
Dekkonot pushed a commit to UpliftGames/rojo that referenced this pull request Jan 11, 2024
* infer service names

* Update project code and add support for StarterPlayer

* Store parent_class in InstigatingSource

* Update snapshots

Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
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.

Infer ClassName for children of DataModel in project
3 participants