Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for UntypedRune (0.74 sec)

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

    	Int64
    	Uint
    	Uint8
    	Uint16
    	Uint32
    	Uint64
    	Uintptr
    	Float32
    	Float64
    	Complex64
    	Complex128
    	String
    	UnsafePointer
    
    	// types for untyped values
    	UntypedBool
    	UntypedInt
    	UntypedRune
    	UntypedFloat
    	UntypedComplex
    	UntypedString
    	UntypedNil
    
    	// aliases
    	Byte = Uint8
    	Rune = Int32
    )
    
    // BasicInfo is a set of flags describing properties of a basic type.
    type BasicInfo int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  2. src/go/types/basic.go

    	Int64
    	Uint
    	Uint8
    	Uint16
    	Uint32
    	Uint64
    	Uintptr
    	Float32
    	Float64
    	Complex64
    	Complex128
    	String
    	UnsafePointer
    
    	// types for untyped values
    	UntypedBool
    	UntypedInt
    	UntypedRune
    	UntypedFloat
    	UntypedComplex
    	UntypedString
    	UntypedNil
    
    	// aliases
    	Byte = Uint8
    	Rune = Int32
    )
    
    // BasicInfo is a set of flags describing properties of a basic type.
    type BasicInfo int
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/universe.go

    	UnsafePointer: {UnsafePointer, 0, "Pointer"},
    
    	UntypedBool:    {UntypedBool, IsBoolean | IsUntyped, "untyped bool"},
    	UntypedInt:     {UntypedInt, IsInteger | IsUntyped, "untyped int"},
    	UntypedRune:    {UntypedRune, IsInteger | IsUntyped, "untyped rune"},
    	UntypedFloat:   {UntypedFloat, IsFloat | IsUntyped, "untyped float"},
    	UntypedComplex: {UntypedComplex, IsComplex | IsUntyped, "untyped complex"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. src/go/types/universe.go

    	UnsafePointer: {UnsafePointer, 0, "Pointer"},
    
    	UntypedBool:    {UntypedBool, IsBoolean | IsUntyped, "untyped bool"},
    	UntypedInt:     {UntypedInt, IsInteger | IsUntyped, "untyped int"},
    	UntypedRune:    {UntypedRune, IsInteger | IsUntyped, "untyped rune"},
    	UntypedFloat:   {UntypedFloat, IsFloat | IsUntyped, "untyped float"},
    	UntypedComplex: {UntypedComplex, IsComplex | IsUntyped, "untyped complex"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. src/go/internal/gcimporter/support.go

    	types.Universe.Lookup("rune").Type(),
    
    	// error
    	types.Universe.Lookup("error").Type(),
    
    	// untyped types
    	types.Typ[types.UntypedBool],
    	types.Typ[types.UntypedInt],
    	types.Typ[types.UntypedRune],
    	types.Typ[types.UntypedFloat],
    	types.Typ[types.UntypedComplex],
    	types.Typ[types.UntypedString],
    	types.Typ[types.UntypedNil],
    
    	// package unsafe
    	types.Typ[types.UnsafePointer],
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/const.go

    }
    
    func mixUntyped(t1, t2 *types.Type) *types.Type {
    	if t1 == t2 {
    		return t1
    	}
    
    	rank := func(t *types.Type) int {
    		switch t {
    		case types.UntypedInt:
    			return 0
    		case types.UntypedRune:
    			return 1
    		case types.UntypedFloat:
    			return 2
    		case types.UntypedComplex:
    			return 3
    		}
    		base.Fatalf("bad type %v", t)
    		panic("unreachable")
    	}
    
    	if rank(t2) > rank(t1) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/stringintconv/string.go

    		for _, vt := range vtypes {
    			u, _ := vt.Underlying().(*types.Basic)
    			if u != nil && u.Info()&types.IsInteger != 0 {
    				switch u.Kind() {
    				case types.Byte, types.Rune, types.UntypedRune:
    					continue
    				}
    				V0 = vt
    				break
    			}
    		}
    
    		if V0 == nil {
    			// No source types are non-byte or rune integer types.
    			return
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  8. src/go/types/operand.go

    	var kind BasicKind
    	switch k {
    	case token.INT:
    		kind = UntypedInt
    	case token.FLOAT:
    		kind = UntypedFloat
    	case token.IMAG:
    		kind = UntypedComplex
    	case token.CHAR:
    		kind = UntypedRune
    	case token.STRING:
    		kind = UntypedString
    	default:
    		panic("unreachable")
    	}
    
    	val := makeFromLiteral(lit, k)
    	if val.Kind() == constant.Unknown {
    		x.mode = invalid
    		x.typ = Typ[Invalid]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go

    			return m.t&argComplex != 0
    
    		case types.UntypedString,
    			types.String:
    			return m.t&argString != 0
    
    		case types.UnsafePointer:
    			return m.t&(argPointer|argInt) != 0
    
    		case types.UntypedRune:
    			return m.t&(argInt|argRune) != 0
    
    		case types.UntypedNil:
    			return false
    
    		case types.Invalid:
    			return true // Probably a type check problem.
    		}
    		panic("unreachable")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/operand.go

    	var kind BasicKind
    	switch k {
    	case syntax.IntLit:
    		kind = UntypedInt
    	case syntax.FloatLit:
    		kind = UntypedFloat
    	case syntax.ImagLit:
    		kind = UntypedComplex
    	case syntax.RuneLit:
    		kind = UntypedRune
    	case syntax.StringLit:
    		kind = UntypedString
    	default:
    		panic("unreachable")
    	}
    
    	val := makeFromLiteral(lit, k)
    	if val.Kind() == constant.Unknown {
    		x.mode = invalid
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top