google / google/google-java-format

Pass AST directly

Đang mở
#539 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
6.2k
Fork
937
Merge trung bình
6 phút
Pull request đã merge (30 ngày)
3

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.