Skip to content

[WIP] F# signature gen for members, attributes, records, DUs, and Enums #332

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 61 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
bd69bca
Prepend attributes and list members after interface impls
cartermp Aug 21, 2018
a8a04f2
More member/attribute work and some test updates
cartermp Aug 21, 2018
6b62d2e
Change sigs mroe and update more tests
cartermp Aug 21, 2018
2ddfdb3
More fixes and test updates
cartermp Aug 21, 2018
918b65e
Update tests and adjust parameter names
cartermp Aug 21, 2018
bc3bace
Test updates
cartermp Aug 21, 2018
3024cc1
Fix tests and interface end
cartermp Aug 21, 2018
a4936ea
More test updates and don't generate overrides for structs
cartermp Aug 21, 2018
419470e
Ignore method names v1
cartermp Aug 21, 2018
5a8f348
Order properly and fix tests later
cartermp Aug 22, 2018
ce8d121
Order by name instead of full name
cartermp Aug 22, 2018
c25bb80
Adjust tests
cartermp Aug 22, 2018
d103ab0
Don't append members if they are empty I guess
cartermp Aug 22, 2018
d50de16
Don't write an empty method or prop decl
cartermp Aug 22, 2018
22e6ec6
Add ToString to ignored list
cartermp Aug 22, 2018
f6d492f
Fix
cartermp Aug 22, 2018
d0c0a10
Ignore the tuple test
cartermp Aug 22, 2018
cdbea0f
Don't return null on no parameters for constructor decl
cartermp Aug 22, 2018
83b45ad
Update constraints tests
cartermp Aug 22, 2018
19f13df
Update constraints tests (despite not being ideal, but we need to jus…
cartermp Aug 22, 2018
3949168
First go at generating records
cartermp Aug 22, 2018
40456e6
Refactor out of meglamethod and fix test
cartermp Aug 22, 2018
dfb7242
Fix up tests for records
cartermp Aug 22, 2018
f27e8b9
PropertyType, not declaringtype
cartermp Aug 22, 2018
0095805
malcom in the middle
cartermp Aug 22, 2018
499cdb6
last in line
cartermp Aug 22, 2018
00325af
Add members for records and a test
cartermp Aug 22, 2018
5b39642
Don't generate constructors from Records
cartermp Aug 22, 2018
fcf738a
fully qualify, let's try that!
cartermp Aug 22, 2018
187f949
thisthisthisthisthis
cartermp Aug 22, 2018
7a4fee4
Update property generation
cartermp Aug 22, 2018
18e361e
Better prop gen
cartermp Aug 23, 2018
c8ee78d
Test what might be improper record gen
cartermp Aug 23, 2018
1dc3997
Update prop gen more
cartermp Aug 23, 2018
aaf7295
Get rid of tests that weren't testing how records are formatted
cartermp Aug 23, 2018
a7b86af
Fix go at DU and enum gen
cartermp Aug 23, 2018
b173401
Don't seal enums and adjust DU
cartermp Aug 23, 2018
d380fc3
Let's try this trick
cartermp Aug 23, 2018
672ba49
whoops
cartermp Aug 23, 2018
f6ac629
uhh
cartermp Aug 23, 2018
935ec42
Chop off compiler-generated underscore in record label argument names
cartermp Aug 23, 2018
28a1b6c
do it right I guess
cartermp Aug 23, 2018
36f4551
derp
cartermp Aug 23, 2018
621ed2f
Filter out compiler generated members
cartermp Aug 23, 2018
6b5fe9d
doot
cartermp Aug 23, 2018
97426ab
nope
cartermp Aug 23, 2018
8759d29
nope2
cartermp Aug 23, 2018
b768a20
Account for all the ways itemX is used to represent unnamed args to D…
cartermp Aug 23, 2018
a46e59b
let's try filtering based on ignored members
cartermp Aug 23, 2018
7e1777f
whoopsie
cartermp Aug 24, 2018
223616d
opposite day
cartermp Aug 24, 2018
a65966d
Ignored compiler generated interfaces
cartermp Aug 24, 2018
8a1b01a
Ignored compiler generated interfaces
cartermp Aug 24, 2018
0cb6da1
Ignore union cases for methods
cartermp Aug 24, 2018
c1437f1
Ignore union cases for properties
cartermp Aug 24, 2018
9a90b02
Don't add member representation of labels to the signature for record…
cartermp Oct 8, 2018
7ce0941
Merge remote-tracking branch 'origin/master' into fs-add-members-attrs
joelmartinez Jul 17, 2019
eddc3e1
bump version of mono.cecil
joelmartinez Jul 17, 2019
bc6ed42
makefile changes to easier support WSL.
joelmartinez Jul 17, 2019
7e855b5
updated makefile's patch test to avoid line ending issues
joelmartinez Jul 17, 2019
ce718bf
Updating baseline xml tests: F# interfaces
joelmartinez Jul 17, 2019
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This repository uses submodules, so firstly, you have several options:
On windows, you can build and compile [`apidoctools.sln`](apidoctools.sln). And you can run unit tests if you have NUnit installed. If you use [Visual Studio for Mac](https://www.visualstudio.com/vs/visual-studio-mac/), you can use its built-in support for NUnit tests to also run tests.

### CLI
If you've got `make` and `mono` installed, you can run `make prepare all check` in a _bash_ prompt to do a release build and run the full test suite (which for mdoc includes more than just the nunit tests). The available targets are:
If you've got the following packages installed: `make`, `mono`, `nuget`, `fsharp`, and `mono-vbnc`; you can run `make prepare all check` in a _bash_ prompt to do a release build and run the full test suite (which for mdoc includes more than just the nunit tests). The available targets are:

- `prepare`: initializes the submodules, and restores the nuget dependency of NUnit
- `all`: compiles everything
Expand Down
6 changes: 3 additions & 3 deletions mdoc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ EXTRA_DISTFILES = \
MULTI-CLASSIC = Test/DocTest-DropNS-classic.dll Test/DocTest-DropNS-classic-multitest.dll
MULTI-UNIFIED = Test/DocTest-DropNS-unified.dll Test/DocTest-DropNS-unified-multitest.dll

DIFF = diff -rup
DIFF_QUIET = diff --brief
DIFF = diff -rup --strip-trailing-cr
DIFF_QUIET = diff --brief --strip-trailing-cr
ifeq ($(PLATFORM), win32)
DIFF = diff -rupZ
DIFF_QUIET = diff --brief -Z
Expand Down Expand Up @@ -124,7 +124,7 @@ Test/DocTest.dll-v1:
Test/DocTest.dll-v2:
-rm -f Test/DocTest.cs
cp Test/DocTest-v1.cs Test/DocTest.cs
cd Test && patch -p0 < DocTest-v2.patch
cd Test && patch -p0 --ignore-whitespace --binary < DocTest-v2.patch
-rm -f Test/DocTest.dll
$(MAKE) Test/DocTest.dll

Expand Down
Loading