]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/syntax: implement //line :line:col handling
authorRobert Griesemer <gri@golang.org>
Thu, 22 Feb 2018 23:50:14 +0000 (15:50 -0800)
committerRobert Griesemer <gri@golang.org>
Mon, 26 Feb 2018 18:27:44 +0000 (18:27 +0000)
commit6fa6bde92408a526021d690003f19368f5d57b20
treeecf68ddadbd04fdd599d5a31122c0601b5ff544d
parent5c08b9e8bd5367a4e2942b6ab3b939b2349cc570
cmd/compile/internal/syntax: implement //line :line:col handling

For line directives which have a line and a column number,
an omitted filename means that the filename has not changed
(per the issue below).

For line directives w/o a column number, an omitted filename
means the empty filename (to preserve the existing behavior).

For #22662.

Change-Id: I32cd9037550485da5445a34bb104706eccce1df1
Reviewed-on: https://go-review.googlesource.com/96476
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/syntax/parser.go
src/cmd/compile/internal/syntax/parser_test.go