Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 187 for ximports (0.31 sec)

  1. 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)
  2. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/imports.go

    					fset.File(gen.Rparen).MergeLine(line)
    				}
    			}
    			j--
    		}
    	}
    
    	// Delete imports from f.Imports.
    	for i := 0; i < len(f.Imports); i++ {
    		imp := f.Imports[i]
    		for j, del := range delspecs {
    			if imp == del {
    				copy(f.Imports[i:], f.Imports[i+1:])
    				f.Imports = f.Imports[:len(f.Imports)-1]
    				copy(delspecs[j:], delspecs[j+1:])
    				delspecs = delspecs[:len(delspecs)-1]
    				i--
    				break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 21:56:21 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/iimport.go

    	interfaceType
    	typeParamType
    	instanceType
    	unionType
    )
    
    // iImportData imports a package from the serialized package data
    // and returns the number of bytes consumed and a reference to the package.
    // If the export data version is not recognized or the format is otherwise
    // compromised, an error is returned.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParserTest.groovy

            when:
            sourceFile << """
        #import "test1"
        #import "test2"
        #import <system1>
        #import <system2>
        #import DEFINED
    """
            then:
            imports == ['"test1"', '"test2"', '<system1>', '<system2>', 'DEFINED'].collect { include(it, true) }
    
            and:
            noIncludes()
        }
    
        def "finds mixed import include statement imports"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 34.3K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/gcimporter_test.go

    	if runtime.Compiler != "gc" {
    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    	imports := make(map[string]*types.Package)
    	fset := token.NewFileSet()
    	_, err := Import(fset, imports, "net/http", ".", nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	mutex := imports["sync"].Scope().Lookup("Mutex").(*types.TypeName).Type()
    	mset := types.NewMethodSet(types.NewPointer(mutex)) // methods of *sync.Mutex
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  6. common/config/.golangci.yml

        ignore-generated-header: false
        severity: "warning"
        confidence: 0.0
        rules:
          - name: blank-imports
          - name: context-keys-type
          - name: time-naming
          - name: var-declaration
          - name: unexported-return
          - name: errorf
          - name: context-as-argument
          - name: dot-imports
          - name: error-return
          - name: error-strings
          - name: error-naming
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 04 20:03:06 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. src/cmd/go/internal/modload/import.go

    				// We can't resolve the import by adding mp@mv to the module graph,
    				// because the selected version of mp is already at least mv.
    				continue
    			}
    			mods = append(mods, module.Version{Path: mp, Version: mv})
    		}
    	}
    
    	// Every module path in mods is a prefix of the import path.
    	// As in QueryPattern, prefer the longest prefix that satisfies the import.
    	sort.Slice(mods, func(i, j int) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  8. 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)
  9. src/go/doc/reader.go

    		switch d := decl.(type) {
    		case *ast.GenDecl:
    			switch d.Tok {
    			case token.IMPORT:
    				// imports are handled individually
    				for _, spec := range d.Specs {
    					if s, ok := spec.(*ast.ImportSpec); ok {
    						if import_, err := strconv.Unquote(s.Path.Value); err == nil {
    							r.imports[import_] = 1
    							var name string
    							if s.Name != nil {
    								name = s.Name.Name
    								if name == "." {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testerrors/ptr_test.go

    		}
    		fmt.Fprintf(cgo, "%s\n", pt.c)
    		fmt.Fprintf(&cgo1, "%s\n", pt.c1)
    	}
    	fmt.Fprintf(&cgo1, "*/\nimport \"C\"\n\n")
    	fmt.Fprintf(&cgo2, "*/\nimport \"C\"\n\n")
    
    	// Imports
    	did1 := make(map[string]bool)
    	did2 := make(map[string]bool)
    	did1["os"] = true // for ptrTestMain
    	fmt.Fprintf(&cgo1, "import \"os\"\n")
    
    	for _, pt := range ptrTests {
    		did := did1
    		cgo := &cgo1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
Back to top