Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for errorUnusedPkg (0.14 sec)

  1. src/cmd/compile/internal/types2/resolver.go

    	// (initialization), use the blank identifier as explicit package name."
    
    	for _, obj := range check.imports {
    		if !obj.used && obj.name != "_" {
    			check.errorUnusedPkg(obj)
    		}
    	}
    }
    
    func (check *Checker) errorUnusedPkg(obj *PkgName) {
    	// If the package was imported with a name other than the final
    	// import path element, show it explicitly in the error message.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  2. src/go/types/resolver.go

    	// (initialization), use the blank identifier as explicit package name."
    
    	for _, obj := range check.imports {
    		if !obj.used && obj.name != "_" {
    			check.errorUnusedPkg(obj)
    		}
    	}
    }
    
    func (check *Checker) errorUnusedPkg(obj *PkgName) {
    	// If the package was imported with a name other than the final
    	// import path element, show it explicitly in the error message.
    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