Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,093 for parens (0.12 sec)

  1. src/cmd/compile/internal/inline/interleaved/interleaved.go

    			n = paren
    		}
    
    		return n
    	}
    	ir.EditChildren(fn, mark)
    
    	// Edit until stable.
    	for {
    		done := true
    
    		for i := 0; i < len(parens); i++ { // can't use "range parens" here
    			paren := parens[i]
    			if new := edit(paren.X); new != nil {
    				// Update AST and recursively mark nodes.
    				paren.X = new
    				ir.EditChildren(new, mark) // mark may append to parens
    				done = false
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 20:42:52 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typestring.go

    		w.string("map[")
    		w.typ(t.key)
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Chan:
    		var s string
    		var parens bool
    		switch t.dir {
    		case SendRecv:
    			s = "chan "
    			// chan (<-chan T) requires parentheses
    			if c, _ := t.elem.(*Chan); c != nil && c.dir == RecvOnly {
    				parens = true
    			}
    		case SendOnly:
    			s = "chan<- "
    		case RecvOnly:
    			s = "<-chan "
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  3. src/go/types/typestring.go

    		w.string("map[")
    		w.typ(t.key)
    		w.byte(']')
    		w.typ(t.elem)
    
    	case *Chan:
    		var s string
    		var parens bool
    		switch t.dir {
    		case SendRecv:
    			s = "chan "
    			// chan (<-chan T) requires parentheses
    			if c, _ := t.elem.(*Chan); c != nil && c.dir == RecvOnly {
    				parens = true
    			}
    		case SendOnly:
    			s = "chan<- "
    		case RecvOnly:
    			s = "<-chan "
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/PluginsBlockInterpreterTest.kt

            assertDynamicInterpretationOf(
                """.""",
                "Expecting token of type RBRACE, but got DOT instead"
            )
        }
    
        @Test
        fun `syntax error - id() without parens`() {
            assertDynamicInterpretationOf(
                """id "plugin-id"""",
                "Expecting token of type RBRACE, but got IDENTIFIER ('id') instead"
            )
        }
    
        @Test
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 15:15:27 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  5. src/runtime/traceback_system_test.go

    		//   SYMBOL(ARGS)
    		//   \tFILE:LINE +0xRELPC sp=0x%x fp=0x%x pc=0x%x
    		// Note: SYMBOL may contain parens "pkg.(*T).method"
    		// The RELPC is sometimes missing.
    
    		// Skip the symbol(args) line.
    		i++
    		if i == len(lines) {
    			break
    		}
    		line = lines[i]
    
    		// Parse the PC, and correct for the parent and child's
    		// different mappings of the text section.
    		pc, err := getPC(line)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/crashmonitor/monitor.go

    // Child runs the part of the crashmonitor that runs in the child process.
    // It expects its stdin to be connected via a pipe to the parent which has
    // run Parent.
    func Child() {
    	// Wait for parent process's dying gasp.
    	// If the parent dies for any reason this read will return.
    	data, err := io.ReadAll(os.Stdin)
    	if err != nil {
    		log.Fatalf("failed to read from input pipe: %v", err)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:57:25 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. src/html/template/exec_test.go

    	// Parenthesized expressions
    	{"parens in pipeline", "{{printf `%d %d %d` (1) (2 | add 3) (add 4 (add 5 6))}}", "1 5 15", tVal, true},
    
    	// Parenthesized expressions with field accesses
    	{"parens: $ in paren", "{{($).X}}", "x", tVal, true},
    	{"parens: $.GetU in paren", "{{($.GetU).V}}", "v", tVal, true},
    	{"parens: $ in paren in pipe", "{{($ | echo).X}}", "x", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    		if path := lockPath(pass.Pkg, pass.TypesInfo.Types[expr].Type, nil); path != nil {
    			pass.ReportRangef(expr, "%s passes lock by value: %v", name, path)
    		}
    	}
    
    	if typ.Params != nil {
    		for _, field := range typ.Params.List {
    			expr := field.Type
    			if path := lockPath(pass.Pkg, pass.TypesInfo.Types[expr].Type, nil); path != nil {
    				pass.ReportRangef(expr, "%s passes lock by value: %v", name, path)
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  9. src/text/template/exec_test.go

    	// Parenthesized expressions
    	{"parens in pipeline", "{{printf `%d %d %d` (1) (2 | add 3) (add 4 (add 5 6))}}", "1 5 15", tVal, true},
    
    	// Parenthesized expressions with field accesses
    	{"parens: $ in paren", "{{($).X}}", "x", tVal, true},
    	{"parens: $.GetU in paren", "{{($.GetU).V}}", "v", tVal, true},
    	{"parens: $ in paren in pipe", "{{($ | echo).X}}", "x", tVal, true},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 22:23:55 UTC 2024
    - 60.1K bytes
    - Viewed (0)
  10. src/runtime/error.go

    func panicwrap() {
    	pc := getcallerpc()
    	name := funcNameForPrint(funcname(findfunc(pc)))
    	// name is something like "main.(*T).F".
    	// We want to extract pkg ("main"), typ ("T"), and meth ("F").
    	// Do it by finding the parens.
    	i := bytealg.IndexByteString(name, '(')
    	if i < 0 {
    		throw("panicwrap: no ( in " + name)
    	}
    	pkg := name[:i-1]
    	if i+2 >= len(name) || name[i-1:i+2] != ".(*" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
Back to top