Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for UntypedString (0.14 sec)

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

    	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
    
    // Properties of basic types.
    const (
    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

    	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
    
    // Properties of basic types.
    const (
    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

    	UntypedRune:    {UntypedRune, IsInteger | IsUntyped, "untyped rune"},
    	UntypedFloat:   {UntypedFloat, IsFloat | IsUntyped, "untyped float"},
    	UntypedComplex: {UntypedComplex, IsComplex | IsUntyped, "untyped complex"},
    	UntypedString:  {UntypedString, IsString | IsUntyped, "untyped string"},
    	UntypedNil:     {UntypedNil, IsUntyped, "untyped nil"},
    }
    
    var basicAliases = [...]*Basic{
    	{Byte, IsInteger | IsUnsigned, "byte"},
    	{Rune, IsInteger, "rune"},
    }
    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

    	UntypedRune:    {UntypedRune, IsInteger | IsUntyped, "untyped rune"},
    	UntypedFloat:   {UntypedFloat, IsFloat | IsUntyped, "untyped float"},
    	UntypedComplex: {UntypedComplex, IsComplex | IsUntyped, "untyped complex"},
    	UntypedString:  {UntypedString, IsString | IsUntyped, "untyped string"},
    	UntypedNil:     {UntypedNil, IsUntyped, "untyped nil"},
    }
    
    var basicAliases = [...]*Basic{
    	{Byte, IsInteger | IsUnsigned, "byte"},
    	{Rune, IsInteger, "rune"},
    }
    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/cmd/compile/internal/ir/const.go

    	return NewBasicLit(pos, types.UntypedInt, constant.MakeInt64(v))
    }
    
    // NewString returns an OLITERAL representing s as an untyped string.
    func NewString(pos src.XPos, s string) Node {
    	return NewBasicLit(pos, types.UntypedString, constant.MakeString(s))
    }
    
    // NewUintptr returns an OLITERAL representing v as a uintptr.
    func NewUintptr(pos src.XPos, v int64) Node {
    	return NewBasicLit(pos, types.Types[types.TUINTPTR], constant.MakeInt64(v))
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 18:53:26 UTC 2023
    - 4K bytes
    - Viewed (0)
  6. src/go/internal/gcimporter/support.go

    	// 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],
    
    	// invalid type
    	types.Typ[types.Invalid], // only appears in packages with errors
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. src/go/types/operand.go

    	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]
    		return
    	}
    	x.mode = constant_
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go

    			types.Float32,
    			types.Float64:
    			return m.t&argFloat != 0
    
    		case types.UntypedComplex,
    			types.Complex64,
    			types.Complex128:
    			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
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/operand.go

    		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
    		x.typ = Typ[Invalid]
    		return
    	}
    	x.mode = constant_
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/const.go

    }
    
    func defaultType(t *types.Type) *types.Type {
    	if !t.IsUntyped() || t.Kind() == types.TNIL {
    		return t
    	}
    
    	switch t {
    	case types.UntypedBool:
    		return types.Types[types.TBOOL]
    	case types.UntypedString:
    		return types.Types[types.TSTRING]
    	case types.UntypedInt:
    		return types.Types[types.TINT]
    	case types.UntypedRune:
    		return types.RuneType
    	case types.UntypedFloat:
    		return types.Types[types.TFLOAT64]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 15:20:28 UTC 2023
    - 10.5K bytes
    - Viewed (0)
Back to top