- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 43 for parseable (0.16 sec)
-
src/cmd/vendor/golang.org/x/text/language/tags.go
t, err := c.Parse(s) if err != nil { panic(err) } return t } // MustParseBase is like ParseBase, but panics if the given base cannot be parsed. // It simplifies safe initialization of Base values. func MustParseBase(s string) Base { b, err := ParseBase(s) if err != nil { panic(err) } return b } // MustParseScript is like ParseScript, but panics if the given script cannot be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 13:01:26 UTC 2024 - 5.4K bytes - Viewed (0) -
src/go/token/example_test.go
const bad = token.NoPos //line fake.go:42:11 func ok(pos p) bool { return pos != bad } /*line :7:9*/func main() { fmt.Println(ok(bad) == bad.IsValid()) } ` f, err := parser.ParseFile(fset, "main.go", src, 0) if err != nil { fmt.Println(err) return } // Print the location and kind of each declaration in f. for _, decl := range f.Decls {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:09:31 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/aliases/aliases_go122.go
// setting caused by os.Setenv("GODEBUG"), as happens in // many tests. Therefore any attempt to cache the result // is just incorrect. fset := token.NewFileSet() f, _ := parser.ParseFile(fset, "a.go", "package p; type A = int", 0) pkg, _ := new(types.Config).Check("p", fset, []*ast.File{f}, nil) _, enabled := pkg.Scope().Lookup("A").Type().(*types.Alias) return enabled
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 2K bytes - Viewed (0) -
tensorflow/c/tf_buffer.cc
} Status BufferToMessage(const TF_Buffer* in, tensorflow::protobuf::MessageLite* out) { if (in == nullptr || !out->ParseFromArray(in->data, in->length)) { return errors::InvalidArgument("Unparseable ", out->GetTypeName(), " proto"); } return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 3K bytes - Viewed (0) -
cmd/kubeadm/app/discovery/discovery.go
return token.RetrieveValidatedConfigInfo(&cfg.Discovery, timeout) default: return nil, errors.New("couldn't find a valid discovery configuration") } } // isHTTPSURL checks whether the string is parsable as a URL and whether the Scheme is https func isHTTPSURL(s string) bool { u, err := url.Parse(s) return err == nil && u.Scheme == "https"
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 3.9K bytes - Viewed (0) -
platforms/ide/ide/src/integTest/groovy/org/gradle/plugins/ide/eclipse/EclipseMultiModuleIntegrationTest.groovy
assert deps.contains("/master-shared-model") } List parseEclipseProjectDependencies(def options) { def eclipseClasspathFile = parseFile(options, ".classpath") def deps = eclipseClasspathFile.classpathentry.findAll { ******@****.***() == 'src' }.collect { ******@****.***() } return deps }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Oct 24 06:54:47 UTC 2023 - 5.8K bytes - Viewed (0) -
src/internal/trace/reader_test.go
testName, err := filepath.Rel("./testdata", testPath) if err != nil { t.Fatalf("failed to relativize testdata path: %v", err) } t.Run(testName, func(t *testing.T) { tr, exp, err := testtrace.ParseFile(testPath) if err != nil { t.Fatalf("failed to parse test file at %s: %v", testPath, err) } testReader(t, tr, exp) }) } } func FuzzReader(f *testing.F) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 3.7K bytes - Viewed (0) -
src/cmd/fix/main_test.go
} func fnop(*ast.File) bool { return false } func parseFixPrint(t *testing.T, fn func(*ast.File) bool, desc, in string, mustBeGofmt bool) (out string, fixed, ok bool) { file, err := parser.ParseFile(fset, desc, in, parserMode) if err != nil { t.Errorf("parsing: %v", err) return } outb, err := gofmtFile(file) if err != nil { t.Errorf("printing: %v", err) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 05:31:47 UTC 2024 - 3.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/extractdoc.go
// the same source and formatted appropriately. func ExtractDoc(content, name string) (string, error) { if content == "" { return "", fmt.Errorf("empty Go source file") } fset := token.NewFileSet() f, err := parser.ParseFile(fset, "", content, parser.ParseComments|parser.PackageClauseOnly) if err != nil { return "", fmt.Errorf("not a Go source file") } if f.Doc == nil { return "", fmt.Errorf("Go source file has no package doc comment")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 18 21:28:13 UTC 2023 - 3.4K bytes - Viewed (0) -
src/go/types/eval_test.go
type R interface {} // must not shadow R in first line of this function body } `, } fset := token.NewFileSet() var files []*ast.File for i, src := range sources { file, err := parser.ParseFile(fset, "p", src, parser.ParseComments) if err != nil { t.Fatalf("could not parse file %d: %s", i, err) } // Materialized aliases give a different (better)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 19:56:15 UTC 2024 - 8.3K bytes - Viewed (0)