Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 144 for methodSet (0.16 sec)

  1. src/go/types/methodset.go

    	"fmt"
    	"sort"
    	"strings"
    )
    
    // A MethodSet is an ordered set of concrete or abstract (interface) methods;
    // a method is a [MethodVal] selection, and they are ordered by ascending m.Obj().Id().
    // The zero value for a MethodSet is a ready-to-use empty method set.
    type MethodSet struct {
    	list []*Selection
    }
    
    func (s *MethodSet) String() string {
    	if s.Len() == 0 {
    		return "MethodSet {}"
    	}
    
    	var buf strings.Builder
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/MethodSet.java

    import java.util.Map;
    import java.util.Objects;
    
    import static java.util.Collections.unmodifiableCollection;
    
    public class MethodSet implements Iterable<Method> {
        private final Map<MethodKey, Method> methods = new LinkedHashMap<>();
    
        public void add(Method method) {
            MethodKey key = new MethodKey(method);
            Method current = methods.get(key);
            if (current == null || shouldReplace(current, method)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/methodsetcache.go

    // MethodSet(T) is called so that repeat queries are fast.
    // The zero value is a ready-to-use cache instance.
    type MethodSetCache struct {
    	mu     sync.Mutex
    	named  map[*types.Named]struct{ value, pointer *types.MethodSet } // method sets for named N and *N
    	others map[types.Type]*types.MethodSet                            // all other types
    }
    
    // MethodSet returns the method set of type T.  It is thread-safe.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 18:08:27 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/ui.go

    )
    
    // IntuitiveMethodSet returns the intuitive method set of a type T,
    // which is the set of methods you can call on an addressable value of
    // that type.
    //
    // The result always contains MethodSet(T), and is exactly MethodSet(T)
    // for interface types and for pointer-to-concrete types.
    // For all other concrete types T, the result additionally
    // contains each method belonging to *T if there is no identically
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/MutablePropertyDetails.java

    import java.lang.reflect.Method;
    import java.util.Collection;
    
    class MutablePropertyDetails implements PropertyDetails {
        private final String name;
        private final MethodSet getters = new MethodSet();
        private final MethodSet setters = new MethodSet();
        private Field field;
    
        MutablePropertyDetails(String name) {
            this.name = name;
        }
    
        @Override
        public String getName() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/main/java/org/gradle/tooling/internal/adapter/TypeInspector.java

            }
    
            for (Method method : type.getDeclaredMethods()) {
                Set<Type> methodSet = new HashSet<Type>();
                visit(method.getGenericReturnType(), types, methodSet);
                for (TypeVariable<Method> typeVariable : method.getTypeParameters()) {
                    visit(typeVariable, types, methodSet);
                }
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  7. src/net/http/routing_tree.go

    }
    
    // matchingMethods adds to methodSet all the methods that would result in a
    // match if passed to routingNode.match with the given host and path.
    func (root *routingNode) matchingMethods(host, path string, methodSet map[string]bool) {
    	if host != "" {
    		root.findChild(host).matchingMethodsPath(path, methodSet)
    	}
    	root.emptyChild.matchingMethodsPath(path, methodSet)
    	if methodSet["GET"] {
    		methodSet["HEAD"] = true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/MutableClassDetails.java

    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.util.TreeMap;
    
    class MutableClassDetails implements ClassDetails {
        private final Class<?> type;
        private final MethodSet instanceMethods = new MethodSet();
        private final Map<String, MutablePropertyDetails> properties = new TreeMap<String, MutablePropertyDetails>();
        private final List<Method> methods = new ArrayList<Method>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  9. src/go/doc/reader.go

    // function/method sets
    //
    // Internally, we treat functions like methods and collect them in method sets.
    
    // A methodSet describes a set of methods. Entries where Decl == nil are conflict
    // entries (more than one method with the same name at the same embedding level).
    type methodSet map[string]*Func
    
    // recvString returns a string representation of recv of the form "T", "*T",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/decls2/decls2a.go

    // Disabled for now: LookupFieldOrMethod will find Pointer even though
    // it's double-declared (it would cost extra in the common case to verify
    // this). But the MethodSet computation will not find it due to the name
    // collision caused by the double-declaration, leading to an internal
    // inconsistency while we are verifying one computation against the other.
    // var _ = T1c{}.Pointer
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top