Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 322 for importPos (0.26 sec)

  1. src/cmd/go/internal/load/pkg.go

    // and because the eventual real load of the test imports (during 'go test')
    // can produce better error messages if it starts with the original paths.
    // The initial load of p loads all the non-test imports and rewrites
    // the vendored paths, so nothing should ever call p.vendored(p.Imports).
    func (p *Package) Resolve(imports []string) []string {
    	if len(imports) > 0 && len(p.Imports) > 0 && &imports[0] == &p.Imports[0] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modindex/read.go

    		if p.Doc == "" && !isTest && !isXTest {
    			if synopsis := tf.synopsis(); synopsis != "" {
    				p.Doc = synopsis
    			}
    		}
    
    		// Record Imports and information about cgo.
    		isCgo := false
    		imports := tf.imports()
    		for _, imp := range imports {
    			if imp.path == "C" {
    				if isTest {
    					badGoFile(name, fmt.Errorf("use of cgo in test %s not supported", name))
    					continue
    				}
    				isCgo = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  3. src/cmd/go/internal/load/test.go

    			pmain.Internal.Imports = append(pmain.Internal.Imports, ptest)
    			pmain.Imports = append(pmain.Imports, ptest.ImportPath)
    			t.ImportTest = true
    		}
    		if pxtest != nil {
    			pmain.Internal.Imports = append(pmain.Internal.Imports, pxtest)
    			pmain.Imports = append(pmain.Imports, pxtest.ImportPath)
    			t.ImportXtest = true
    		}
    
    		// Sort and dedup pmain.Imports.
    		// Only matters for go list -test output.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  4. src/go/build/build.go

    	p.TestEmbedPatterns, p.TestEmbedPatternPos = cleanDecls(testEmbedPos)
    	p.XTestEmbedPatterns, p.XTestEmbedPatternPos = cleanDecls(xTestEmbedPos)
    
    	p.Imports, p.ImportPos = cleanDecls(importPos)
    	p.TestImports, p.TestImportPos = cleanDecls(testImportPos)
    	p.XTestImports, p.XTestImportPos = cleanDecls(xTestImportPos)
    
    	// add the .S/.sx files only if we are using cgo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    package facts
    
    import (
    	"go/types"
    
    	"golang.org/x/tools/internal/aliases"
    )
    
    // importMap computes the import map for a package by traversing the
    // entire exported API each of its imports.
    //
    // This is a workaround for the fact that we cannot access the map used
    // internally by the types.Importer returned by go/importer. The entries
    // in this map are the packages and objects that may be relevant to the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. hack/verify-imports.sh

    # This script checks restricted packages are imported or not and outputs the
    # result. Target directory's path and allowed packages against checking are
    # listed in `staging/publishing/import-restrictions.yaml`.
    # Usage: `hack/verify-imports.sh`.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    kube::golang::setup_env
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:07:32 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. hack/update-vanity-imports.sh

    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    # This script fixes the vanity imports programmatically.
    # Usage: `hack/update-vanity-imports.sh`.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    kube::golang::verify_go_version
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 1K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/parsing/ImportTest.kt

        }
    
        @Test
        fun `reports ambiguous import errors`() {
            val imports = listOf(
                importOf("a", "b", "C"),
                importOf("a", "c", "C"),
                importOf("a", "b", "D")
            )
            val analysisContext = testContext()
            val result = resolver.collectImports(imports, analysisContext)
    
            assertEquals(
                mapOf(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. analysis/analysis-api/testData/components/compilerFacility/compilation/codeFragments/imports.kt

    Yan Zhulanow <******@****.***> 1706514463 +0900
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jan 30 11:41:26 UTC 2024
    - 310 bytes
    - Viewed (0)
  10. cmd/import-boss/main.go

    	}
    	return str[0:idx]
    }
    
    type ImportBoss struct {
    	// incomingImports holds all the packages importing the key.
    	incomingImports map[string][]string
    
    	// transitiveIncomingImports holds the transitive closure of
    	// incomingImports.
    	transitiveIncomingImports map[string][]string
    }
    
    func newBoss(pkgs []*packages.Package) *ImportBoss {
    	boss := &ImportBoss{
    		incomingImports:           map[string][]string{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top