]> Cypherpunks.ru repositories - gostls13.git/blobdiff - src/cmd/compile/internal/types2/check_test.go
go/types, types2: add FileVersions map to test Info
[gostls13.git] / src / cmd / compile / internal / types2 / check_test.go
index f5c41033596d32ea377c65925a7b864404b24715..a9d6202a336c5aaaf49896546d3cae6c370e53ff 100644 (file)
@@ -197,13 +197,14 @@ func testFilesImpl(t *testing.T, filenames []string, srcs [][]byte, colDelta uin
 
        // Provide Config.Info with all maps so that info recording is tested.
        info := Info{
-               Types:      make(map[syntax.Expr]TypeAndValue),
-               Instances:  make(map[*syntax.Name]Instance),
-               Defs:       make(map[*syntax.Name]Object),
-               Uses:       make(map[*syntax.Name]Object),
-               Implicits:  make(map[syntax.Node]Object),
-               Selections: make(map[*syntax.SelectorExpr]*Selection),
-               Scopes:     make(map[syntax.Node]*Scope),
+               Types:        make(map[syntax.Expr]TypeAndValue),
+               Instances:    make(map[*syntax.Name]Instance),
+               Defs:         make(map[*syntax.Name]Object),
+               Uses:         make(map[*syntax.Name]Object),
+               Implicits:    make(map[syntax.Node]Object),
+               Selections:   make(map[*syntax.SelectorExpr]*Selection),
+               Scopes:       make(map[syntax.Node]*Scope),
+               FileVersions: make(map[*syntax.PosBase]string),
        }
 
        // typecheck