Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 387 for Imported (0.13 sec)

  1. src/internal/types/testdata/check/importdecl0/importdecl0a.go

    	// reflect defines a type "flag" which shows up in the gc export data
    	"reflect"
    	. /* ERROR "imported and not used" */ "reflect"
    )
    
    import "math" /* ERROR "imported and not used" */
    import m /* ERROR "imported as m and not used" */ "math"
    import _ "math"
    
    import (
    	"math/big" /* ERROR "imported and not used" */
    	b /* ERROR "imported as b and not used" */ "math/big"
    	_ "math/big"
    )
    
    import "fmt"
    import f1 "fmt"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. src/go/types/resolver_test.go

    	if mode != 0 {
    		panic("mode must be 0")
    	}
    	if imp.importer == nil {
    		imp.importer = importer.Default().(ImporterFrom)
    		imp.imported = make(map[string]bool)
    	}
    	pkg, err := imp.importer.ImportFrom(path, srcDir, mode)
    	if err != nil {
    		return nil, err
    	}
    	imp.imported[path] = true
    	return pkg, nil
    }
    
    func TestResolveIdents(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/utils/firUtils.kt

    }
    
    /**
     * @receiver A symbol that needs to be imported
     * @param useSiteSession A use-site fir session.
     * @return An [FqName] by which this symbol can be imported (if it is possible)
     */
    internal fun FirCallableSymbol<*>.computeImportableName(useSiteSession: FirSession): FqName? {
        if (callableId.isLocal) return null
    
        // SAM constructors are synthetic, but can be imported
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Jun 07 11:53:09 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/gcimporter_test.go

    	// will expose the error if it is present.
    	//
    	// (Issue: Both the textual and the binary importer used the file path
    	// of the package to be imported as key into the shared packages map.
    	// However, the binary importer then used the package path to identify
    	// the imported package to mark it as complete; effectively marking the
    	// wrong package as complete. By using an "unclean" package path, the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  5. src/go/types/resolver.go

    	} else {
    		// ordinary import
    		var err error
    		if importer := check.conf.Importer; importer == nil {
    			err = fmt.Errorf("Config.Importer not installed")
    		} else if importerFrom, ok := importer.(ImporterFrom); ok {
    			imp, err = importerFrom.ImportFrom(path, dir, 0)
    			if imp == nil && err == nil {
    				err = fmt.Errorf("Config.Importer.ImportFrom(%s, %s, 0) returned nil but no error", path, dir)
    			}
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  6. src/go/internal/gcimporter/gcimporter.go

    }
    
    // Import imports a gc-generated package given its import path and srcDir, adds
    // the corresponding package object to the packages map, and returns the object.
    // The packages map must contain all packages already imported.
    func Import(fset *token.FileSet, packages map[string]*types.Package, path, srcDir string, lookup func(path string) (io.ReadCloser, error)) (pkg *types.Package, err error) {
    	var rc io.ReadCloser
    	var id string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. test/fixedbugs/issue11361.go

    // errorcheck
    
    // Copyright 2016 The Go Authors.  All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    import "fmt"  // GC_ERROR "imported and not used"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 351 bytes
    - Viewed (0)
  8. src/cmd/internal/objabi/pkgspecial.go

    package objabi
    
    import "sync"
    
    // PkgSpecial indicates special build properties of a given runtime-related
    // package.
    type PkgSpecial struct {
    	// Runtime indicates that this package is "runtime" or imported by
    	// "runtime". This has several effects (which maybe should be split out):
    	//
    	// - Implicit allocation is disallowed.
    	//
    	// - Various runtime pragmas are enabled.
    	//
    	// - Optimizations are always enabled.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 02:32:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/mod_tidy_compat_implicit.txt

    
    # For this module, Go 1.16 selects the same versions of all explicit dependencies
    # as Go 1.17 does. However, Go 1.16 selects a higher version of an *implicit*
    # dependency, imported by a test of one of the (external) imported packages.
    # As a result, Go 1.16 also needs checksums for the module sources for that higher
    # version.
    #
    # The Go 1.16 module graph looks like:
    #
    # m ---- lazy v0.1.0 ---- incompatible v1.0.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  10. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtImportOptimizer.kt

            return analysisSession.importOptimizer.analyseImports(file)
        }
    
        /**
         * @return a [FqName] which can be used to import [this] symbol or `null` if the symbol cannot be imported.
         */
        public fun KaSymbol.getImportableName(): FqName? = withValidityAssertion {
            return analysisSession.importOptimizer.getImportableName(this)
        }
    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 1.8K bytes
    - Viewed (0)
Back to top