- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 81 for parseable (0.33 sec)
-
src/go/types/generate_test.go
} } func generate(t *testing.T, filename string, write bool) { // parse src (cmd/compile/internal/types2) srcFilename := filepath.FromSlash(runtime.GOROOT() + srcDir + filename) file, err := parser.ParseFile(fset, srcFilename, nil, parser.ParseComments) if err != nil { t.Fatal(err) } // fix package name file.Name.Name = strings.ReplaceAll(file.Name.Name, "types2", "types") // rewrite AST as needed
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 16.5K bytes - Viewed (0) -
src/cmd/internal/obj/link.go
// compiler generates wrappers for calls to and from other // ABIs. ABIInternal ABICount ) // ParseABI converts from a string representation in 'abistr' to the // corresponding ABI value. Second return value is TRUE if the // abi string is recognized, FALSE otherwise. func ParseABI(abistr string) (ABI, bool) { switch abistr { default: return ABI0, false case "ABI0": return ABI0, true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 33.1K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter_test.go
} runes = append(runes, r) } return string(runes) } func checkFile(t *testing.T, filename string, src []byte) *types.Package { fset := token.NewFileSet() f, err := parser.ParseFile(fset, filename, src, 0) if err != nil { t.Fatal(err) } config := types.Config{ Importer: importer.Default(), } pkg, err := config.Check("", fset, []*ast.File{f}, nil) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 21.9K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Cookie.kt
return s.removePrefix(".").toCanonicalHost() ?: throw IllegalArgumentException() } /** Returns all of the cookies from a set of HTTP response headers. */ @JvmStatic fun parseAll( url: HttpUrl, headers: Headers, ): List<Cookie> { val cookieStrings = headers.values("Set-Cookie") var cookies: MutableList<Cookie>? = null
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Apr 06 04:12:05 UTC 2024 - 23.1K bytes - Viewed (0) -
cmd/kubeadm/app/apis/kubeadm/validation/validation.go
} } } } return allErrs } // ValidateURLs validates the URLs given in the string slice, makes sure they are parsable. Optionally, it can enforces HTTPS usage. func ValidateURLs(urls []string, requireHTTPS bool, fldPath *field.Path) field.ErrorList { allErrs := field.ErrorList{} for _, urlstr := range urls { u, err := url.Parse(urlstr)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 01 16:01:49 UTC 2024 - 33.4K bytes - Viewed (0) -
src/cmd/go/internal/load/test.go
// Pass in the overlaid source if we have an overlay for this file. src, err := fsys.Open(filename) if err != nil { return err } defer src.Close() f, err := parser.ParseFile(testFileSet, filename, src, parser.ParseComments|parser.SkipObjectResolution) if err != nil { return err } for _, d := range f.Decls { n, ok := d.(*ast.FuncDecl) if !ok { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/c/eager/c_api.cc
TF_Status* status) { tensorflow::AttrValue attr_value; if (!attr_value.ParseFromArray(proto, proto_len)) { status->status = tensorflow::errors::InvalidArgument("Unparseable AttrValue proto"); return; } if (op == nullptr) { status->status = tensorflow::errors::InvalidArgument( "Got a null or uninitialized `op` argument"); return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 08:11:23 UTC 2024 - 44K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
val secure: Boolean = cookie.secure val matches: Boolean = cookie.matches("".toHttpUrl()) val parsedCookie: Cookie? = Cookie.parse("".toHttpUrl(), "") val cookies: List<Cookie> = Cookie.parseAll("".toHttpUrl(), headersOf()) } @Test fun cookieBuilder() { var builder: Cookie.Builder = Cookie.Builder() builder = builder.name("") builder = builder.value("")
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Apr 01 14:21:25 UTC 2024 - 46.5K bytes - Viewed (0) -
src/go/types/issues_test.go
package p func A(func(any), ...any) {} func B[T any](T) {} func _() { A(B, nil // syntax error: missing ',' before newline in argument list } ` fset := token.NewFileSet() f, err := parser.ParseFile(fset, pkgName(src), src, 0) if err == nil { t.Fatal("expected syntax error") } var conf Config conf.Check(f.Name.Name, fset, []*ast.File{f}, nil) // must not panic }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
okhttp/api/okhttp.api
public final fun name ()Ljava/lang/String; public final fun newBuilder ()Lokhttp3/Cookie$Builder; public static final fun parse (Lokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/Cookie; public static final fun parseAll (Lokhttp3/HttpUrl;Lokhttp3/Headers;)Ljava/util/List; public final fun path ()Ljava/lang/String; public final fun persistent ()Z public final fun sameSite ()Ljava/lang/String; public final fun secure ()Z
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0)