Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for stringtoruneslit (0.2 sec)

  1. src/cmd/compile/internal/typecheck/typecheck.go

    		base.Errorf("cannot assign %v to %L in multiple assignment%s", src, dst, why)
    		return
    	}
    }
    
    // The result of stringtoruneslit MUST be assigned back to n, e.g.
    //
    //	n.Left = stringtoruneslit(n.Left)
    func stringtoruneslit(n *ir.ConvExpr) ir.Node {
    	if n.X.Op() != ir.OLITERAL || n.X.Val().Kind() != constant.String {
    		base.Fatalf("stringtoarraylit %v", n)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/expr.go

    	// generated code and compiler memory footprint is better without it.
    	case ir.OSTR2BYTES:
    		// ok
    
    	case ir.OSTR2RUNES:
    		if n.X.Op() == ir.OLITERAL {
    			return stringtoruneslit(n)
    		}
    
    	case ir.OBYTES2STR:
    		if t.Elem() != types.ByteType && t.Elem() != types.Types[types.TUINT8] {
    			// If t is a slice of a user-defined byte type B (not uint8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top