- Sort Score
- Result 10 results
- Languages All
Results 31 - 36 of 36 for RangeStmt (0.17 sec)
-
src/cmd/compile/internal/walk/order.go
// the range body. Ranging over an array value is uncommon though. // Mark []byte(str) range expression to reuse string backing storage. // It is safe because the storage cannot be mutated. n := n.(*ir.RangeStmt) if x, ok := n.X.(*ir.ConvExpr); ok { switch x.Op() { case ir.OSTR2BYTES: x.SetOp(ir.OSTR2BYTESTMP) fallthrough case ir.OSTR2BYTESTMP: x.MarkNonNil() // "range []byte(nil)" is fine
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
src/go/printer/nodes.go
p.print(token.RBRACE) } else { p.block(body, 0) } case *ast.ForStmt: p.print(token.FOR) p.controlClause(true, s.Init, s.Cond, s.Post) p.block(s.Body, 1) case *ast.RangeStmt: p.print(token.FOR, blank) if s.Key != nil { p.expr(s.Key) if s.Value != nil { // use position of value following the comma as // comma position for correct comment placement
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/go/parser/parser.go
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/types/api_test.go
case *ast.TypeSwitchStmt: kind = "type switch" case *ast.CaseClause: kind = "case" case *ast.CommClause: kind = "comm" case *ast.ForStmt: kind = "for" case *ast.RangeStmt: kind = "range" } // look for matching scope description desc := kind + ":" + strings.Join(scope.Names(), " ") found := false for _, d := range test.scopes { if desc == d {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 94.2K bytes - Viewed (0) -
api/go1.txt
pkg go/ast, type RangeStmt struct pkg go/ast, type RangeStmt struct, Body *BlockStmt pkg go/ast, type RangeStmt struct, For token.Pos pkg go/ast, type RangeStmt struct, Key Expr pkg go/ast, type RangeStmt struct, Tok token.Token pkg go/ast, type RangeStmt struct, TokPos token.Pos pkg go/ast, type RangeStmt struct, Value Expr pkg go/ast, type RangeStmt struct, X Expr pkg go/ast, type ReturnStmt struct
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 14 18:58:28 UTC 2013 - 1.7M bytes - Viewed (0) -
api/go1.20.txt
pkg fmt, func FormatString(State, int32) string #51668 pkg go/ast, type File struct, FileEnd token.Pos #53202 pkg go/ast, type File struct, FileStart token.Pos #53202 pkg go/ast, type RangeStmt struct, Range token.Pos #50429 pkg go/token, method (*FileSet) RemoveFile(*File) #53200 pkg go/types, func Satisfies(Type, *Interface) bool #56548 pkg io/fs, var SkipAll error #47209
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 21:23:32 UTC 2023 - 602.6K bytes - Viewed (1)