-
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
Value not contained mutability accessibility more #549
Open
nojaf
wants to merge
10
commits into
JetBrains:net233
Choose a base branch
from
nojaf:ValueNotContainedMutabilityAccessibilityMore
base: net233
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fe714ac
Rough UpdateAccessibilityInSignatureFix.
nojaf 8661607
Add initial unit test.
nojaf 0c3ff6c
Add additional binding tests.
nojaf 709a958
Split quick fix into two.
nojaf cf4fede
Add quickfix to update member signature.
nojaf 2360953
Add additional tests for members.
nojaf 78f0dcb
Add support for auto property.
nojaf 122e897
Initial support for properties.
nojaf 8408776
Support properties where both get/set have a mismatch.
nojaf 432d200
Support indexed properties.
nojaf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...harp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateAccessibilityInSignatureBindingFix.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
namespace JetBrains.ReSharper.Plugins.FSharp.Psi.Features.Daemon.QuickFixes | ||
|
||
open JetBrains.ReSharper.Plugins.FSharp.Psi.Tree | ||
open JetBrains.ReSharper.Plugins.FSharp.Psi.Features.Daemon.Highlightings | ||
open JetBrains.ReSharper.Psi | ||
open JetBrains.ReSharper.Resources.Shell | ||
open JetBrains.ReSharper.Plugins.FSharp.Psi | ||
|
||
type UpdateAccessibilityInSignatureBindingFix(error: ValueNotContainedMutabilityAccessibilityMoreInBindingError) = | ||
inherit FSharpQuickFixBase() | ||
|
||
let tryFindBindingSignatureAccessRights (declaredElement: IFSharpMember) = | ||
declaredElement.GetDeclarations() | ||
|> Seq.tryPick (function | ||
| :? IReferencePat as pat when pat.IsFSharpSigFile() -> | ||
match pat.DeclaredElement.As<IFSharpMember>() with | ||
| null -> None | ||
| sigMember -> | ||
let bindingSignature = BindingSignatureNavigator.GetByHeadPattern(pat) | ||
if isNull bindingSignature then None else | ||
Some (bindingSignature, sigMember.GetAccessRights()) | ||
| _ -> None | ||
) | ||
|
||
let tryFindImplementationBindingInfo (pat: ITopReferencePat) = | ||
if isNull pat then None else | ||
|
||
match pat.DeclaredElement.As<IFSharpMember>() with | ||
| null -> None | ||
| fsMember -> Some fsMember | ||
|
||
let mutable implAccessRights = AccessRights.NONE | ||
let mutable bindingSignature = null | ||
|
||
override x.Text = $"Update accessibility for {error.ReferenceName.Identifier.Name} in signature" | ||
|
||
override x.IsAvailable _ = | ||
let topPat = TopReferencePatNavigator.GetByReferenceName(error.ReferenceName) | ||
match tryFindImplementationBindingInfo topPat with | ||
| None -> false | ||
| Some implDeclaredElement -> | ||
match tryFindBindingSignatureAccessRights implDeclaredElement with | ||
| None -> false | ||
| Some (bindingSig, sigAccessRights) -> | ||
implAccessRights <- implDeclaredElement.GetAccessRights() | ||
bindingSignature <- bindingSig | ||
implAccessRights <> sigAccessRights | ||
|
||
override x.ExecutePsiTransaction _ = | ||
use writeCookie = WriteLockCookie.Create(error.ReferenceName.IsPhysical()) | ||
bindingSignature.SetAccessModifier(implAccessRights) |
35 changes: 35 additions & 0 deletions
35
...Sharp/src/FSharp.Psi.Intentions/src/QuickFixes/UpdateAccessibilityInSignatureMemberFix.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
namespace JetBrains.ReSharper.Plugins.FSharp.Psi.Features.Daemon.QuickFixes | ||
|
||
open JetBrains.ReSharper.Plugins.FSharp.Psi.Tree | ||
open JetBrains.ReSharper.Plugins.FSharp.Psi.Features.Daemon.Highlightings | ||
open JetBrains.ReSharper.Psi | ||
open JetBrains.ReSharper.Resources.Shell | ||
open JetBrains.ReSharper.Plugins.FSharp.Psi | ||
|
||
type UpdateAccessibilityInSignatureMemberFix(error: ValueNotContainedMutabilityAccessibilityMoreInMemberError) = | ||
inherit FSharpQuickFixBase() | ||
|
||
let tryFindSignatureMemberAccessRights (memberDeclaration: IOverridableMemberDeclaration) = | ||
if isNull memberDeclaration.DeclaredElement then None else | ||
memberDeclaration.DeclaredElement.GetDeclarations() | ||
|> Seq.tryPick (function | ||
| :? IMemberSignature as memberSig -> Some (memberSig, memberSig.GetAccessRights()) | ||
| _ -> None) | ||
let mutable implAccessRights = AccessRights.NONE | ||
let mutable memberSignature = null | ||
|
||
override x.Text = $"Update accessibility for {error.MemberDeclaration.Identifier.GetText()} in signature" | ||
|
||
override x.IsAvailable _ = | ||
if isNull error.MemberDeclaration then false else | ||
implAccessRights <- error.MemberDeclaration.GetAccessRights() | ||
|
||
match tryFindSignatureMemberAccessRights error.MemberDeclaration with | ||
| None -> false | ||
| Some (ms, sigAccessRights) -> | ||
memberSignature <- ms | ||
implAccessRights <> sigAccessRights | ||
|
||
override x.ExecutePsiTransaction _ = | ||
use writeCookie = WriteLockCookie.Create(error.MemberDeclaration.IsPhysical()) | ||
memberSignature.SetAccessModifier(implAccessRights) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1317,6 +1317,7 @@ memberSignature options { stubBase="FSharpProperTypeMemberDeclarationBase"; } e | |
attributeList<ATTRIBUTE_LIST, AttributeLists>* | ||
STATIC<STATIC, StaticKeyword>? | ||
memberKeyword{MEMBER_KEYWORD, MemberKeyword} | ||
INLINE<INLINE, InlineKeyword>? | ||
accessModifier{ACCESS_MODIFIER, AccessModifier}? | ||
identOrOpName{IDENTIFIER, Identifier} | ||
postfixTypeParameterDeclarationList<TYPE_PARAMETER_LIST, TypeParameterList>? | ||
|
@@ -1369,6 +1370,8 @@ autoPropertyDeclaration options { stubBase="FSharpProperTypeMemberDeclarationBas | |
STATIC<STATIC, StaticKeyword>? | ||
memberKeyword{MEMBER, MemberKeyword} | ||
VAL<VAL, ValKeyword> | ||
MUTABLE<MUTABLE, MutableKeyword>? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
accessModifier{ACCESS_MODIFIER, AccessModifier}? | ||
IDENTIFIER<IDENTIFIER, Identifier> | ||
EQUALS<FSHARP_EQUALS, EqualsToken> | ||
chameleonExpression<CHAMELEON_EXPR, InitExpression> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
ReSharper.FSharp/src/FSharp.Psi/src/Tree/IBindingSignature.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using JetBrains.ReSharper.Psi; | ||
|
||
namespace JetBrains.ReSharper.Plugins.FSharp.Psi.Tree | ||
{ | ||
public partial interface IBindingSignature | ||
{ | ||
void SetAccessModifier(AccessRights accessModifier); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
using JetBrains.ReSharper.Psi; | ||
|
||
namespace JetBrains.ReSharper.Plugins.FSharp.Psi.Tree | ||
{ | ||
public partial interface IMemberSignature | ||
{ | ||
void SetAccessModifier(AccessRights accessModifier); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...rp/test/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 01.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
let private a{caret} = 0 |
3 changes: 3 additions & 0 deletions
3
...st/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 01.fs.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
let private a{caret} = 0 |
3 changes: 3 additions & 0 deletions
3
...p/test/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 01.fsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
val internal a: int |
3 changes: 3 additions & 0 deletions
3
...t/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 01.fsi.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
val private a: int |
3 changes: 3 additions & 0 deletions
3
...rp/test/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 02.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
let internal a{caret} = 0 |
3 changes: 3 additions & 0 deletions
3
...st/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 02.fs.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
let internal a{caret} = 0 |
3 changes: 3 additions & 0 deletions
3
...p/test/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 02.fsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
val a: int |
3 changes: 3 additions & 0 deletions
3
...t/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 02.fsi.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
val internal a: int |
3 changes: 3 additions & 0 deletions
3
...rp/test/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 03.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
let inline private a{caret} b = () |
3 changes: 3 additions & 0 deletions
3
...st/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 03.fs.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
let inline private a{caret} b = () |
3 changes: 3 additions & 0 deletions
3
...p/test/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 03.fsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
val inline public a: b: 't -> unit |
3 changes: 3 additions & 0 deletions
3
...t/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 03.fsi.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
val inline private a: b: 't -> unit |
3 changes: 3 additions & 0 deletions
3
...rp/test/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 04.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
let mutable private a{caret} = 4 |
3 changes: 3 additions & 0 deletions
3
...st/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 04.fs.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
let mutable private a{caret} = 4 |
3 changes: 3 additions & 0 deletions
3
...p/test/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 04.fsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
val mutable public a: int |
3 changes: 3 additions & 0 deletions
3
...t/data/features/quickFixes/updateAccessibilityInSignatureBindingFix/Binding - 04.fsi.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module A | ||
|
||
val mutable private a: int |
4 changes: 4 additions & 0 deletions
4
...est/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/AutoProperty - 01.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module A | ||
|
||
type B() = | ||
member val private Foo{caret} = 1 with get,set |
4 changes: 4 additions & 0 deletions
4
...ata/features/quickFixes/updateAccessibilityInSignatureMemberFix/AutoProperty - 01.fs.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module A | ||
|
||
type B() = | ||
member val private Foo{caret} = 1 with get,set |
5 changes: 5 additions & 0 deletions
5
...st/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/AutoProperty - 01.fsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module A | ||
|
||
type B = | ||
new: unit -> B | ||
member Foo: int with get,set |
5 changes: 5 additions & 0 deletions
5
...ta/features/quickFixes/updateAccessibilityInSignatureMemberFix/AutoProperty - 01.fsi.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module A | ||
|
||
type B = | ||
new: unit -> B | ||
member private Foo: int with get,set |
4 changes: 4 additions & 0 deletions
4
...harp/test/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 01.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module A | ||
|
||
type B() = | ||
member private this.Foo{caret}() = 1 |
4 changes: 4 additions & 0 deletions
4
...test/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 01.fs.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module A | ||
|
||
type B() = | ||
member private this.Foo{caret}() = 1 |
5 changes: 5 additions & 0 deletions
5
...arp/test/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 01.fsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module A | ||
|
||
type B = | ||
new: unit -> B | ||
member internal Foo: unit -> int |
5 changes: 5 additions & 0 deletions
5
...est/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 01.fsi.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module A | ||
|
||
type B = | ||
new: unit -> B | ||
member private Foo: unit -> int |
4 changes: 4 additions & 0 deletions
4
...harp/test/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 02.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module A | ||
|
||
type B() = | ||
static member private Foo{caret}() = 1 |
4 changes: 4 additions & 0 deletions
4
...test/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 02.fs.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module A | ||
|
||
type B() = | ||
static member private Foo{caret}() = 1 |
5 changes: 5 additions & 0 deletions
5
...arp/test/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 02.fsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module A | ||
|
||
type B = | ||
new: unit -> B | ||
static member public Foo: unit -> int |
5 changes: 5 additions & 0 deletions
5
...est/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 02.fsi.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module A | ||
|
||
type B = | ||
new: unit -> B | ||
static member private Foo: unit -> int |
4 changes: 4 additions & 0 deletions
4
...harp/test/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 03.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module A | ||
|
||
type B() = | ||
static member inline private Foo{caret}() = 1 |
4 changes: 4 additions & 0 deletions
4
...test/data/features/quickFixes/updateAccessibilityInSignatureMemberFix/Member - 03.fs.gold
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module A | ||
|
||
type B() = | ||
static member inline private Foo{caret}() = 1 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
See https://github.com/dotnet/fsharp/blob/8eada0e8c6e28f077899b6757dba16f2dcfddbb8/src/Compiler/pars.fsy#L948