Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for newBar2 (0.12 sec)

  1. src/go/types/interface.go

    		return &emptyInterface
    	}
    
    	// set method receivers if necessary
    	typ := (*Checker)(nil).newInterface()
    	for _, m := range methods {
    		if sig := m.typ.(*Signature); sig.recv == nil {
    			sig.recv = NewVar(m.pos, m.pkg, "", typ)
    		}
    	}
    
    	// sort for API stability
    	sortMethods(methods)
    
    	typ.methods = methods
    	typ.embeddeds = embeddeds
    	typ.complete = true
    
    	return typ
    }
    
    // check may be nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/interface.go

    		return &emptyInterface
    	}
    
    	// set method receivers if necessary
    	typ := (*Checker)(nil).newInterface()
    	for _, m := range methods {
    		if sig := m.typ.(*Signature); sig.recv == nil {
    			sig.recv = NewVar(m.pos, m.pkg, "", typ)
    		}
    	}
    
    	// sort for API stability
    	sortMethods(methods)
    
    	typ.methods = methods
    	typ.embeddeds = embeddeds
    	typ.complete = true
    
    	return typ
    }
    
    // check may be nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/context_test.go

    		nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type unaryP = func[P any](_ P)
    		tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface)
    		params := NewTuple(NewVar(nopos, nil, "_", tparam))
    		unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false)
    	}
    
    	ctxt := NewContext()
    
    	// Update the context with an instantiation of nullaryP.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 17 04:32:02 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/rsc.io/markdown/para.go

    	// might have been taken away to start a table.
    	pos := p.pos()
    	pos.EndLine = pos.StartLine + len(b.text) - 1
    	return &Paragraph{
    		pos,
    		p.newText(pos, s),
    	}
    }
    
    func newPara(p *parseState, s line) (line, bool) {
    	// Process paragraph continuation text or start new paragraph.
    	b := p.para()
    	indented := p.lineDepth == len(p.stack)-2 // fully indented, not playing "pargraph continuation text" games
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/go/types/context_test.go

    		nullaryQ = NewSignatureType(nil, nil, []*TypeParam{tparam}, nil, nil, false)
    	}
    	{
    		// type unaryP = func[P any](_ P)
    		tparam := NewTypeParam(NewTypeName(nopos, nil, "P", nil), &emptyInterface)
    		params := NewTuple(NewVar(nopos, nil, "_", tparam))
    		unaryP = NewSignatureType(nil, nil, []*TypeParam{tparam}, params, nil, false)
    	}
    
    	ctxt := NewContext()
    
    	// Update the context with an instantiation of nullaryP.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/universe.go

    	// type error interface{ Error() string }
    	{
    		obj := NewTypeName(nopos, nil, "error", nil)
    		obj.setColor(black)
    		typ := NewNamed(obj, nil, nil)
    
    		// error.Error() string
    		recv := NewVar(nopos, nil, "", typ)
    		res := NewVar(nopos, nil, "", Typ[String])
    		sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false)
    		err := NewFunc(nopos, nil, "Error", sig)
    
    		// interface{ Error() string }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. src/go/types/universe.go

    	// type error interface{ Error() string }
    	{
    		obj := NewTypeName(nopos, nil, "error", nil)
    		obj.setColor(black)
    		typ := NewNamed(obj, nil, nil)
    
    		// error.Error() string
    		recv := NewVar(nopos, nil, "", typ)
    		res := NewVar(nopos, nil, "", Typ[String])
    		sig := NewSignatureType(recv, nil, nil, nil, NewTuple(res), false)
    		err := NewFunc(nopos, nil, "Error", sig)
    
    		// interface{ Error() string }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/ClassSanityTester.java

        for (int i = 0; i < params.size(); i++) {
          List<Object> newArgs = Lists.newArrayList(args);
          Object newArg = argGenerators.get(i).generateFresh(params.get(i).getType());
    
          if (newArg == null || Objects.equal(args.get(i), newArg)) {
            if (params.get(i).getType().getRawType().isEnum()) {
              continue; // Nothing better we can do if it's single-value enum
            }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  9. subprojects/composite-builds/src/integTest/groovy/org/gradle/integtests/composite/plugins/PluginBuildsIntegrationTest.groovy

                }
                dependencies {
                    implementation("${build.group}:${build.buildName}")
                }
            """
            file("src/main/java/Foo.java") << """
                class Foo { Bar newBar() { return new Bar(); }}
            """
    
            then:
            succeeds("build")
            executed(":${build.buildName}:compileJava")
            executed(":compileJava")
            build.assertProjectPluginApplied()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 06 08:15:28 UTC 2023
    - 18.4K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/unusedresult/unusedresult.go

    					fn.Pkg().Path(), fn.Name())
    			}
    		}
    	})
    	return nil, nil
    }
    
    // func() string
    var sigNoArgsStringResult = types.NewSignature(nil, nil,
    	types.NewTuple(types.NewVar(token.NoPos, nil, "", types.Typ[types.String])),
    	false)
    
    type stringSetFlag map[string]bool
    
    func (ss *stringSetFlag) String() string {
    	var items []string
    	for item := range *ss {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top