-
Notifications
You must be signed in to change notification settings - Fork 14
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
Generate custom attributes of enum fields. #28
Generate custom attributes of enum fields. #28
Conversation
Avoid linebreak between "|" and attributes. Add linebreak and two spaces after attributes to keep indentation.
Had to reference in fsproj directly because Paket wouldn't copy the dll to the bin folder.
@moinessim While I doubt this package has many Mono users, I'd prefer to not break it if possible. Would you be able to investigate why the build is failing on the Linux test environment? It does seem to work on OS X, so it might just be an issue with the Mono or F# version used by that version of Ubuntu. I'm happy to merge this, but if you're not using this package for CodeDom interop or legacy reasons, FCS is a better choice for F# users. |
Hi @drvink. Thanks for taking a look at this. |
@@ -1175,7 +1183,7 @@ let getMethodOverloads (membs:CodeTypeMemberCollection) = | |||
/// fields | |||
let generateField (c:CodeMemberField) = | |||
id | |||
+> generateCustomAttrDecls c.CustomAttributes "" | |||
+> generateCustomAttrDeclsForEnumField c.CustomAttributes "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, this should not change. Confused generateField
with generateEnumField
@moinessim Sorry for dragging my feet on this--were you able to figure out the FAKE issue? |
Hi @drvink , |
Avoid linebreak between "|" and attributes.
Add linebreak and two spaces after attributes to keep indentation.