Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 400 for assignOp (0.25 sec)

  1. src/go/types/token_test.go

    	}
    }
    
    func TestAssignOp(t *testing.T) {
    	// there are fewer than 256 tokens
    	for i := 0; i < 256; i++ {
    		tok := token.Token(i)
    		got := assignOp(tok)
    		want := assignOps[tok]
    		if got != want {
    			t.Errorf("for assignOp(%s): got %s; want %s", tok, got, want)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 08 03:40:04 UTC 2015
    - 1.2K bytes
    - Viewed (0)
  2. hack/golangci.yaml.in

        # over time.
    
        # https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008918
        - linters:
            - gocritic
          text: "assignOp:"
    
        # https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507016854
        - linters:
            - gosimple
          text: "S1002: should omit comparison to bool constant"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 13 13:12:04 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. hack/golangci-strict.yaml

        # over time.
    
        # https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507008918
        - linters:
            - gocritic
          text: "assignOp:"
    
        # https://github.com/kubernetes/kubernetes/issues/117288#issuecomment-1507016854
        - linters:
            - gosimple
          text: "S1002: should omit comparison to bool constant"
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go

    	"golang.org/x/tools/go/ast/inspector"
    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name:     "assign",
    	Doc:      analysisutil.MustExtractDoc(doc, "assign"),
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/assign",
    	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: Thu Oct 19 23:33:33 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. src/cmd/vet/testdata/assign/assign.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the useless-assignment checker.
    
    package assign
    
    import "math/rand"
    
    type ST struct {
    	x int
    	l []int
    }
    
    func (s *ST) SetX(x int, ch chan int) {
    	// Accidental self-assignment; it should be "s.x = x"
    	x = x // ERROR "self-assignment of x to x"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 804 bytes
    - Viewed (0)
  6. .github/workflows/auto-assign-pr-to-author.yml

    name: 'Auto Assign PR to Author'
    on:
      pull_request:
        types: [opened]
    
    permissions: {}
    
    jobs:
      add-reviews:
        permissions:
          contents: read  # for kentaro-m/auto-assign-action to fetch config file
          pull-requests: write  # for kentaro-m/auto-assign-action to assign PR reviewers
        runs-on: ubuntu-latest
        steps:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 02 09:13:16 UTC 2024
    - 381 bytes
    - Viewed (0)
  7. test/assign1.go

    Rob Pike <******@****.***> 1329617983 +1100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Feb 19 02:19:43 UTC 2012
    - 5.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/sparsetree.go

    			if c != c0 {
    				s += " "
    			}
    			s += t.treestructure1(c, i+1)
    		}
    		s += ")"
    	}
    	return s
    }
    
    // numberBlock assigns entry and exit numbers for b and b's
    // children in an in-order walk from a gappy sequence, where n
    // is the first number not yet assigned or reserved. N should
    // be larger than zero. For each entry and exit number, the
    // values one larger and smaller are reserved to indicate
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  9. test/assign.go

    Robert Griesemer <******@****.***> 1607975635 -0800
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 20:13:36 UTC 2020
    - 1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/hoist_replicate_invariant_resource_writes.cc

          new_replicate_op->getResults().take_front(old_num_results));
    
      // Move assign ops after replicate and use the output of first replica.
      for (auto indexed_assign : llvm::enumerate(tail_assign_variable_ops)) {
        auto assign_op = indexed_assign.value();
        auto index = indexed_assign.index();
        assign_op->moveAfter(new_replicate_op);
        assign_op->setOperand(
            1, new_replicate_op->getResult(old_num_results + num_replicas * index));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 03 12:35:38 UTC 2022
    - 5.8K bytes
    - Viewed (0)
Back to top