Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for UntypedRune (0.36 sec)

  1. src/cmd/compile/internal/types/fmt.go

    		var name string
    		switch t {
    		case UntypedBool:
    			name = "untyped bool"
    		case UntypedString:
    			name = "untyped string"
    		case UntypedInt:
    			name = "untyped int"
    		case UntypedRune:
    			name = "untyped rune"
    		case UntypedFloat:
    			name = "untyped float"
    		case UntypedComplex:
    			name = "untyped complex"
    		default:
    			name = BasicTypeNames[t.Kind()]
    		}
    		b.WriteString(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  2. src/go/types/predicates.go

    	// so there's no need to call Unalias or under, below.
    	if t, _ := t.(*Basic); t != nil {
    		switch t.kind {
    		case UntypedBool:
    			return Typ[Bool]
    		case UntypedInt:
    			return Typ[Int]
    		case UntypedRune:
    			return universeRune // use 'rune' name
    		case UntypedFloat:
    			return Typ[Float64]
    		case UntypedComplex:
    			return Typ[Complex128]
    		case UntypedString:
    			return Typ[String]
    		}
    	}
    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/cmd/compile/internal/types2/predicates.go

    	// so there's no need to call Unalias or under, below.
    	if t, _ := t.(*Basic); t != nil {
    		switch t.kind {
    		case UntypedBool:
    			return Typ[Bool]
    		case UntypedInt:
    			return Typ[Int]
    		case UntypedRune:
    			return universeRune // use 'rune' name
    		case UntypedFloat:
    			return Typ[Float64]
    		case UntypedComplex:
    			return Typ[Complex128]
    		case UntypedString:
    			return Typ[String]
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  4. api/go1.5.txt

    pkg go/types, const UntypedInt = 20
    pkg go/types, const UntypedInt BasicKind
    pkg go/types, const UntypedNil = 25
    pkg go/types, const UntypedNil BasicKind
    pkg go/types, const UntypedRune = 21
    pkg go/types, const UntypedRune BasicKind
    pkg go/types, const UntypedString = 24
    pkg go/types, const UntypedString BasicKind
    pkg go/types, func AssertableTo(*Interface, Type) bool
    pkg go/types, func AssignableTo(Type, Type) bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ir/fmt.go

    		if n.Sym() != nil {
    			fmt.Fprint(s, n.Sym())
    			return
    		}
    
    		typ := n.Type()
    		val := n.Val()
    
    		// Special case for rune constants.
    		if typ == types.RuneType || typ == types.UntypedRune {
    			if x, ok := constant.Uint64Val(val); ok && x <= utf8.MaxRune {
    				fmt.Fprintf(s, "%q", x)
    				return
    			}
    		}
    
    		// Only include typ if it's neither the default nor untyped type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 26K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types/type.go

    	// Types to represent untyped string and boolean constants.
    	UntypedString = newType(TSTRING)
    	UntypedBool   = newType(TBOOL)
    
    	// Types to represent untyped numeric constants.
    	UntypedInt     = newType(TIDEAL)
    	UntypedRune    = newType(TIDEAL)
    	UntypedFloat   = newType(TIDEAL)
    	UntypedComplex = newType(TIDEAL)
    )
    
    // UntypedTypes maps from a constant.Kind to its untyped Type
    // representation.
    var UntypedTypes = [...]*Type{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  7. src/go/internal/gccgoimporter/parser.go

    		val = constant.MakeFromLiteral(sign+p.lit, token.INT, 0)
    		if val == nil {
    			p.error("could not parse integer literal")
    		}
    
    		p.next()
    		if p.tok == '\'' {
    			p.next()
    			typ = types.Typ[types.UntypedRune]
    		} else {
    			typ = types.Typ[types.UntypedInt]
    		}
    
    	case scanner.Float:
    		re := sign + p.lit
    		p.next()
    
    		var im string
    		switch p.tok {
    		case '+':
    			p.next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/builtin.go

    			t = append(t, s[i])
    			i++
    		}
    	}
    	nn.Args = t
    
    	calls := []ir.Node{mkcall("printlock", nil, init)}
    	for i, n := range nn.Args {
    		if n.Op() == ir.OLITERAL {
    			if n.Type() == types.UntypedRune {
    				n = typecheck.DefaultLit(n, types.RuneType)
    			}
    
    			switch n.Val().Kind() {
    			case constant.Int:
    				n = typecheck.DefaultLit(n, types.Types[types.TINT64])
    
    			case constant.Float:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  9. src/go/types/expr.go

    		// the value nil.
    		switch x.typ.(*Basic).kind {
    		case UntypedBool:
    			if !isBoolean(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedInt, UntypedRune, UntypedFloat, UntypedComplex:
    			if !isNumeric(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedString:
    			// Non-constant untyped string values are not permitted by the spec and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/expr.go

    		// the value nil.
    		switch x.typ.(*Basic).kind {
    		case UntypedBool:
    			if !isBoolean(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedInt, UntypedRune, UntypedFloat, UntypedComplex:
    			if !isNumeric(target) {
    				return nil, nil, InvalidUntypedConversion
    			}
    		case UntypedString:
    			// Non-constant untyped string values are not permitted by the spec and
    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