Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for dt_field (0.24 sec)

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

    			n.X.SetTypecheck(1)
    		}
    
    	}
    	return n
    }
    
    // DotField returns a field selector expression that selects the
    // index'th field of the given expression, which must be of struct or
    // pointer-to-struct type.
    func DotField(pos src.XPos, x ir.Node, index int) *ir.SelectorExpr {
    	op, typ := ir.ODOT, x.Type()
    	if typ.IsPtr() {
    		op, typ = ir.ODOTPTR, typ.Elem()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. tests/scan_test.go

    	}
    }
    
    func TestScanRowsNullValuesScanToFieldDefault(t *testing.T) {
    	DB.Save(&User{})
    
    	rows, err := DB.Table("users").
    		Select(`
    			NULL AS bool_field,
    			NULL AS int_field,
    			NULL AS int8_field,
    			NULL AS int16_field,
    			NULL AS int32_field,
    			NULL AS int64_field,
    			NULL AS uint_field,
    			NULL AS uint8_field,
    			NULL AS uint16_field,
    			NULL AS uint32_field,
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  3. src/text/template/exec.go

    	// It's not a method; must be a field of a struct or an element of a map.
    	switch receiver.Kind() {
    	case reflect.Struct:
    		tField, ok := receiver.Type().FieldByName(fieldName)
    		if ok {
    			field, err := receiver.FieldByIndexErr(tField.Index)
    			if !tField.IsExported() {
    				s.errorf("%s is an unexported field of struct type %s", fieldName, typ)
    			}
    			if err != nil {
    				s.errorf("%v", err)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/walk/convert.go

    				n = typecheck.TempAt(base.Pos, ir.CurFunc, n.Type().Field(0).Type)
    				appendWalkStmt(init, ir.NewAssignStmt(base.Pos, n, nil))
    				continue
    			}
    			n = typecheck.DotField(n.Pos(), n, 0)
    		case n.Type().IsArray():
    			n = typecheck.Expr(ir.NewIndexExpr(n.Pos(), n, ir.NewInt(base.Pos, 0)))
    		default:
    			return n
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testerrors/ptr_test.go

    		c:    `struct s3 { int i; int *p; }; void f3(int *p) {}`,
    		body: `p := &C.struct_s3{i: 0, p: new(C.int)}; C.f3(&p.i)`,
    		fail: false,
    	},
    	{
    		// Passing a pointer to a pointer field of a Go struct.
    		name: "ptrfield",
    		c:    `struct s4 { int i; int *p; }; void f4(int **p) {}`,
    		body: `p := &C.struct_s4{i: 0, p: new(C.int)}; C.f4(&p.p)`,
    		fail: true,
    	},
    	{
    		// Passing a pointer to a pointer field of a Go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  6. src/internal/reflectlite/all_test.go

    		struct{ x any }{},
    		struct{ x map[string]int }{},
    		struct{ x func() bool }{},
    		struct{ x chan int }{},
    		struct{ x []string }{},
    		struct{ x unsafe.Pointer }{},
    	}
    	for _, ts := range doNil {
    		ty := TField(TypeOf(ts), 0)
    		v := Zero(ty)
    		v.IsNil() // panics if not okay to call
    	}
    
    	// Check the implementations
    	var pi struct {
    		x *int
    	}
    	Nil(pi, t)
    	pi.x = new(int)
    	NotNil(pi, t)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 19:26:08 UTC 2023
    - 24.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/subr.go

    			return ir.OSLICE2ARRPTR, ""
    		}
    	}
    
    	return ir.OXXX, ""
    }
    
    // Code to resolve elided DOTs in embedded types.
    
    // A dlist stores a pointer to a TFIELD Type embedded within
    // a TSTRUCT or TINTER Type.
    type dlist struct {
    	field *types.Field
    }
    
    // dotpath computes the unique shortest explicit selector path to fully qualify
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  8. ChangeLog.md

    - [`KT-56408`](https://youtrack.jetbrains.com/issue/KT-56408) Inconsistent rules of CFA in class initialization block between K1 and K2
    - [`KT-63580`](https://youtrack.jetbrains.com/issue/KT-63580) "AssertionError: access of const val: GET_FIELD" caused by const value and variable with delegation
    - [`KT-67993`](https://youtrack.jetbrains.com/issue/KT-67993) K2: PCLA Inference throws exception with local objects
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon May 27 17:14:23 UTC 2024
    - 292.1K bytes
    - Viewed (0)
Back to top