-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Plugin AST modification? #893
Comments
I think this is exactly what Myriad project is doing - AST->AST transformation, then use Fantomas to output source code. Also note that Fantomas and Myriad use AST, but example in link ( |
I think, in general, this might be more relevant for the FsAST project.
Fantomas uses everything that is part of the FSharp.Compiler.SyntaxTree module from the FCS.
That language suggestion where Don mentions Fantomas, is about AST -> string.
I'd prefer to keep Fantomas the |
How hard would it be for anyone to do a ReSharper for F# The interesting part is the AST optimization (some AST-optimizer sample here) but before that, we'd need a common (AST -> AST) transformation tool, and "AST back to code printer" tool (Fantomas). Then use F# Analyzers SDK for VS Code and fix a corresponding VS2017/2019 solution for the editor IDE suggestions. But turns out it cannot be done quickly, these existing projects don't yet play well together. |
I'm going to close this as we don't wish to pursue this with Fantomas. |
Would Fantomas to be open for AST-processing?
I'm kind of open to any solutions to Expression visitor in FSharp.Compiler.Service, but in similar issues Don has referred possible solution place to be first in Fantomas.
Is Fantomas OK to expose the types used for syntax trees?
For example SynExpr seems not to be internal.
Would it be enough to solve the issues?
The text was updated successfully, but these errors were encountered: