Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Cleanup
  • Loading branch information
auduchinok committed Nov 6, 2020
commit 0bad6622af2831311804d6734fb91d7b02d8dfbd
8 changes: 4 additions & 4 deletions tests/service/Symbols.fs
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,21 @@ extern int private c()
Some SynAccess.Public
Some SynAccess.Private ]
|> List.zip decls
|> List.iter (fun (actual, (expected)) ->
|> List.iter (fun (actual, expected) ->
match actual with
| SynModuleDecl.Let (_, [Binding (accessibility = access)], _) -> access |> should equal expected
| decl -> failwithf "unexpected decl: %O" decl)

[ "a", (true, false, false, false)
"b", (true, false, false, false)
"c", (false, false, false, true) ]
|> List.iter (fun (name, expectedAccess) ->
|> List.iter (fun (name, expected) ->
match findSymbolByName name checkResults with
| :? FSharpMemberOrFunctionOrValue as mfv ->
let access = mfv.Accessibility
(access.IsPublic, access.IsProtected, access.IsInternal, access.IsPrivate)
|> should equal expectedAccess
| _ -> failwith "Couldn't get f")
|> should equal expected
| _ -> failwithf "Couldn't get mfv: %s" name)


module XmlDocSig =
Expand Down