Skip to content

Commit

Permalink
Conventions/Naming: minor refactoring
Browse files Browse the repository at this point in the history
Changed names of some local vars and parameters in
NestedFunctionNames.fs and UnestedFunctionNames.fs.
  • Loading branch information
webwarrior-ws committed Dec 19, 2023
1 parent f1c8220 commit 510a432
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ let private getIdentifiers (args: AstNodeRuleParams) =
match args.AstNode with
| AstNode.Binding (SynBinding (_, _, _, _, _attributes, _, _, pattern, _, _, _, _)) ->
if isNested args args.NodeIndex then
let allEncompassingAccessibility = AccessControlLevel.Public
getPatternIdents allEncompassingAccessibility (fun _accessibility pat -> getFunctionIdents pat) true pattern
let maxAccessibility = AccessControlLevel.Public
getPatternIdents maxAccessibility (fun _a11y innerPattern -> getFunctionIdents innerPattern) true pattern
else
Array.empty
| _ -> Array.empty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ let private getIdentifiers (args: AstNodeRuleParams) =
if isNested args args.NodeIndex then
Array.empty
else
let allEncompassingAccessibility = AccessControlLevel.Public
getPatternIdents allEncompassingAccessibility (fun _accessibility pat -> getFunctionIdents pat) true pattern
let maxAccessibility = AccessControlLevel.Public
getPatternIdents maxAccessibility (fun _a11y innerPattern -> getFunctionIdents innerPattern) true pattern
| _ -> Array.empty

let rule config =
Expand Down

0 comments on commit 510a432

Please sign in to comment.