• Robert Griesemer's avatar
    go/printer: leave indentation alone when printing nodes from different files · de58eb90
    Robert Griesemer authored
    ASTs may be created by various tools and built from nodes of
    different files. An incorrectly constructed AST will likely
    not print at all, but a (structurally) correct AST with bad
    position information should still print structurally correct.
    
    One heuristic used was to reset indentation when the filename
    in the position information of nodes changed. However, this
    can lead to wrong indentation for structurally correct ASTs.
    
    Fix: Don't change the indentation in this case.
    
    Related to issue 4300.
    
    R=r
    CC=golang-dev
    https://golang.org/cl/6849066
    de58eb90
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...