snowe
06/17/2024, 8:50 PMblah(
name = a.b.c.d.e.f.g.h
)
is going to break at any point? It seems that this is partially handled by breaking the expression into parts and then grouping, but I don’t understand the grouping. Also the doc comments are quite confusing in places. or here where I’m confused as to what the groupings actually accomplish. Why is a paired with b, but c is paired with d, with no group between b and c?Nivaldo H Bondança
06/20/2024, 3:22 PMsnowe
06/21/2024, 6:54 PMNivaldo H Bondança
06/24/2024, 5:10 PMsnowe
06/24/2024, 5:11 PMNivaldo H Bondança
06/24/2024, 5:20 PMDavid Torosyan
06/24/2024, 9:58 PMDavid Torosyan
06/24/2024, 10:01 PMBlankLineWanted, genSym(), and breakOpI'd recommend going directly to google-java-format. Those are all their concepts, all we do is create a tree with those tokens and let them format from there. (except for
genSym
, but that's just a simple helper)David Torosyan
06/24/2024, 10:03 PMHow do I tell if an expression like is going to break at any point?In general that kind be hard to tell. Whether or not a line breaks depends both on the groupings, but also the allowed line length. GJF is probably your best bet to understand the motiviations. That said, what in particular are you trying to accomplish / understand? I might be able to answer something more targeted.
snowe
08/05/2024, 10:10 PM