Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for markImports (0.36 sec)

  1. src/go/types/format.go

    			check.seenPkgMap = make(map[*Package]bool)
    			check.markImports(check.pkg)
    		}
    		// If the same package name was used by multiple packages, display the full path.
    		if len(check.pkgPathMap[pkg.name]) > 1 {
    			return strconv.Quote(pkg.path)
    		}
    		return pkg.name
    	}
    	return ""
    }
    
    // markImports recursively walks pkg and its imports, to record unique import
    // paths in pkgPathMap.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/format.go

    			check.seenPkgMap = make(map[*Package]bool)
    			check.markImports(check.pkg)
    		}
    		// If the same package name was used by multiple packages, display the full path.
    		if len(check.pkgPathMap[pkg.name]) > 1 {
    			return strconv.Quote(pkg.path)
    		}
    		return pkg.name
    	}
    	return ""
    }
    
    // markImports recursively walks pkg and its imports, to record unique import
    // paths in pkgPathMap.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/resolver.go

    		// Once we've formatted an error message, keep the pkgPathMap
    		// up-to-date on subsequent imports. It is used for package
    		// qualification in error messages.
    		if check.pkgPathMap != nil {
    			check.markImports(imp)
    		}
    		return imp
    	}
    
    	// something went wrong (importer may have returned incomplete package without error)
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  4. src/go/types/resolver.go

    		// Once we've formatted an error message, keep the pkgPathMap
    		// up-to-date on subsequent imports. It is used for package
    		// qualification in error messages.
    		if check.pkgPathMap != nil {
    			check.markImports(imp)
    		}
    		return imp
    	}
    
    	// something went wrong (importer may have returned incomplete package without error)
    	return nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
Back to top