Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ let private getIdentifiers (args:AstNodeRuleParams) =
| AstNode.Binding(SynBinding(access, _, _, _, attributes, _, valData, pattern, _, _, _, _, _)) ->
if not (isLiteral attributes) then
match identifierTypeFromValData valData with
| Value | Function ->
| Function ->
let accessControlLevel = getAccessControlLevel args.SyntaxArray args.NodeIndex
getPatternIdents accessControlLevel (getValueOrFunctionIdents args.CheckInfo) true pattern
| Member | Property ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ let result = extractInt singleCaseDU
let source = """
module Program

let __foo_bar = 0
let baz __foo_bar = 0
"""

let expected = """
module Program

let __foobar = 0
let baz __foobar = 0
"""

this.Parse source
Expand Down Expand Up @@ -114,3 +114,14 @@ let foo ((x, y) as bar_coord) = bar_coord
"""

Assert.IsTrue this.ErrorsExist

[<Test>]
member this.``Module members should not cause errors as they are not parameters``() =
this.Parse """
module BitLaunch =
module Regions =
let Bucharest = "Bucharest"
let Amsterdam someArg = "Amsterdam"
"""

Assert.IsFalse this.ErrorsExist
Loading