aboutsummaryrefslogtreecommitdiff
path: root/src/database/sql
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2018-02-20 20:14:51 -0800
committerRobert Griesemer <gri@golang.org>2018-02-21 21:06:36 +0000
commite2a86b6bd9d0b0a2be2d6de7259f50eae73ff7e0 (patch)
treee74012f7b49b947196dc0cfcabbddf3b219700a6 /src/database/sql
parente02d6bb621a6c452cbef37946467f94a0054f2b1 (diff)
downloadgo-e2a86b6bd9d0b0a2be2d6de7259f50eae73ff7e0.tar.xz
cmd/compile/internal/syntax: simpler position base update for line directives (cleanup)
The existing code was somewhat convoluted and made several assumptions about the encoding of position bases: 1) The position's base for a file contained a position whose base pointed to itself (which is true but an implementation detail of src.Pos). 2) Updating the position base for a line directive required finding the base of the most recent's base position. This change simply stores the file's position base and keeps using it directly for each line directive (instead of getting it from the most recently updated base). Change-Id: I4d80da513bededb636eab0ce53257fda73f0dbc0 Reviewed-on: https://go-review.googlesource.com/95736 Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/database/sql')
0 files changed, 0 insertions, 0 deletions