- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for UntypedRune (0.21 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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)