- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for parenthesized (0.17 sec)
-
src/go/doc/example.go
ast.Inspect(val, inspectFunc) } } } } } // Some decls include multiple specs, such as a variable declaration with // multiple variables on the same line, or a parenthesized declaration. Trim // the declarations to include only the specs that are actually mentioned. // However, if there is a constant group with iota, leave it all: later
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 21.4K bytes - Viewed (0) -
src/go/doc/reader.go
case token.TYPE: // types are handled individually if len(d.Specs) == 1 && !d.Lparen.IsValid() { // common case: single declaration w/o parentheses // (if a single declaration is parenthesized, // create a new fake declaration below, so that // go/doc type declarations always appear w/o // parentheses) if s, ok := d.Specs[0].(*ast.TypeSpec); ok { r.readType(d, s) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 27.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
case *syntax.ExprStmt: // spec: "With the exception of specific built-in functions, // function and method calls and receive operations can appear // in statement context. Such statements may be parenthesized." var x operand kind := check.rawExpr(nil, &x, s.X, nil, false) var msg string var code Code switch x.mode { default: if kind == statement { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
src/go/types/stmt.go
case *ast.ExprStmt: // spec: "With the exception of specific built-in functions, // function and method calls and receive operations can appear // in statement context. Such statements may be parenthesized." var x operand kind := check.rawExpr(nil, &x, s.X, nil, false) var msg string var code Code switch x.mode { default: if kind == statement { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/time/format_test.go
// This test checks nextStdChunk's behavior directly, // instead of needing to test it only indirectly through Parse/Format. // markChunks returns format with each detected // 'format chunk' parenthesized. // For example showChunks("2006-01-02") == "(2006)-(01)-(02)". markChunks := func(format string) string { // Note that NextStdChunk and StdChunkNames // are not part of time's public API.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:58:29 UTC 2024 - 36.4K bytes - Viewed (0) -
src/text/template/exec.go
case *parse.ChainNode: return s.evalChainNode(dot, n, cmd.Args, final) case *parse.IdentifierNode: // Must be a function. return s.evalFunction(dot, n, cmd, cmd.Args, final) case *parse.PipeNode: // Parenthesized pipeline. The arguments are all inside the pipeline; final must be absent. s.notAFunction(cmd.Args, final) return s.evalPipeline(dot, n) case *parse.VariableNode: return s.evalVariableNode(dot, n, cmd.Args, final)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 21:22:24 UTC 2024 - 32K bytes - Viewed (0)