- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 730 for Importer (0.16 sec)
-
src/go/types/sizes_test.go
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) for _, tv := range info.Types { _ = conf.Sizes.Sizeof(tv.Type) _ = conf.Sizes.Alignof(tv.Type) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 21:00:48 UTC 2023 - 4K 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(). walkCodes(t, func(name string, value int, spec *ast.ValueSpec) {
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/go/types/stdlib_test.go
// (See https://golang.org/issue/43232 and // https://github.com/golang/build/blob/df58bbac082bc87c4a3cdfe336d1ffe60bbaa916/cmd/release/release.go#L533-L545.) // // Use the same importer for all std lib tests to // avoid repeated importing of the same packages. var stdLibImporter = importer.ForCompiler(token.NewFileSet(), "source", nil) func TestStdlib(t *testing.T) { if testing.Short() { t.Skip("skipping in short mode") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 19 04:39:56 UTC 2023 - 13.7K 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/go/types/api.go
// error found. Error func(err error) // An importer is used to import packages referred to from // import declarations. // If the installed importer implements ImporterFrom, the type // checker calls ImportFrom instead of Import. // The type checker reports an error if an importer is needed // but none was installed. Importer Importer // If Sizes != nil, it provides the sizing functions for package unsafe.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 17.2K 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/self_test.go
"time" . "cmd/compile/internal/types2" ) func TestSelf(t *testing.T) { testenv.MustHaveGoBuild(t) // The Go command is needed for the importer to determine the locations of stdlib .a files. files, err := pkgFiles(".") if err != nil { t.Fatal(err) } conf := Config{Importer: defaultImporter()} _, err = conf.Check("cmd/compile/internal/types2", files, nil) if err != nil { t.Fatal(err) } }
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/sizes_test.go
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) for _, tv := range info.Types { _ = conf.Sizes.Sizeof(tv.Type) _ = conf.Sizes.Alignof(tv.Type) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 16 21:00:48 UTC 2023 - 4.1K 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 --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Jun 03 21:13:11 UTC 2023 - 1.4K bytes - Viewed (0)