• Home
  • Raw
  • Download

Lines Matching refs:importPath

118 	return c.file.importPath
275 importPath GoImportPath // Import path of this file's package. member
525 importPath := obj.GoImportPath()
526 if importPath == g.outputImportPath {
529 return string(g.GoPackageName(importPath)) + "."
533 func (g *Generator) GoPackageName(importPath GoImportPath) GoPackageName {
534 if name, ok := g.packageNames[importPath]; ok {
537 name := cleanPackageName(baseName(string(importPath)))
541 g.packageNames[importPath] = name
548 func (g *Generator) AddImport(importPath GoImportPath) GoPackageName {
549 g.addedImports[importPath] = true
550 return g.GoPackageName(importPath)
667 g.outputImportPath = g.genFiles[0].importPath
672 defaultPackageNames[f.importPath] = p
679 } else if p, ok := defaultPackageNames[f.importPath]; ok {
703 if a, b := g.genFiles[0].importPath, f.importPath; a != b {
741 fd.importPath = GoImportPath(substitution)
747 fd.importPath = GoImportPath(g.PackageImportPath)
752 fd.importPath = p
757 fd.importPath = GoImportPath(path.Dir(f.GetName()))
1290 importPath := fd.importPath
1292 if importPath == g.file.importPath {
1300 if _, ok := imports[importPath]; ok {
1306 packageName := g.GoPackageName(importPath)
1307 if _, ok := g.usedPackages[importPath]; !ok {
1310 imports[importPath] = packageName
1312 for importPath := range g.addedImports {
1313 imports[importPath] = g.GoPackageName(importPath)
1322 for importPath, packageName := range imports {
1323 g.P(packageName, " ", GoImportPath(g.ImportPrefix)+importPath)
1342 if df.importPath == g.file.importPath {
1349 g.usedPackages[df.importPath] = true
1352 sym.GenerateAlias(g, filename, g.GoPackageName(df.importPath))
1662 importPath := g.ObjectNamed(t).GoImportPath()
1663 if importPath == g.outputImportPath {
1667 g.AddImport(importPath)
1668 g.usedPackages[importPath] = true