]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: a rule's line number is at its ->
authorKeith Randall <khr@golang.org>
Tue, 26 Apr 2016 21:09:58 +0000 (14:09 -0700)
committerKeith Randall <khr@golang.org>
Tue, 26 Apr 2016 23:09:00 +0000 (23:09 +0000)
commit3b0efa689ec7a32de30cbda2221452f57abb2532
tree234723eb2854569a7b1197b780de46b045d4af83
parent8d075beeef137455b9dc40f1c724b495f3ceda26
cmd/compile: a rule's line number is at its ->

Let's define the line number of a multiline rule as the line
number on which the -> appears.  This helps make the rule
cover analysis look a bit nicer.

Change-Id: I4ac4c09f2240285976590ecfd416bc4c05e78946
Reviewed-on: https://go-review.googlesource.com/22473
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/ssa/gen/rulegen.go