Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for MethodsByName (0.16 sec)

  1. src/cmd/compile/internal/types/sort.go

    // license that can be found in the LICENSE file.
    
    package types
    
    // MethodsByName sorts methods by name.
    type MethodsByName []*Field
    
    func (x MethodsByName) Len() int           { return len(x) }
    func (x MethodsByName) Swap(i, j int)      { x[i], x[j] = x[j], x[i] }
    func (x MethodsByName) Less(i, j int) bool { return x[i].Sym.Less(x[j].Sym) }
    
    // EmbeddedsByName sorts embedded types by name.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 27 22:13:38 UTC 2021
    - 765 bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ModelSchemaUtils.java

                }
            });
            ImmutableListMultimap<String, Method> methodsByName = methodsByNameBuilder.build();
            ImmutableSortedMap.Builder<String, Map<Equivalence.Wrapper<Method>, Collection<Method>>> candidatesBuilder = ImmutableSortedMap.naturalOrder();
            for (String methodName : methodsByName.keySet()) {
                ImmutableList<Method> methodsWithSameName = methodsByName.get(methodName);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 06 15:03:49 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/size.go

    			// Clear position after typechecking, for consistency with types2.
    			f.Pos = src.NoXPos
    		}
    
    		// Clear position after typechecking, for consistency with types2.
    		m.Pos = src.NoXPos
    	}
    
    	sort.Sort(MethodsByName(methods))
    
    	if int64(len(methods)) >= MaxWidth/int64(PtrSize) {
    		base.ErrorfAt(typePos(t), 0, "interface too large")
    	}
    	for i, m := range methods {
    		m.Offset = int64(i) * int64(PtrSize)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/subr.go

    				f.Embedded = 2
    				break
    			}
    		}
    		ms = append(ms, f)
    	}
    
    	for _, f := range t.Methods() {
    		f.Sym.SetUniq(false)
    	}
    
    	ms = append(ms, t.Methods()...)
    	sort.Sort(types.MethodsByName(ms))
    	t.SetAllMethods(ms)
    }
    
    // adddot1 returns the number of fields or methods named s at depth d in Type t.
    // If exactly one exists, it will be returned in *save (if save is not nil),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
Back to top