-
Notifications
You must be signed in to change notification settings - Fork 57
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
Update signature parameter name #416
Conversation
There was a problem hiding this 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?
ReSharper.FSharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateParameterNameInSignatureFix.fs
Outdated
Show resolved
Hide resolved
ReSharper.FSharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateParameterNameInSignatureFix.fs
Outdated
Show resolved
Hide resolved
ReSharper.FSharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateParameterNameInSignatureFix.fs
Show resolved
Hide resolved
ReSharper.FSharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateParameterNameInSignatureFix.fs
Outdated
Show resolved
Hide resolved
There was a problem hiding this 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.
ReSharper.FSharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateParameterNameInSignatureFix.fs
Outdated
Show resolved
Hide resolved
ReSharper.FSharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateParameterNameInSignatureFix.fs
Outdated
Show resolved
Hide resolved
ReSharper.FSharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateParameterNameInSignatureFix.fs
Outdated
Show resolved
Hide resolved
ReSharper.FSharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateParameterNameInSignatureFix.fs
Outdated
Show resolved
Hide resolved
| :? 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 -> |
There was a problem hiding this comment.
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.
ReSharper.FSharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateParameterNameInSignatureFix.fs
Outdated
Show resolved
Hide resolved
…rogramming session.
d893069
to
570ebec
Compare
There was a problem hiding this 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 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.