Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 43 for isTyped (0.13 sec)

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

    	Uint64:     8,
    	Float32:    4,
    	Float64:    8,
    	Complex64:  8,
    	Complex128: 16,
    }
    
    func (s *StdSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  2. src/go/types/sizes.go

    	Uint64:     8,
    	Float32:    4,
    	Float64:    8,
    	Complex64:  8,
    	Complex128: 16,
    }
    
    func (s *StdSizes) Sizeof(T Type) int64 {
    	switch t := under(T).(type) {
    	case *Basic:
    		assert(isTyped(T))
    		k := t.kind
    		if int(k) < len(basicSizes) {
    			if s := basicSizes[k]; s > 0 {
    				return int64(s)
    			}
    		}
    		if k == String {
    			return s.WordSize * 2
    		}
    	case *Array:
    		n := t.len
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/infer.go

    		if isParameterized(tparams, par.typ) || isParameterized(tparams, arg.typ) {
    			// Function parameters are always typed. Arguments may be untyped.
    			// Collect the indices of untyped arguments and handle them later.
    			if isTyped(arg.typ) {
    				if !u.unify(par.typ, arg.typ, assign) {
    					errorf(par.typ, arg.typ, arg)
    					return nil
    				}
    			} else if _, ok := par.typ.(*TypeParam); ok && !arg.isNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  4. src/go/types/infer.go

    		if isParameterized(tparams, par.typ) || isParameterized(tparams, arg.typ) {
    			// Function parameters are always typed. Arguments may be untyped.
    			// Collect the indices of untyped arguments and handle them later.
    			if isTyped(arg.typ) {
    				if !u.unify(par.typ, arg.typ, assign) {
    					errorf(par.typ, arg.typ, arg)
    					return nil
    				}
    			} else if _, ok := par.typ.(*TypeParam); ok && !arg.isNil() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  5. src/go/types/expr.go

    	// not compatible, we report a type mismatch error.
    	mayConvert := func(x, y *operand) bool {
    		// If both operands are typed, there's no need for an implicit conversion.
    		if isTyped(x.typ) && isTyped(y.typ) {
    			return false
    		}
    		// An untyped operand may convert to its default type when paired with an empty interface
    		// TODO(gri) This should only matter for comparisons (the only binary operation that is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/expr.go

    	// not compatible, we report a type mismatch error.
    	mayConvert := func(x, y *operand) bool {
    		// If both operands are typed, there's no need for an implicit conversion.
    		if isTyped(x.typ) && isTyped(y.typ) {
    			return false
    		}
    		// An untyped operand may convert to its default type when paired with an empty interface
    		// TODO(gri) This should only matter for comparisons (the only binary operation that is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  7. src/index/suffixarray/sais2.go

    	// nowhere to write it down, so we eliminate it by untruthfully
    	// setting isTypeS = false at the start of the loop.
    	c0, c1, isTypeS := byte(0), byte(0), false
    	for i := len(text) - 1; i >= 0; i-- {
    		c0, c1 = text[i], c0
    		if c0 < c1 {
    			isTypeS = true
    		} else if c0 > c1 && isTypeS {
    			isTypeS = false
    
    			// Bucket the index i+1 for the start of an LMS-substring.
    			b := bucket[c1] - 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 52.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/build-operations/src/testFixtures/groovy/org/gradle/internal/operations/TestBuildOperationRunner.java

                    Record record = iterator.next();
                    Object details = record.descriptor.getDetails();
                    if (detailsType.isInstance(details)) {
                        return record.asTyped(type);
                    }
                }
    
                throw new AssertionError("Did not find operation with details of type: " + detailsType.getName());
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:33:49 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. src/index/suffixarray/sais.go

    	// nowhere to write it down, so we eliminate it by untruthfully
    	// setting isTypeS = false at the start of the loop.
    	c0, c1, isTypeS := byte(0), byte(0), false
    	for i := len(text) - 1; i >= 0; i-- {
    		c0, c1 = text[i], c0
    		if c0 < c1 {
    			isTypeS = true
    		} else if c0 > c1 && isTypeS {
    			isTypeS = false
    
    			// Bucket the index i+1 for the start of an LMS-substring.
    			b := bucket[c1] - 1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 23:57:18 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  10. src/cmd/fix/typecheck.go

    // x's type is "int" but T's type is "type int".
    // mkType inserts the "type " prefix.
    // getType removes it.
    // isType tests for it.
    
    func mkType(t string) string {
    	return "type " + t
    }
    
    func getType(t string) string {
    	if !isType(t) {
    		return ""
    	}
    	return t[len("type "):]
    }
    
    func isType(t string) bool {
    	return strings.HasPrefix(t, "type ")
    }
    
    // TypeConfig describes the universe of relevant types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 16 22:02:42 UTC 2022
    - 20.1K bytes
    - Viewed (0)
Back to top