google / google/google-java-format

Pass AST directly

Ouverte
#539 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
6.2k
Forks
937
Merge moyen
6 min
PR mergées (30 j)
3

Description

I am implementing a tool that generates Java source code. It uses GJF to make the output more readable.

At the moment, source code is generated as text and written to memory, then it is parsed and formatted by GJF.

I was wondering whether you would support an API where a `JCCompilationUnit` or `JCTree` could be passed to GJF directly? That way, my tool could just generate a tree. There would be less overhead since writing and parsing could be skipped altogether.

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.