mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.inline] cmd/compile: rename various fields from Lineno to Pos
Various minor adjustments. Change-Id: Iedfb97989f7bedaa3e9e8993b167e05f162434a7 Reviewed-on: https://go-review.googlesource.com/34136 Reviewed-by: David Lazar <lazard@golang.org>
This commit is contained in:
parent
82d0caea2c
commit
eab3707d6d
28 changed files with 155 additions and 155 deletions
|
|
@ -120,7 +120,7 @@ func dowidth(t *Type) {
|
|||
if t.Width == -2 {
|
||||
if !t.Broke {
|
||||
t.Broke = true
|
||||
yyerrorl(t.Lineno, "invalid recursive type %v", t)
|
||||
yyerrorl(t.Pos, "invalid recursive type %v", t)
|
||||
}
|
||||
|
||||
t.Width = 0
|
||||
|
|
@ -137,7 +137,7 @@ func dowidth(t *Type) {
|
|||
defercalc++
|
||||
|
||||
lno := lineno
|
||||
lineno = t.Lineno
|
||||
lineno = t.Pos
|
||||
t.Width = -2
|
||||
t.Align = 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue