improve readability of --help ast (#3460)
This commit is contained in:
parent
a0d4b648bb
commit
b18f717b46
|
|
@ -46,7 +46,9 @@ function describe_ast() {
|
||||||
if (ctor.SUBCLASSES.length > 0) {
|
if (ctor.SUBCLASSES.length > 0) {
|
||||||
out.space();
|
out.space();
|
||||||
out.with_block(function() {
|
out.with_block(function() {
|
||||||
ctor.SUBCLASSES.forEach(function(ctor, i) {
|
ctor.SUBCLASSES.sort(function(a, b) {
|
||||||
|
return a.TYPE < b.TYPE ? -1 : 1;
|
||||||
|
}).forEach(function(ctor, i) {
|
||||||
out.indent();
|
out.indent();
|
||||||
doitem(ctor);
|
doitem(ctor);
|
||||||
out.newline();
|
out.newline();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user