Add #nullable annotations to Lua libs#4689
Add #nullable annotations to Lua libs#4689kalimag wants to merge 10 commits intoTASEmulators:masterfrom
#nullable annotations to Lua libs#4689Conversation
|
Most of the things that you added |
Yeah, ultimately it's just about picking a way to shut up the analyzer. IMO |
|
There is an annoying mismatch between C# and Lua semantics here: In C# (and more importantly, BizHawk's Lua bindings), This is an issue in cases where the last non-optional parameter in a function is nullable, e.g. I think I'll remove/omit the |
|
If |
YoshiRulz
left a comment
There was a problem hiding this comment.
There's a lot of changes to things other than nullability annotations in here...
We don't use is { } nonNullObj.
You can't make any of those member props required because all the subclasses of LuaLibraryBase are instantiated by reflection.
What's your preferred alternative? |
Not all. Only the ones in |
This reverts commit 6adbf51.
Also make `_defaultTextBackground` non-nullable
Add
#nullableannotations to Lua libraries for #3755 and #4688TODO:
CommLuaLibrary(this one is a mess)FormsLuaLibraryGuiLuaLibraryMovieLuaLibraryTAStudioLuaLibrary#nullableto Lua libs that currently don't have any reference types in their API surface?Check if completed: