Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for forRangeFunc (0.15 sec)

  1. src/cmd/compile/internal/rangefunc/rewrite.go

    	if r.nextVar == nil {
    		r.nextVar = r.declVar("#next", r.int.Type(), nil)
    	}
    	return r.useObj(r.nextVar)
    }
    
    // forRangeFunc checks whether n is a range-over-func.
    // If so, it returns n.(*syntax.ForStmt), true.
    // Otherwise it returns nil, false.
    func forRangeFunc(n syntax.Node) (*syntax.ForStmt, bool) {
    	nfor, ok := n.(*syntax.ForStmt)
    	if !ok {
    		return nil, false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
Back to top