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
lua static type generation #3697
Open
shevernitskiy
wants to merge
40
commits into
DFHack:develop
Choose a base branch
from
shevernitskiy:lua-typing
base: develop
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 10 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
3f9b9b1
lua static type generation
shevernitskiy 5b8ae6e
gitignore eof fix
shevernitskiy 6d35ea7
refactor
shevernitskiy 682a43d
add comments
shevernitskiy 0f3b10e
fix enum indexing
shevernitskiy 4891237
default enum index is 0
shevernitskiy 3627f15
signatures typing
shevernitskiy 1551a76
add support for `WRAP` functions
shevernitskiy d401182
skip some args
shevernitskiy 1e47979
refactor
shevernitskiy f5944ca
change regex patterns
shevernitskiy c2cc855
Revert "change regex patterns"
shevernitskiy f89106a
change regex patterns
shevernitskiy a40be04
get item placement dynamicaly
shevernitskiy 9b59adf
support explicit signature
shevernitskiy bdb2f10
support `df-flagarray`
shevernitskiy 2ece345
support `bitfields`
shevernitskiy 3218b33
improve inheritance
shevernitskiy 1cc1312
support lsp inside custom env
shevernitskiy 6cf7cba
support `vararg` and `std::function` in signatures
shevernitskiy dfd9008
support `<force-expose>` pattern
shevernitskiy 3f66524
treat tail boolean's as false by default
shevernitskiy db1e2cd
`codgen.out.xml` as source
shevernitskiy d391e2d
the great refactor
shevernitskiy a29ff76
fix some cases
shevernitskiy 0b20611
improve base methods coverage
shevernitskiy e91f4ae
refactor Container, StaticArray, Poniter
shevernitskiy b6bea6d
visible lua modules
shevernitskiy e5714b9
refactor
shevernitskiy 0089188
more refactor
shevernitskiy 85506dd
cleanup
shevernitskiy 569073a
improve modules coverage
shevernitskiy 04080f7
descriptions from docs
shevernitskiy 0370277
define self arg in methods of lua modules
shevernitskiy 45a8cca
Squashed commit of the following:
shevernitskiy a1d9cc7
some signatures for cpp & better docs
shevernitskiy 4576486
Revert "Squashed commit of the following:"
shevernitskiy 49c7f95
add global scope to modules
shevernitskiy 813bc56
integers on the tail are optional
shevernitskiy cfe949b
variables types in modules parsing
shevernitskiy File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -84,3 +84,7 @@ tags | |
# 3rd party downloads | ||
depends/steam | ||
depends/SDL2 | ||
|
||
# lua typing | ||
.luarc.json | ||
/types | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is
types/
the standard location for these types of files? Who reads the output files and is there any setup required?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LSP wiki do not specify exact naming or location. Only internal structure (
/library
,config.json
) is strict. Location can be passed as arg (even otside the workspace)./definitions
can be an alternative to/types
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an addition, type hinting do not work in lua file, where
_ENV
is used. Dunno how to fix it yet.