Skip to content

Commit 96316b2

Browse files
committed
IndexerAccessorStyleConsistency: fix build
After rebasing PR557, these tweaks had to be applied for it to build again, likely because of the recent updates to new versions of FCS dependency.
1 parent 0751c61 commit 96316b2

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/FSharpLint.Core/Rules/Conventions/IndexerAccessorStyleConsistency.fs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,10 @@ let runner (config: Config) (args: AstNodeRuleParams) =
2525
match args.AstNode with
2626
| AstNode.Binding binding ->
2727
match binding with
28-
| SynBinding (_, _, _, _, _, _, _, SynPat.Named _, _
29-
, SynExpr.App (ExprAtomicFlag.Atomic, _, SynExpr.Ident _, SynExpr.ArrayOrListOfSeqExpr (_, expr, range), _), _, _) ->
28+
| SynBinding (_, _, _, _, _, _, _, SynPat.Named _, _,
29+
SynExpr.App (ExprAtomicFlag.Atomic, _, SynExpr.Ident _, SynExpr.ArrayOrListComputed (_, expr, range), _),
30+
_, _, _)
31+
->
3032
generateOutput range
3133
| _ ->
3234
Array.empty
@@ -37,7 +39,7 @@ let runner (config: Config) (args: AstNodeRuleParams) =
3739
| AstNode.Binding binding ->
3840
match binding with
3941
| SynBinding (_, _, _, _, _, _, _, SynPat.Named _, _
40-
, SynExpr.DotIndexedGet (_, _, _, range), _, _) ->
42+
, SynExpr.DotIndexedGet (_, _, _, range), _, _, _) ->
4143
generateOutput range
4244
| _ ->
4345
Array.empty

tests/FSharpLint.Core.Tests/Rules/Conventions/IndexerAccessorStyleConsistency.fs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
module FSharpLint.Core.Tests.Rules.Conventions.IndexerAccessorStyleConsistency
22

33
open NUnit.Framework
4-
open FSharpLint.Framework.Rules
5-
open FSharpLint.Rules.IndexerAccessorStyleConsistency
64
open FSharpLint.Rules
5+
open FSharpLint.Core.Tests
76

87
[<TestFixture>]
98
type TestConventionsIndexerAccessorStyleConsistencyCSharp() =

0 commit comments

Comments
 (0)