Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for FoldCase (0.2 sec)

  1. src/cmd/compile/internal/types2/named.go

    	}
    }
    
    // methodIndex returns the index of the method with the given name.
    // If foldCase is set, capitalization in the name is ignored.
    // The result is negative if no such method exists.
    func (t *Named) methodIndex(name string, foldCase bool) int {
    	if name == "_" {
    		return -1
    	}
    	if foldCase {
    		for i, m := range t.methods {
    			if strings.EqualFold(m.name, name) {
    				return i
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. src/go/types/named.go

    	}
    }
    
    // methodIndex returns the index of the method with the given name.
    // If foldCase is set, capitalization in the name is ignored.
    // The result is negative if no such method exists.
    func (t *Named) methodIndex(name string, foldCase bool) int {
    	if name == "_" {
    		return -1
    	}
    	if foldCase {
    		for i, m := range t.methods {
    			if strings.EqualFold(m.name, name) {
    				return i
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/object.go

    	setParent(*Scope)
    
    	// sameId reports whether obj.Id() and Id(pkg, name) are the same.
    	// If foldCase is true, names are considered equal if they are equal with case folding
    	// and their packages are ignored (e.g., pkg1.m, pkg1.M, pkg2.m, and pkg2.M are all equal).
    	sameId(pkg *Package, name string, foldCase bool) bool
    
    	// scopePos returns the start position of the scope of this Object
    	scopePos() syntax.Pos
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  4. src/go/types/object.go

    	setParent(*Scope)
    
    	// sameId reports whether obj.Id() and Id(pkg, name) are the same.
    	// If foldCase is true, names are considered equal if they are equal with case folding
    	// and their packages are ignored (e.g., pkg1.m, pkg1.M, pkg2.m, and pkg2.M are all equal).
    	sameId(pkg *Package, name string, foldCase bool) bool
    
    	// scopePos returns the start position of the scope of this Object
    	scopePos() token.Pos
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/typeset.go

    // LookupMethod returns the index of and method with matching package and name, or (-1, nil).
    func (s *_TypeSet) LookupMethod(pkg *Package, name string, foldCase bool) (int, *Func) {
    	return methodIndex(s.methods, pkg, name, foldCase)
    }
    
    func (s *_TypeSet) String() string {
    	switch {
    	case s.IsEmpty():
    		return "∅"
    	case s.IsAll():
    		return "𝓤"
    	}
    
    	hasMethods := len(s.methods) > 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  6. src/go/types/typeset.go

    // LookupMethod returns the index of and method with matching package and name, or (-1, nil).
    func (s *_TypeSet) LookupMethod(pkg *Package, name string, foldCase bool) (int, *Func) {
    	return methodIndex(s.methods, pkg, name, foldCase)
    }
    
    func (s *_TypeSet) String() string {
    	switch {
    	case s.IsEmpty():
    		return "∅"
    	case s.IsAll():
    		return "𝓤"
    	}
    
    	hasMethods := len(s.methods) > 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      "tf._SomeOp"(%0#2, %0#0) : (tensor<!tf_type.resource>, tensor<f32>) -> ()
      // CHECK: return %[[CASE_OUTPUT]] : tensor<f32>
      func.return %0#1 : tensor<f32>
    }
    
    
    // CHECK-LABEL: foldCase
    func.func @foldCase(%arg0: tensor<f32>, %arg1: tensor<f32>) -> (tensor<f32>) {
      %2 = arith.constant dense<1> : tensor<i32>
      %3 = arith.constant dense<0> : tensor<i32>
    
      // CHECK: PartitionedCall
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  8. src/runtime/stack.go

    //
    // varp > sp means that the function has a frame;
    // varp == sp means frameless function.
    
    type adjustinfo struct {
    	old   stack
    	delta uintptr // ptr distance from old to new stack (newbase - oldbase)
    
    	// sghi is the highest sudog.elem on the stack.
    	sghi uintptr
    }
    
    // adjustpointer checks whether *vpp is in the old stack described by adjinfo.
    // If so, it rewrites *vpp to point into the new stack.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 41.1K bytes
    - Viewed (0)
Back to top