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

Formater rewrite. #400

Open
wants to merge 77 commits into
base: main
Choose a base branch
from
Open

Formater rewrite. #400

wants to merge 77 commits into from

Conversation

Kuinox
Copy link
Member

@Kuinox Kuinox commented May 2, 2024

A rewrite of the formatter.
The purpose of this one is to handle any code.
It's functional but lack settings, and probably doesn't handle some edge cases.

I think we can ship this as-is and add what I mentioned later.

src/Draco.Compiler.Tests/Syntax/ParseTreeFormatterTests.cs Outdated Show resolved Hide resolved
src/Draco.Compiler.Tests/Syntax/ParseTreeFormatterTests.cs Outdated Show resolved Hide resolved
src/Draco.Compiler.Tests/Syntax/ParseTreeFormatterTests.cs Outdated Show resolved Hide resolved
src/Draco.Compiler.Tests/Syntax/ParseTreeFormatterTests.cs Outdated Show resolved Hide resolved
src/Draco.Compiler/Api/Syntax/ElseClauseSyntax.cs Outdated Show resolved Hide resolved
src/Draco.Formatter.CSharp.Tests/FormatterTest.cs Outdated Show resolved Hide resolved
src/Draco.Formatter.CSharp.Tests/FormatterTest.cs Outdated Show resolved Hide resolved
src/Draco.FormatterEngine/WhitespaceBehavior.cs Outdated Show resolved Hide resolved
src/Draco.FormatterEngine/TokenMetadata.cs Show resolved Hide resolved
src/Draco.FormatterEngine/TokenMetadata.cs Show resolved Hide resolved
src/Draco.FormatterEngine/TokenMetadata.cs Outdated Show resolved Hide resolved
src/Draco.FormatterEngine/TokenMetadata.cs Outdated Show resolved Hide resolved
src/Draco.FormatterEngine/Scope.cs Outdated Show resolved Hide resolved
src/Draco.FormatterEngine/Scope.cs Show resolved Hide resolved
src/Draco.FormatterEngine/FormatterEngine.cs Show resolved Hide resolved
src/Draco.FormatterEngine/FormatterEngine.cs Outdated Show resolved Hide resolved
src/Draco.FormatterEngine/FoldPriority.cs Show resolved Hide resolved
src/Draco.FormatterEngine/TokenMetadata.cs Show resolved Hide resolved
src/Draco.FormatterEngine/Scope.cs Outdated Show resolved Hide resolved
src/Draco.FormatterEngine/Box.cs Outdated Show resolved Hide resolved
src/Draco.Formatter.Csharp/CSharpFormatter.cs Outdated Show resolved Hide resolved
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.

Formatter should fold long expression chain.
2 participants