Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 199 for goTo (0.14 sec)

  1. src/go/printer/testdata/statements.golden

    AnOverlongLabel:
    	_ = 0
    
    	if true {
    		_ = 0
    	}
    	_ = 0
    
    L:
    	_ = 0
    }
    
    func _() {
    	for {
    		goto L
    	}
    L:
    
    	MoreCode()
    }
    
    func _() {
    	for {
    		goto L
    	}
    L:	// A comment on the same line as the label, followed by a single empty line.
    	// Known bug: There may be more than one empty line before MoreCode()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 12 18:18:12 UTC 2014
    - 8K bytes
    - Viewed (0)
  2. test/fixedbugs/issue4748.go

    // license that can be found in the LICENSE file.
    
    // Issue 4748.
    // This program used to complain because inlining created two exit labels.
    
    package main
    
    func jump() {
            goto exit
    exit:
            return
    }
    func main() {
            jump()
            jump()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 374 bytes
    - Viewed (0)
  3. src/cmd/cover/testdata/test.go

    	}
    	check(LINE, 1)
    	{
    		check(LINE, 1)
    	}
    	{
    		check(LINE, 1)
    	}
    	check(LINE, 1)
    }
    
    func testSwitch() {
    	for i := 0; i < 5; func() { i++; check(LINE, 5) }() {
    		goto label2
    	label1:
    		goto label1
    	label2:
    		switch i {
    		case 0:
    			check(LINE, 1)
    		case 1:
    			check(LINE, 1)
    		case 2:
    			check(LINE, 1)
    		default:
    			check(LINE, 2)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.9K bytes
    - Viewed (0)
  4. test/fixedbugs/bug495.go

    // license that can be found in the LICENSE file.
    
    // Gccgo used to give an incorrect error
    // bug495.go:16:2: error: missing statement after label
    
    package p
    
    func F(i int) {
    	switch i {
    	case 0:
    		goto lab
    	lab:
    		fallthrough
    	case 1:
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 13 22:05:23 UTC 2015
    - 363 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/noder/stmt.go

    // TODO(mdempsky): Investigate replacing with switch statements or dense arrays.
    
    var branchOps = [...]ir.Op{
    	syntax.Break:       ir.OBREAK,
    	syntax.Continue:    ir.OCONTINUE,
    	syntax.Fallthrough: ir.OFALL,
    	syntax.Goto:        ir.OGOTO,
    }
    
    var callOps = [...]ir.Op{
    	syntax.Defer: ir.ODEFER,
    	syntax.Go:    ir.OGO,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 21 02:39:32 UTC 2023
    - 564 bytes
    - Viewed (0)
  6. src/go/token/token.go

    	CONTINUE: "continue",
    
    	DEFAULT:     "default",
    	DEFER:       "defer",
    	ELSE:        "else",
    	FALLTHROUGH: "fallthrough",
    	FOR:         "for",
    
    	FUNC:   "func",
    	GO:     "go",
    	GOTO:   "goto",
    	IF:     "if",
    	IMPORT: "import",
    
    	INTERFACE: "interface",
    	MAP:       "map",
    	PACKAGE:   "package",
    	RANGE:     "range",
    	RETURN:    "return",
    
    	SELECT: "select",
    	STRUCT: "struct",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  7. scripts/playwright/separate_openapi_schemas/image05.py

    
    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_role("button", name="Item", exact=True).click()
        page.set_viewport_size({"width": 960, "height": 700})
        page.screenshot(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 829 bytes
    - Viewed (0)
  8. test/fixedbugs/issue40367.go

    			panic("")
    		}
    		j--
    		sink[j] = j
    	}
    }
    
    func case2() {
    	i := 0
    	var sink [3]int
    	j := len(sink)
    top:
    	j--
    	sink[j] = j
    	if i < 2 {
    		i++
    		if i < 1 {
    			return
    		}
    		goto top
    	}
    }
    
    func main() {
    	case1()
    	case2()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 17:23:11 UTC 2020
    - 526 bytes
    - Viewed (0)
  9. scripts/playwright/separate_openapi_schemas/image01.py

    
    def run(playwright: Playwright) -> None:
        browser = playwright.chromium.launch(headless=False)
        context = browser.new_context(viewport={"width": 960, "height": 1080})
        page = context.new_page()
        page.goto("http://localhost:8000/docs")
        page.get_by_text("POST/items/Create Item").click()
        page.get_by_role("tab", name="Schema").first.click()
        page.screenshot(
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 819 bytes
    - Viewed (0)
  10. src/go/printer/testdata/statements.input

    AnOverlongLabel:
    	_ = 0
    	
    	if true {
    		_ = 0
    	}
    	_ = 0
    
    L:	_ = 0
    }
    
    
    func _() {
    	for {
    		goto L
    	}
    L:
    
    	MoreCode()
    }
    
    
    func _() {
    	for {
    		goto L
    	}
    L:	// A comment on the same line as the label, followed by a single empty line.
    	// Known bug: There may be more than one empty line before MoreCode()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 8.3K bytes
    - Viewed (0)
Back to top