Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 983 for parens (1.35 sec)

  1. 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)
  2. src/fmt/scan.go

    	}
    	return string(s.buf)
    }
    
    // complexTokens returns the real and imaginary parts of the complex number starting here.
    // The number might be parenthesized and has the format (N+Ni) where N is a floating-point
    // number and there are no spaces within.
    func (s *ss) complexTokens() (real, imag string) {
    	// TODO: accept N and Ni independently?
    	parens := s.accept("(")
    	real = s.floatToken()
    	s.buf = s.buf[:0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:56:20 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  3. src/go/printer/printer_test.go

    func f()
    `
    
    	if got != want {
    		t.Fatalf("got:\n%s\nwant:\n%s\n", got, want)
    	}
    }
    
    // TestChanType tests that the tree for <-(<-chan int), without
    // ParenExpr, is correctly formatted with parens.
    // Test case for issue #63362.
    func TestChanType(t *testing.T) {
    	expr := &ast.UnaryExpr{
    		Op: token.ARROW,
    		X: &ast.CallExpr{
    			Fun: &ast.ChanType{
    				Dir:   ast.RECV,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  4. src/go/doc/example.go

    			if isTest(name, "Test") || isTest(name, "Benchmark") || isTest(name, "Fuzz") {
    				hasTests = true
    				continue
    			}
    			if !isTest(name, "Example") {
    				continue
    			}
    			if params := f.Type.Params; len(params.List) != 0 {
    				continue // function has params; not a valid example
    			}
    			if f.Body == nil { // ast.File.Body nil dereference (see issue 28044)
    				continue
    			}
    			var doc string
    			if f.Doc != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  5. src/go/types/resolver.go

    						}
    						if t := d.decl.Type; t.Params.NumFields() != 0 || t.Results != nil {
    							// TODO(rFindley) Should this be a hard error?
    							check.softErrorf(d.decl.Name, code, "func %s must have no arguments and no return values", name)
    						}
    					}
    					if name == "init" {
    						// don't declare init functions in the package scope - they are invisible
    						obj.parent = pkg.scope
    						check.recordDef(d.decl.Name, obj)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  6. src/time/format_test.go

    			}
    			s = suffix
    		}
    		return out
    	}
    
    	noParens := func(r rune) rune {
    		if r == '(' || r == ')' {
    			return -1
    		}
    		return r
    	}
    
    	for _, marked := range nextStdChunkTests {
    		// marked is an expected output from markChunks.
    		// If we delete the parens and pass it through markChunks,
    		// we should get the original back.
    		format := strings.Map(noParens, marked)
    		out := markChunks(format)
    		if out != marked {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:58:29 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/typecheck.go

    		}
    	}
    	return true
    }
    
    func hasddd(params []*types.Field) bool {
    	// TODO(mdempsky): Simply check the last param.
    	for _, tl := range params {
    		if tl.IsDDD() {
    			return true
    		}
    	}
    
    	return false
    }
    
    // typecheck assignment: type list = expression list
    func typecheckaste(op ir.Op, call ir.Node, isddd bool, params []*types.Field, nl ir.Nodes, desc func() string) {
    	var t *types.Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/parser.go

    		o := new(Operation)
    		o.pos = pos
    		o.Op = Recv
    		o.X = x
    		return o
    	}
    
    	// TODO(mdempsky): We need parens here so we can report an
    	// error for "(x) := true". It should be possible to detect
    	// and reject that more efficiently though.
    	return p.pexpr(nil, true)
    }
    
    // callStmt parses call-like statements that can be preceded by 'defer' and 'go'.
    func (p *parser) callStmt() *CallStmt {
    	if trace {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  9. maven-api-impl/src/test/remote-repo/org/apache/maven/its/parent/0.1/parent-0.1.pom

        <modelVersion>4.0.0</modelVersion>
    
        <groupId>org.apache.maven.its</groupId>
        <artifactId>parent</artifactId>
        <version>0.1</version>
        <packaging>pom</packaging>
    
        <name>Maven Integration Test :: Dummy Parent</name>
    
        <build>
            <pluginManagement>
                <plugins>
                    <plugin>
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Thu May 02 15:10:38 UTC 2024
    - 774 bytes
    - Viewed (0)
  10. prow/config/calico.yaml

                      \"c\" \thas(label_name)  -> True if that label is present \t! expr
                      -> negation of expr \texpr && expr  -> Short-circuit and \texpr
                      || expr  -> Short-circuit or \t( expr ) -> parens for grouping \tall()
                      or the empty selector -> matches all endpoints. \n Label names are
                      allowed to contain alphanumerics, -, _ and /. String literals are
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 246.5K bytes
    - Viewed (0)
Back to top