- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 218 for IsString (0.3 sec)
-
src/cmd/compile/internal/walk/order.go
break } fallthrough case k == types.TCHAN, k == types.TSTRING: // chan, string, slice, array ranges use value multiple times. // make copy. r := n.X if r.Type().IsString() && r.Type() != types.Types[types.TSTRING] { r = ir.NewConvExpr(base.Pos, ir.OCONV, nil, r) r.SetType(types.Types[types.TSTRING]) r = typecheck.Expr(r) } n.X = o.copyExpr(r)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 02:00:33 UTC 2024 - 42.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssagen/ssa.go
_ = types.NewPtr(types.NewPtr(types.Types[types.TSTRING])) // **string _ = types.NewPtr(types.NewSlice(types.Types[types.TINTER])) // *[]interface{} _ = types.NewPtr(types.NewPtr(types.ByteType)) // **byte _ = types.NewPtr(types.NewSlice(types.ByteType)) // *[]byte _ = types.NewPtr(types.NewSlice(types.Types[types.TSTRING])) // *[]string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 10 19:44:43 UTC 2024 - 284.9K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/func.go
if n.X.Type() == nil || n.Y.Type() == nil { n.SetType(nil) return n } // copy([]byte, string) if n.X.Type().IsSlice() && n.Y.Type().IsString() { if types.Identical(n.X.Type().Elem(), types.ByteType) { return n } base.Errorf("arguments to copy have different element types: %L and string", n.X.Type()) n.SetType(nil) return n } if !n.X.Type().IsSlice() || !n.Y.Type().IsSlice() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 15:23:18 UTC 2024 - 21.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/switch.go
cond = typecheck.Expr(cond) cond = typecheck.DefaultLit(cond, nil) } // Given "switch string(byteslice)", // with all cases being side-effect free, // use a zero-cost alias of the byte slice. // Do this before calling walkExpr on cond, // because walkExpr will lower the string // conversion into a runtime call. // See issue 24937 for more discussion.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 30.1K bytes - Viewed (0) -
src/cmd/compile/internal/staticinit/sched.go
} newList := make([]ir.Node, 0, need) for i := 0; i < len(s); i++ { if ir.IsConst(s[i], constant.String) && i+1 < len(s) && ir.IsConst(s[i+1], constant.String) { // merge from i up to but not including i2 var strs []string i2 := i for i2 < len(s) && ir.IsConst(s[i2], constant.String) { strs = append(strs, ir.StringVal(s[i2])) i2++ }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 17:16:14 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/stmt.go
// When ok = false, rangeKeyVal may also return a reason in cause. func rangeKeyVal(typ Type, allowVersion func(goVersion) bool) (key, val Type, cause string, isFunc, ok bool) { bad := func(cause string) (Type, Type, string, bool, bool) { return Typ[Invalid], Typ[Invalid], cause, false, false } toSig := func(t Type) *Signature { sig, _ := coreType(t).(*Signature) return sig }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.7K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
func Callee(n ir.Node) ir.Node { return typecheck(n, ctxExpr|ctxCallee) } var traceIndent []byte func tracePrint(title string, n ir.Node) func(np *ir.Node) { indent := traceIndent // guard against nil var pos, op string var tc uint8 if n != nil { pos = base.FmtPos(n.Pos()) op = n.Op().String() tc = n.Typecheck() } types.SkipSizeForTracing = true defer func() { types.SkipSizeForTracing = false }()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
src/go/types/stmt.go
// When ok = false, rangeKeyVal may also return a reason in cause. func rangeKeyVal(typ Type, allowVersion func(goVersion) bool) (key, val Type, cause string, isFunc, ok bool) { bad := func(cause string) (Type, Type, string, bool, bool) { return Typ[Invalid], Typ[Invalid], cause, false, false } toSig := func(t Type) *Signature { sig, _ := coreType(t).(*Signature) return sig }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 30.6K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
var UntypedTypes = [...]*Type{ constant.Bool: UntypedBool, constant.String: UntypedString, constant.Int: UntypedInt, constant.Float: UntypedFloat, constant.Complex: UntypedComplex, } // DefaultKinds maps from a constant.Kind to its default Kind. var DefaultKinds = [...]Kind{ constant.Bool: TBOOL, constant.String: TSTRING, constant.Int: TINT, constant.Float: TFLOAT64,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/go/types/expr.go
// that might overflow; otherwise it returns the empty string. func opName(e ast.Expr) string { switch e := e.(type) { case *ast.BinaryExpr: if int(e.Op) < len(op2str2) { return op2str2[e.Op] } case *ast.UnaryExpr: if int(e.Op) < len(op2str1) { return op2str1[e.Op] } } return "" } var op2str1 = [...]string{ token.XOR: "bitwise complement", }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 49.7K bytes - Viewed (0)