Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 681 for TField (0.19 sec)

  1. src/text/template/exec.go

    	}
    	hasArgs := len(args) > 1 || !isMissing(final)
    	// 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 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 21:22:24 UTC 2024
    - 32K bytes
    - Viewed (0)
  2. src/go/ast/walk_test.go

    	// in the middle of walking a node. Previously, incorrect handling of the
    	// boolean returned by the yield function resulted in the iterator calling
    	// yield for sibling nodes even after yield had returned false. With that
    	// bug, this test failed with a runtime panic.
    	src := "package p\ntype T struct {\n\tF int `json:\"f\"` // a field\n}\n"
    
    	fset := token.NewFileSet()
    	f, err := parser.ParseFile(fset, "", src, 0)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 916 bytes
    - Viewed (0)
  3. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanSchema.kt

    )
    
    
    private
    val Class<*>.relevantFields: Sequence<Field>
        get() = declaredFields.asSequence()
            .filterNot { field ->
                field.isStatic
                    || field.isTransient
                    || Workarounds.isIgnoredBeanField(field)
            }.filter { field ->
                isNotAbstractTaskField(field)
                    || field.name in abstractTaskRelevantFields
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. src/reflect/type.go

    		c := field.Name[0]
    		if 'a' <= c && c <= 'z' || c == '_' {
    			panic("reflect.StructOf: field \"" + field.Name + "\" is unexported but missing PkgPath")
    		}
    	}
    
    	resolveReflectType(field.Type.common()) // install in runtime
    	f := structField{
    		Name:   newName(field.Name, string(field.Tag), field.IsExported(), field.Anonymous),
    		Typ:    field.Type.common(),
    		Offset: 0,
    	}
    	return f, field.PkgPath
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-problems-base/src/main/kotlin/org/gradle/internal/configuration/problems/PropertyProblem.kt

                is SystemProperty -> trace
                is Project -> trace
                else -> null
            }
    }
    
    
    enum class PropertyKind {
        Field {
            override fun toString() = "field"
        },
        PropertyUsage {
            override fun toString() = "property usage"
        },
        InputProperty {
            override fun toString() = "input property"
        },
        OutputProperty {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 21:59:50 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/go/ast/walk.go

    //
    // For greater control over the traversal of each subtree, use [Inspect].
    func Preorder(root Node) iter.Seq[Node] {
    	return func(yield func(Node) bool) {
    		ok := true
    		Inspect(root, func(n Node) bool {
    			if n != nil {
    				// yield must not be called once ok is false.
    				ok = ok && yield(n)
    			}
    			return ok
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 16:34:10 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  7. pkg/apis/resource/validation/validation.go

    	var allErrs field.ErrorList
    	allItems := sets.New[T]()
    	for i, item := range slice {
    		idxPath := fldPath.Index(i)
    		if allItems.Has(item) {
    			allErrs = append(allErrs, field.Duplicate(idxPath, item))
    		} else {
    			allErrs = append(allErrs, validateItem(item, idxPath)...)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 28.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanPropertyWriter.kt

                }
                withDebugFrame({ field.debugFrameName() }) {
                    writeNextProperty(fieldName, fieldValue, PropertyKind.Field)
                }
            }
        }
    
        private
        fun conventionValueOf(bean: Any, field: Field, isExplicitValue: Field) =
            field.get(bean).let { fieldValue ->
                if (isExplicitValue.get(bean).uncheckedCast()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  9. schema/relationship.go

    	PrimaryKey    *Field
    	PrimaryValue  string
    	ForeignKey    *Field
    	OwnPrimaryKey bool
    }
    
    func (schema *Schema) parseRelation(field *Field) *Relationship {
    	var (
    		err        error
    		fieldValue = reflect.New(field.IndirectFieldType).Interface()
    		relation   = &Relationship{
    			Name:        field.Name,
    			Field:       field,
    			Schema:      schema,
    			foreignKeys: toColumns(field.TagSettings["FOREIGNKEY"]),
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 03:46:59 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  10. schema/schema.go

    		}
    
    		bindName := field.BindName()
    		if field.DBName != "" {
    			// nonexistence or shortest path or first appear prioritized if has permission
    			if v, ok := schema.FieldsByDBName[field.DBName]; !ok || ((field.Creatable || field.Updatable || field.Readable) && len(field.BindNames) < len(v.BindNames)) {
    				if _, ok := schema.FieldsByDBName[field.DBName]; !ok {
    					schema.DBNames = append(schema.DBNames, field.DBName)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Wed Jun 12 10:52:33 UTC 2024
    - 13.7K bytes
    - Viewed (0)
Back to top