Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 28 for addMethods (0.32 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/cmd/compile/internal/types/size.go

    }
    
    // expandiface computes the method set for interface type t by
    // expanding embedded interfaces.
    func expandiface(t *Type) {
    	seen := make(map[*Sym]*Field)
    	var methods []*Field
    
    	addMethod := func(m *Field, explicit bool) {
    		switch prev := seen[m.Sym]; {
    		case prev == nil:
    			seen[m.Sym] = m
    		case !explicit && Identical(m.Type, prev.Type):
    			return
    		default:
    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/types2/named.go

    	t.resolve().underlying = underlying
    	if t.fromRHS == nil {
    		t.fromRHS = underlying // for cycle detection
    	}
    }
    
    // AddMethod adds method m unless it is already in the method list.
    // The method must be in the same package as t, and t must not have
    // type arguments.
    func (t *Named) AddMethod(m *Func) {
    	assert(samePkg(t.obj.pkg, m.pkg))
    	assert(t.inst == nil)
    	t.resolve()
    	if t.methodIndex(m.name, false) < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  5. src/go/types/named.go

    	t.resolve().underlying = underlying
    	if t.fromRHS == nil {
    		t.fromRHS = underlying // for cycle detection
    	}
    }
    
    // AddMethod adds method m unless it is already in the method list.
    // The method must be in the same package as t, and t must not have
    // type arguments.
    func (t *Named) AddMethod(m *Func) {
    	assert(samePkg(t.obj.pkg, m.pkg))
    	assert(t.inst == nil)
    	t.resolve()
    	if t.methodIndex(m.name, false) < 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 24K bytes
    - Viewed (0)
  6. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/AssembleDslDocTask.groovy

                def linkMetaData = linkRepository.get(classDoc.name)
                linkMetaData.style = LinkMetaData.Style.Dsldoc
                classDoc.classMethods.each { methodDoc ->
                    linkMetaData.addMethod(methodDoc.metaData, LinkMetaData.Style.Dsldoc)
                }
                classDoc.classBlocks.each { blockDoc ->
                    linkMetaData.addBlockMethod(blockDoc.blockMethod.metaData)
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 9.8K bytes
    - Viewed (0)
  7. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/ClassMetaData.java

        }
    
        @Override
        public void attach(ClassMetaDataRepository<ClassMetaData> metaDataRepository) {
            this.metaDataRepository = metaDataRepository;
        }
    
        public MethodMetaData addMethod(String name, TypeMetaData returnType, String rawCommentText) {
            MethodMetaData method = new MethodMetaData(name, this);
            declaredMethods.add(method);
            method.setReturnType(returnType);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 10.1K bytes
    - Viewed (0)
  8. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

            String rawCommentText = getJavadocComment(methodDeclaration);
            TypeMetaData returnType = extractTypeName(methodDeclaration.getType());
            MethodMetaData methodMetaData = getCurrentClass().addMethod(name, returnType, rawCommentText);
    
            findAnnotations(methodDeclaration, methodMetaData);
            extractParameters(methodDeclaration, methodMetaData);
    
            Matcher matcher = GETTER_METHOD_NAME.matcher(name);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 21 13:27:02 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AsmBackedClassGenerator.java

                    _LDC(superclassType);
                    _ARETURN();
                }});
    
                // Generate: static Class generatedFrom() { ... }
                addMethod(ACC_PUBLIC | ACC_STATIC, "generatedFrom", RETURN_CLASS, methodVisitor -> new MethodVisitorScope(methodVisitor) {{
                    _LDC(superclassType);
                    _ARETURN();
                }});
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 100.6K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/ureader.go

    				r.p.ifaces = append(r.p.ifaces, newIface)
    				underlying = newIface
    			}
    
    			named.SetUnderlying(underlying)
    
    			for i, n := 0, r.Len(); i < n; i++ {
    				named.AddMethod(r.method())
    			}
    
    		case pkgbits.ObjVar:
    			pos := r.pos()
    			typ := r.typ()
    			declare(types.NewVar(pos, objPkg, objName, typ))
    		}
    	}
    
    	return objPkg, objName
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top