• Rob Pike's avatar
    text/template: add back pointer to Nodes for better error generation · 1ad1c0bf
    Rob Pike authored
    ErrorContext now has all the information it needs from the Node,
    rather than depending on the template that contains it. This makes
    it easier for html/template to generate correct locations in its
    error messages.
    
    Updated html/template to use this ability where it is easy, which is
    not everywhere, but more work can probably push it through.
    
    Fixes #8577.
    
    LGTM=adg
    R=golang-codereviews, adg
    CC=golang-codereviews
    https://golang.org/cl/130620043
    1ad1c0bf
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
liblink Loading commit data...
pkg Loading commit data...
Make.dist Loading commit data...
all.bash Loading commit data...
all.bat Loading commit data...
all.rc Loading commit data...
androidtest.bash Loading commit data...
clean.bash Loading commit data...
clean.bat Loading commit data...
clean.rc Loading commit data...
make.bash Loading commit data...
make.bat Loading commit data...
make.rc Loading commit data...
nacltest.bash Loading commit data...
race.bash Loading commit data...
race.bat Loading commit data...
run.bash Loading commit data...
run.bat Loading commit data...
run.rc Loading commit data...
sudo.bash Loading commit data...