Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for valfunc (0.2 sec)

  1. src/cmd/internal/obj/pcln.go

    // returned by valfunc parameterized by arg. The invocation of valfunc to update the
    // current value is, for each p,
    //
    //	sym = valfunc(func, p, 0, arg);
    //	record sym.P as value at p->pc;
    //	sym = valfunc(func, p, 1, arg);
    //
    // where func is the function, val is the current value, p is the instruction being
    // considered, and arg can be used to further parameterize valfunc.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 20:45:15 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/nilfunc.go

    	"golang.org/x/tools/internal/typeparams"
    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name:     "nilfunc",
    	Doc:      analysisutil.MustExtractDoc(doc, "nilfunc"),
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilfunc",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 2K bytes
    - Viewed (0)
  3. src/cmd/vet/testdata/nilfunc/nilfunc.go

    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package nilfunc
    
    func F() {}
    
    func Comparison() {
    	if F == nil { // ERROR "comparison of function F == nil is always false"
    		panic("can't happen")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 313 bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/cover_test_pkgselect.txt

    }
    
    -- bar/bar.go --
    package bar
    
    import "example/foo"
    
    func BarFunc() int {
    	return foo.FooFunc2()
    }
    
    -- bar/bar_test.go --
    package bar_test
    
    import (
    	"example/bar"
    	"testing"
    )
    
    func TestBar(t *testing.T) {
    	if bar.BarFunc() != 42 {
    		t.Fatalf("bad")
    	}
    }
    
    -- baz/baz.go --
    package baz
    
    func BazFunc() int {
    	return -42
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:50:58 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/fairqueuing/queueset/fifo_list.go

    // otherwise `nil`.
    type removeFromFIFOFunc func() *request
    
    // walkFunc is called for each request in the list in the
    // oldest -> newest order.
    // ok: if walkFunc returns false then the iteration stops immediately.
    // walkFunc may remove the given request from the fifo,
    // but may not mutate the fifo in any othe way.
    type walkFunc func(*request) (ok bool)
    
    // Internal interface to abstract out the implementation details
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 16:05:53 UTC 2021
    - 3.9K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/text/cases/map.go

    	undLowerIgnoreSigma transform.SpanningTransformer = &undLowerIgnoreSigmaCaser{}
    
    	lowerFunc = []mapFunc{
    		nil,       // und
    		nil,       // af
    		aztrLower, // az
    		nil,       // el
    		ltLower,   // lt
    		nil,       // nl
    		aztrLower, // tr
    	}
    
    	titleInfos = []struct {
    		title     mapFunc
    		lower     mapFunc
    		titleSpan spanFunc
    		rewrite   func(*context)
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/nilfunc/doc.go

    // license that can be found in the LICENSE file.
    
    // Package nilfunc defines an Analyzer that checks for useless
    // comparisons against nil.
    //
    // # Analyzer nilfunc
    //
    // nilfunc: check for useless comparisons between functions and nil
    //
    // A useless comparison is one like f == nil as opposed to f() == nil.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 437 bytes
    - Viewed (0)
  8. pkg/volume/volume_linux.go

    //   - callback walkFunc is invoked on root directory after visiting children dirs and files
    func walkDeep(root string, walkFunc filepath.WalkFunc) error {
    	info, err := os.Lstat(root)
    	if err != nil {
    		return walkFunc(root, nil, err)
    	}
    	return walk(root, info, walkFunc)
    }
    
    func walk(path string, info os.FileInfo, walkFunc filepath.WalkFunc) error {
    	if !info.IsDir() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 03 19:34:37 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  9. tests/common/jwt/jwt_token.go

    	//  "iss": "******@****.***",
    	//  "nested": {
    	//    "key2": "valueC",
    	//    "nested-2": {
    	//      "key2": "valueC"
    	//    }
    	//  },
    	//  "sub": "sub-1"
    	// }
    	// Generated by: security/tools/jwt/samples/gen-jwt.py tests/common/jwt/key.pem -jwks=tests/common/jwt/jwks.json
    	// --expire=3153600000 --iss=******@****.*** --sub=sub-1 --nestedclaim key2 valueC
    	// nolint: lll
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 23:36:51 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. src/cmd/vet/testdata/copylock/copylock.go

    // Copyright 2018 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package copylock
    
    import "sync"
    
    func BadFunc() {
    	var x *sync.Mutex
    	p := x
    	var y sync.Mutex
    	p = &y
    	*p = *x // ERROR "assignment copies lock value to \*p: sync.Mutex"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 26 21:34:18 UTC 2021
    - 333 bytes
    - Viewed (0)
Back to top