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

Typing generator #111

Merged
merged 18 commits into from
Feb 13, 2024
Merged

Typing generator #111

merged 18 commits into from
Feb 13, 2024

Conversation

camnwalter
Copy link
Member

Still in progress
Adds:

  • instance methods for kotlin objects
  • vals/vars in constructors now have appropriate getters/setters
  • private/internal getters/setters are now hidden
  • static classes now have appropriate fields in their enclosing classes

mattco98 and others added 16 commits February 7, 2024 12:31
This generated file contains declarations corresponding to the CT types,
as well as any used MC types. There are a few errors with the generated
file, but it is good enough to provide good code completion in 99.9% of
all cases. Fixing the remaining issues will require a lot of work, so it
is good enough for now.
Now everything is an interface. If a class has static members, it gets
an extra "const Name: { ... }" declaration containing all of the static
stuff.
I thought omitting the return type defaulted to void, but it actually
defaults to any.
This prevents it from being available for completion
@camnwalter camnwalter marked this pull request as ready for review February 13, 2024 00:37
@mattco98 mattco98 merged commit c089e44 into ChatTriggers:main Feb 13, 2024
1 check passed
@camnwalter camnwalter deleted the typing-generator branch February 13, 2024 04:33
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