Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 213 for importer (0.13 sec)

  1. src/go/importer/importer.go

    //
    // The lookup function is called each time the resulting importer needs
    // to resolve an import path. In this mode the importer can only be
    // invoked with canonical import paths (not relative or absolute ones);
    // it is assumed that the translation to canonical import paths is being
    // done by the client of the importer.
    //
    // A lookup function must be provided for correct module-aware operation.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 3.6K 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. src/go/ast/resolve.go

    		}
    	}
    	return false
    }
    
    // An Importer resolves import paths to package Objects.
    // The imports map records the packages already imported,
    // indexed by package id (canonical import path).
    // An Importer must determine the canonical import path and
    // check the map to see if it is already present in the imports map.
    // If so, the Importer can return the map entry. Otherwise, the
    // Importer should load the package data for the given path into
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. src/go/types/sizes_test.go

    	}
    }
    
    func TestIssue16902(t *testing.T) {
    	const src = `
    package a
    
    import "unsafe"
    
    const _ = unsafe.Offsetof(struct{ x int64 }{}.x)
    `
    	info := types.Info{Types: make(map[ast.Expr]types.TypeAndValue)}
    	conf := types.Config{
    		Importer: importer.Default(),
    		Sizes:    &types.StdSizes{WordSize: 8, MaxAlign: 8},
    	}
    	mustTypecheck(src, &conf, &info)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/sizes_test.go

    	}
    }
    
    func TestIssue16902(t *testing.T) {
    	const src = `
    package a
    
    import "unsafe"
    
    const _ = unsafe.Offsetof(struct{ x int64 }{}.x)
    `
    	info := types2.Info{Types: make(map[syntax.Expr]types2.TypeAndValue)}
    	conf := types2.Config{
    		Importer: defaultImporter(),
    		Sizes:    &types2.StdSizes{WordSize: 8, MaxAlign: 8},
    	}
    	mustTypecheck(src, &conf, &info)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 21:00:48 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  6. 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. src/go/types/example_test.go

    `,
    	} {
    		files = append(files, mustParse(fset, src))
    	}
    
    	// Type-check a package consisting of these files.
    	// Type information for the imported "fmt" package
    	// comes from $GOROOT/pkg/$GOOS_$GOOARCH/fmt.a.
    	conf := types.Config{Importer: importer.Default()}
    	pkg, err := conf.Check("temperature", fset, files, nil)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	// Print the tree of scopes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. src/go/types/eval_test.go

    		switch gotypesalias.Value() {
    		case "", "1":
    			if strings.Contains(src, "interface{R}.Read") {
    				continue
    			}
    		}
    
    		files = append(files, file)
    	}
    
    	conf := Config{Importer: importer.Default()}
    	pkg, err := conf.Check("p", fset, files, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, file := range files {
    		for _, group := range file.Comments {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/importer_test_min_max.cc.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // This only test the exporter and importer are working without min/max quantization parameters.
    
    func.func @main(tensor<40x37xf32>, tensor<40x37xf32>) -> tensor<40x40xf32> {
    ^bb0(%arg0: tensor<40x37xf32>, %arg1: tensor<40x37xf32>):
      %cst = arith.constant dense<1.0> : tensor<40xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/samples/writing-tasks/task-with-arguments/README.adoc

    NOTE: You can open the samples inside an IDE using the https://www.jetbrains.com/help/idea/gradle.html#gradle_import_project_start[IntelliJ native importer] or https://projects.eclipse.org/projects/tools.buildship[Eclipse Buildship].
    
    This sample shows how to create a plugin with a task that accepts arguments.
    The plugin is packaged via an included build.
    
    ====
    include::sample[dir="kotlin",files="build.gradle.kts[];settings.gradle.kts[]"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1020 bytes
    - Viewed (0)
Back to top