Skip to content
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

extern expression should respect page width #735

Closed
nojaf opened this issue Mar 27, 2020 · 1 comment
Closed

extern expression should respect page width #735

nojaf opened this issue Mar 27, 2020 · 1 comment

Comments

@nojaf
Copy link
Contributor

nojaf commented Mar 27, 2020

Issue created from fantomas-ui

If the expression doesn't fit on a single line, we should separate the parameters with newlines.

Code

[<DllImport("oleacc.dll")>]
extern int AccessibleChildren(
    IAccessible paccContainer, 
    int iChildStart, 
    int cChildren, 
    [<Out()>] [<MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 4s)>] System.Object [] rgvarChildren,
    int* pcObtained)

Result

[<DllImport("oleacc.dll")>]
extern int AccessibleChildren(IAccessible paccContainer, int iChildStart, int cChildren, [<Out; MarshalAs(UnmanagedType.LPArray,
                                                                                                          SizeParamIndex =
                                                                                                              4s)>] System.Object [] rgvarChildren, int* pcObtained)

Options

Fantomas Next - 3.3.0-3/26/2020

Name Value
IndentOnTryWith false
IndentSpaceNum 4
KeepNewlineAfter false
MaxIfThenElseShortWidth 40
PageWidth 120
ReorderOpenDeclaration false
SemicolonAtEndOfLine false
SpaceAfterComma true
SpaceAfterSemicolon true
SpaceAroundDelimiter true
SpaceBeforeClassConstructor false
SpaceBeforeColon false
SpaceBeforeLowercaseInvocation true
SpaceBeforeMember false
SpaceBeforeParameter true
SpaceBeforeSemicolon false
SpaceBeforeUppercaseInvocation false
StrictMode false
@nojaf
Copy link
Contributor Author

nojaf commented Dec 5, 2022

This is available in the 5.1 series.

@nojaf nojaf closed this as completed Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant