LuaLS / LuaLS/lua-language-server
Operator annotations for comparison operators
Open
Nobody has claimed this yet.
enhancement
feat/LuaCats Annotations
- Dominant language
- Lua
- Stars
- 4.4k
- Forks
- 442
- PR merge metrics
- No merged PRs in 30d
Description
The @operator annotation supports nearly all the operator metamethods, except for eq / lt / le. I'd like to be able to annotate that my type are comparable.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the handling for the @operator annotation and the existing operator metamethod support. Compare how eq, lt, and le are represented, then inspect nearby tests if available; done means these comparison operators can annotate comparable types consistently with the supported operators.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100