Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for nongeneric (0.16 sec)

  1. src/go/types/index.go

    		if sig, _ := under(x.typ).(*Signature); sig != nil && sig.TypeParams().Len() > 0 {
    			// function instantiation
    			return true
    		}
    	}
    
    	// x should not be generic at this point, but be safe and check
    	check.nonGeneric(nil, x)
    	if x.mode == invalid {
    		return false
    	}
    
    	// ordinary index expression
    	valid := false
    	length := int64(-1) // valid if >= 0
    	switch typ := under(x.typ).(type) {
    	case *Basic:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:05 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/index.go

    		if sig, _ := under(x.typ).(*Signature); sig != nil && sig.TypeParams().Len() > 0 {
    			// function instantiation
    			return true
    		}
    	}
    
    	// x should not be generic at this point, but be safe and check
    	check.nonGeneric(nil, x)
    	if x.mode == invalid {
    		return false
    	}
    
    	// ordinary index expression
    	valid := false
    	length := int64(-1) // valid if >= 0
    	switch typ := under(x.typ).(type) {
    	case *Basic:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/call.go

    	}
    	// x.typ may be generic
    
    	switch x.mode {
    	case invalid:
    		check.use(call.ArgList...)
    		x.expr = call
    		return statement
    
    	case typexpr:
    		// conversion
    		check.nonGeneric(nil, x)
    		if x.mode == invalid {
    			return conversion
    		}
    		T := x.typ
    		x.mode = invalid
    		switch n := len(call.ArgList); n {
    		case 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  4. src/go/types/call.go

    	}
    	// x.typ may be generic
    
    	switch x.mode {
    	case invalid:
    		check.use(call.Args...)
    		x.expr = call
    		return statement
    
    	case typexpr:
    		// conversion
    		check.nonGeneric(nil, x)
    		if x.mode == invalid {
    			return conversion
    		}
    		T := x.typ
    		x.mode = invalid
    		switch n := len(call.Args); n {
    		case 0:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  5. src/sort/gen_sort_variants.go

    				},
    			},
    		},
    	}
    )
    
    func main() {
    	genGeneric := flag.Bool("generic", false, "generate generic versions")
    	genExp := flag.Bool("exp", false, "generate x/exp/slices versions")
    	flag.Parse()
    
    	var variants []Variant
    	if *genExp {
    		variants = expVariants
    	} else if *genGeneric {
    		variants = genericVariants
    	} else {
    		variants = traditionalVariants
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 19.6K bytes
    - Viewed (0)
Back to top