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

Support AppLongIdentAndSingleParenArg #73

Merged
merged 1 commit into from Mar 19, 2024

Conversation

edgarfgp
Copy link
Owner

@edgarfgp edgarfgp commented Mar 18, 2024

Based on the Oak AST generated this we can add support for this

    [<Fact>]
    let ``Produces let binding with AppLongIdentAndSingleParenArg expression``() =
        Oak() {
            AnonymousModule() {
                Value("res", AppLongIdentAndSingleParenArg([ "conn"; "Open" ], ConstantExpr(ConstantUnit())))
                Value("res2", AppLongIdentAndSingleParenArg([ "conn"; "Open" ], "()"))
                Value("res3", AppLongIdentAndSingleParenArg("conn.Open", "()"))
            }
        }
        |> produces
            """

let res = conn.Open()
let res2 = conn.Open ()
let res3 = conn.Open ()

"""

@edgarfgp
Copy link
Owner Author

cc @lamg

@edgarfgp edgarfgp merged commit ea67d0b into main Mar 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant