Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 237 for embeddeds (0.29 sec)

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

    // For embedded fields, the name is the unqualified type name
    // under which the field is accessible.
    func NewField(pos syntax.Pos, pkg *Package, name string, typ Type, embedded bool) *Var {
    	return &Var{object: object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}, embedded: embedded, isField: true}
    }
    
    // Anonymous reports whether the variable is an embedded field.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/validation.go

    		if len(s.Type) == 0 {
    			allErrs = append(allErrs, field.Required(fldPath.Child("type"), "must be object if x-kubernetes-embedded-resource is true"))
    		} else {
    			allErrs = append(allErrs, field.Invalid(fldPath.Child("type"), s.Type, "must be object if x-kubernetes-embedded-resource is true"))
    		}
    	} else if len(s.Type) == 0 && !s.Extensions.XIntOrString && !s.Extensions.XPreserveUnknownFields {
    		switch lvl {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 18:21:31 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. schema/schema.go

    	if field, ok := schema.FieldsByName[name]; ok {
    		return field
    	}
    	return nil
    }
    
    // LookUpFieldByBindName looks for the closest field in the embedded struct.
    //
    //	type Struct struct {
    //		Embedded struct {
    //			ID string // is selected by LookUpFieldByBindName([]string{"Embedded", "ID"}, "ID")
    //		}
    //		ID string // is selected by LookUpFieldByBindName([]string{"ID"}, "ID")
    //	}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  4. tests/scan_test.go

    package tests_test
    
    import (
    	"reflect"
    	"sort"
    	"strings"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	. "gorm.io/gorm/utils/tests"
    )
    
    type PersonAddressInfo struct {
    	Person  *Person  `gorm:"embedded"`
    	Address *Address `gorm:"embedded"`
    }
    
    func TestScan(t *testing.T) {
    	user1 := User{Name: "ScanUser1", Age: 1}
    	user2 := User{Name: "ScanUser2", Age: 10}
    	user3 := User{Name: "ScanUser3", Age: 20}
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:57:36 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types/fmt.go

    		// represent other, distinct types.
    		//
    		// So for the purpose of LinkString (i.e., fmtTypeID), we use
    		// the non-standard syntax "struct{ Int = int }" to represent
    		// embedded fields that have been renamed through the use of
    		// type aliases.
    		if f.Embedded != 0 {
    			if mode == fmtTypeID {
    				nameSep = " = "
    
    				// Compute tsym, the symbol that would normally be used as
    				// the field name when embedding f.Type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  6. callbacks/preload.go

    				if relation.Schema == s {
    					setPreloadMap(relation.Name, value, args)
    				}
    			}
    
    			for embedded, embeddedRelations := range s.Relationships.EmbeddedRelations {
    				for _, value := range embeddedValues(embeddedRelations) {
    					setPreloadMap(embedded, value, args)
    				}
    			}
    		} else {
    			setPreloadMap(preloadFields[0], value, args)
    		}
    	}
    	return preloadMap
    }
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/lookup.go

    //
    // The last index entry is the field or method index in the (possibly embedded)
    // type where the entry was found, either:
    //
    //  1. the list of declared methods of a named type; or
    //  2. the list of all methods (method set) of an interface type; or
    //  3. the list of fields of a struct type.
    //
    // The earlier index entries are the indices of the embedded struct fields
    // traversed to get to the found entry, starting at depth 0.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  8. src/go/types/lookup.go

    //
    // The last index entry is the field or method index in the (possibly embedded)
    // type where the entry was found, either:
    //
    //  1. the list of declared methods of a named type; or
    //  2. the list of all methods (method set) of an interface type; or
    //  3. the list of fields of a struct type.
    //
    // The earlier index entries are the indices of the embedded struct fields
    // traversed to get to the found entry, starting at depth 0.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTestKitIntegrationTest.groovy

            """
            settingsFile << """
            """
    
            when:
            def runner = GradleRunner.create()
            runner.withJvmArguments("-javaagent:${agentJar}")
            if (!GradleContextualExecuter.embedded) {
                runner.withGradleInstallation(buildContext.gradleHomeDir)
            }
            runner.withArguments("--configuration-cache")
            runner.forwardOutput()
            runner.withProjectDir(testDirectory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. platforms/extensibility/test-kit/src/testFixtures/groovy/org/gradle/testkit/runner/BaseGradleRunnerIntegrationTest.groovy

                private static
                final TestedGradleDistribution EMBEDDED_UNDER_DEVELOPMENT = new TestedGradleDistribution(BUILD_CONTEXT.version, GradleProvider.embedded()) {
                    @Override
                    String getDisplayName() {
                        return "current embedded"
                    }
                }
    
                final GradleVersion gradleVersion
                final GradleProvider gradleProvider
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 18:29:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top