Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for IsValue (0.16 sec)

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

    // a (possibly parenthesized) built-in function.
    func (tv TypeAndValue) IsBuiltin() bool {
    	return tv.mode == builtin
    }
    
    // IsValue reports whether the corresponding expression is a value.
    // Builtins are not considered values. Constant values have a non-
    // nil Value.
    func (tv TypeAndValue) IsValue() bool {
    	switch tv.mode {
    	case constant_, variable, mapindex, value, nilvalue, commaok, commaerr:
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  2. src/go/types/api.go

    // a (possibly parenthesized) built-in function.
    func (tv TypeAndValue) IsBuiltin() bool {
    	return tv.mode == builtin
    }
    
    // IsValue reports whether the corresponding expression is a value.
    // Builtins are not considered values. Constant values have a non-
    // nil Value.
    func (tv TypeAndValue) IsValue() bool {
    	switch tv.mode {
    	case constant_, variable, mapindex, value, commaok, commaerr:
    		return true
    	}
    	return false
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. src/database/sql/convert.go

    	// struct changing into a string or nil.
    	if vr, ok := nv.Value.(driver.Valuer); ok {
    		sv, err := callValuerValue(vr)
    		if err != nil {
    			return err
    		}
    		if !driver.IsValue(sv) {
    			return fmt.Errorf("non-subset type %T returned from Value", sv)
    		}
    		nv.Value = sv
    	}
    
    	// Second, ask the column to sanity check itself. For
    	// example, drivers might use this to make sure that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/copylock/copylock.go

    		if _, ok := astutil.Unparen(star.X).(*ast.CallExpr); ok {
    			// A call may return a pointer to a zero value.
    			return nil
    		}
    	}
    	if tv, ok := pass.TypesInfo.Types[x]; ok && tv.IsValue() {
    		return lockPath(pass.Pkg, tv.Type, nil)
    	}
    	return nil
    }
    
    // lockPath returns a typePath describing the location of a lock value
    // contained in typ. If there is no contained lock, it returns nil.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/binding/DefaultStructBindingsStoreTest.groovy

    - Property 'name' is not valid: it must not have a setter, because the type implements '$Named.name'"""
        }
    
        @Managed
        static interface HasIsAndGetPropertyWithDifferentTypes {
            boolean isValue()
            String getValue()
        }
    
        def "handles is/get property with non-matching type"() {
            when: extract HasIsAndGetPropertyWithDifferentTypes
            then: def ex = thrown InvalidManagedTypeException
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/check.go

    		stv := syntax.TypeAndValue{Type: typ, Value: val}
    		if tv.IsVoid() {
    			stv.SetIsVoid()
    		}
    		if tv.IsType() {
    			stv.SetIsType()
    		}
    		if tv.IsBuiltin() {
    			stv.SetIsBuiltin()
    		}
    		if tv.IsValue() {
    			stv.SetIsValue()
    		}
    		if tv.IsNil() {
    			stv.SetIsNil()
    		}
    		if tv.Addressable() {
    			stv.SetAddressable()
    		}
    		if tv.Assignable() {
    			stv.SetAssignable()
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.3K bytes
    - Viewed (0)
  7. api/go1.5.txt

    pkg go/types, method (TypeAndValue) IsBuiltin() bool
    pkg go/types, method (TypeAndValue) IsNil() bool
    pkg go/types, method (TypeAndValue) IsType() bool
    pkg go/types, method (TypeAndValue) IsValue() bool
    pkg go/types, method (TypeAndValue) IsVoid() bool
    pkg go/types, type Array struct
    pkg go/types, type Basic struct
    pkg go/types, type BasicInfo int
    pkg go/types, type BasicKind int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/stmt.go

    		case v == nil && sValue != nil:
    			check.softErrorf(sValue, InvalidIterVar, "range over %s permits only one iteration variable", &x)
    		case sExtra != nil:
    			check.softErrorf(sExtra, InvalidIterVar, "range clause permits at most two iteration variables")
    		case isFunc && ((k == nil) != (sKey == nil) || (v == nil) != (sValue == nil)):
    			var count string
    			switch {
    			case k == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. src/go/types/stmt.go

    		case v == nil && sValue != nil:
    			check.softErrorf(sValue, InvalidIterVar, "range over %s permits only one iteration variable", &x)
    		case sExtra != nil:
    			check.softErrorf(sExtra, InvalidIterVar, "range clause permits at most two iteration variables")
    		case isFunc && ((k == nil) != (sKey == nil) || (v == nil) != (sValue == nil)):
    			var count string
    			switch {
    			case k == nil:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/labels/selector.go

    				return false
    			}
    		}
    		return (r.operator == selection.GreaterThan && lsValue > rValue) || (r.operator == selection.LessThan && lsValue < rValue)
    	default:
    		return false
    	}
    }
    
    // Key returns requirement key
    func (r *Requirement) Key() string {
    	return r.key
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Dec 18 04:27:38 UTC 2022
    - 31.8K bytes
    - Viewed (0)
Back to top