Allow doc comments for function arguments
I guess this comes down where attributes are allowed etc, but I think it would be valuable to allow doc comments for function arguments. I know there are no attributes in the AST for the arguments themselves, but maybe we could leverage the same namedArgLoc attribute trick @cristianoc already has for the location of named arguments.
Would be neat to be able to show those types of docs on hover etc.
EDIT: Changed this to only be about function arguments, since constructors works when using the correct syntax.
Examples: https://rescript-lang.org/try?code=C4TwDgpgBAzg9gWwgNQIYCcCWqB2woC8UA9AFSlQDyO0mMUAxnHADZSnFU1QA+J5UACoB3OFDpRULeI2ZsOQ0QCglLCPnhIAYjkJQAFGQqCAFhICuOFqgBGEFmoAmk9AHNx9HJgYQAdO04cVCQALlhgLBxXABp+Ck0IAEE3DyhXZmcAMzh0KEc4TCjw80zMgKgAPwTk1zDC4AIAfgBKQgA+KABvJSgoIA
Needs | in the beginning:
type a = | /** dd */ A | /** dd */ B
🤦 That's good at least 😄
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.