Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 647 for parens (0.27 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. src/regexp/syntax/regexp.go

    	case OpCapture:
    		if x.Cap != y.Cap || x.Name != y.Name || !x.Sub[0].Equal(y.Sub[0]) {
    			return false
    		}
    	}
    	return true
    }
    
    // printFlags is a bit set indicating which flags (including non-capturing parens) to print around a regexp.
    type printFlags uint8
    
    const (
    	flagI    printFlags = 1 << iota // (?i:
    	flagM                           // (?m:
    	flagS                           // (?s:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:51 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/rulegen.go

    	if colon < 0 {
    		return "", arg
    	}
    	openparen := strings.Index(arg, "(")
    	if openparen < 0 {
    		log.Fatalf("splitNameExpr(%q): colon but no open parens", arg)
    	}
    	if colon > openparen {
    		// colon is inside the parens, such as in "(Foo x:(Bar))".
    		return "", arg
    	}
    	return arg[:colon], arg[colon+1:]
    }
    
    func getBlockInfo(op string, arch arch) (name string, data blockData) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/lex/input.go

    	}
    	in.macros[name] = &Macro{
    		name:   name,
    		args:   args,
    		tokens: tokens,
    	}
    }
    
    // macroDefinition returns the list of formals and the tokens of the definition.
    // The argument list is nil for no parens on the definition; otherwise a list of
    // formal argument names.
    func (in *Input) macroDefinition(name string) ([]string, []Token) {
    	prevCol := in.Stack.Col()
    	tok := in.Stack.Next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  9. src/runtime/string.go

    //
    //go:linkname slicebytetostring
    func slicebytetostring(buf *tmpBuf, ptr *byte, n int) string {
    	if n == 0 {
    		// Turns out to be a relatively common case.
    		// Consider that you want to parse out data between parens in "foo()bar",
    		// you find the indices and convert the subslice to string.
    		return ""
    	}
    	if raceenabled {
    		racereadrangepc(unsafe.Pointer(ptr),
    			uintptr(n),
    			getcallerpc(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  10. src/regexp/syntax/parse_test.go

    			continue
    		}
    
    		s := re.String()
    		if s != tt.Regexp {
    			// If ToString didn't return the original regexp,
    			// it must have found one with fewer parens.
    			// Unfortunately we can't check the length here, because
    			// ToString produces "\\{" for a literal brace,
    			// but "{" is a shorter equivalent in some contexts.
    			nre, err := Parse(s, testFlags)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 16.2K bytes
    - Viewed (0)
Back to top