Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 76 for GOTO (0.2 sec)

  1. src/go/types/resolver_test.go

    		}
    		`,
    		`
    		package p
    		type S struct{}
    		func (T) _() {}
    		func (T) _() {}
    		`,
    		`
    		package p
    		func _() {
    		L0:
    		L1:
    			goto L0
    			for {
    				goto L1
    			}
    			if true {
    				goto L2
    			}
    		L2:
    		}
    		`,
    	}
    
    	pkgnames := []string{
    		"fmt",
    		"math",
    	}
    
    	// parse package files
    	fset := token.NewFileSet()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. src/go/types/labels.go

    	// If there are any forward jumps left, no label was found for
    	// the corresponding goto statements. Either those labels were
    	// never defined, or they are inside blocks and not reachable
    	// for the respective gotos.
    	for _, jmp := range fwdJumps {
    		var msg string
    		var code Code
    		name := jmp.Label.Name
    		if alt := all.Lookup(name); alt != nil {
    			msg = "goto %s jumps into block"
    			code = JumpIntoBlock
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/labels.go

    	// If there are any forward jumps left, no label was found for
    	// the corresponding goto statements. Either those labels were
    	// never defined, or they are inside blocks and not reachable
    	// for the respective gotos.
    	for _, jmp := range fwdJumps {
    		var msg string
    		var code Code
    		name := jmp.Label.Value
    		if alt := all.Lookup(name); alt != nil {
    			msg = "goto %s jumps into block"
    			code = JumpIntoBlock
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/call.go

    		// don't crash for "type T T.x" (was go.dev/issue/51509)
    		if def != nil && def.typ == x.typ {
    			check.cycleError([]Object{def}, 0)
    			goto Error
    		}
    	case builtin:
    		check.errorf(e.Pos(), UncalledBuiltin, "cannot select on %s", x)
    		goto Error
    	case invalid:
    		goto Error
    	}
    
    	// Avoid crashing when checking an invalid selector in a method declaration
    	// (i.e., where def is not set):
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  5. src/go/types/call.go

    		if def != nil && def.typ == x.typ {
    			check.cycleError([]Object{def}, 0)
    			goto Error
    		}
    	case builtin:
    		// types2 uses the position of '.' for the error
    		check.errorf(e.Sel, UncalledBuiltin, "cannot select on %s", x)
    		goto Error
    	case invalid:
    		goto Error
    	}
    
    	// Avoid crashing when checking an invalid selector in a method declaration
    	// (i.e., where def is not set):
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  6. src/runtime/map_fast64.go

    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    				if b.overflow(t) != nil && b.overflow(t).tophash[0] != emptyRest {
    					goto notLast
    				}
    			} else {
    				if b.tophash[i+1] != emptyRest {
    					goto notLast
    				}
    			}
    			for {
    				b.tophash[i] = emptyRest
    				if i == 0 {
    					if b == bOrig {
    						break // beginning of initial bucket, we're done.
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/go/build/read.go

    					}
    					continue
    				}
    				if c == '"' {
    					c = r.readByteNoBuf()
    					goto Reswitch
    				}
    			}
    			goto Reswitch
    
    		case '`':
    			startLine = false
    			for r.err == nil {
    				if r.eof {
    					r.syntaxError()
    				}
    				c = r.readByteNoBuf()
    				if c == '`' {
    					c = r.readByteNoBuf()
    					goto Reswitch
    				}
    			}
    
    		case '\'':
    			startLine = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  8. src/runtime/map_fast32.go

    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    				if b.overflow(t) != nil && b.overflow(t).tophash[0] != emptyRest {
    					goto notLast
    				}
    			} else {
    				if b.tophash[i+1] != emptyRest {
    					goto notLast
    				}
    			}
    			for {
    				b.tophash[i] = emptyRest
    				if i == 0 {
    					if b == bOrig {
    						break // beginning of initial bucket, we're done.
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. src/runtime/map_faststr.go

    			// change those to emptyRest states.
    			if i == abi.MapBucketCount-1 {
    				if b.overflow(t) != nil && b.overflow(t).tophash[0] != emptyRest {
    					goto notLast
    				}
    			} else {
    				if b.tophash[i+1] != emptyRest {
    					goto notLast
    				}
    			}
    			for {
    				b.tophash[i] = emptyRest
    				if i == 0 {
    					if b == bOrig {
    						break // beginning of initial bucket, we're done.
    					}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/rangefunc/rewrite.go

    	var next int
    	var ret *syntax.ReturnStmt
    	if x.Tok == syntax.Goto || i < 0 {
    		// goto Label
    		// or break/continue of labeled non-range-over-func loop (x.Label != nil).
    		// We may be able to leave it alone, or we may have to break
    		// out of one or more nested loops and then use #next to signal
    		// to complete the break/continue/goto.
    		// Figure out which range-over-func loop contains the label.
    		r.computeBranchNext()
    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