Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for newParam (0.26 sec)

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

    				copy(vars, sig.params.vars)
    				last := sig.params.vars[npars-1]
    				typ := last.typ.(*Slice).elem
    				for len(vars) < nargs {
    					vars = append(vars, NewParam(last.pos, last.pkg, last.name, typ))
    				}
    				sigParams = NewTuple(vars...) // possibly nil!
    				adjusted = true
    				npars = nargs
    			} else {
    				// nargs < npars-1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/api_test.go

    	//
    	// It must be possible for importers to construct such invalid interfaces.
    	// Previously, this panicked.
    
    	sig1 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[Int])), nil, false)
    	sig2 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[String])), nil, false)
    
    	methods := []*Func{
    		NewFunc(nopos, nil, "M", sig1),
    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  3. src/go/types/api_test.go

    	//
    	// It must be possible for importers to construct such invalid interfaces.
    	// Previously, this panicked.
    
    	sig1 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[Int])), nil, false)
    	sig2 := NewSignatureType(nil, nil, nil, NewTuple(NewParam(nopos, nil, "", Typ[String])), nil, false)
    
    	methods := []*Func{
    		NewFunc(nopos, nil, "M", sig1),
    		NewFunc(nopos, nil, "M", sig2),
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"NewInterface", Func, 5},
    		{"NewInterfaceType", Func, 11},
    		{"NewLabel", Func, 5},
    		{"NewMap", Func, 5},
    		{"NewMethodSet", Func, 5},
    		{"NewNamed", Func, 5},
    		{"NewPackage", Func, 5},
    		{"NewParam", Func, 5},
    		{"NewPkgName", Func, 5},
    		{"NewPointer", Func, 5},
    		{"NewScope", Func, 5},
    		{"NewSignature", Func, 5},
    		{"NewSignatureType", Func, 18},
    		{"NewSlice", Func, 5},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top