Descriptiongn format: fix comments at end of blocks
Fixes comments at the end of a block like:
stuff() {
sources = []
# wee
}
This is done by storing an EndNode (instead of just a Token) as the
end of Block and List nodes. This means there's a node in the tree
traversal for the trailing ], and gives a place to attach the comment.
Also collapses some of the expression output code to reuse Sequence.
R=brettw@chromium.org
BUG=348474
Committed: https://crrev.com/f7e13e52cddeda696e71c0ab4c08876ddeef4330
Cr-Commit-Position: refs/heads/master@{#297226}
Patch Set 1 #Patch Set 2 : fix rebase #Patch Set 3 : another test #Patch Set 4 : clang warning #
Total comments: 4
Patch Set 5 : review #
Messages
Total messages: 9 (2 generated)
|