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

Not exported SWEP.Weapon, deprecated fields #78

Open
TIMONz1535 opened this issue Feb 4, 2025 · 0 comments
Open

Not exported SWEP.Weapon, deprecated fields #78

TIMONz1535 opened this issue Feb 4, 2025 · 0 comments

Comments

@TIMONz1535
Copy link

TIMONz1535 commented Feb 4, 2025

I noticed that the field SWEP.Weapon was not exported https://wiki.facepunch.com/gmod/Structures/SWEP#Weapon

Also we can mark ---@type defined fields as deprecated, like self.Owner, self.Weapon, ViewData.orthotop, SoundData.pitchstart
foo.example = nil ---@deprecated also works
LuaLS/lua-language-server#1313 (comment)

but unfortunately, deprecated structure fields on the wiki are warnings or text, not <deprecated>

Changed DEPRECATED tag to Warning since such changes never are going to be removed

it is also possible due to the fact that the entire page may become DEPRECATED (on the left navbar), but this is wrong

https://wiki.facepunch.com/gmod/Enums/TEXTUREFLAGS
Image

Someone probably tried to turn it off <deprecated notag="1">, but it doesn't work.

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

No branches or pull requests

1 participant