Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 80 for ipString (0.15 sec)

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

    	if variadic {
    		n := params.Len()
    		if n == 0 {
    			panic("variadic function must have at least one parameter")
    		}
    		core := coreString(params.At(n - 1).typ)
    		if _, ok := core.(*Slice); !ok && !isString(core) {
    			panic(fmt.Sprintf("got %s, want variadic parameter with unnamed slice type or string as core type", core.String()))
    		}
    	}
    	sig := &Signature{recv: recv, params: params, results: results, variadic: variadic}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:33:05 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/convert.go

    		return "convT64", types.Types[types.TUINT64], false
    	}
    	if sc := from.SoleComponent(); sc != nil {
    		switch {
    		case sc.IsString():
    			return "convTstring", types.Types[types.TSTRING], false
    		case sc.IsSlice():
    			return "convTslice", types.NewSlice(types.Types[types.TUINT8]), false // the element type doesn't matter
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  3. src/go/internal/gcimporter/iimport.go

    		_ = constant.Kind(r.int64())
    	}
    
    	switch b := typ.Underlying().(*types.Basic); b.Info() & types.IsConstType {
    	case types.IsBoolean:
    		val = constant.MakeBool(r.bool())
    
    	case types.IsString:
    		val = constant.MakeString(r.string())
    
    	case types.IsInteger:
    		var x big.Int
    		r.mpint(&x, b)
    		val = constant.Make(&x)
    
    	case types.IsFloat:
    		val = r.mpfloat(b)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/ssa.go

    		if n.Y != nil && n.Y.Op() == ir.ODEREF {
    			p := n.Y.(*ir.StarExpr).X
    			for p.Op() == ir.OCONVNOP {
    				p = p.(*ir.ConvExpr).X
    			}
    			if p.Op() == ir.OSPTR && p.(*ir.UnaryExpr).X.Type().IsString() {
    				// Pointer fields of strings point to unmodifiable memory.
    				// That memory can't overlap with the memory being written.
    				mayOverlap = false
    			}
    		}
    
    		// Evaluate RHS.
    		rhs := n.Y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  5. api/go1.5.txt

    pkg go/types, const IsNumeric = 26
    pkg go/types, const IsNumeric BasicInfo
    pkg go/types, const IsOrdered = 42
    pkg go/types, const IsOrdered BasicInfo
    pkg go/types, const IsString = 32
    pkg go/types, const IsString BasicInfo
    pkg go/types, const IsUnsigned = 4
    pkg go/types, const IsUnsigned BasicInfo
    pkg go/types, const IsUntyped = 64
    pkg go/types, const IsUntyped BasicInfo
    pkg go/types, const MethodExpr = 2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 30 21:14:09 UTC 2015
    - 46.6K bytes
    - Viewed (0)
  6. 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)
  7. src/cmd/compile/internal/typecheck/func.go

    	n.Y = Expr(n.Y)
    	n.Y = DefaultLit(n.Y, nil)
    	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
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/staticinit/sched.go

    		// No explicit initialization value. Probably zeroed but perhaps
    		// supplied externally and of unknown value.
    		return false
    	}
    	if rn.Defn.Op() != ir.OAS {
    		return false
    	}
    	if rn.Type().IsString() { // perhaps overwritten by cmd/link -X (#34675)
    		return false
    	}
    	if rn.Embed != nil {
    		return false
    	}
    	orig := rn
    	r := rn.Defn.(*ir.AssignStmt).Y
    	if r == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 17:16:14 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/walk/switch.go

    	// The code below is structured to implicitly handle this case
    	// (e.g., sort.Slice doesn't need to invoke the less function
    	// when there's only a single slice element).
    
    	if s.exprname.Type().IsString() && len(cc) >= 2 {
    		// Sort strings by length and then by value. It is
    		// much cheaper to compare lengths than values, and
    		// all we need here is consistency. We respect this
    		// sorting below.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/stmt.go

    		sig, _ := coreType(t).(*Signature)
    		return sig
    	}
    
    	orig := typ
    	switch typ := arrayPtrDeref(coreType(typ)).(type) {
    	case nil:
    		return bad("no core type")
    	case *Basic:
    		if isString(typ) {
    			return Typ[Int], universeRune, "", false, true // use 'rune' name
    		}
    		if isInteger(typ) {
    			if allowVersion != nil && !allowVersion(go1_22) {
    				return bad("requires go1.22 or later")
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
Back to top