Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for startPos (0.24 sec)

  1. src/go/printer/nodes.go

    func (p *printer) distanceFrom(startPos token.Pos, startOutCol int) int {
    	if startPos.IsValid() && p.pos.IsValid() && p.posFor(startPos).Line == p.pos.Line {
    		return p.out.Column - startOutCol
    	}
    	return infinity
    }
    
    func (p *printer) funcDecl(d *ast.FuncDecl) {
    	p.setComment(d.Doc)
    	p.setPos(d.Pos())
    	p.print(token.FUNC, blank)
    	// We have to save startCol only after emitting FUNC; otherwise it can be on a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

                unicodeAllowed = true,
              )
          }
    
          return this
        }
    
        private fun resolvePath(
          input: String,
          startPos: Int,
          limit: Int,
        ) {
          var pos = startPos
          // Read a delimiter.
          if (pos == limit) {
            // Empty path: keep the base path as-is.
            return
          }
          val c = input[pos]
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 09 12:33:05 UTC 2024
    - 63.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/expr.go

    func opPos(x syntax.Expr) syntax.Pos {
    	switch op := x.(type) {
    	case nil:
    		return nopos // don't crash
    	case *syntax.Operation:
    		return op.Pos()
    	default:
    		return syntax.StartPos(x)
    	}
    }
    
    // opName returns the name of the operation if x is an operation
    // that might overflow; otherwise it returns the empty string.
    func opName(x syntax.Expr) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/parser.go

    		var typ Expr   // current type (from right to left)
    		for i := len(list) - 1; i >= 0; i-- {
    			par := list[i]
    			if par.Type != nil {
    				typ = par.Type
    				if par.Name == nil {
    					errPos = StartPos(typ)
    					par.Name = NewName(errPos, "_")
    				}
    			} else if typ != nil {
    				par.Type = typ
    			} else {
    				// par.Type == nil && typ == nil => we only have a par.Name
    				errPos = par.Name.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/api_test.go

    	}
    
    	makePkg("lib", libSrc)
    	makePkg("main", mainSrc)
    
    	for e, sel := range selections {
    		_ = sel.String() // assertion: must not panic
    
    		start := indexFor(mainSrc, syntax.StartPos(e))
    		end := indexFor(mainSrc, syntax.EndPos(e))
    		segment := mainSrc[start:end] // (all SelectorExprs are in main, not lib)
    
    		direct := "."
    		if sel.Indirect() {
    			direct = "->"
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  6. pkg/controller/podautoscaler/replica_calculator_test.go

    // increase in pod utilization which is calibrated against the tolerance value.
    func TestReplicaCalcComputedToleranceAlgImplementation(t *testing.T) {
    
    	startPods := int32(10)
    	// 150 mCPU per pod.
    	totalUsedCPUOfAllPods := int64(startPods * 150)
    	// Each pod starts out asking for 2X what is really needed.
    	// This means we will have a 50% ratio of used/requested
    	totalRequestedCPUOfAllPods := int32(2 * totalUsedCPUOfAllPods)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
  7. src/main/webapp/js/admin/plugins/daterangepicker/daterangepicker.js

    ...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 13 04:21:06 UTC 2020
    - 65.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/debug.go

    		return
    	}
    
    	// Pack the start/end coordinates into the start/end addresses
    	// of the entry, for decoding by PutLocationList.
    	start, startOK := encodeValue(state.ctxt, pending.startBlock, pending.startValue)
    	end, endOK := encodeValue(state.ctxt, endBlock, endValue)
    	if !startOK || !endOK {
    		// If someone writes a function that uses >65K values,
    		// they get incomplete debug info on 32-bit platforms.
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/filters/priority-and-fairness_test.go

    func newHTTP2ServerWithClient(handler http.Handler, clientTimeout time.Duration) (*httptest.Server, func(path string) (*http.Response, error)) {
    	server := httptest.NewUnstartedServer(handler)
    	server.EnableHTTP2 = true
    	server.StartTLS()
    	cli := server.Client()
    	cli.Timeout = clientTimeout
    	return server, func(path string) (*http.Response, error) {
    		return cli.Get(server.URL + path)
    	}
    }
    
    type headerMatcher struct{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  10. cmd/test-utils_test.go

    	}
    	config := &tls.Config{Certificates: []tls.Certificate{cer}}
    
    	testServer := UnstartedTestServer(t, instanceType)
    	testServer.Server.TLS = config
    	testServer.Server.StartTLS()
    	return testServer
    }
    
    // Starts the test server and returns the TestServer instance.
    func StartTestServer(t TestErrHandler, instanceType string) TestServer {
    	// create an instance of TestServer.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
Back to top