Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for methodIndex (0.26 sec)

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

    	assert(t.inst == nil)
    	t.resolve()
    	if t.methodIndex(m.name, false) < 0 {
    		t.methods = append(t.methods, m)
    	}
    }
    
    // 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
    	}
    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

    	assert(t.inst == nil)
    	t.resolve()
    	if t.methodIndex(m.name, false) < 0 {
    		t.methods = append(t.methods, m)
    	}
    }
    
    // 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
    	}
    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/lookup.go

    		for i, f := range fields {
    			if f.sameId(pkg, name, foldCase) {
    				return i
    			}
    		}
    	}
    	return -1
    }
    
    // methodIndex returns the index of and method with matching package and name, or (-1, nil).
    // See Object.sameId for the meaning of foldCase.
    func methodIndex(methods []*Func, pkg *Package, name string, foldCase bool) (int, *Func) {
    	if name != "_" {
    		for i, m := range methods {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  4. src/go/types/lookup.go

    		for i, f := range fields {
    			if f.sameId(pkg, name, foldCase) {
    				return i
    			}
    		}
    	}
    	return -1
    }
    
    // methodIndex returns the index of and method with matching package and name, or (-1, nil).
    // See Object.sameId for the meaning of foldCase.
    func methodIndex(methods []*Func, pkg *Package, name string, foldCase bool) (int, *Func) {
    	if name != "_" {
    		for i, m := range methods {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. src/reflect/value.go

    // The return value t gives the method type signature (without the receiver).
    // The return value fn is a pointer to the method code.
    func methodReceiver(op string, v Value, methodIndex int) (rcvrtype *abi.Type, t *funcType, fn unsafe.Pointer) {
    	i := methodIndex
    	if v.typ().Kind() == abi.Interface {
    		tt := (*interfaceType)(unsafe.Pointer(v.typ()))
    		if uint(i) >= uint(len(tt.Methods)) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
Back to top