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

Update signature parameter name #416

Merged
merged 11 commits into from
Oct 17, 2022

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Sep 21, 2022

Update-Parameter-Name

@auduchinok our initial attempt didn't seem to work for members so I made some changes.
I'm also not 100% convinced the unit tests assert the .fsi files.
They always seem to pass.

Copy link
Collaborator

@auduchinok auduchinok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nojaf The `memberDeclaration addition is a good change to the initial code, thanks! Could you also check other kinds of member declarations, please?

Copy link
Collaborator

@auduchinok auduchinok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good, just a few cleanup requests.

Comment on lines 61 to 67
| :? IReferencePat as rp ->
BindingSignatureNavigator.GetByHeadPattern(rp)
|> Option.ofObj
|> Option.map (fun bs -> bs.ReturnTypeInfo.ReturnType)
| :? IMemberSignature as ms ->
Some(ms.ReturnTypeInfo.ReturnType)
| :? IConstructorSignature as cs ->
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll think about unifying these types.

@nojaf nojaf force-pushed the update-signature-parameter-name branch from d893069 to 570ebec Compare October 6, 2022 08:13
Copy link
Collaborator

@auduchinok auduchinok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nojaf Thanks! It's a nice quick fix. 🙂

@auduchinok auduchinok merged commit 26c8924 into JetBrains:net223 Oct 17, 2022
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

Successfully merging this pull request may close these issues.

2 participants