Skip to content

v5.2.0-alpha-003

Pre-release
Pre-release
Compare
Choose a tag to compare
@nojaf nojaf released this 06 Dec 00:57
· 340 commits to v5.2 since this release

5.2.0-alpha-003

Hi all,

In recent weeks we have finished the development of what we call "Project Dallas".
Project Dallas is a significant internal refactor aimed to make the code flow easier for newcomers.
The significant change is that we have constructed our own custom syntax tree (called an Oak for now).
We can insert trivia into this new tree, allowing us to be way more flexible when printing the code.
You can read the contributor's documentation in the v5.2 branch.

We have ported a larger portion of the codebase and thus it was inevitable to stay fully compatible.
Overall almost nothing was deliberately changed. With the exception of some minor things here and there due to the code restructuring.
Some changes to be expected are:

  • Update records ({ x with ... }) should respect the max record width setting.
  • Implicit constructors of type definitions were slightly altered when they are multiline.
  • Infix operators and/or chained expressions.

Please try this version out on your code base! Now is the time to report any regressions that may have slipped in.
If you wait until we call it stable, we'll be looking forward to your pull requests 😏.
So please, try this out and talk to us if you see anything that is out of the ordinary.
Hit us on our Discord server or open an issue here on GitHub.

Many thanks in advance,

The Fantomas team

Fixed

  • Attribute on ExplicitCtor is lost. #2638
  • Comment above single parameter in brackets breaks code due to the wrong indentation. #2594

Special thanks to @dawedawe!

https://www.nuget.org/packages/fantomas/5.2.0-alpha-003