- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 399 for importer (0.26 sec)
-
src/cmd/compile/internal/types2/self_test.go
t.Fatal(err) } conf := Config{Importer: defaultImporter()} _, err = conf.Check("cmd/compile/internal/types2", files, nil) if err != nil { t.Fatal(err) } } func BenchmarkCheck(b *testing.B) { testenv.MustHaveGoBuild(b) // The Go command is needed for the importer to determine the locations of stdlib .a files. for _, p := range []string{ filepath.Join("src", "net", "http"),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 19:39:00 UTC 2023 - 2.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/importer_test.go
// license that can be found in the LICENSE file. // This file implements the (temporary) plumbing to get importing to work. package types2_test import ( gcimporter "cmd/compile/internal/importer" "cmd/compile/internal/types2" "io" ) func defaultImporter() types2.Importer { return &gcimports{ packages: make(map[string]*types2.Package), } } type gcimports struct { packages map[string]*types2.Package
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 25 19:24:25 UTC 2021 - 913 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/tac_module.h
explicit TacModule(const Options& options) : options_(options) {} void SetImporter(std::unique_ptr<TacImporter> importer) { importer_ = std::move(importer); } void SetExporter(std::unique_ptr<TacExporter> exporter) { exporter_ = std::move(exporter); } // Returns pointer to the TargetHardware that is identified by 'hardware_name' // Returns NULL If no hardware with this name found.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 4.3K bytes - Viewed (0) -
src/internal/types/errors/codes_test.go
package errors_test import ( "fmt" "go/ast" "go/constant" "go/importer" "go/parser" "go/token" "internal/testenv" "reflect" "strings" "testing" . "go/types" ) func TestErrorCodeExamples(t *testing.T) { testenv.MustHaveGoBuild(t) // go command needed to resolve std .a files for importer.Default().
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 18 20:41:45 UTC 2022 - 4.9K bytes - Viewed (0) -
src/internal/types/errors/generrordocs.go
fset := token.NewFileSet() file, err := parser.ParseFile(fset, "codes.go", nil, parser.ParseComments) if err != nil { log.Fatalf("ParseFile failed: %s", err) } conf := Config{Importer: importer.Default()} info := &Info{ Types: make(map[ast.Expr]TypeAndValue), Defs: make(map[*ast.Ident]Object), Uses: make(map[*ast.Ident]Object), } _, err = conf.Check("types", fset, []*ast.File{file}, info)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 03:14:42 UTC 2023 - 3K bytes - Viewed (0) -
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) -
src/go/types/gotype.go
to the same package. Imports are processed by importing directly from the source of imported packages (default), or by importing from compiled and installed packages (by setting -c to the respective compiler). The -c flag must be set to a compiler ("gc", "gccgo") when type- checking packages containing imports with relative import paths (import "./mypkg") because the source importer cannot know which
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 8.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/tflite_import_export.h
#include "tensorflow/compiler/mlir/lite/experimental/tac/tac_importer_exporter.h" namespace mlir { namespace TFL { namespace tac { // TAC Importer for TFLite. // This import to MLIR from tflite file or MLIR class TfLiteImporter : public mlir::TFL::tac::TacImporter { public: // Options for configuring the importer. struct Options { std::string file_name; // Whether the input file is an MLIR not tflite file. bool input_mlir = false;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/go/testdata/script/mod_get_ambiguous_import.txt
stdout '^example.net/m v0.2.0 ' stdout '^example.net/m/p v1.0.0 ' -- go.mod -- module example.net/importer go 1.16 require ( example.net/m v0.1.0 ) replace ( example.net/m v0.1.0 => ./m1 example.net/m v0.2.0 => ./m2 example.net/m/p v1.0.0 => ./p0 ) -- importer.go -- package importer import _ "example.net/m/p" -- m1/go.mod -- module example.net/m go 1.16 -- m1/p/p.go -- package p
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 1.4K bytes - Viewed (0) -
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)