Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for allMethods (0.62 sec)

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

    	// position.
    
    	var seen objset
    	var allMethods []*Func
    	mpos := make(map[*Func]syntax.Pos) // method specification or method embedding position, for good error messages
    	addMethod := func(pos syntax.Pos, m *Func, explicit bool) {
    		switch other := seen.insert(m); {
    		case other == nil:
    			allMethods = append(allMethods, m)
    			mpos[m] = pos
    		case explicit:
    			if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  2. src/go/types/typeset.go

    	// position.
    
    	var seen objset
    	var allMethods []*Func
    	mpos := make(map[*Func]token.Pos) // method specification or method embedding position, for good error messages
    	addMethod := func(pos token.Pos, m *Func, explicit bool) {
    		switch other := seen.insert(m); {
    		case other == nil:
    			allMethods = append(allMethods, m)
    			mpos[m] = pos
    		case explicit:
    			if check != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  3. src/go/doc/reader.go

    			Methods: sortedFuncs(t.methods, allMethods),
    		}
    		i++
    	}
    
    	slices.SortFunc(list, func(a, b *Type) int {
    		return strings.Compare(a.Name, b.Name)
    	})
    
    	return list
    }
    
    func removeStar(s string) string {
    	if len(s) > 0 && s[0] == '*' {
    		return s[1:]
    	}
    	return s
    }
    
    func sortedFuncs(m methodSet, allMethods bool) []*Func {
    	list := make([]*Func, len(m))
    	i := 0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaObjectSerializationCodec.kt

         */
        private
        fun readObjectMethodHierarchyForDecoding(type: Class<*>): List<Method> =
            readObjectHierarchy.computeIfAbsent(type) {
                readObjectMethodHierarchyFrom(it.allMethods())
            }
    }
    
    
    internal
    fun Method.isReadResolve() =
        !isStatic(modifiers)
            && parameterCount == 0
            && returnType == java.lang.Object::class.java
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top