1
2
3
4
5
6
7 package importer
8
9 import (
10 "cmd/compile/internal/base"
11 "cmd/compile/internal/types2"
12 "go/token"
13 "internal/pkgbits"
14 )
15
16 func assert(p bool) {
17 base.Assert(p)
18 }
19
20 const deltaNewFile = -64
21
22
23 type fakeFileSet struct {
24 fset *token.FileSet
25 files map[string]*token.File
26 }
27
28 type anyType struct{}
29
30 func (t anyType) Underlying() types2.Type { return t }
31 func (t anyType) String() string { return "any" }
32
33
34 type derivedInfo struct {
35 idx pkgbits.Index
36 needed bool
37 }
38
39
40 type typeInfo struct {
41 idx pkgbits.Index
42 derived bool
43 }
44
View as plain text