Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for RangeStmt (0.22 sec)

  1. src/cmd/cgo/ast.go

    		f.walk(n.Body, ctxStmt, visit)
    	case *ast.ForStmt:
    		f.walk(n.Init, ctxStmt, visit)
    		f.walk(&n.Cond, ctxExpr, visit)
    		f.walk(n.Post, ctxStmt, visit)
    		f.walk(n.Body, ctxStmt, visit)
    	case *ast.RangeStmt:
    		f.walk(&n.Key, ctxExpr, visit)
    		f.walk(&n.Value, ctxExpr, visit)
    		f.walk(&n.X, ctxExpr, visit)
    		f.walk(n.Body, ctxStmt, visit)
    
    	case *ast.ImportSpec:
    	case *ast.ValueSpec:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/rewrite.go

    		a.apply(n, "Body", nil, n.Body)
    
    	case *ast.ForStmt:
    		a.apply(n, "Init", nil, n.Init)
    		a.apply(n, "Cond", nil, n.Cond)
    		a.apply(n, "Post", nil, n.Post)
    		a.apply(n, "Body", nil, n.Body)
    
    	case *ast.RangeStmt:
    		a.apply(n, "Key", nil, n.Key)
    		a.apply(n, "Value", nil, n.Value)
    		a.apply(n, "X", nil, n.X)
    		a.apply(n, "Body", nil, n.Body)
    
    	// Declarations
    	case *ast.ImportSpec:
    		a.apply(n, "Doc", nil, n.Doc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  3. src/cmd/fix/fix.go

    	case *ast.ForStmt:
    		walkBeforeAfter(&n.Init, before, after)
    		walkBeforeAfter(&n.Cond, before, after)
    		walkBeforeAfter(&n.Post, before, after)
    		walkBeforeAfter(&n.Body, before, after)
    	case *ast.RangeStmt:
    		walkBeforeAfter(&n.Key, before, after)
    		walkBeforeAfter(&n.Value, before, after)
    		walkBeforeAfter(&n.X, before, after)
    		walkBeforeAfter(&n.Body, before, after)
    
    	case *ast.ImportSpec:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 14.6K bytes
    - Viewed (0)
  4. src/go/types/api.go

    	//     *ast.TypeSpec
    	//     *ast.BlockStmt
    	//     *ast.IfStmt
    	//     *ast.SwitchStmt
    	//     *ast.TypeSwitchStmt
    	//     *ast.CaseClause
    	//     *ast.CommClause
    	//     *ast.ForStmt
    	//     *ast.RangeStmt
    	//
    	Scopes map[ast.Node]*Scope
    
    	// InitOrder is the list of package-level initializers in the order in which
    	// they must be executed. Initializers referring to variables related by an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. src/go/parser/resolver.go

    		if n.Init != nil {
    			ast.Walk(r, n.Init)
    		}
    		if n.Cond != nil {
    			ast.Walk(r, n.Cond)
    		}
    		if n.Post != nil {
    			ast.Walk(r, n.Post)
    		}
    		ast.Walk(r, n.Body)
    
    	case *ast.RangeStmt:
    		r.openScope(n.Pos())
    		defer r.closeScope()
    		ast.Walk(r, n.X)
    		var lhs []ast.Expr
    		if n.Key != nil {
    			lhs = append(lhs, n.Key)
    		}
    		if n.Value != nil {
    			lhs = append(lhs, n.Value)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 02 12:56:53 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  6. src/cmd/fix/typecheck.go

    								typeof[kv.Value] = ft
    							}
    						}
    					}
    				}
    			}
    
    		case *ast.ParenExpr:
    			// (x) has type of x.
    			typeof[n] = typeof[n.X]
    
    		case *ast.RangeStmt:
    			t := expand(typeof[n.X])
    			if t == "" {
    				return
    			}
    			var key, value string
    			if t == "string" {
    				key, value = "int", "rune"
    			} else if strings.HasPrefix(t, "[") {
    				key = "int"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ir/fmt.go

    		}
    
    		if n.Post != nil {
    			fmt.Fprintf(s, "; %v", n.Post)
    		} else if simpleinit {
    			fmt.Fprint(s, ";")
    		}
    
    		fmt.Fprintf(s, " { %v }", n.Body)
    
    	case ORANGE:
    		n := n.(*RangeStmt)
    		if !exportFormat {
    			fmt.Fprint(s, "for loop")
    			break
    		}
    
    		fmt.Fprint(s, "for")
    		if n.Key != nil {
    			fmt.Fprintf(s, " %v", n.Key)
    			if n.Value != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/typecheck.go

    		return tcCheckNil(n)
    
    	case ir.OSELECT:
    		tcSelect(n.(*ir.SelectStmt))
    		return n
    
    	case ir.OSWITCH:
    		tcSwitch(n.(*ir.SwitchStmt))
    		return n
    
    	case ir.ORANGE:
    		tcRange(n.(*ir.RangeStmt))
    		return n
    
    	case ir.OTYPESW:
    		n := n.(*ir.TypeSwitchGuard)
    		base.Fatalf("use of .(type) outside type switch")
    		return n
    
    	case ir.ODCLFUNC:
    		tcFunc(n.(*ir.Func))
    		return n
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Pkg", Const, 0},
    		{"Print", Func, 0},
    		{"RECV", Const, 0},
    		{"RangeStmt", Type, 0},
    		{"RangeStmt.Body", Field, 0},
    		{"RangeStmt.For", Field, 0},
    		{"RangeStmt.Key", Field, 0},
    		{"RangeStmt.Range", Field, 20},
    		{"RangeStmt.Tok", Field, 0},
    		{"RangeStmt.TokPos", Field, 0},
    		{"RangeStmt.Value", Field, 0},
    		{"RangeStmt.X", Field, 0},
    		{"ReturnStmt", Type, 0},
    		{"ReturnStmt.Results", Field, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
  10. src/go/printer/testdata/parser.go

    		}
    		if rhs, isUnary := as.Rhs[0].(*ast.UnaryExpr); isUnary && rhs.Op == token.RANGE {
    			// rhs is range expression
    			// (any short variable declaration was handled by parseSimpleStat above)
    			return &ast.RangeStmt{pos, key, value, as.TokPos, as.Tok, rhs.X, body}
    		}
    		p.errorExpected(s2.Pos(), "range clause")
    		return &ast.BadStmt{pos, body.End()}
    	}
    
    	// regular for statement
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
Back to top