- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for Semicolons (0.47 sec)
-
src/go/printer/nodes.go
needsBlank := false if init == nil && post == nil { // no semicolons required if expr != nil { p.expr(stripParens(expr)) needsBlank = true } } else { // all semicolons required // (they are not separators, print them explicitly) if init != nil { p.stmt(init, false) } p.print(token.SEMICOLON, blank) if expr != nil { p.expr(stripParens(expr))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 17 18:53:17 UTC 2023 - 52.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/parser.go
s.pos = p.pos() s.Label = label p.want(_Colon) if p.tok == _Rbrace { // We expect a statement (incl. an empty statement), which must be // terminated by a semicolon. Because semicolons may be omitted before // an _Rbrace, seeing an _Rbrace implies an empty statement. e := new(EmptyStmt) e.pos = p.pos() s.Stmt = e return s } s.Stmt = p.stmtOrNil()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 62.9K bytes - Viewed (0) -
src/net/http/httputil/reverseproxy_test.go
if err != nil { t.Fatal(err) } proxyHandler := newProxy(backendURL) frontend := httptest.NewServer(proxyHandler) defer frontend.Close() // Don't spam output with logs of queries containing semicolons. backend.Config.ErrorLog = log.New(io.Discard, "", 0) frontend.Config.ErrorLog = log.New(io.Discard, "", 0) for _, test := range []struct { rawQuery string cleanQuery string }{{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 54.6K bytes - Viewed (0) -
src/go/parser/parser.go
s = p.parseForStmt() case token.SEMICOLON: // Is it ever possible to have an implicit semicolon // producing an empty statement in a valid program? // (handle correctly anyway) s = &ast.EmptyStmt{Semicolon: p.pos, Implicit: p.lit == "\n"} p.next() case token.RBRACE: // a semicolon may be omitted before a closing "}" s = &ast.EmptyStmt{Semicolon: p.pos, Implicit: true} default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 08 20:07:50 UTC 2023 - 72.2K bytes - Viewed (0) -
src/go/printer/testdata/parser.go
var s1, s2, s3 ast.Stmt if p.tok != token.LBRACE { prevLev := p.exprLev p.exprLev = -1 if p.tok != token.SEMICOLON { s2 = p.parseSimpleStmt(false) } if p.tok == token.SEMICOLON { p.next() s1 = s2 s2 = nil if p.tok != token.SEMICOLON { s2 = p.parseSimpleStmt(false) } p.expectSemi() if p.tok != token.LBRACE { s3 = p.parseSimpleStmt(false)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 20:19:51 UTC 2023 - 50.5K bytes - Viewed (0) -
src/cmd/link/internal/ld/dwarf.go
if len(peData) > 0 { // We put a semicolon before the flags to clearly // separate them from the version, which can be long // and have lots of weird things in it in development // versions. We promise not to put a semicolon in the // version, so it should be safe for readers to scan // forward to the semicolon. producer += "; " + string(peData)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 16:25:18 UTC 2024 - 72.4K bytes - Viewed (0) -
src/net/http/request.go
} // AddCookie adds a cookie to the request. Per RFC 6265 section 5.4, // AddCookie does not attach more than one [Cookie] header field. That // means all cookies, if any, are written into the same line, // separated by semicolon. // AddCookie only sanitizes c's name and value, and does not sanitize // a Cookie header already present in the request. func (r *Request) AddCookie(c *Cookie) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 49.4K bytes - Viewed (0) -
src/net/url/url_test.go
ok: true, }, { query: "a=1;b=2", out: Values{}, ok: false, }, { query: "a;b=1", out: Values{}, ok: false, }, { query: "a=%3B", // hex encoding for semicolon out: Values{"a": []string{";"}}, ok: true, }, { query: "a%3Bb=1", out: Values{"a;b": []string{"1"}}, ok: true, }, { query: "a=1&a=2;a=banana",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 22:52:38 UTC 2024 - 52.1K bytes - Viewed (0) -
src/runtime/pprof/pprof_test.go
func stackContainsLabeled(spec string, count uintptr, stk []*profile.Location, labels map[string][]string) bool { base, kv, ok := strings.Cut(spec, ";") if !ok { panic("no semicolon in key/value spec") } k, v, ok := strings.Cut(kv, "=") if !ok { panic("missing = in key/value spec") } if !contains(labels[k], v) { return false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 18:42:28 UTC 2024 - 68.8K bytes - Viewed (0)