@@ -387,8 +387,8 @@ func TestDeclSelection_RemoveUnusedNestedTypesInFunction(t *testing.T) {
387387 sel .IsDead (`func:command-line-arguments.Foo<int>` )
388388
389389 sel .IsAlive (`typeVar:command-line-arguments.Bar` )
390- sel .IsAlive (`type:command-line-arguments.Bar<string;>` )
391- sel .IsDead (`type:command-line-arguments.Bar<int;>` )
390+ sel .IsAlive (`type:command-line-arguments.Bar<string;>@main.go:4:9 ` )
391+ sel .IsDead (`type:command-line-arguments.Bar<int;>@main.go:4:9 ` )
392392
393393 sel .IsDead (`funcVar:command-line-arguments.deadCode` )
394394 sel .IsDead (`func:command-line-arguments.deadCode` )
@@ -423,8 +423,8 @@ func TestDeclSelection_RemoveUnusedNestedTypesInMethod(t *testing.T) {
423423 sel .IsAlive (`func:command-line-arguments.(*Baz).Foo<string>` )
424424
425425 sel .IsAlive (`typeVar:command-line-arguments.Bar` )
426- sel .IsDead (`type:command-line-arguments.Bar<int;>` )
427- sel .IsAlive (`type:command-line-arguments.Bar<string;>` )
426+ sel .IsDead (`type:command-line-arguments.Bar<int;>@main.go:5:9 ` )
427+ sel .IsAlive (`type:command-line-arguments.Bar<string;>@main.go:5:9 ` )
428428
429429 sel .IsDead (`funcVar:command-line-arguments.deadCode` )
430430 sel .IsDead (`func:command-line-arguments.deadCode` )
@@ -445,15 +445,16 @@ func TestDeclSelection_RemoveAllUnusedNestedTypes(t *testing.T) {
445445
446446 srcFiles := []srctesting.Source {{Name : `main.go` , Contents : []byte (src )}}
447447 sel := declSelection (t , srcFiles , nil )
448+ sel .PrintDeclStatus ()
448449 sel .IsAlive (`func:command-line-arguments.main` )
449450
450451 sel .IsDead (`funcVar:command-line-arguments.Foo` )
451452 sel .IsDead (`func:command-line-arguments.Foo<string>` )
452453 sel .IsDead (`func:command-line-arguments.Foo<int>` )
453454
454455 sel .IsDead (`typeVar:command-line-arguments.Bar` )
455- sel .IsDead (`type:command-line-arguments.Bar<string;>` )
456- sel .IsDead (`type:command-line-arguments.Bar<int;>` )
456+ sel .IsDead (`type:command-line-arguments.Bar<string;>@main.go:4:9 ` )
457+ sel .IsDead (`type:command-line-arguments.Bar<int;>@main.go:4:9 ` )
457458
458459 sel .IsDead (`funcVar:command-line-arguments.deadCode` )
459460 sel .IsDead (`func:command-line-arguments.deadCode` )
@@ -473,14 +474,15 @@ func TestDeclSelection_CompletelyRemoveNestedType(t *testing.T) {
473474
474475 srcFiles := []srctesting.Source {{Name : `main.go` , Contents : []byte (src )}}
475476 sel := declSelection (t , srcFiles , nil )
477+ sel .PrintDeclStatus ()
476478
477479 sel .IsAlive (`func:command-line-arguments.main` )
478480
479481 sel .IsDead (`funcVar:command-line-arguments.Foo` )
480482 sel .IsDead (`func:command-line-arguments.Foo<int>` )
481483
482484 sel .IsDead (`typeVar:command-line-arguments.Bar` )
483- sel .IsDead (`type:command-line-arguments.Bar<int;>` )
485+ sel .IsDead (`type:command-line-arguments.Bar<int;>@main.go:4:9 ` )
484486
485487 sel .IsDead (`funcVar:command-line-arguments.deadCode` )
486488 sel .IsDead (`func:command-line-arguments.deadCode` )
@@ -719,30 +721,30 @@ func TestDeclNaming_InitsAndVars(t *testing.T) {
719721 checkForDeclFullNames (t , archives ,
720722 // tully
721723 `var:github.com/gopherjs/gopherjs/compiler/tully.keymaster` ,
722- `funcVar:github.com/gopherjs/gopherjs/compiler/tully.init` ,
723- `funcVar:github.com/gopherjs/gopherjs/compiler/tully.init` ,
724- `func:github.com/gopherjs/gopherjs/compiler/tully.init` ,
725- `func:github.com/gopherjs/gopherjs/compiler/tully.init` ,
724+ `funcVar:github.com/gopherjs/gopherjs/compiler/tully.init@b.go:3:8 ` ,
725+ `funcVar:github.com/gopherjs/gopherjs/compiler/tully.init@a.go:2:8 ` ,
726+ `func:github.com/gopherjs/gopherjs/compiler/tully.init@b.go:3:8 ` ,
727+ `func:github.com/gopherjs/gopherjs/compiler/tully.init@a.go:2:8 ` ,
726728
727729 // spangler
728730 `var:github.com/gopherjs/gopherjs/compiler/spengler.egie` ,
729- `funcVar:github.com/gopherjs/gopherjs/compiler/spengler.init` ,
730- `funcVar:github.com/gopherjs/gopherjs/compiler/spengler.init` ,
731- `func:github.com/gopherjs/gopherjs/compiler/spengler.init` ,
732- `func:github.com/gopherjs/gopherjs/compiler/spengler.init` ,
731+ `funcVar:github.com/gopherjs/gopherjs/compiler/spengler.init@a.go:2:8 ` ,
732+ `funcVar:github.com/gopherjs/gopherjs/compiler/spengler.init@a.go:4:8 ` ,
733+ `func:github.com/gopherjs/gopherjs/compiler/spengler.init@a.go:2:8 ` ,
734+ `func:github.com/gopherjs/gopherjs/compiler/spengler.init@a.go:4:8 ` ,
733735
734736 // barrett
735- `funcVar:github.com/gopherjs/gopherjs/compiler/barrett.init` ,
736- `funcVar:github.com/gopherjs/gopherjs/compiler/barrett.init` ,
737- `funcVar:github.com/gopherjs/gopherjs/compiler/barrett.init` ,
738- `func:github.com/gopherjs/gopherjs/compiler/barrett.init` ,
739- `func:github.com/gopherjs/gopherjs/compiler/barrett.init` ,
740- `func:github.com/gopherjs/gopherjs/compiler/barrett.init` ,
737+ `funcVar:github.com/gopherjs/gopherjs/compiler/barrett.init@c.go:2:8 ` ,
738+ `funcVar:github.com/gopherjs/gopherjs/compiler/barrett.init@b.go:2:8 ` ,
739+ `funcVar:github.com/gopherjs/gopherjs/compiler/barrett.init@a.go:2:8 ` ,
740+ `func:github.com/gopherjs/gopherjs/compiler/barrett.init@c.go:2:8 ` ,
741+ `func:github.com/gopherjs/gopherjs/compiler/barrett.init@b.go:2:8 ` ,
742+ `func:github.com/gopherjs/gopherjs/compiler/barrett.init@a.go:2:8 ` ,
741743
742744 // main
743745 `var:command-line-arguments.peck` ,
744- `funcVar:command-line-arguments.init` ,
745- `func:command-line-arguments.init` ,
746+ `funcVar:command-line-arguments.init@main.go:11:8 ` ,
747+ `func:command-line-arguments.init@main.go:11:8 ` ,
746748 `funcVar:command-line-arguments.main` ,
747749 `func:command-line-arguments.main` ,
748750 `init:main` ,
@@ -774,7 +776,7 @@ func TestDeclNaming_VarsAndTypes(t *testing.T) {
774776 archives := compileProject (t , root , false )
775777 checkForDeclFullNames (t , archives ,
776778 `var:command-line-arguments.shawn` ,
777- `var:blank` ,
779+ `var:blank@main.go:8:7 ` ,
778780
779781 `var:command-line-arguments.fezzik` ,
780782 `anonType:command-line-arguments.structType` ,
0 commit comments