Skip to content

Commit

Permalink
Filter out private constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
soloman817 committed Nov 7, 2013
1 parent 6d9c00c commit 05182d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
src/FSharp.PowerPack.Metadata/FSharp.PowerPack.Metadata.xml
src/FsLex/fslexpars.fsi

## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

Expand Down
3 changes: 2 additions & 1 deletion src/FSharp.PowerPack.Metadata/Metadata.fs
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,8 @@ and [<Sealed>] FSharpEntity(entity:SimulatedEntityRef) =
checkIsFSharp();
((entity.MembersOfFSharpTyconSorted
|> List.filter (fun v -> not v.IsOverrideOrExplicitImpl &&
not v.Deref.IsClassConstructor)
not v.Deref.IsClassConstructor &&
isPublic v.Accessibility)

This comment has been minimized.

Copy link
@soloman817

soloman817 Nov 8, 2013

Author Owner

Filter out private constructors.

|> List.map (fun v -> FSharpMemberOrVal(this, v.Deref)))
@
(entity.ModuleOrNamespaceType.AllValsAndMembers
Expand Down

0 comments on commit 05182d5

Please sign in to comment.