Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for allNumericOrString (0.28 sec)

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

    func allNumeric(t Type) bool         { return allBasic(t, IsNumeric) }
    func allString(t Type) bool          { return allBasic(t, IsString) }
    func allOrdered(t Type) bool         { return allBasic(t, IsOrdered) }
    func allNumericOrString(t Type) bool { return allBasic(t, IsNumeric|IsString) }
    
    // allBasic reports whether under(t) is a basic type with the specified info.
    // If t is a type parameter, the result is true if isBasic(t, info) is true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. src/go/types/predicates.go

    func allNumeric(t Type) bool         { return allBasic(t, IsNumeric) }
    func allString(t Type) bool          { return allBasic(t, IsString) }
    func allOrdered(t Type) bool         { return allBasic(t, IsOrdered) }
    func allNumericOrString(t Type) bool { return allBasic(t, IsNumeric|IsString) }
    
    // allBasic reports whether under(t) is a basic type with the specified info.
    // If t is a type parameter, the result is true if isBasic(t, info) is true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/go/types/expr.go

    	}
    
    	x.mode = value
    }
    
    var binaryOpPredicates opPredicates
    
    func init() {
    	// Setting binaryOpPredicates in init avoids declaration cycles.
    	binaryOpPredicates = opPredicates{
    		token.ADD: allNumericOrString,
    		token.SUB: allNumeric,
    		token.MUL: allNumeric,
    		token.QUO: allNumeric,
    		token.REM: allInteger,
    
    		token.AND:     allInteger,
    		token.OR:      allInteger,
    		token.XOR:     allInteger,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/expr.go

    	}
    
    	x.mode = value
    }
    
    var binaryOpPredicates opPredicates
    
    func init() {
    	// Setting binaryOpPredicates in init avoids declaration cycles.
    	binaryOpPredicates = opPredicates{
    		syntax.Add: allNumericOrString,
    		syntax.Sub: allNumeric,
    		syntax.Mul: allNumeric,
    		syntax.Div: allNumeric,
    		syntax.Rem: allInteger,
    
    		syntax.And:    allInteger,
    		syntax.Or:     allInteger,
    		syntax.Xor:    allInteger,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
Back to top